/* =====================================================================
   House style · The Hill: After Dark (Moss)
   Since 18/11/2026. Before: Long Read, Moss & Granite (13/10/2026), and
   neon orange and rust before that.
   Every page inlines this file and assets/scene.css (artifacts cannot load
   local stylesheets). Build scripts read both through scripts/kit.py, so a
   change here reaches every page on its next build.

   Rules of thumb (full guide: guide.md)
   - Dark is the default. Light only applies when the viewer picks it
     (data-theme="light" on the root, set by the switch or by the host).
   - Components only read tokens. Never write a literal colour in a component.
   - Moss (--accent) is the one accent: links, labels, buttons, the active
     menu item, chart series 1. It may glow (--glow), but only on the one
     thing that matters in a block.
   - Geist for everything people read; Geist Mono for labels, dates and figures.
   - Rounded panels (--r-lg) for separate objects; running text is never boxed.
   - Class names are the same as in the Long Read version, so every builder
     keeps working.
   ===================================================================== */

/* ---------- 1. Tokens: dark (default) ---------- */
:root {
  --bg: #0a0a0c;          /* page ground, near-black */
  --bg-2: #0f0f12;        /* top bar, footer */
  --surface: #16161a;     /* panels: In short, cards, tables, updates */
  --surface-2: #1e1e23;   /* raised: buttons, pills, active tabs */
  --soft: #121215;        /* tinted blocks: bands, callouts */
  --ink: #f3f2ef;         /* text */
  --ink-2: #a5a4aa;       /* secondary text, captions, labels */
  --ink-3: #6c6b72;       /* faint: axis labels, small print */
  --rule: #24242a;        /* hairlines and panel borders */
  --line-2: #34343b;      /* stronger borders: chips, secondary buttons */
  --accent: #8fe05a;      /* moss: links, labels, buttons, series 1 */
  --accent-2: #d4f27a;    /* the light end of the moss gradient */
  --accent-ink: #0b1505;  /* text on moss */
  --pop: #8fe05a;         /* small marks: dots, edges, the line under a key figure */
  --glow: color-mix(in srgb, var(--accent) 38%, transparent);
  --rock: #8a8990;        /* spare grey */
  --good: #4fd18b; --warn: #f5c04e; --bad: #ff6b6b;
  --chart-1: #8fe05a;     /* moss */
  --chart-2: #5aa2ff;     /* ion blue */
  --chart-3: #ff8a47;     /* ember */
  --core: var(--pop);     /* kept so older page CSS still works */
  --halo: none;
  --hl: 84%;              /* where the pull-quote underline starts */

  --font-display: "Geist", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Geist", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-ui: "Geist", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --head-weight: 600;
  --radius: 12px;         /* small things: inputs, tags */
  --r-lg: 22px;           /* panels */
  --read: 680px;          /* reading column */
  --wide: 960px;          /* scan blocks */
  --pad: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

/* ---------- 2. Tokens: light (only when chosen) ---------- */
:root[data-theme="light"] {
  --bg: #f4f3f0; --bg-2: #ecebe7; --surface: #ffffff; --surface-2: #f3f2ee; --soft: #ecebe7;
  --ink: #111114; --ink-2: #57565c; --ink-3: #85848b; --rule: #e2e1dc; --line-2: #cfcec8;
  --accent: #3c7a1c; --accent-2: #5f9e33; --accent-ink: #ffffff; --pop: #5aa82e;
  --glow: color-mix(in srgb, var(--accent) 20%, transparent); --rock: #7a7980;
  --good: #1f8a52; --warn: #a06a00; --bad: #c43c3c;
  --chart-1: #3c7a1c; --chart-2: #1d5ed0; --chart-3: #b4470a;
  color-scheme: light;
}

/* ---------- 3. Base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
/* The content container: every full-width bar has one inside, so edges line up from top to bottom */
.wrap { max-width: 1120px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); box-sizing: border-box; }
@media (min-width: 900px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shell { max-width: 1040px; margin: 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Paint the band under a phone's status bar in the page colour, so nothing scrolls into view behind it */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--bg); }

/* ---------- 4. Site frame: top bar, hill scene, menu, footer ---------- */
.site { min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.topbar { background: var(--bg-2); border-bottom: 1px solid var(--rule); font-family: var(--font-ui); }
.topbar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 44px; padding-block: 6px; }
.dateline { font: 500 12px/1.4 var(--font-mono); color: var(--ink-2); letter-spacing: .03em; text-transform: uppercase; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 5vw, 54px); line-height: 1; letter-spacing: -0.045em; color: var(--ink); text-decoration: none; }
.brand.small { font-size: 26px; }
/* The menu: a floating glass pill that stays at the top while scrolling */
.sitenav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; padding-block: 10px; margin-top: -10px; }
.nav { display: flex; gap: 2px; width: max-content; max-width: 100%; margin-inline: auto; padding: 4px; border-radius: 999px;
  overflow-x: auto; scrollbar-width: none; font: 500 14px/1 var(--font-ui);
  background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink-2); text-decoration: none; white-space: nowrap; padding: 10px 14px; border-radius: 999px; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--accent-ink); background: var(--accent); box-shadow: 0 0 22px -4px var(--glow); }
