/* ==========================================================================
   attackontitan.nl — ontwerpsysteem
   Eén gedeeld stylesheet voor de hele site (wordt door de browser gecachet).
   ========================================================================== */

:root {
  --serif: 'DM Serif Display', 'Iowan Old Style', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'JetBrains Mono', Menlo, Consolas, monospace;

  --acc: #b3251c;
  --acc-soft: #d9483a;
  --gold: #96721f;
  --gold-soft: #c19a3e;
  --green: #3d7a45;

  --step--1: clamp(.78rem, .76rem + .1vw, .84rem);
  --step-0: clamp(.95rem, .92rem + .15vw, 1.02rem);
  --step-1: clamp(1.1rem, 1.04rem + .3vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.2rem + .7vw, 1.8rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.5vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.6rem + 3vw, 4.2rem);

  --sp-1: .35rem;
  --sp-2: .7rem;
  --sp-3: 1.1rem;
  --sp-4: 1.7rem;
  --sp-5: 2.6rem;
  --sp-6: 4rem;
  --sp-7: 6rem;

  --wrap: 1240px;
  --radius: 3px;
  --nav-h: 60px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

[data-theme="light"] {
  --bg: #faf8f4;
  --bg-2: #ffffff;
  --bg-3: #f2efe8;
  --bg-4: #e8e3d9;
  --line: #e0dad0;
  --line-2: #cdc5b7;
  --ink: #26231d;
  --ink-2: #55503f;
  --muted: #6e6858;          /* voldoet aan WCAG AA op alle achtergronden */
  --gold-soft: #7d5f12;
  --strong: #17150f;
  --nav-bg: rgba(255, 255, 255, .88);
  --shadow: 0 1px 2px rgba(30, 25, 15, .04), 0 8px 24px -12px rgba(30, 25, 15, .18);
  --shadow-lg: 0 2px 4px rgba(30, 25, 15, .05), 0 20px 50px -20px rgba(30, 25, 15, .28);
  --art-bg: #17150f;
}

[data-theme="dark"] {
  --bg: #0b0b09;
  --bg-2: #131210;
  --bg-3: #1a1916;
  --bg-4: #23211d;
  --line: #2b2925;
  --line-2: #3b3833;
  --ink: #c6c0b4;
  --ink-2: #98928a;
  --muted: #8a8378;          /* voldoet aan WCAG AA op de donkere achtergronden */
  --strong: #f2ede2;
  --nav-bg: rgba(11, 11, 9, .86);
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px -14px rgba(0, 0, 0, .8);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .55), 0 26px 60px -24px rgba(0, 0, 0, .9);
  --art-bg: #0f0e0b;
  --acc: #e05f51;
  --acc-soft: #ea7365;
  --gold-soft: #c9a44a;
  --green: #4f9b58;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .25s var(--ease), color .25s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 2px; }

.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--acc); color: #fff; padding: .7rem 1.2rem; font-size: var(--step--1);
}
.skip:focus { left: 0; }

/* ---------- navigatie ---------- */
#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 500; height: var(--nav-h);
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 0 var(--sp-4);
  background: var(--nav-bg);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  font-family: var(--serif); font-size: 1.05rem; color: var(--strong);
  letter-spacing: -.015em; white-space: nowrap; display: flex; align-items: center; gap: .5rem;
}
.nav-logo em { color: var(--acc); font-style: italic; }
.nav-logo .mark {
  width: 22px; height: 22px; flex: none;
}
.nav-links { display: flex; align-items: center; gap: .1rem; list-style: none; margin-left: auto; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links button {
  display: block; padding: .5rem .62rem; font-size: .8rem; font-weight: 500;
  color: var(--ink-2); border-radius: var(--radius); transition: color .18s, background .18s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links button:hover { color: var(--strong); background: var(--bg-3); }
.nav-links a.active { color: var(--strong); box-shadow: inset 0 -2px 0 var(--acc); }
.nav-right { display: flex; align-items: center; gap: .4rem; }
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink-2); background: var(--bg-2);
  transition: background .18s, color .18s, border-color .18s;
}
.icon-btn:hover { background: var(--bg-4); color: var(--strong); }
.icon-btn svg { width: 15px; height: 15px; }
.lang-btn {
  width: auto; padding: 0 .62rem; border-radius: 999px; font-size: .72rem;
  font-weight: 600; letter-spacing: .06em; text-decoration: none;
}
.lang-btn:hover { border-color: var(--acc); color: var(--acc); }

