/* Luw stijlboek: tokens (hoofdstuk 3) en componenten (hoofdstuk 5). Bron: luw-stijlboek.md. Niet met de hand aanpassen. */

@font-face {
  font-family: "Newsreader Variable";
  src: url("/fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader Variable";
  src: url("/fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next Variable";
  src: url("/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next Variable";
  src: url("/fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --grond: #fbfaf6;
  --grond-verhoogd: #ffffff;
  --dauw: #f5f1e6;
  --lijn: #e2e0d8;
  --lijn-sterk: #777b86;
  --inkt: #1e2433;
  --inkt-zacht: #4f5668;
  --zon: #f3b61f;
  --zon-zacht: #fbecc2;
  --op-zon: #1e2433;
  --lucht: #2b5797;
  --lucht-zacht: #e6eef7;
  --op-lucht: #ffffff;
  --wolk: #d9e4f1;
  --diep: #1d3a6b;
  --focus: #1d3a6b;
  --let-op: #9b2c1c;
  --let-op-zacht: #f9e3dd;
  --link: var(--lucht);
  --ruimte-1: 4px;
  --ruimte-2: 8px;
  --ruimte-3: 12px;
  --ruimte-4: 16px;
  --ruimte-5: 24px;
  --ruimte-6: 32px;
  --ruimte-7: 48px;
  --ruimte-8: 64px;
  --ruimte-9: 96px;
  --ruimte-10: 128px;
  --rond-s: 6px;
  --rond-m: 12px;
  --rond-l: 24px;
  --rond-vol: 999px;
  --tekstbreedte: 66ch;
  --paginabreedte: 1120px;
  --raakvlak: 48px;
  --lijndikte: 1px;
  --focusdikte: 2px;
  --font-serif: "Newsreader Variable", Newsreader, Georgia, "Times New Roman", serif;
  --font-sans: "Atkinson Hyperlegible Next Variable", "Atkinson Hyperlegible Next", system-ui, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="licht"]) {
    --grond: #141821;
    --grond-verhoogd: #1c212c;
    --dauw: #222836;
    --lijn: #333a4a;
    --lijn-sterk: #8890a3;
    --inkt: #f1f0ea;
    --inkt-zacht: #b9bccb;
    --zon: #f5c242;
    --zon-zacht: #3a3221;
    --op-zon: #141821;
    --lucht: #9cbcf0;
    --lucht-zacht: #1f2b42;
    --op-lucht: #141821;
    --wolk: #3a4558;
    --diep: #c9d9f5;
    --focus: #f5c242;
    --let-op: #f0a08f;
    --let-op-zacht: #3a201b;
    color-scheme: dark;
  }
}

:root[data-theme="donker"] {
  --grond: #141821;
  --grond-verhoogd: #1c212c;
  --dauw: #222836;
  --lijn: #333a4a;
  --lijn-sterk: #8890a3;
  --inkt: #f1f0ea;
  --inkt-zacht: #b9bccb;
  --zon: #f5c242;
  --zon-zacht: #3a3221;
  --op-zon: #141821;
  --lucht: #9cbcf0;
  --lucht-zacht: #1f2b42;
  --op-lucht: #141821;
  --wolk: #3a4558;
  --diep: #c9d9f5;
  --focus: #f5c242;
  --let-op: #f0a08f;
  --let-op-zacht: #3a201b;
  color-scheme: dark;
}

/* Typografie */
.display { font-family: var(--font-serif); font-size: 60px; line-height: 64px; font-weight: 400; letter-spacing: -0.01em; font-variation-settings: 'opsz' 72; }
.kop-1 { font-family: var(--font-serif); font-size: 44px; line-height: 50px; font-weight: 400; letter-spacing: -0.005em; font-variation-settings: 'opsz' 60; }
.kop-2 { font-family: var(--font-serif); font-size: 32px; line-height: 40px; font-weight: 400; font-variation-settings: 'opsz' 36; }
.kop-3 { font-family: var(--font-serif); font-size: 24px; line-height: 32px; font-weight: 500; font-variation-settings: 'opsz' 24; }
.citaat { font-family: var(--font-serif); font-size: 26px; line-height: 38px; font-weight: 400; font-style: italic; font-variation-settings: 'opsz' 30; }
.intro { font-family: var(--font-sans); font-size: 21px; line-height: 34px; font-weight: 400; }
.tekst { font-family: var(--font-sans); font-size: 18px; line-height: 30px; font-weight: 400; }
.klein { font-family: var(--font-sans); font-size: 15px; line-height: 24px; font-weight: 400; }
.label { font-family: var(--font-sans); font-size: 16px; line-height: 22px; font-weight: 600; }
.knop { font-family: var(--font-sans); font-size: 17px; line-height: 24px; font-weight: 600; }
.meta { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0.02em; }

@media (max-width: 767px) {
  .display { font-size: 40px; line-height: 44px; }
  .kop-1 { font-size: 34px; line-height: 40px; }
  .kop-2 { font-size: 26px; line-height: 34px; }
  .kop-3 { font-size: 21px; line-height: 28px; }
  .citaat { font-size: 22px; line-height: 32px; }
}

/* Basis */
*, *::before, *::after { box-sizing: border-box; transition: none !important; animation: none !important; }
html { background: var(--grond); }
body { margin: 0; background: var(--grond); color: var(--inkt); font-family: var(--font-sans); font-size: 18px; line-height: 30px; hyphens: manual; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; text-wrap: balance; margin: 0; }
p { max-width: var(--tekstbreedte); }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: 0 0 0 var(--focusdikte) var(--grond), 0 0 0 calc(var(--focusdikte) * 2) var(--focus); }
img { max-width: 100%; height: auto; }

/* Luw — componenten. Gewone HTML + deze klassen. Geen overgangen of animaties. */
body { margin: 0; background: var(--grond); color: var(--inkt); font-family: var(--font-sans); font-size: 18px; line-height: 30px; }
*, *::before, *::after { transition: none !important; animation: none !important; }

/* Focus: rand in grond, ring in focus — werkt op elk vlak */
.luw-knop:focus-visible, .luw-veld__invoer:focus-visible, .luw-verdieping summary:focus-visible,
.luw-kop__nav a:focus-visible, .luw-thema input:focus-visible + span, .luw-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 var(--focusdikte) var(--grond), 0 0 0 calc(var(--focusdikte) * 2) var(--focus);
}