.site-main { flex: 1 0 auto; width: 100%; padding-block: 8px 0; }
.site-main .lr { padding-bottom: 72px; }
.site-main .lr:has(> .band:last-child) { padding-bottom: 0; }
.site-foot { background: var(--bg-2); border-top: 1px solid var(--rule); font-family: var(--font-ui); color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px 48px; padding-block: 36px 28px; }
.foot-brand p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; }
.foot-private { font-size: 13px; }
.foot-h { margin: 0 0 10px; font: 500 11px/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.foot-nav ul { list-style: none; margin: 0; padding: 0; columns: 3 140px; column-gap: 24px; }
.foot-nav li { margin: 0 0 8px; break-inside: avoid; }
.foot-nav a { color: var(--ink); text-decoration: none; font-size: 14px; }
.foot-nav a:hover { color: var(--accent); }
.foot-small { border-top: 1px solid var(--rule); padding-block: 14px 18px; font: 400 12px/1.5 var(--font-mono); color: var(--ink-3); }
.foot { margin-top: 36px; padding-top: 12px; border-top: 1px solid var(--rule); font: 400 12px/1.5 var(--font-mono); color: var(--ink-3); }

/* Switches: light/dark on every page, EN/NL where a page has both languages */
.controls { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.ctl { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--font-ui); color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--rule); border-radius: 999px; padding: 7px 11px; cursor: pointer; }
.ctl:hover { color: var(--ink); border-color: var(--line-2); }
.ctl svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.ctl[aria-pressed="true"] svg { fill: currentColor; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); }
.seg button { font: 600 12px/1 var(--font-ui); letter-spacing: 0.04em; padding: 6px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
/* Two languages in one page: show the one that matches data-lang (English when none is set) */
:root:not([data-lang="nl"]) .l-nl, :root[data-lang="nl"] .l-en { display: none !important; }

/* ---------- 5. Page structure: a reading column, wider blocks for things you scan ---------- */
.lr { display: grid; gap: 24px; margin-top: 28px; }
.lr > * { width: 100%; max-width: var(--read); margin-inline: auto; min-width: 0; }
.lr > .wide, .lr > .pull, .lr > .steps, .lr > .table-card, .lr > .stats, .lr > .wide-block { max-width: var(--wide); }
.lr > .band { max-width: none; width: auto; }

/* A panel: the one container shape (In short, tables, updates, cards, tiles) */
.summary, .table-card, .update, .card, .dash-card, .subject, .stats, .callout { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); }

/* Article head */
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 14px; }
/* The kicker mark: a glowing moss dot */
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pop); box-shadow: 0 0 10px var(--pop); flex: none; }
.kicker.plain::before { display: none; }
.headline { font-family: var(--font-display); font-weight: var(--head-weight); font-size: clamp(36px, 6vw, 66px); line-height: 1.02;
  letter-spacing: -0.045em; margin: 0 0 16px; text-wrap: balance; max-width: 18ch; }
.standfirst { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; color: var(--ink-2); margin: 0 0 18px; max-width: 52ch; }
.byline { display: flex; flex-wrap: wrap; gap: 8px; font: 500 12px/1 var(--font-ui); color: var(--ink-2); }
.byline > * { border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 11px; }

/* In short: always on every article page, right after the head (and after any updates) */
.summary { position: relative; overflow: hidden; padding: 20px 22px; font-family: var(--font-ui); font-size: 15px; }
.summary::before { content: ""; position: absolute; width: 360px; height: 360px; right: -150px; top: -190px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.summary > * { position: relative; }
aside.summary h3, .lead-grid .lead aside.summary h3 { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 12px; }
aside.summary h3::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pop); box-shadow: 0 0 10px var(--pop); }
.summary ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.summary li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 6px; line-height: 1.5; }
.summary li::before { content: "→"; color: var(--accent); font-family: var(--font-mono); }