/* dropdown */
.has-menu > .menu {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(-4px);
  min-width: 220px; background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); padding: .4rem; opacity: 0; visibility: hidden;
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.has-menu:hover > .menu, .has-menu:focus-within > .menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.menu a { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .7rem; font-size: .82rem; }
.menu a span { color: var(--muted); font-size: .7rem; font-family: var(--mono); }

.hamburger { display: none; width: 36px; height: 36px; place-items: center; color: var(--strong); }
#mob-nav {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 499; max-height: 0; overflow: hidden;
  background: var(--bg-2); border-bottom: 1px solid transparent;
  transition: max-height .3s var(--ease), border-color .3s;
}
#mob-nav.open { max-height: 82vh; overflow-y: auto; border-bottom-color: var(--line); }
#mob-nav a { display: flex; justify-content: space-between; gap: 1rem; padding: .72rem var(--sp-4); font-size: .92rem; border-bottom: 1px solid var(--line); }
#mob-nav a span { color: var(--muted); font-size: .72rem; font-family: var(--mono); }
#mob-nav .mob-top { font-weight: 600; color: var(--strong); }
.mob-group > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; padding: .8rem var(--sp-4);
  font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-soft); border-bottom: 1px solid var(--line); background: var(--bg-3);
}
.mob-group > summary::-webkit-details-marker { display: none; }
.mob-group > summary::after { content: '+'; font-size: 1.1rem; color: var(--acc); letter-spacing: 0; }
.mob-group[open] > summary::after { content: '–'; }
.mob-group > summary span { font-family: var(--mono); color: var(--muted); letter-spacing: 0; }
.mob-group a { padding-left: calc(var(--sp-4) + .8rem); }

/* progressiebalk */
#progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--acc); z-index: 900; width: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + var(--sp-6)) var(--sp-4) var(--sp-5);
  background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: var(--wrap); margin: 0 auto; position: relative; z-index: 2; }
.hero.split .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--sp-6); align-items: center; }
.hero-art { justify-self: end; width: 300px; height: auto; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--art-bg); }
.hero-bg {
  position: absolute; inset: 0; z-index: 1; opacity: .5; pointer-events: none;
  background-repeat: no-repeat; background-position: right -60px center; background-size: auto 130%;
  mask-image: linear-gradient(to right, transparent 25%, #000 85%);
  -webkit-mask-image: linear-gradient(to right, transparent 25%, #000 85%);
}
.breadcrumb { font-size: .74rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: var(--sp-3); }
.breadcrumb a:hover { color: var(--strong); }
.breadcrumb .sep { color: var(--line-2); }
.eyebrow {
  display: flex; align-items: center; gap: .7rem; margin-bottom: var(--sp-2);
  font-size: .69rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--acc);
}
.eyebrow::after { content: ''; flex: 0 0 34px; height: 1px; background: currentColor; opacity: .5; }
h1, .h1 {
  font-family: var(--serif); font-weight: 400; font-size: var(--step-4); line-height: 1.02;
  letter-spacing: -.025em; color: var(--strong);
}
h1 em, .h1 em { color: var(--acc); font-style: italic; }
.lede { margin-top: var(--sp-3); max-width: 62ch; font-size: 1.02rem; color: var(--ink-2); font-weight: 300; line-height: 1.8; }

/* statistiekenrij */
.stats { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin-top: var(--sp-5); }
.stat-n { font-family: var(--serif); font-size: var(--step-3); color: var(--strong); line-height: 1; }
.stat-n em { color: var(--acc); font-style: normal; }
.stat-l { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: .4rem; }

/* ---------- layout ---------- */
.main { max-width: var(--wrap); margin: 0 auto; padding: var(--sp-6) var(--sp-4) var(--sp-7); }
.main.narrow { max-width: 780px; }
.section { margin-bottom: var(--sp-6); }
.section:last-child { margin-bottom: 0; }
h2, .h2 { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); color: var(--strong); letter-spacing: -.015em; line-height: 1.2; }
h3, .h3 { font-family: var(--serif); font-weight: 400; font-size: var(--step-1); color: var(--strong); }
h4 { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; }
.section > h2 { margin-bottom: var(--sp-3); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.section-head p { color: var(--muted); font-size: .88rem; max-width: 60ch; }
.more { font-size: .78rem; font-weight: 600; color: var(--acc); display: inline-flex; gap: .35rem; align-items: center; }
.more:hover { gap: .6rem; }
.more::after { content: '→'; transition: transform .2s; }

.prose p { margin-bottom: var(--sp-3); color: var(--ink); font-weight: 300; line-height: 1.85; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--strong); font-weight: 600; }
.prose a { color: var(--acc); box-shadow: inset 0 -1px 0 currentColor; }
.prose a:hover { background: color-mix(in srgb, var(--acc) 10%, transparent); }
.prose h3 { margin: var(--sp-5) 0 var(--sp-2); }
.prose ul, .prose ol { margin: 0 0 var(--sp-3) 1.15rem; color: var(--ink); font-weight: 300; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--acc); }

