/* onderling.org — the schets-2 look ("woordkarig, almost retro"):
   near-black ink, hard ink borders, weight-800 headings, mono labels.
   Values copied from the approved ronde-4 .mL sketch; dark theme is the
   same structure on a dark ground. The earlier soft look is preserved in
   site-soft.css (build with --style=soft). */

:root {
  --ground: #f7f7f4; --panel: #ffffff; --ink: #17181a; --muted: #5b5d55;
  --line: #d8d8cf;
  /* Chromatic grammar — identical to the Basis app (web/v2/theme.css): the primary fill is INK, there is
     exactly ONE chromatic accent (rust), and green/amber are STATUS colours only. The site used to invert
     this (green as the accent, rust demoted to a label), which read as several competing accents. */
  --accent: #17181a; --accent-contrast: #f7f7f4; --accent-ink: #a3402f;
  --green: #2e7d4f; --warn: #7a5a1f;
  --msg-user: #e8e6da; --msg-bot: #f1f4ee; --msg-bot-line: #dfe6da;
  --label: #a3402f;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root { --ground: #161713; --panel: #1e1f1a; --ink: #eceade; --muted: #9a9d90;
    --line: #34362e;
    --accent: #eceade; --accent-contrast: #161713; --accent-ink: #d98a70;
    --green: #82c298; --warn: #d0b070; --label: #d98a70;
    --msg-user: #2b2d25; --msg-bot: #22291f; --msg-bot-line: #33402f; }
}
:root[data-theme="dark"] { --ground: #161713; --panel: #1e1f1a; --ink: #eceade; --muted: #9a9d90;
  --line: #34362e;
  --accent: #eceade; --accent-contrast: #161713; --accent-ink: #d98a70;
  --green: #82c298; --warn: #d0b070; --label: #d98a70;
  --msg-user: #2b2d25; --msg-bot: #22291f; --msg-bot-line: #33402f; }
:root[data-theme="light"] { --ground: #f7f7f4; --panel: #ffffff; --ink: #17181a; --muted: #5b5d55;
  --line: #d8d8cf;
  --accent: #17181a; --accent-contrast: #f7f7f4; --accent-ink: #a3402f;
  --green: #2e7d4f; --warn: #7a5a1f; --label: #a3402f;
  --msg-user: #e8e6da; --msg-bot: #f1f4ee; --msg-bot-line: #dfe6da; }

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: 15.5px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
footer.site, header.site { flex: none; width: 100%; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

code { font-family: var(--mono); font-size: 0.86em; background: var(--panel);
  border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--ground);
  padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* ── shell ─────────────────────────────────────────── */
.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

header.site { border-bottom: 3px solid var(--ink); background: var(--ground); }
.masthead { display: flex; align-items: baseline; gap: 14px; padding: 18px 0 12px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; }
.badge {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
nav.main { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; align-items: baseline; }
nav.main a {
  color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 600;
  padding: 4px 10px;
}
nav.main a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
nav.main a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.meta-controls { display: flex; align-items: baseline; gap: 6px; margin-left: 10px; padding-left: 12px; border-left: 1px solid var(--ink); }
.lang { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-decoration: none; padding: 4px 6px; }
.lang:hover { color: var(--ink); text-decoration: underline; }
#theme-toggle {
  font-family: var(--mono); font-size: 11.5px; color: var(--ink);
  background: none; border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 2px 9px; cursor: pointer;
}
#theme-toggle:hover { background: var(--ink); color: var(--ground); }
#theme-toggle[hidden] { display: none; }

main { padding: 36px 0 96px; }
main.wrap { padding-top: 36px; padding-bottom: 96px; }

footer.site {
  border-top: 1px solid var(--ink); padding: 14px 0 40px;
  font-size: 11.5px; color: var(--muted);
}
footer.site .cols { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--ink); }

/* ── typography ────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 8px;
}
h1 { font-size: clamp(24px, 4.2vw, 34px); line-height: 1.12; font-weight: 800;
  text-wrap: balance; max-width: 26ch; }
h2 { font-size: 19px; font-weight: 800; text-wrap: balance; }
h3 { font-size: 15.5px; font-weight: 700; }
.lede { max-width: 56ch; color: var(--muted); font-size: 15px; }
p, li { max-width: 68ch; }

.hero { padding: 22px 0 6px; display: grid; gap: 14px; }
section.block { margin-top: 44px; display: grid; gap: 14px; }
section.block > .rule { border: 0; border-top: 1px solid var(--line); margin: 0 0 6px; }

/* ── cards / grids ─────────────────────────────────── */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--panel); border: 2px solid var(--ink); border-radius: 8px;
  padding: 15px 17px; display: grid; gap: 7px; align-content: start;
}
.card h3 { margin: 0; }
.card p { font-size: 13.5px; }
.card .more { font-size: 13px; font-weight: 600; }