/* Running text */
.prose { font-size: 17px; line-height: 1.75; }
.prose > p { margin: 0 0 1em; }
.prose > p:last-child { margin-bottom: 0; }
.prose > h2, .steps > h2, .section-title { font-family: var(--font-display); font-weight: var(--head-weight); font-size: 26px; line-height: 1.2; letter-spacing: -0.025em; margin: 0 0 10px; text-wrap: balance; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 22px; }
.prose li::marker { color: var(--accent); }
.prose > .callout { margin: 0 0 1em; }
.prose > .callout:last-child { margin-bottom: 0; }
/* The opening letter of an article: moss, same size (a big drop cap does not suit a sans-serif page) */
.prose.dropcap > p:first-of-type::first-letter { color: var(--accent); font-weight: 600; }

/* In numbers: a panel of key figures */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); overflow: hidden; }
.stats div { padding: 20px 20px 18px; display: grid; gap: 6px; align-content: start; }
.stats div + div { border-left: 1px solid var(--rule); }
.stats b { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 40px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--ink); }
.stats span { font: 500 12px/1.4 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
/* Key figures come alive (assets/numbers.js): they count up on sight, and a short glowing moss line draws in under each */
.stats b { display: inline-block; justify-self: start; }
.stats b::after { content: ""; display: block; width: 0; height: 3px; margin-top: 10px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 10px var(--glow);
  transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s; }
.stats .is-in b::after { width: 28px; }
.stats div { transition: background-color 0.2s; }
.stats div:hover { background: var(--surface-2); }
@media (prefers-reduced-motion: reduce) { .stats b::after { transition: none; } }

/* Two columns: a chart or table with a side note */
.two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.note { border-top: 1px solid var(--line-2); padding-top: 12px; font-family: var(--font-ui); font-size: 15px; color: var(--ink-2); }
.note h3 { font: 600 16px/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--ink); margin: 0 0 6px; }
.note p { margin: 0; }

/* Pull quote with a low glowing moss underline */
blockquote.pull { margin: 4px auto; padding: 24px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.25; letter-spacing: -0.03em; color: var(--ink); }
blockquote.pull > span { background: linear-gradient(transparent var(--hl), color-mix(in srgb, var(--pop) 45%, transparent) var(--hl), color-mix(in srgb, var(--pop) 45%, transparent) 97%, transparent 97%);
  box-decoration-break: clone; -webkit-box-decoration-break: clone; }
blockquote.pull cite { display: block; margin-top: 12px; font: 500 12px var(--font-mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }

/* Numbered steps across the page */
.steps ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; align-content: start; gap: 6px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg);
  font: 400 14px/1.5 var(--font-ui); color: var(--ink-2); }
.steps li::before { content: counter(step, decimal-leading-zero); font: 600 14px/1 var(--font-mono); color: var(--accent); }
.steps li b { color: var(--ink); font-size: 15px; }

/* Tables */
.table-card { padding: 18px 20px 8px; overflow-x: auto; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font: 400 14px/1.45 var(--font-ui); font-variant-numeric: tabular-nums; }
.table-card table { min-width: 460px; }
caption { text-align: left; font: 500 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 10px; }
th { text-align: left; font: 500 11px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--rule); padding: 8px 12px 10px 0; }
td { border-bottom: 1px solid var(--rule); padding: 12px 12px 12px 0; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--font-mono); }

/* Charts (inline SVG, drawn to scale) */
figure.chart { margin: 0; }
figure.chart figcaption { font: 400 12px/1.45 var(--font-mono); color: var(--ink-3); margin-top: 8px; }
.chart-title { font: 600 16px/1.3 var(--font-display); letter-spacing: -0.01em; margin: 0 0 10px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .lab { fill: var(--ink-2); font: 400 12px var(--font-ui); }
.chart .val { fill: var(--ink); font: 600 12px var(--font-mono); font-variant-numeric: tabular-nums; }
.chart .bar, .chart .s1 { fill: var(--chart-1); }
.chart .s2 { fill: var(--chart-2); }
.chart .s3 { fill: var(--chart-3); }

/* Next step: a panel with a glowing moss edge */
.callout { position: relative; background: var(--soft); padding: 18px 20px 18px 24px; font-family: var(--font-ui); font-size: 15px; overflow: hidden; }
.callout::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--pop); box-shadow: 0 0 12px var(--pop); }
.callout strong { display: block; font: 500 12px/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.callout p { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--font-ui); border-radius: 999px; padding: 12px 18px; border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.btn.primary { background: linear-gradient(100deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent-2))); color: var(--accent-ink); box-shadow: 0 8px 26px -10px var(--glow); }
.btn.secondary { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }
.btn.secondary:hover { border-color: var(--accent); }

