/* Global resets + minimal styling. The page hero handles its own navigation
   (breadcrumbs + Edizione/Foglio), so no top bar is rendered. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Barlow", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1, "lnum" 1, "ss01" 1;
  background: #efeae0;
  color: #161614;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Focus outline */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid #B7382A;
  outline-offset: 2px;
}

/* ===== Site nav (sticky top) ===== */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: #111110;
  color: #f1f1f1;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 10px 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
/* Inner wrapper mirrors .pc-wrap (max-width + padding) so the menu starts
   on the same left edge as the page content below it. */
.site-nav-inner {
  max-width: 1480px; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center;
}
@keyframes navDot {
  0%   { box-shadow: 0 0 0 0 rgba(183,56,42,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(183,56,42,0); }
  100% { box-shadow: 0 0 0 0 rgba(183,56,42,0); }
}
.site-nav ul {
  list-style: none; margin: 0 0 0 -12px; padding: 0;
  display: flex; align-items: center; gap: 2px;
  flex-wrap: wrap;
}
.site-nav ul a {
  display: inline-block;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.72);
  border: 1px solid transparent;
  transition: color .18s, border-color .18s, background .18s;
  letter-spacing: .14em;
}
.site-nav ul a:hover { color: #fff; }
.site-nav ul a[aria-current="page"] {
  color: #fff;
  background: rgba(183,56,42,.12);
  border-color: rgba(183,56,42,.5);
}
.site-nav ul a.is-soon {
  color: rgba(255,255,255,.32);
  cursor: not-allowed;
  pointer-events: none;
}
.site-nav .nav-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 9px;
  letter-spacing: .12em;
  padding: 2px 6px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 500;
}

/* Burger (nur ≤1000px sichtbar) — 3 Striche → × beim Öffnen, links bündig zum Inhalt */
.nav-burger {
  display: none;
  align-items: center; justify-content: flex-start;
  width: 40px; height: 30px; padding: 0; margin: -1px 0;
  background: transparent; border: 0;
}
.nav-burger-bars, .nav-burger-bars::before, .nav-burger-bars::after {
  content: ""; display: block;
  width: 24px; height: 2px; background: #f1f1f1; border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.nav-burger-bars { position: relative; }
.nav-burger-bars::before { position: absolute; left: 0; top: -7px; }
.nav-burger-bars::after  { position: absolute; left: 0; top: 7px; }
.site-nav.is-open .nav-burger-bars { background: transparent; }
.site-nav.is-open .nav-burger-bars::before { transform: translateY(7px) rotate(45deg); }
.site-nav.is-open .nav-burger-bars::after  { transform: translateY(-7px) rotate(-45deg); }

/* Menü-Wrapper: am Desktop transparent (Leiste bleibt wie gehabt), ab ≤1000px = Overlay.
   Erklärprosa nur im Overlay sichtbar. */
.nav-menu { display: contents; }
.nav-about { display: none; }

/* === Mobile-Burger + Vollbild-Menü ab ≤1000px ===
   1000px = gemeinsamer Single-Column-/Mobile-Breakpoint (auch crit-grid 2→1 in page.css)
   — bei Änderung BEIDE Stellen anpassen. */
@media (max-width: 1000px) {
  .nav-burger { display: inline-flex; position: relative; z-index: 95; }
  /* Vollbild-Overlay mit dezentem Verlauf wie der Hero-Header */
  .nav-menu {
    position: fixed; inset: 0; z-index: 90;
    display: flex; flex-direction: column;
    padding: 86px 32px 36px;
    overflow-y: auto;
    background-color: #111110;
    background-image:
      radial-gradient(900px 600px at 10% 10%, rgba(183,56,42,.15), transparent 55%),
      radial-gradient(800px 500px at 95% 90%, rgba(255,255,255,.04), transparent 60%);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .site-nav.is-open .nav-menu { opacity: 1; visibility: visible; transform: none; }
  /* Links: Display-Schrift wie der Hero, responsiv; linksbündig zur Inhaltskante (32px) */
  .site-nav ul {
    flex: 1 1 auto;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 4px; margin: 0; padding: 0;
  }
  .site-nav ul li { width: 100%; }
  .site-nav ul a {
    display: inline-block; padding: 6px 0; border: 0;
    font-family: "Barlow Condensed", "Oswald", sans-serif;
    font-weight: 900;
    font-size: clamp(30px, 8.5vw, 54px);
    line-height: 1.0; letter-spacing: -.005em;
    color: rgba(255,255,255,.78);
  }
  .site-nav ul a:hover { color: #fff; }
  .site-nav ul a[aria-current="page"] { background: transparent; border: 0; color: #B7382A; }
  .site-nav ul a.is-soon { color: rgba(255,255,255,.3); }
  .site-nav .nav-tag {
    display: inline-block; margin-left: 12px; vertical-align: middle;
    font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 500;
    letter-spacing: .12em;
  }
  /* Erklärprosa am unteren Rand des Overlays */
  .nav-about {
    display: block; flex: 0 0 auto; margin: 24px 0 0;
    padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12);
    font-family: "Barlow", system-ui, sans-serif; font-weight: 400;
    font-size: 13px; line-height: 1.5; letter-spacing: 0; text-transform: none;
    color: rgba(255,255,255,.55); max-width: 56ch;
  }
}
