/* Design tokens notarisspreekuur.nl — bron: docs/huisstijl/README.md (versie 1, 09-11-2026).
   Contrast gemeten op --kleur-achtergrond (#FBF6EF) en --kleur-vlak (#FFFFFF); zie README §3. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/AtkinsonHyperlegibleNext-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Kleur: merk */
  --kleur-primair: #A3401D;          /* terracotta: knoppen, links, merk. Wit erop 6,35:1; op achtergrond 5,9:1 */
  --kleur-primair-hover: #7E2F14;    /* wit erop 9,1:1 */
  --kleur-primair-tint: #F6E3DA;     /* vlak; tekst erop 12,3:1, primair erop 5,1:1 */
  --kleur-op-primair: #FFFFFF;
  --kleur-accent: #3D6B57;           /* salie: secundaire knop, info, iconen. Op achtergrond 5,7:1; wit erop 6,1:1 */
  --kleur-accent-tint: #E2EDE6;      /* vlak; tekst erop 12,7:1, accent erop 5,1:1 */

  /* Kleur: neutraal */
  --kleur-achtergrond: #FBF6EF;      /* warm papier */
  --kleur-vlak: #FFFFFF;             /* kaarten, formulieren */
  --kleur-tekst: #2B2420;            /* 14,2:1 */
  --kleur-tekst-gedempt: #5E534B;    /* 6,9:1 — hulptekst, nooit voor iets wat je moet lezen om verder te kunnen */
  --kleur-rand-invoer: #7D7068;      /* rand van invoervelden: ≥3:1 (WCAG 1.4.11) — 4,5:1 */
  --kleur-rand: #E3D9CE;             /* scheidingslijnen, decoratief */

  /* Kleur: status (altijd met icoon én tekst, nooit kleur alleen) */
  --kleur-succes: #2B6A43;
  --kleur-succes-tint: #E4F1E8;
  --kleur-waarschuwing: #8A5300;
  --kleur-waarschuwing-tint: #FCF0DC;
  --kleur-fout: #B11A3A;             /* lijkt op primair: daarom altijd icoon + "Let op:" of "Fout:" */
  --kleur-fout-tint: #FBE6EA;
  --kleur-info: var(--kleur-accent);
  --kleur-info-tint: var(--kleur-accent-tint);

  /* Focus: inkt met afstand, zodat de ring op de achtergrond staat en niet op de knop (op primair maar 2,4:1) */
  --focus-kleur: #2B2420;
  --focus-kleur-op-donker: #FFFFFF;
  --focus-breedte: 3px;
  --focus-afstand: 3px;

  /* Typografie */
  --font-basis: "Atkinson Hyperlegible Next", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tekst-basis: 1.125rem;           /* 18px, nooit kleiner dan 1rem */
  --tekst-klein: 1rem;
  --tekst-groot: 1.25rem;
  --kop-1: clamp(1.875rem, 1.5rem + 1.6vw, 2.5rem);
  --kop-2: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);
  --kop-3: 1.375rem;
  --gewicht-normaal: 420;
  --gewicht-half: 600;
  --gewicht-vet: 760;
  --regelafstand: 1.6;
  --regelafstand-kop: 1.2;
  --regelbreedte: 65ch;

  /* Ruimte (veelvouden van 4px) */
  --ruimte-1: 0.25rem;
  --ruimte-2: 0.5rem;
  --ruimte-3: 0.75rem;
  --ruimte-4: 1rem;
  --ruimte-5: 1.5rem;
  --ruimte-6: 2rem;
  --ruimte-7: 3rem;
  --ruimte-8: 4rem;

  /* Vorm */
  --raakvlak-min: 48px;              /* knoppen, links in lijsten, keuzerondjes inclusief label */
  --hoek: 8px;
  --hoek-kaart: 12px;
  --rand-breedte-invoer: 2px;
  --schaduw-kaart: 0 1px 2px rgb(43 36 32 / 0.08), 0 4px 12px rgb(43 36 32 / 0.06);
  --pagina-breedte: 72rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: var(--focus-breedte) solid var(--focus-kleur);
  outline-offset: var(--focus-afstand);
}

.op-donker :focus-visible {
  outline-color: var(--focus-kleur-op-donker);
}