blockquote {
  border-left: 2px solid var(--acc); padding: .3rem 0 .3rem 1.3rem; margin: var(--sp-4) 0;
  font-family: var(--serif); font-size: 1.22rem; line-height: 1.45; color: var(--strong); font-style: italic;
}
blockquote cite { display: block; margin-top: .6rem; font-family: var(--sans); font-size: .74rem; font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--gold-soft); background: var(--bg-3);
  padding: var(--sp-3) var(--sp-4); margin: var(--sp-4) 0;
}
.callout h4 { margin-bottom: .4rem; }
.callout p { font-size: .9rem; color: var(--ink-2); font-weight: 300; }
.callout.acc { border-left-color: var(--acc); }

/* ---------- kaarten ---------- */
.grid { display: grid; gap: var(--sp-4); }
.grid.g2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid.g3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.g4 { grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); }
.grid.g5 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.card {
  display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
  overflow: hidden;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card-art { position: relative; background: var(--art-bg); aspect-ratio: 4 / 5; overflow: hidden; }
.card-art.wide { aspect-ratio: 8 / 5; }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-art img { transform: scale(1.05); }
.card-art::after { content: ''; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, var(--bg-2), transparent); opacity: .9; }
.card-body { padding: var(--sp-3); display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card-label { font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); }
.card-title { font-family: var(--serif); font-size: 1.06rem; color: var(--strong); line-height: 1.18; }
.card-meta { font-size: .78rem; color: var(--muted); font-style: italic; }
.card-desc { font-size: .84rem; color: var(--ink-2); font-weight: 300; line-height: 1.6; }
.card-foot { margin-top: auto; padding-top: var(--sp-2); font-size: .74rem; font-weight: 600; color: var(--acc); display: inline-flex; gap: .3rem; }
.card:hover .card-foot { gap: .55rem; }