.kaartje { display: grid; gap: 5px; }
.kaartje h2, .kaartje h3 { margin: 0; }
.kaartje p { font-size: 14.5px; }

.cta {
  display: inline-block; background: var(--accent); color: var(--accent-contrast);
  text-decoration: none; font-weight: 700; font-size: 13.5px;
  padding: 8px 18px; border-radius: 5px; justify-self: start;
}
.cta:hover { background: var(--accent-ink); color: var(--accent-contrast); }
.cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cta-row .quiet {
  font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: none;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 14px;
}
.cta-row .quiet:hover { background: var(--ink); color: var(--ground); }

/* the landing — schets-2 bulletin: top-left hero, square CTA, three ruled
   columns, serif stats strip pinned low. One screen, nothing to scroll. */
main.landing { display: flex; flex-direction: column; }
.landing-hero { display: grid; gap: 26px; padding-top: 7vh; justify-items: start; }
.landing-hero h1 { font-size: clamp(56px, 9vw, 96px); line-height: 1; letter-spacing: -0.02em; }
.landing-hero .eyebrow { font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 48ch; margin: 0; }
.landing-hero .lede { font-size: clamp(17px, 2vw, 21px); line-height: 1.5; max-width: 42ch; color: var(--muted); }
.landing-hero .cta { border-radius: 0; font-size: clamp(15px, 1.8vw, 18px); padding: 16px 30px; margin-top: 6px; }

.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px;
  margin-top: clamp(40px, 9vh, 90px); }
.cols3 .col { border-top: 3px solid var(--ink); padding-top: 14px; display: grid; gap: 6px; align-content: start; }
.col-label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--label); }
.cols3 .col p { font-size: 15px; margin: 0; }

.stats { margin-top: auto; padding: clamp(28px, 6vh, 64px) 0 8px; font-family: var(--serif);
  font-size: 15.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 12px 44px; }
.stats .gap { display: none; }

/* ── hover-begrippen (CSS-only, hover + keyboard focus) ── */
.term {
  position: relative; color: inherit; text-decoration: none;
  border-bottom: 1.5px dotted var(--ink); cursor: help;
}
.term .tip {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  width: min(320px, 78vw); background: var(--panel); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 6px; padding: 11px 13px;
  font-size: 12.5px; line-height: 1.55; font-weight: 400;
  visibility: hidden; opacity: 0; transition: opacity 120ms ease; z-index: 5;
}
@media (prefers-reduced-motion: reduce) { .term .tip { transition: none; } }
.term:hover .tip, .term:focus .tip, .term:focus-visible .tip { visibility: visible; opacity: 1; }

/* ── glossary (privacy page) ───────────────────────── */
dl.glossary { display: grid; gap: 12px; }
dl.glossary dt { font-weight: 700; }
dl.glossary dd { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 68ch; }
dl.glossary div { background: var(--panel); border: 1.5px solid var(--ink); border-radius: 6px; padding: 13px 16px; }

/* ── chat island ───────────────────────────────────── */
.chatbox {
  background: var(--panel); border: 2px solid var(--ink); border-radius: 8px;
  overflow: hidden; max-width: 620px;
}
.bot-head { display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 700; }
.bot-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }  /* presence = STATUS */
.chips-label { flex-basis: 100%; font-size: 11px; color: var(--muted); font-family: var(--mono); }
.chatbox .log { padding: 14px; display: grid; gap: 9px; min-height: 180px; max-height: 55vh; overflow-y: auto; }
.msg { max-width: 82%; padding: 8px 12px; border-radius: 8px; font-size: 13.5px; line-height: 1.5; }
.msg.bot { background: var(--msg-bot); border: 1px solid var(--msg-bot-line); justify-self: start; }
.msg.user { background: var(--msg-user); justify-self: end; }
.msg .src { display: block; margin-top: 5px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.msg .bridge { font-style: italic; color: var(--muted); }
.chips { display: flex; gap: 7px; flex-wrap: wrap; padding: 0 14px 13px; }
.chip {
  font-size: 12.5px; font-weight: 600; background: none; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 13px; cursor: pointer;
}
.chip:hover { background: var(--ink); color: var(--ground); }
.chatbox form { display: flex; gap: 8px; border-top: 1px solid var(--line); padding: 10px 12px; }
.chatbox input {
  flex: 1; font: inherit; font-size: 13.5px; color: var(--ink);
  background: var(--ground); border: 1px solid var(--muted); border-radius: 5px; padding: 7px 11px;
}
.chatbox button[type="submit"] {
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  background: var(--accent); color: var(--accent-contrast); border: 0; border-radius: 5px; padding: 7px 15px;
}
.chatbox button[type="submit"]:hover { background: var(--accent-ink); }
.chat-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; max-width: 620px; }
.chat-reset { font-size: 11.5px; font-family: var(--mono); color: var(--muted); background: none;
  border: 0; cursor: pointer; padding: 0; text-decoration: underline; }