/* Link */
.luw-link { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; border-radius: 2px; }
.luw-link:hover { text-decoration-thickness: 2px; }

/* Knop */
.luw-knop {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--ruimte-2);
  min-height: var(--raakvlak); min-width: var(--raakvlak); padding: 0 var(--ruimte-5);
  font-family: var(--font-sans); font-size: 17px; line-height: 24px; font-weight: 600;
  border-radius: var(--rond-m); cursor: pointer; text-decoration: none;
  border: var(--lijndikte) solid var(--lijn-sterk); background: transparent; color: var(--inkt);
}
.luw-knop:hover { background: var(--dauw); }
.luw-knop--primair { background: var(--lucht); border-color: var(--lucht); color: var(--op-lucht); }
.luw-knop--primair:hover { background: var(--lucht); text-decoration: underline; text-underline-offset: 3px; }
.luw-knop--tekst { border-color: transparent; color: var(--link); text-decoration: underline; text-underline-offset: 3px; padding: 0 var(--ruimte-2); }
.luw-knop--tekst:hover { background: transparent; text-decoration-thickness: 2px; }
.luw-knop[disabled] { cursor: not-allowed; color: var(--inkt-zacht); border-color: var(--lijn); background: transparent; }

/* Verdieping — de tweede laag */
.luw-verdieping { background: var(--lucht-zacht); border-radius: var(--rond-m); max-width: var(--tekstbreedte); }
.luw-verdieping summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--ruimte-3);
  min-height: var(--raakvlak); padding: var(--ruimte-3) var(--ruimte-5);
  font-weight: 600; font-size: 17px; line-height: 24px; color: var(--inkt); border-radius: var(--rond-m);
}
.luw-verdieping summary::-webkit-details-marker { display: none; }
.luw-verdieping summary::before { content: "+"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: var(--rond-vol); border: var(--lijndikte) solid var(--inkt); font-weight: 400; line-height: 1; flex: none; }
.luw-verdieping[open] summary::before { content: "−"; }
.luw-verdieping__inhoud { padding: 0 var(--ruimte-5) var(--ruimte-5) calc(var(--ruimte-5) + 24px + var(--ruimte-3)); }
.luw-verdieping__inhoud p { margin: 0 0 var(--ruimte-4); }
.luw-verdieping__inhoud p:last-child { margin-bottom: 0; }
.luw-bron { font-size: 15px; line-height: 24px; color: var(--inkt-zacht); }