.tile { display: block; padding: var(--sp-4); background: var(--bg-3); border: 1px solid transparent; transition: background .2s, border-color .2s; }
.tile:hover { background: var(--bg-4); border-color: var(--line-2); }
.tile-dir { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.tile-title { font-family: var(--serif); font-size: 1.05rem; color: var(--strong); }
.tile-desc { font-size: .82rem; color: var(--muted); margin-top: .35rem; font-weight: 300; }

/* status + labels */
.status { display: inline-flex; align-items: center; gap: .4rem; font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.status.alive { color: var(--green); }
.status.dead { color: var(--acc); }
.status.unknown { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag {
  font-size: .64rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  padding: .22rem .62rem; border: 1px solid var(--line-2); color: var(--muted); border-radius: 20px; white-space: nowrap;
}
.tag.acc { border-color: color-mix(in srgb, var(--acc) 45%, transparent); color: var(--acc); }
.tag.gold { border-color: color-mix(in srgb, var(--gold-soft) 45%, transparent); color: var(--gold-soft); }
.tag.green { border-color: color-mix(in srgb, var(--green) 45%, transparent); color: var(--green); }

/* ---------- detailpagina ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: var(--sp-6); align-items: start; }
.aside { position: sticky; top: calc(var(--nav-h) + var(--sp-3)); display: flex; flex-direction: column; gap: var(--sp-4); }
.panel { background: var(--bg-2); border: 1px solid var(--line); }
.panel-head { background: var(--acc); color: #fff; padding: .55rem var(--sp-3); font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.panel-head.gold { background: var(--gold); }
.panel-head.dark { background: var(--bg-4); color: var(--strong); }
.row { display: flex; justify-content: space-between; gap: var(--sp-3); padding: .55rem var(--sp-3); border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: none; }
.row dt, .row-l { font-size: .8rem; color: var(--muted); font-style: italic; flex: none; }
.row dd, .row-r { font-size: .8rem; color: var(--strong); font-weight: 500; text-align: right; }
.panel-list a { display: block; padding: .55rem var(--sp-3); border-bottom: 1px solid var(--line); font-size: .84rem; transition: background .18s, padding-left .18s; }
.panel-list a:last-child { border-bottom: none; }
.panel-list a:hover { background: var(--bg-3); padding-left: calc(var(--sp-3) + 4px); color: var(--strong); }

.figure { border: 1px solid var(--line); background: var(--art-bg); box-shadow: var(--shadow); }
.figure img { width: 100%; }
.figure figcaption { font-size: .72rem; color: var(--muted); padding: .5rem var(--sp-3); background: var(--bg-2); border-top: 1px solid var(--line); }

.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); margin-top: var(--sp-6); border: 1px solid var(--line); }
.prevnext a { background: var(--bg-2); padding: var(--sp-3) var(--sp-4); transition: background .2s; }
.prevnext a:hover { background: var(--bg-3); }
.prevnext .dir { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.prevnext .ttl { font-family: var(--serif); font-size: 1rem; color: var(--strong); }
.prevnext a:last-child { text-align: right; }

/* ---------- tabellen ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--bg-2); }
table { width: 100%; border-collapse: collapse; font-size: .87rem; }
th {
  font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft);
  text-align: left; padding: .7rem var(--sp-3); border-bottom: 1px solid var(--line); background: var(--bg-3); white-space: nowrap;
}
td { padding: .7rem var(--sp-3); border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--bg-3); }
.ep-code { font-family: var(--mono); font-size: .78rem; color: var(--acc); white-space: nowrap; }
.ep-title { color: var(--strong); font-weight: 500; }
.ep-jp { display: block; font-size: .74rem; color: var(--muted); font-style: italic; margin-top: .1rem; }
.ep-date { color: var(--muted); font-size: .78rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ep-desc { color: var(--ink-2); font-size: .82rem; font-weight: 300; max-width: 46ch; }

/* ---------- filters & zoeken ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin-bottom: var(--sp-4); }
.field {
  display: flex; align-items: center; gap: .5rem; background: var(--bg-2); border: 1px solid var(--line);
  padding: .45rem .8rem; flex: 1 1 240px; max-width: 420px;
}
.field input { flex: 1; border: none; background: none; color: var(--ink); font-size: .88rem; outline: none; min-width: 0; }
.field svg { width: 14px; height: 14px; color: var(--muted); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip {
  font-size: .72rem; font-weight: 500; padding: .34rem .8rem; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--ink-2); border-radius: 20px; transition: all .18s;
}
.chip:hover { border-color: var(--line-2); color: var(--strong); }
.chip[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: #fff; }
.count { font-size: .74rem; color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; }

/* kijkchecklist */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.seen,
.read {
  width: 22px; height: 22px; border-radius: 4px; border: 1px solid var(--line-2);
  color: transparent; font-size: .72rem; line-height: 1; display: grid; place-items: center;
  transition: background .15s, color .15s, border-color .15s;
}
.seen:hover,
.read:hover { border-color: var(--acc); color: var(--line-2); }
.seen[aria-pressed="true"],
.read[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.progress-box {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  background: var(--bg-3); border: 1px solid var(--line); padding: .8rem var(--sp-3);
  margin-bottom: var(--sp-3); font-size: .84rem; color: var(--ink-2);
}
.progress-box strong { color: var(--strong); font-variant-numeric: tabular-nums; }
.progress-box #seen-pct,
.progress-box #read-pct { color: var(--muted); margin-left: .4rem; }
.seen-bar { flex: 1 1 180px; height: 8px; background: var(--bg-4); overflow: hidden; }
.seen-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), #5aa863); transition: width .3s var(--ease); }
.progress-box button { margin-left: auto; }
.empty { padding: var(--sp-6) 0; text-align: center; color: var(--muted); font-size: .9rem; }
mark { background: color-mix(in srgb, var(--gold-soft) 30%, transparent); color: var(--strong); padding: 0 .1em; }
.updated { font-size: .74rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .9rem; }

/* ---------- reactieformulier ---------- */
.reactie { display: flex; flex-direction: column; gap: var(--sp-3); margin: var(--sp-4) 0; }
.reactie label { display: flex; flex-direction: column; gap: .35rem; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.reactie label span { font-weight: 400; color: var(--muted); font-size: .72rem; }
.reactie input[type="text"], .reactie input[type="email"], .reactie textarea {
  font: inherit; font-size: .92rem; font-weight: 400; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line-2); padding: .6rem .8rem; width: 100%;
}
.reactie textarea { resize: vertical; min-height: 8rem; line-height: 1.6; }
.reactie input:focus, .reactie textarea:focus { outline: 2px solid var(--acc); outline-offset: 1px; border-color: var(--acc); }
.veld-rij { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.reactie .hp { position: absolute; left: -9999px; }
.knop {
  align-self: flex-start; background: var(--acc); color: #fff; border: none;
  padding: .7rem 1.6rem; font-size: .84rem; font-weight: 600; letter-spacing: .04em;
  transition: background .2s;
}
.knop:hover { background: var(--acc-soft); }
@media (max-width: 560px) { .veld-rij { grid-template-columns: 1fr; } }

/* ---------- spoilers ---------- */
.spoiler {
  position: relative; border: 1px dashed var(--line-2); padding: var(--sp-3); background: var(--bg-3);
  margin: var(--sp-3) 0;
}
.spoiler > .spoiler-body { filter: blur(6px); opacity: .55; transition: filter .25s, opacity .25s; user-select: none; }
.spoiler.show > .spoiler-body { filter: none; opacity: 1; user-select: auto; }
.spoiler-btn {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 2;
  font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--acc);
}
.spoiler.show .spoiler-btn { display: none; }
.spoiler-tag { position: absolute; top: -9px; left: 12px; background: var(--bg); padding: 0 .5rem; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- muurkaart ---------- */
.map-wrap { background: var(--bg-2); border: 1px solid var(--line); padding: var(--sp-3); }
.wallmap { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; font-family: var(--sans); }
.wallmap text { fill: var(--ink-2); }
.wm-wall-label { font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; fill: var(--strong) !important; }
.wm-district { font-size: 15px; fill: var(--ink-2) !important; }
.wm-district.acc { fill: var(--acc) !important; font-weight: 600; }
.wm-capital-label { font-size: 13px; font-weight: 600; fill: var(--strong) !important; }
.wm-note { font-size: 12px; fill: var(--muted) !important; font-style: italic; }
[data-theme="light"] .wallmap {
  --wm-sea: #d7e0e4; --wm-land: #efe9dc; --wm-coast: #c2b9a6; --wm-wall: #6f6453;
  --wm-ring1: #e6ded0; --wm-ring2: #ded4c2; --wm-ring3: #d5c9b3; --wm-capital: #c8b58f;
}
[data-theme="dark"] .wallmap {
  --wm-sea: #121a1e; --wm-land: #1d1a15; --wm-coast: #332d24; --wm-wall: #6a5f4d;
  --wm-ring1: #22201a; --wm-ring2: #282419; --wm-ring3: #2f2a1d; --wm-capital: #3d3524;
}

/* ---------- tijdlijn ---------- */
.timeline { position: relative; padding-left: var(--sp-5); }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding-bottom: var(--sp-4); }
.tl-item::before { content: ''; position: absolute; left: calc(var(--sp-5) * -1 + 4px); top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px var(--bg); }
.tl-year { font-family: var(--mono); font-size: .72rem; color: var(--gold-soft); letter-spacing: .05em; }
.tl-title { font-family: var(--serif); font-size: 1.05rem; color: var(--strong); margin: .1rem 0 .25rem; }
.tl-text { font-size: .86rem; color: var(--ink-2); font-weight: 300; }

/* ---------- accordeon ---------- */
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q { width: 100%; display: flex; gap: var(--sp-3); align-items: center; justify-content: space-between; padding: var(--sp-3) 0; text-align: left; }
.acc-q span { font-family: var(--serif); font-size: 1.04rem; color: var(--strong); line-height: 1.3; }
.acc-q i { font-style: normal; font-size: 1.3rem; color: var(--acc); transition: transform .25s var(--ease); flex: none; }
.acc-item.open .acc-q i { transform: rotate(45deg); }
.acc-a { display: none; padding-bottom: var(--sp-3); font-size: .92rem; color: var(--ink-2); font-weight: 300; line-height: 1.8; }
.acc-item.open .acc-a { display: block; }
.acc-a p + p { margin-top: .8rem; }

/* ---------- meterbalken (titanen-vergelijking) ---------- */
.meter { display: grid; grid-template-columns: 140px 1fr 58px; gap: var(--sp-3); align-items: center; padding: .4rem 0; font-size: .82rem; }
.meter-name { color: var(--ink-2); }
.meter-bar { height: 10px; background: var(--bg-4); position: relative; overflow: hidden; }
.meter-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--acc), var(--acc-soft)); display: block; }
.meter-val { font-family: var(--mono); font-size: .74rem; color: var(--muted); text-align: right; }

