/* RunUntil-inspired refresh -- matches januschka.com / rununtil.com */
:root {
  --accent-grid: rgba(255, 193, 7, 0.06);
  --accent-glow: rgba(255, 193, 7, 0.35);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

html { background: var(--bg, #121212); }

body {
  background: transparent !important;
  position: relative;
  overflow-x: hidden;
}

/* Dotted grid background, faded top and bottom */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--accent-grid) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%);
}

/* Soft accent glow at the top */
body::after {
  content: "";
  position: fixed;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 120vw);
  height: 520px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  filter: blur(50px);
  opacity: 0.5;
}

/* Softer, rununtil-ish surfaces */
.box { box-shadow: var(--shadow); }

/* Shared site footer (consistent across all samplers) */
.ru-site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  background: var(--bg-light);
  padding: 18px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}
.ru-site-footer a { color: var(--text-dim); text-decoration: none; }
.ru-site-footer a:hover { color: var(--accent); text-decoration: none; }
.ru-site-footer .sep { opacity: 0.45; margin: 0 8px; }

/* Standardized top nav (consistent across all samplers) */
.ru-site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  padding: 10px 20px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 193, 7, 0.12);
  font-size: 12px;
}
.ru-site-nav .ru-nav-home {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.ru-site-nav .ru-nav-home:hover { text-decoration: none; opacity: 0.85; }
.ru-site-nav .ru-nav-id {
  color: var(--text-dim);
  white-space: nowrap;
}
.ru-site-nav .ru-nav-id a { color: var(--text-dim); text-decoration: none; }
.ru-site-nav .ru-nav-id a:hover { color: var(--accent); }
.ru-site-nav .ru-nav-sep { color: var(--border); }
.ru-site-nav .ru-nav-title {
  color: var(--text);
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .ru-site-nav .ru-nav-title { display: none; }
}