/* Citaat */
.luw-citaat { margin: 0; max-width: var(--tekstbreedte); padding-top: var(--ruimte-5); border-top: var(--lijndikte) solid var(--lijn); position: relative; }
.luw-citaat::before { content: ""; position: absolute; top: -9px; left: 0; width: 36px; height: 18px; background: var(--zon); border-radius: 36px 36px 0 0; }
.luw-citaat blockquote { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 26px; line-height: 38px; color: var(--diep); font-variation-settings: 'opsz' 30; }
.luw-citaat figcaption { margin-top: var(--ruimte-3); font-size: 15px; line-height: 24px; color: var(--inkt-zacht); }

/* Kop */
.luw-kop { display: flex; align-items: center; justify-content: space-between; gap: var(--ruimte-6); padding: var(--ruimte-4) var(--ruimte-6); border-bottom: var(--lijndikte) solid var(--lijn); background: var(--grond); }
.luw-kop__logo { display: block; line-height: 0; }
.luw-kop__logo img { height: 32px; width: auto; }
.luw-kop__logo .donker { display: none; }
[data-theme="donker"] .luw-kop__logo .licht { display: none; }
[data-theme="donker"] .luw-kop__logo .donker { display: block; }
.luw-kop__rechts { display: flex; align-items: center; gap: var(--ruimte-5); }
.luw-kop__nav ul { display: flex; gap: var(--ruimte-1); margin: 0; padding: 0; list-style: none; }
.luw-kop__nav a { display: inline-flex; align-items: center; min-height: var(--raakvlak); padding: 0 var(--ruimte-3); font-size: 16px; line-height: 22px; font-weight: 600; color: var(--inkt); text-decoration: none; border-radius: var(--rond-s); }
.luw-kop__nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.luw-kop__nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--zon); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* Thema-schakelaar */
.luw-thema { display: inline-flex; border: var(--lijndikte) solid var(--lijn-sterk); border-radius: var(--rond-vol); padding: 3px; gap: 2px; margin: 0; }
.luw-thema legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.luw-thema label { position: relative; cursor: pointer; }
.luw-thema input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.luw-thema span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--ruimte-4); border-radius: var(--rond-vol); font-size: 15px; line-height: 20px; font-weight: 600; color: var(--inkt); }
.luw-thema input:checked + span { background: var(--inkt); color: var(--grond); }

/* Veld */
.luw-veld { display: grid; gap: var(--ruimte-2); max-width: 32rem; }
.luw-veld__label { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--inkt); }
.luw-veld__label .optioneel { font-weight: 400; color: var(--inkt-zacht); }
.luw-veld__hint { font-size: 15px; line-height: 24px; color: var(--inkt-zacht); margin: 0; }
.luw-veld__invoer { font: inherit; font-size: 18px; line-height: 28px; min-height: var(--raakvlak); padding: var(--ruimte-2) var(--ruimte-3); border: var(--lijndikte) solid var(--lijn-sterk); border-radius: var(--rond-s); background: var(--grond-verhoogd); color: var(--inkt); box-sizing: border-box; width: 100%; }
textarea.luw-veld__invoer { min-height: 144px; resize: vertical; }
.luw-veld--fout .luw-veld__invoer { border-color: var(--let-op); border-width: 2px; }
.luw-veld__fout { margin: 0; font-size: 15px; line-height: 24px; color: var(--let-op); font-weight: 600; }

/* Melding */
.luw-melding { display: block; max-width: var(--tekstbreedte); padding: var(--ruimte-4) var(--ruimte-5); border-radius: var(--rond-m); background: var(--lucht-zacht); color: var(--inkt); }
.luw-melding p { margin: 0; }
.luw-melding strong { font-weight: 700; }
.luw-melding--let-op { background: var(--let-op-zacht); }
.luw-melding--let-op strong { color: var(--let-op); }
