/* Layout: a menukaart. Vaste kaart-navigatie links (desktop), inhoud als rustige kolom rechts. Koppen in Marcellus SC (gevelbord), tekst in Karla. */

:root {
  --salie: #E6E8DC;
  --papier: #F8F8F3;
  --olijf: #4B532F;
  --wapen: #999D6D;
  --diep: #1D2114;
  --gloed: #E89A5B;

  --bg: var(--papier);
  --bg-2: var(--salie);
  --ink: #23271A;
  --ink-2: #545A42;
  --line: #CDD0BE;
  --accent: var(--olijf);
  --accent-soft: #DCDFCB;
  --warm: #B8692E;
  --ok: #4D6B3A;
  --warn: #9A6A1E;
  --bad: #9B3D2E;

  --f-display: "Marcellus SC", "Marcellus", "Trajan Pro", Georgia, serif;
  --f-body: "Karla", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.84rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: 2.8rem;
  --nav-w: 248px;
  color-scheme: light;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6; margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: 0.02em; }
h1 { font-size: clamp(2.1rem, 4.5vw, var(--step-4)); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: 0.04em; }
p { margin: 0; max-width: 66ch; }
ul, ol { margin: 0; padding-left: 1.2em; max-width: 66ch; }
li + li { margin-top: 0.35em; }
strong { font-weight: 700; }
.muted { color: var(--ink-2); }
.small { font-size: var(--step--1); }

/* shell */
.shell { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); min-height: 100vh; }
.kaart { position: sticky; top: env(safe-area-inset-top, 0px); align-self: start; height: 100vh; background: var(--bg-2); border-right: 1px solid var(--line); padding: 28px 22px; display: flex; flex-direction: column; gap: 26px; overflow-y: auto; }
.kaart .logo { display: block; width: 100%; max-width: 190px; aspect-ratio: 436 / 232; background: var(--accent); -webkit-mask: url(logo/logo.svg) center / contain no-repeat; mask: url(logo/logo.svg) center / contain no-repeat; }
.kaart nav { display: flex; flex-direction: column; gap: 2px; }
.kaart nav a { font-family: var(--f-display); font-size: 1.02rem; letter-spacing: 0.05em; text-decoration: none; color: var(--ink); padding: 7px 10px; border-radius: 4px; display: flex; justify-content: space-between; gap: 8px; }
.kaart nav a:hover { background: var(--accent-soft); }
.kaart nav a[aria-current="page"] { background: var(--accent); color: var(--bg); }
.kaart .voet { margin-top: auto; font-size: var(--step--1); color: var(--ink-2); }
.thema-weg { font: inherit; font-size: var(--step--1); background: none; border: 1px solid var(--line); color: var(--ink-2); padding: 5px 10px; border-radius: 4px; cursor: pointer; margin-top: 8px; }

main { min-width: 0; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0 80px; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: clamp(0px, 3vw, 40px); }

.kop { padding-block: 56px 36px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; border-bottom: 1px solid var(--line); }
.kop .lead { font-size: var(--step-1); color: var(--ink-2); margin-top: 16px; max-width: 58ch; }
.kop .foto { width: 210px; max-width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; display: block; }

section.blok { padding-block: 48px; border-bottom: 1px solid var(--line); display: grid; gap: 22px; }
section.blok:last-of-type { border-bottom: 0; }
.blok > header { display: grid; gap: 8px; }

.twee { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.drie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.twee > *, .drie > * { min-width: 0; display: grid; gap: 10px; align-content: start; }

.vlak { background: var(--bg-2); border-radius: 6px; padding: 22px 24px; display: grid; gap: 10px; align-content: start; }
.notitie { border-left: 3px solid var(--warm); padding: 4px 0 4px 16px; display: grid; gap: 6px; }

.tabel { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { font-weight: 700; background: var(--bg-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.pil { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; border: 1px solid currentColor; white-space: nowrap; letter-spacing: 0.02em; }
.pil.ok { color: var(--ok); } .pil.warn { color: var(--warn); } .pil.bad { color: var(--bad); } .pil.neutraal { color: var(--ink-2); }

.bron { font-size: var(--step--1); color: var(--ink-2); }
.bron a { color: var(--ink-2); }
.bronnen { font-size: var(--step--1); color: var(--ink-2); display: grid; gap: 4px; }
.bronnen a { color: var(--ink-2); word-break: break-word; }

/* datumrij */
.data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.data > div { padding: 20px 22px; display: grid; gap: 8px; align-content: start; border-right: 1px solid var(--line); min-width: 0; }
.data > div:last-child { border-right: 0; }
.data .dag { font-family: var(--f-display); font-size: var(--step-3); line-height: 1; }
.data .ic { width: 40px; height: 40px; background: var(--accent); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }

.kopie { position: relative; }
.kopie pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; overflow-x: auto; font-size: 0.85rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; margin: 0; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.kopie button { position: absolute; top: 8px; right: 8px; font: inherit; font-size: 0.8rem; font-weight: 700; background: var(--accent); color: var(--bg); border: 0; border-radius: 4px; padding: 5px 11px; cursor: pointer; }

.volgende { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 32px; font-family: var(--f-display); letter-spacing: 0.04em; }

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .kaart { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 18px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); gap: 14px; }
  .kaart .logo { max-width: 130px; }
  .kaart nav { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .kaart nav a { white-space: nowrap; font-size: 0.92rem; }
  .kaart .voet { display: none; }
  .kop { grid-template-columns: minmax(0, 1fr); padding-block: 36px 28px; }
  .kop .foto { width: 100%; aspect-ratio: 16 / 9; order: -1; }
  .twee, .drie { grid-template-columns: minmax(0, 1fr); }
  .data { grid-template-columns: minmax(0, 1fr); }
  .data > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .data > div:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