/* Facts list (label and value) */
.facts { display: grid; gap: 10px; margin: 0; font-family: var(--font-ui); font-size: 14px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 10px; font-variant-numeric: tabular-nums; }
.facts dt { color: var(--ink-2); font: 500 12px/1.5 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

/* Tinted full-width band, for "also in" and other closing blocks */
.band { padding-block: 32px 36px; background: var(--soft); box-shadow: 0 0 0 100vmax var(--soft); clip-path: inset(0 -100vmax); border-top: 1px solid var(--rule); }
.band > * { max-width: var(--wide); margin-inline: auto; }
.band-title { display: flex; align-items: center; gap: 8px; font: 500 12px/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin: 0 auto 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { min-width: 0; padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.card .k { font: 500 11px/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.card .k::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: 1px; border-radius: 50%; background: var(--pop); }
.card h3 { font-family: var(--font-display); font-weight: var(--head-weight); font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; margin: 2px 0; text-wrap: balance; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0; font: 400 14px/1.5 var(--font-ui); color: var(--ink-2); }

/* ---------- 6. Feeds: section pages, front page, updates ---------- */
.section-head { text-align: center; display: grid; justify-items: center; gap: 8px; }
.section-head .headline { margin: 0; max-width: none; }
.section-head p { margin: 0; max-width: 54ch; color: var(--ink-2); font-size: 18px; }
.meta { font: 500 12px/1.4 var(--font-ui); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }

/* Update label: "Update: DD/MM/YYYY", always above what changed */
.upd-tag { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.upd-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pop); box-shadow: 0 0 8px var(--pop); flex: none; }

/* Status chip */
.status { font: 500 12px/1 var(--font-ui); color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 10px; white-space: nowrap; }
.status.ongoing { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }

/* The feed: date on the left, story on the right */
.feed { list-style: none; margin: 0; padding: 0; display: grid; }
.feed > li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 24px; padding-block: 22px; border-top: 1px solid var(--rule); }
.feed > li:first-child { border-top: 0; padding-top: 4px; }
.feed .when { font: 500 12px/1.8 var(--font-mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.feed .story { display: grid; gap: 6px; min-width: 0; }
.feed h3 { font-family: var(--font-display); font-weight: var(--head-weight); font-size: 22px; line-height: 1.2; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
.feed h3 a { color: var(--ink); text-decoration: none; }
.feed h3 a:hover { color: var(--accent); }
.feed .dek { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.feed .upd-line { margin: 0; font: 400 14px/1.5 var(--font-ui); color: var(--ink); }
.feed > li.top h3 { font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -0.035em; }
.empty { text-align: center; padding: 28px 16px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--ink-2); font-family: var(--font-ui); font-size: 15px; }

/* Front page: one lead story and two smaller ones */
.lead-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px 32px; }
.lead-grid > article { display: grid; gap: 8px; align-content: start; min-width: 0; }
.lead-grid .lead { grid-row: span 2; padding-right: 32px; border-right: 1px solid var(--rule); }
.lead-grid .lead h3 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.05; letter-spacing: -0.04em; }
.lead-grid .side + .side { border-top: 1px solid var(--rule); padding-top: 22px; }
.lead-grid h3 { font-family: var(--font-display); font-weight: var(--head-weight); font-size: 22px; line-height: 1.2; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
.lead-grid h3 a { color: var(--ink); text-decoration: none; }
.lead-grid h3 a:hover { color: var(--accent); }
.lead-grid p { margin: 0; color: var(--ink-2); }
.lead-grid .kick { font: 500 11px/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); text-decoration: none; }

/* Front page: subject blocks */
.subjects { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.subject { display: grid; gap: 8px; align-content: start; min-width: 0; padding: 18px 20px; }
.subject h3 { margin: 0; font-family: var(--font-display); font-weight: var(--head-weight); font-size: 20px; letter-spacing: -0.02em; }
.subject h3 a { color: var(--ink); text-decoration: none; }
.subject h3 a:hover { color: var(--accent); }
.subject p { margin: 0; font: 400 14px/1.5 var(--font-ui); color: var(--ink-2); }
.subject .latest { font: 400 14px/1.45 var(--font-ui); color: var(--ink); }
.subject .latest a { color: var(--ink); }
.subject .more { font: 600 13px var(--font-ui); text-decoration: none; }
.subject .count { font: 500 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* Updates at the top of an article */
.updates { display: grid; gap: 12px; }
.update { padding: 16px 20px; display: grid; gap: 6px; font-family: var(--font-ui); font-size: 15px; }
.update h4 { margin: 0; font: 600 16px/1.35 var(--font-ui); letter-spacing: -0.01em; color: var(--ink); }
.update p { margin: 0; }
.update:first-child { border-color: color-mix(in srgb, var(--accent) 45%, var(--rule)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent), 0 10px 30px -18px var(--glow); }

/* Dashboard tiles */
.dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.dash-card { position: relative; overflow: hidden; display: grid; gap: 10px; align-content: start; padding: 22px 24px; min-width: 0; }
.dash-card::before { content: ""; position: absolute; width: 320px; height: 320px; right: -140px; top: -170px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.dash-card > * { position: relative; }
.dash-card h3 { margin: 0; font-family: var(--font-display); font-weight: var(--head-weight); font-size: 24px; line-height: 1.15; letter-spacing: -0.03em; }
.dash-card p { margin: 0; font: 400 15px/1.5 var(--font-ui); color: var(--ink-2); }

/* ---------- 7. Motion: the hill scene (assets/scene.css) and the key figures; off for reduced motion ---------- */

/* ---------- 8. Narrow screens ---------- */
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .nav { margin-inline: 0; }
  .two, .lead-grid { grid-template-columns: minmax(0, 1fr); }
  .lead-grid .lead { grid-row: auto; padding-right: 0; border-right: 0; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
  .lead-grid .side + .side { padding-top: 22px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div + div { border-left: 0; }
  .stats div:nth-child(even) { border-left: 1px solid var(--rule); }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .stats div { padding: 16px 14px; }
  .stats:has(> div:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats:has(> div:nth-child(3):last-child) > div:nth-child(3) { border-top: 0; border-left: 1px solid var(--rule); }
  .feed > li { grid-template-columns: minmax(0, 1fr); }
  .summary, .table-card, .card, .subject, .dash-card { border-radius: 18px; }
}

/* =====================================================================
   The Hill · header scene (built by scripts/scene.py, inlined by kit.py)
   Night is the default (since 18/11/2026, with the After Dark style). Light mode, only when chosen: magic hour
   (the sun setting behind the hill, rays, a blue-to-gold sky, pink and orange clouds).
   Night: a very clear night in deep blue, with a big full moon behind the city, the Milky Way, thousands of
   stars, teal and violet airglow on the horizon, and lit windows.
   ===================================================================== */
:root {
  --sky-top: #46679a; --sky-mid: #d98a8c; --sky-low: #f7a24c; --sky-bottom: #ffd06a; --sun: #fff4cc; --sun-glow: #ffd36b; --haze: #ffb347;
  --ray: #fff0b0; --cloud-top: #6f5486; --cloud-bottom: #ffa25e; --streak-1: #ff9a5a; --streak-2: #f58aa6;
  --far: #7b5a7c; --hill-top: #93b44c; --hill-bottom: #557f2c; --hill-shine: #f0d36e; --hill-rim: #ffd36b; --tuft: #4d7428;
  --glow-teal: #2fb3a0; --glow-violet: #b84ce6;
  --canopy: #5e8f35; --canopy-2: #72a03f; --canopy-hi: #d4c766; --pine: #426a2b; --trunk: #7a5434;
  --b1: #ab9e99; --b2: #c6b6a8; --b3: #8e8380; --win: #f7e3c0; --win-lit: #ffb347; --beacon: #d9534f;
  --hall: #bb8462; --office: #d6bea3; --chim: #8f6450; --chim-band: #f3e9df; --roof-glass: #ffc070; --door: #6b6f68; --smoke: #fde3d0;
  --moon-light: #f7f8fb; --moon-edge: #c9ced8; --moon-sea: #9aa0ab; --star: #f2f5ff; --mw-glow: #8ea6ff; --mw-tint: #7fe0c8; --mw-band: #eef2ff; --mw-core: #fff6e6; --mw-dust: #0a1240;
  --brand-on-hill: #fbfaf6; --ground-top: var(--bg); --ground-bottom: var(--bg);
  --h1: #b5654a; --h2: #d6ae5c; --h3: #e6dcc6; --h4: #7c9486; --trim: #fbfaf6; --hwin: #f6deb0; --door-h: #5b4636;
  --tank: #d8cabd; --tank-top: #ecdfcf; --pipe: #8d969c; --vent: #7f857f; --mortar: #9a7258; --hall-win: #f6dcae; --mullion: #8f6f57;
  --chim-red: #c0504a; --ladder: #5d4a3c; --sign: #3d5a2a; --sign-mark: #f4f7ef; --truck: #4f7f9a; --truck-cab: #e0e4e6; --wheel: #2d3133;
  --fence: #8a8f88; --pole: #59605b; --lamp: #f3e6b0; --leg: #6b6f68;
}
/* Night (default): everything below applies unless the viewer chose light */
:root:not([data-theme="light"]) {
  --sky-top: #050a28; --sky-mid: #0f2266; --sky-low: #1b3a94; --sky-bottom: #2a50ae; --far: #090d1f; --hill-top: #3e6a2c; --hill-bottom: #24411d; --hill-shine: #4d7c37;
  --tuft: #2c4f22; --canopy: #2f5326; --canopy-2: #3a612d; --canopy-hi: #4a7537; --pine: #26441e; --trunk: #4a3726;
  --b1: #2c333b; --b2: #353d46; --b3: #262c33; --win: #3a434c; --win-lit: #f2c96a; --hall: #4a3a2f; --office: #4d453c;
  --chim: #3f342b; --chim-band: #6b6f68; --roof-glass: #f2c96a; --door: #23272a; --smoke: #59605b; --brand-on-hill: #f1f4ec; --h1: #5e3528; --h2: #6e5a30; --h3: #5a5548; --h4: #3a4a41; --trim: #b9bdb4; --hwin: #39424a; --door-h: #2a211a;
  --tank: #4a5054; --tank-top: #5a6064; --pipe: #545b60; --vent: #4b504b; --mortar: #3a2c23; --hall-win: #f2c96a; --mullion: #3f342b;
  --chim-red: #7a3430; --ladder: #2a221c; --sign: #a9c98a; --sign-mark: #16200f; --truck: #34566a; --truck-cab: #6b7174; --wheel: #121415;
  --fence: #4f554e; --pole: #8a908b; --lamp: #f2c96a; --leg: #4b504b; }
:root[data-theme="dark"] {
  --sky-top: #050a28; --sky-mid: #0f2266; --sky-low: #1b3a94; --sky-bottom: #2a50ae; --far: #090d1f; --hill-top: #3e6a2c; --hill-bottom: #24411d; --hill-shine: #4d7c37;
  --tuft: #2c4f22; --canopy: #2f5326; --canopy-2: #3a612d; --canopy-hi: #4a7537; --pine: #26441e; --trunk: #4a3726;
  --b1: #2c333b; --b2: #353d46; --b3: #262c33; --win: #3a434c; --win-lit: #f2c96a; --hall: #4a3a2f; --office: #4d453c;
  --chim: #3f342b; --chim-band: #6b6f68; --roof-glass: #f2c96a; --door: #23272a; --smoke: #59605b; --brand-on-hill: #f1f4ec; --h1: #5e3528; --h2: #6e5a30; --h3: #5a5548; --h4: #3a4a41; --trim: #b9bdb4; --hwin: #39424a; --door-h: #2a211a;
  --tank: #4a5054; --tank-top: #5a6064; --pipe: #545b60; --vent: #4b504b; --mortar: #3a2c23; --hall-win: #f2c96a; --mullion: #3f342b;
  --chim-red: #7a3430; --ladder: #2a221c; --sign: #a9c98a; --sign-mark: #16200f; --truck: #34566a; --truck-cab: #6b7174; --wheel: #121415;
  --fence: #4f554e; --pole: #8a908b; --lamp: #f2c96a; --leg: #4b504b; }

.scene { position: relative; height: clamp(240px, 27vw, 360px); overflow: hidden; }
.scene-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* The picture fades into the page at the bottom */
.scene::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
/* The brand on the hill is a link to the front page: an invisible box over the middle of the hill */
.scene-link { position: absolute; left: 50%; bottom: 8%; width: min(44%, 420px); height: 46%; transform: translateX(-50%); border-radius: 50% 50% 0 0; }
.scene-link:focus-visible { outline: 2px solid var(--brand-on-hill); outline-offset: -6px; }
.sky-top { stop-color: var(--sky-top); } .sky-mid { stop-color: var(--sky-mid); } .sky-low { stop-color: var(--sky-low); } .sky-bottom { stop-color: var(--sky-bottom); }
.ray-in { stop-color: var(--ray); stop-opacity: .28; } .ray-out { stop-color: var(--ray); stop-opacity: 0; }
.cloud-top { stop-color: var(--cloud-top); } .cloud-bottom { stop-color: var(--cloud-bottom); }
.streak { opacity: .55; } .streak.s1 { fill: var(--streak-1); } .streak.s2 { fill: var(--streak-2); }
.glow-teal-s { stop-color: var(--glow-teal); stop-opacity: .5; } .glow-violet-s { stop-color: var(--glow-violet); stop-opacity: .72; }
.glow-teal-s.end, .glow-violet-s.end { stop-opacity: 0; }
.hill-rim { fill: none; stroke: var(--hill-rim); stroke-width: 4; stroke-linecap: round; opacity: .75; }
.haze-in { stop-color: var(--haze); stop-opacity: .9; } .haze-out { stop-color: var(--haze); stop-opacity: 0; }
.hill-top { stop-color: var(--hill-top); } .hill-bottom { stop-color: var(--hill-bottom); }
.ground-top { stop-color: var(--ground-top); stop-opacity: 0; } .ground-bottom { stop-color: var(--ground-bottom); }
.sun-disc { fill: var(--sun); } .sun-glow { fill: var(--sun-glow); opacity: .75; }
/* The night sky: only drawn in dark mode */
.night-sky { display: none; }
.st { fill: var(--star); } .st-halo { fill: var(--star); opacity: .16; }
/* Milky Way: soft radial gradients (centre, middle, edge) per layer */
.mw-glow-s { stop-color: var(--mw-glow); stop-opacity: .4; } .mw-tint-s { stop-color: var(--mw-tint); stop-opacity: .22; }
.mw-band-s { stop-color: var(--mw-band); stop-opacity: .45; } .mw-core-s { stop-color: var(--mw-core); stop-opacity: .5; }
.mw-dust-s { stop-color: var(--mw-dust); stop-opacity: .6; }
.mw-glow-s.mid, .mw-tint-s.mid, .mw-band-s.mid, .mw-core-s.mid, .mw-dust-s.mid { stop-opacity: .14; }
.mw-glow-s.end, .mw-tint-s.end, .mw-band-s.end, .mw-core-s.end, .mw-dust-s.end { stop-opacity: 0; }
/* The full moon: glow, a disc that darkens slightly to the edge, grey seas and bright craters */
.moon-glow-s { stop-color: var(--moon-light); stop-opacity: .55; } .moon-glow-s.mid { stop-opacity: .16; } .moon-glow-s.end { stop-opacity: 0; }
.moon-disc-in { stop-color: var(--moon-light); } .moon-disc-out { stop-color: var(--moon-edge); }
.moon-sea { fill: var(--moon-sea); opacity: .42; } .moon-crater { fill: var(--moon-light); opacity: .9; }
.moon-ray { fill: var(--moon-light); opacity: .18; }
.meteor { fill: none; stroke-width: 1.6; stroke-linecap: round; opacity: 0; }
.cloud { opacity: .95; }
.far { fill: var(--far); }
.bld.b1 { fill: var(--b1); } .bld.b2 { fill: var(--b2); } .bld.b3 { fill: var(--b3); }
.win { fill: var(--win); opacity: .85; } .win.lit { fill: var(--win-lit); }
.beacon { fill: var(--beacon); }
.hall { fill: var(--hall); } .office { fill: var(--office); } .chim { fill: var(--chim); } .chim-band { fill: var(--chim-band); }
.roof-glass { fill: var(--roof-glass); opacity: .8; } .door { fill: var(--door); }
.smoke { fill: var(--smoke); opacity: 0; }
.hill-shine { fill: var(--hill-shine); opacity: .55; display: none; }
.tuft { fill: none; stroke: var(--tuft); stroke-width: 2.2; stroke-linecap: round; }
.trunk { fill: var(--trunk); }
.canopy { fill: var(--canopy); } .t2 .canopy { fill: var(--canopy-2); } .canopy-hi { fill: var(--canopy-hi); opacity: .8; }
.pine-c { fill: var(--pine); }
.ground { stroke: none; }
.scene-brand { font-family: var(--font-display); font-weight: 700; font-size: 60px; letter-spacing: -0.045em; fill: var(--brand-on-hill);
  paint-order: stroke; stroke: color-mix(in srgb, var(--hill-bottom) 70%, transparent); stroke-width: 3px; }
.scene-tag { font-family: var(--font-mono, var(--font-ui)); font-weight: 500; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; fill: var(--brand-on-hill); opacity: .9; }
.house.h1 { fill: var(--h1); } .house.h2 { fill: var(--h2); } .house.h3 { fill: var(--h3); } .house.h4 { fill: var(--h4); }
.trim { fill: var(--trim); } .hwin { fill: var(--hwin); } .hwin.lit { fill: var(--win-lit); } .door-h { fill: var(--door-h); }
.tank { fill: var(--tank); } .tank-top { fill: var(--tank-top); } .tank-band { fill: var(--pipe); } .pipe { stroke: var(--pipe); stroke-width: 4; stroke-linejoin: round; }
.vent { fill: var(--vent); } .mortar { fill: var(--mortar); opacity: .35; } .hall-win { fill: var(--hall-win); } .hall-win.lit { fill: var(--win-lit); }
.mullion { fill: var(--mullion); } .chim-red { fill: var(--chim-red); } .ladder { fill: var(--ladder); } .door-stripe { fill: var(--chim-band); opacity: .5; }
.sign { fill: var(--sign); } .sign-mark { fill: var(--sign-mark); } .truck-box { fill: var(--truck); } .truck-cab { fill: var(--truck-cab); } .truck-win { fill: var(--hall-win); }
.wheel { fill: var(--wheel); } .fence { fill: var(--fence); } .pole { fill: var(--pole); stroke: var(--pole); stroke-width: 1.6; } .lamp { fill: var(--lamp); }
.leg { fill: var(--leg); } .tank-w { fill: var(--b2); } .tank-roof { fill: var(--b3); } .canopy-2c { fill: var(--canopy-2); }
:root:not([data-theme="light"]) .lamp { filter: drop-shadow(0 0 4px var(--lamp)); }
:root[data-theme="dark"] .lamp { filter: drop-shadow(0 0 4px var(--lamp)); }
.scene-tag .l-nl { display: none; } :root[data-lang="nl"] .scene-tag .l-en { display: none; } :root[data-lang="nl"] .scene-tag .l-nl { display: inline; }
/* Night: no moon, the Milky Way and stars, lit windows; a clear sky, so no clouds */
:root:not([data-theme="light"]) .dusk, :root:not([data-theme="light"]) .cloud, :root:not([data-theme="light"]) .hill-rim { display: none; }
:root:not([data-theme="light"]) .hill-shine { display: inline; }
:root:not([data-theme="light"]) .night-sky { display: inline; }
:root[data-theme="dark"] .dusk, :root[data-theme="dark"] .cloud, :root[data-theme="dark"] .hill-rim { display: none; }
:root[data-theme="dark"] .hill-shine { display: inline; }
:root[data-theme="dark"] .night-sky { display: inline; }

/* Gentle motion: drifting clouds and a breathing sun haze by day; twinkling stars and a rare shooting star by night;
   swaying trees and grass, rising smoke. Off for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .cloud { animation: drift 90s linear infinite; } .cloud.c1 { animation-duration: 120s; animation-delay: -40s; }
  .cloud.c2 { animation-duration: 100s; animation-delay: -70s; } .cloud.c3 { animation-duration: 140s; animation-delay: -20s; }
  @keyframes drift { from { transform: translateX(-460px); } to { transform: translateX(1660px); } }
  .sway { animation: sway 5.5s ease-in-out infinite; } .tree:nth-of-type(2n) { animation-duration: 6.5s; animation-delay: -2s; }
  @keyframes sway { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg); } }
  .sway-s { animation: sway-s 3.2s ease-in-out infinite; }
  @keyframes sway-s { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
  .smoke { animation: smoke 6.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes smoke { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 15% { opacity: .75; }
    100% { opacity: 0; transform: translate(26px, -70px) scale(2.2); } }
  .tw { animation: twinkle 4.5s ease-in-out infinite; }
  @keyframes twinkle { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
  .sun-haze { animation: haze 9s ease-in-out infinite; }
  @keyframes haze { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
  .meteor { animation: meteor 19s linear infinite; animation-delay: 5s; }
  @keyframes meteor { 0% { opacity: 0; transform: translate(1330px, 34px); } 1% { opacity: .9; }
    5% { opacity: 0; transform: translate(1150px, 84px); } 100% { opacity: 0; transform: translate(1150px, 84px); } }
  .beacon { animation: beacon 2.4s steps(1, end) infinite; } @keyframes beacon { 50% { opacity: .15; } }
}
@media (prefers-reduced-motion: reduce) { .smoke { opacity: .5; } }
/* Medium screens (701-900 px): the picture is cropped at the sides, so the city and the factory shrink a little towards the hill.
   Scaling about a point (x, y) is written as translate(x(1-s), y(1-s)) scale(s): the city about its right foot, the factory about its left foot. */
@media (min-width: 701px) and (max-width: 900px) {
  .side-left { transform: translate(76px, 60px) scale(.8); }
  .side-right { transform: translate(185px, 72px) scale(.76); }
}
/* Narrow screens: bring the city and the factory in towards the hill so they stay in view */
@media (max-width: 700px) {
  .centre { transform-box: view-box; transform-origin: 600px 340px; transform: scale(.78); }
  .dusk { transform-box: view-box; transform-origin: 800px 340px; transform: scale(.78); }   /* the sun stays behind the smaller hill */
  .moon { transform-box: view-box; transform-origin: 400px 118px; transform: translate(185px, 40px) scale(.62); }   /* the moon follows the city in */
  .side-left { transform: translate(284px, 150px) scale(.5); }
  .side-right { transform: translate(300px, 150px) scale(.5); }
}