/* ---------- footer ---------- */
footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: var(--sp-6) var(--sp-4) var(--sp-4); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--sp-4); padding-bottom: var(--sp-5); border-bottom: 1px solid var(--line); }
.footer-brand { font-family: var(--serif); font-size: 1.35rem; color: var(--strong); }
.footer-brand em { color: var(--acc); font-style: italic; }
.footer-tag { font-size: .85rem; color: var(--muted); font-weight: 300; margin-top: .5rem; max-width: 38ch; }
.footer-col h4 { margin-bottom: .9rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.footer-col a { font-size: .85rem; color: var(--muted); }
.footer-col a:hover { color: var(--strong); }
.footer-bottom { max-width: var(--wrap); margin: var(--sp-3) auto 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2); font-size: .76rem; color: var(--muted); }
.footer-bottom a:hover { color: var(--strong); }

#top {
  position: fixed; right: var(--sp-4); bottom: var(--sp-4); width: 40px; height: 40px; border-radius: 50%;
  background: var(--acc); color: #fff; display: grid; place-items: center; z-index: 400;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  transform: translateY(8px); box-shadow: var(--shadow-lg);
}
#top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- animatie bij scrollen ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .detail { grid-template-columns: 1fr; }
  .aside { position: static; }
  .hero.split .hero-inner { grid-template-columns: 1fr; gap: var(--sp-4); }
  .hero-art { width: 168px; justify-self: start; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: grid; margin-left: auto; }
  .nav-right { margin-left: .2rem; }
}
@media (max-width: 760px) {
  /* de omschrijving past niet op een telefoon; die staat op de afleveringpagina zelf */
  .col-desc { display: none; }
}
@media (max-width: 640px) {
  :root { --sp-6: 2.6rem; --sp-7: 3.4rem; }
  .hero { padding-left: var(--sp-3); padding-right: var(--sp-3); }
  .main { padding-left: var(--sp-3); padding-right: var(--sp-3); }
  .stats { gap: var(--sp-4); }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext a:last-child { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .meter { grid-template-columns: 100px 1fr 46px; }
  footer { padding-left: var(--sp-3); padding-right: var(--sp-3); }
}

@media print {
  #nav, #mob-nav, #top, .prevnext, footer, .toolbar { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { padding-top: 0; }
}

/* relatieschema's */
.rel-wrap { background: var(--bg-2); border: 1px solid var(--line); padding: var(--sp-3); margin-bottom: var(--sp-3); overflow-x: auto; }
.reldia { width: 100%; height: auto; display: block; font-family: var(--sans); }
.reldia a { text-decoration: none; }
.rel-box { fill: var(--bg-3); stroke: var(--line-2); stroke-width: 1; }
.reldia a:hover .rel-box { stroke: var(--acc); fill: var(--bg-4); }
.rel-name { font-size: 11px; fill: var(--ink-2); text-anchor: middle; }
.reldia a:hover .rel-name { fill: var(--acc); }
.rel-title { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; fill: var(--strong); }
.rel-row-label { font-size: 12px; font-weight: 600; fill: var(--strong); }
.reldia a:hover .rel-row-label { fill: var(--acc); }
.rel-line { stroke: var(--line-2); stroke-width: 1.5; fill: none; }
.rel-line.dash { stroke-dasharray: 4 3; }
.rel-head { fill: var(--line-2); }
.rel-edge { font-size: 10px; fill: var(--muted); }
.rel-note { font-size: 11px; fill: var(--muted); font-style: italic; }
