/* ═══ Ultimate 1000 — lichte stijl, zus van ULTIMATOP ═══════════════════════
   Wordt geladen NA de <style> van elke pagina (index, editions, average,
   search, artist, year, stats). De kleurvariabelen staan in de :root van elke
   pagina (overal dezelfde waarden); dit bestand regelt wat op alle pagina's
   gelijk moet zijn: achtergrond, kopbalk, menu.
   Accent = goud (ULTIMATOP = rood). Fonts: Oswald (koppen) + Inter (tekst).
   Kleuren: wit #ffffff · crème #fefaf5 · crème-2 #f8f1e3
            goud (tekst) #86650f · donkergoud (titels) #6f5210 · fel goud (lijnen) #c9a227
   ═════════════════════════════════════════════════════════════════════════ */

/* ── Kleurvariabelen — één definitie voor alle pagina's ── */
:root {
  --dark:  #ffffff;
  --dark2: #fefaf5;
  --dark3: #f8f1e3;
  --gold:  #86650f;
  --gold2: #6f5210;
  --gold3: rgba(184,146,42,0.24);
  --gold4: rgba(184,146,42,0.10);
  --text:  #1c1c1c;
  --muted: #555555;
  --line:  rgba(184,146,42,0.28);
}

/* Leesbaarheid: alles 12,5% groter (alle maten zijn in rem, dus verhoudingen blijven gelijk).
   Op mobiel 6% groter, anders worden de lijsten te krap. */
html { font-size: 112.5%; scrollbar-gutter: stable; }
@media (max-width: 700px) { html { font-size: 106.25%; } }

body {
  background: #ffffff;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* De gouden gloed was bedoeld voor de donkere achtergrond. Zonder gloed hoeft .page
   geen eigen laag (z-index) meer; dan kan de kopbalk boven het mobiele menu uitkomen. */
body::before { display: none; }
.page { z-index: auto; }

/* ── Kopbalk: crème over de volle breedte met gouden lijn (zoals ULTIMATOP) ── */
/* Volle breedte via schaduw + rand-uitloop: die tellen niet mee als paginabreedte,
   dus geen horizontaal scrollen op mobiel (een ::after met left/right -100vmax deed dat wel). */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fefaf5;
  box-shadow: 0 0 0 100vmax #fefaf5;
  clip-path: inset(0 -100vmax);
  border-bottom: 3px solid #c9a227;
  border-image: linear-gradient(#c9a227, #c9a227) 1 / 0 0 3px 0 / 0 100vmax;
  padding: 1rem 2rem;
  margin-bottom: 0;
  opacity: 1;
  animation: none;
  color: var(--muted);
}
.topbar-logo {
  font-family: 'Oswald', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold2);
}
.topbar-nav { gap: 0.2rem; }
.topbar-nav a {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #333333;
  padding: 0.45rem 0.55rem;
  border-radius: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, background 0.15s;
}
.topbar-nav a:hover { color: var(--gold2); background: #faf3e2; }
.topbar-nav a.active { color: var(--gold2); border-bottom-color: #c9a227; }

/* Logo + 6 menu-items hebben ~670px nodig; de homepage is maar 780px breed.
   Daarom al onder 820px het hamburgermenu (pagina's zelf doen dat pas onder 700px). */
@media (max-width: 820px) {
  .hamburger { display: flex; }
  .topbar-nav { display: none !important; }
}

/* Zinnen, meldingen en het zoekveld in de tekstletter (koppen blijven Oswald) */
.search-hero p, .search-box-wrap input, .empty-state p, .no-results,
.header-sub, .empty p, .loading {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: normal;
}

/* Songtitels linken naar de nummerpagina (song.html) — zelfde kleur, onderstreping bij hover */
.song-link { color: inherit; text-decoration: none; }
.song-link:hover { text-decoration: underline; text-decoration-color: #c9a227; text-underline-offset: 3px; }

/* Betere tekstomloop: koppen netjes gebalanceerd, paragrafen zonder weeswoorden */
h1, h2, h3,
.hero-title, .hero-tagline, .hero-sub,
.page-header h1, .section-head { text-wrap: balance; }
p, .about p, .header-sub { text-wrap: pretty; }

/* Paginaknoppen mogen op smalle telefoons naar een 2e regel i.p.v. buiten beeld te vallen */
.pagination { flex-wrap: wrap; justify-content: center; }

/* Editie-tegels (editions.html) vullen de hele rij; op mobiel blijven ze scrollbaar (min. 80px) */
.edition-tabs .ed-tab { flex: 1 0 80px; }

/* ── View Transitions (Chrome 126+, Safari 18+) ───────────────────────────
   Cross-document MPA transitions: old page slides up+fades out,
   new page verschijnt meteen en draait zijn eigen sectie-animaties.
   Song cover morpht visueel van lijst naar songpagina en song↔song.      */
@view-transition { navigation: auto; }

@keyframes vt-out { to { opacity: 0; transform: translateY(-5px); } }

::view-transition-old(root) { animation: 190ms ease both vt-out; }
::view-transition-new(root) { animation: none; }

/* Klikbare artiestlink in songlijsten — erft kleur van bovenliggend element (--muted via .row-meta etc.) */
a.artist-link { color: inherit; text-decoration: none; }
a.artist-link:hover, a.artist-link:focus { color: var(--gold2); text-decoration: underline; text-decoration-color: #c9a227; text-underline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

::view-transition-group(song-cover) {
  animation-duration: 340ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
::view-transition-old(song-cover),
::view-transition-new(song-cover) { animation-duration: 340ms; }

/* ── Hamburger + mobiel menu ── */
.hamburger span { background: #1c1c1c; height: 2px; }
.mobile-overlay { background: #fefaf5; }
.mobile-overlay a {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: #333333;
}
.mobile-overlay a:hover,
.mobile-overlay a.active { color: var(--gold2); }

/* ── Wikipedia info card ── */
.wiki-card {
  display: flex;
  gap: 1rem;
  background: var(--dark3);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: .9rem 1rem;
  margin: .6rem 0 1.4rem;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--muted);
}
.wiki-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  align-self: flex-start;
}
.wiki-card-body { flex: 1; min-width: 0; }
.wiki-desc {
  font-weight: 600;
  color: var(--text);
  margin: 0 0 .35rem;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.wiki-extract { color: var(--muted); }
.wiki-extract p { margin: 0 0 .4rem; }
.wiki-extract p:last-child { margin-bottom: .4rem; }
.wiki-link {
  display: inline-block;
  margin-top: .4rem;
  font-size: .8rem;
  color: var(--gold);
  text-decoration: none;
}
.wiki-link:hover { text-decoration: underline; }
@media (max-width: 500px) {
  .wiki-thumb { width: 56px; height: 56px; }
}