noscript .card { border-color: var(--warn); }

/* ── 101 (the deck, laid on the table) ─────────────── */
.deck { display: grid; gap: 11px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.deck .chunk {
  background: var(--panel); border: 1.5px solid var(--ink); border-radius: 6px; padding: 12px 15px;
  display: grid; gap: 6px; align-content: start;
}
.deck .cid { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.06em; }
.deck .chunk p { font-size: 13px; }
.deck .tags { font-family: var(--mono); font-size: 10.5px; color: var(--muted); overflow-wrap: anywhere; }

/* ── tables ────────────────────────────────────────── */
.tablewrap { overflow-x: auto; }
table.claims { border-collapse: collapse; width: 100%; font-size: 13.5px; }
table.claims th, table.claims td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.claims th { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-family: var(--mono); }
table.claims td:first-child { white-space: nowrap; font-weight: 700; }

@media (max-width: 560px) {
  .masthead { gap: 10px; }
  nav.main { margin-left: 0; width: 100%; }
  .meta-controls { margin-left: auto; }
}

/* ── the copy's blocks (content/locales): one long home page + three sub-pages ── */
section.block h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
section.block > p { max-width: 64ch; font-size: 15.5px; }
section.block .sub { display: grid; gap: 10px; margin-top: 10px; }
section.block .sub h3 { font-size: 17px; font-weight: 800; }
section.block .sub > p { max-width: 64ch; }
.points { max-width: 64ch; padding-left: 1.2em; display: grid; gap: 6px; }
.steps { max-width: 64ch; padding-left: 1.4em; display: grid; gap: 8px; counter-reset: step; }
.steps li::marker { font-family: var(--mono); color: var(--label); }
.hero.landing-hero { padding-top: 5vh; padding-bottom: 12px; }
.hero.landing-hero > p:not(.lede) { max-width: 60ch; font-size: 16px; }
.cta-row { margin-top: 6px; }
.card h4 { margin: 0; font-size: 15px; }

/* ── roadmap (built from content/roadmap.yaml) ── */
.roadmap-hero .legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.roadmap-hero .lg::before, .card.ms .badge::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px;
  vertical-align: -1px; border: 2px solid var(--ink); background: transparent;
}
.roadmap-hero .lg.klaar::before, .card.ms.klaar .badge::before { border-color: var(--accent, var(--ink)); background: var(--accent, var(--ink)); }
.roadmap-hero .lg.bezig::before, .card.ms.bezig .badge::before { border-color: var(--ink); background: var(--ink); }
.roadmap-hero .lg.geparkeerd::before { border-style: dotted; border-color: var(--muted); }
.roadmap-track .lane { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.roadmap-track .card.ms { flex: 0 0 290px; scroll-snap-align: start; }
.card.ms .na, .card.parked .na { font-size: 12.5px; color: var(--muted); margin: 0; }
.card.ms .na b { color: var(--ink); font-weight: 600; }
.card.ms details { font-size: 12.5px; color: var(--muted); margin-top: auto; }
.card.ms summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.card.ms details div { display: grid; gap: 4px; margin-top: 6px; }
.card.parked { border-style: dotted; }

figure.placeholder { margin: 8px 0 0; width: 100%; max-width: 560px; aspect-ratio: 16 / 9; border: 1px dashed var(--line); display: grid; place-items: center; padding: 16px; box-sizing: border-box; font-family: var(--mono); font-size: 12.5px; color: var(--muted); text-align: center; }

form.contact { display: grid; gap: 4px; margin-top: 18px; max-width: 520px; }
form.contact p { margin: 0 0 10px; }
form.contact label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
form.contact textarea, form.contact input[type="email"] { width: 100%; box-sizing: border-box; font: inherit; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 3px; background: var(--panel); color: var(--ink); }
form.contact textarea:focus, form.contact input:focus { outline: 2px solid var(--accent-ink); outline-offset: 1px; }
form.contact .veld-website { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
