/* tokens.css - design-tokens voor Wouters Inspectierapporten.
 * Modern 2026, navy/blauw (natte-infrastructuur), clean en zakelijk. Light + dark.
 * Dit is de SINGLE SOURCE OF TRUTH voor kleur/ruimte/typografie; componenten in
 * style.css gebruiken uitsluitend deze variabelen. Zie ai-docs/design-system.md.
 */

/* Inter (OFL) - zelf gehost in assets/fonts (geen externe font-host: intranet, CSP-vrij).
   Variabele as 400-700, alleen latin + latin-ext (samen ~130 KB), font-display: swap. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  /* Kleur - licht (white-first: wit domineert, navy draagt structuur, goud is spaarzaam) */
  --bg: #f5f7fa;
  --bg-tint: radial-gradient(1100px 560px at 12% -12%, rgba(18, 58, 94, 0.07) 0%, rgba(18, 58, 94, 0) 60%),
             radial-gradient(900px 520px at 104% 6%, rgba(151, 98, 25, 0.06) 0%, rgba(151, 98, 25, 0) 55%);
  --surface: #ffffff;
  --surface-alt: #f3f5f8;      /* subtiel neutraal-grijs vlak (velden, chips) */
  --surface-hover: #ebeff5;
  --surface-sunken: #eef1f5;   /* verzonken vlakken (segmented control, code) */
  --logo-plate: transparent;   /* logo leest direct op de lichte topbar */
  --border: #e4e8ee;
  --border-strong: #cfd6df;

  --text: #0f2338;
  --text-muted: #566a7e;
  --text-subtle: #617280;      /* ~4.95:1 op --surface, ~4.58:1 op --surface-alt (AC7.2) */

  --brand: #123a5e;      /* navy - wordmark, koppen, statusdots */
  --brand-strong: #0d2c48;
  --brand-soft: #e7eef6;
  --accent: #976219;     /* merkgoud (Wouters) - alleen primaire actie/actieve stap/focus/accent */
  --accent-hover: #845414;
  --accent-press: #6f4611;
  --accent-contrast: #ffffff;
  --accent-soft: #f5eddc;

  --success: #12805c;
  --success-soft: #e1f5ee;
  --warning: #9a6712;
  --warning-soft: #fbf1de;
  --danger: #cc3b31;
  --danger-soft: #fdece9;

  --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);
  --focus-ring-inset: inset 0 0 0 2px var(--surface), inset 0 0 0 4px var(--accent);

  /* Diepte: hairline + zachte, gelaagde schaduw (rust), drijvend (hover/menu), modal */
  --shadow-1: 0 1px 2px rgba(15, 35, 56, 0.05), 0 1px 3px rgba(15, 35, 56, 0.06);
  --shadow-2: 0 12px 32px -12px rgba(15, 35, 56, 0.22), 0 2px 6px rgba(15, 35, 56, 0.06);
  --shadow-3: 0 24px 60px -16px rgba(15, 35, 56, 0.35), 0 4px 12px rgba(15, 35, 56, 0.08);

  /* Vorm */
  --r-1: 10px;
  --r-2: 14px;
  --r-3: 20px;
  --r-pill: 999px;

  /* Ruimte (4px-schaal) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  /* Typografie */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, monospace;
  --fs-xs: 12.5px;
  --fs-sm: 14px;
  --fs-base: 15.5px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 34px;
  --fs-4xl: 44px;
  --lh: 1.55;
  --lh-tight: 1.2;
  --tracking-tight: -0.022em;  /* display-koppen */
  --tracking-wide: 0.07em;     /* micro-caps (labels, tabelkoppen) */

  /* Layout */
  --topbar-h: 62px;
  --sidebar-w: 256px;
  --content-max: 1360px;
  --content-narrow: 960px;
  --control-min: 44px;

  /* Motion (ingetogen: 120-180ms) */
  --dur-1: 120ms;
  --dur-2: 180ms;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

/* Donker thema - toegepast via data-theme (schakelaar) of systeemvoorkeur.
   Het inline head-script in view.php zet data-theme uit localStorage of
   prefers-color-scheme, zodat er geen thema-flits is bij het laden. */
:root[data-theme="dark"] {
  color-scheme: dark;
    --bg: #0a1220;
    --bg-tint: radial-gradient(1200px 600px at 15% -10%, #12233c 0%, rgba(18,35,60,0) 60%),
               radial-gradient(1000px 700px at 110% 10%, #101b2e 0%, rgba(16,27,46,0) 55%);
    --surface: #111d2f;
    --surface-alt: #16243b;
    --surface-hover: #1b2b45;
    --surface-sunken: #0d1828;
    --logo-plate: #ffffff;   /* donkere logo-tekst heeft een lichte plaat nodig in dark mode */
    --border: #243650;
    --border-strong: #324767;

    --text: #e9eff8;
    --text-muted: #a4b4cb;
    --text-subtle: #74869f;

    --brand: #cfe0f5;
    --brand-strong: #e9f1fb;
    --brand-soft: rgba(207, 224, 245, 0.10);
    --accent: #d7a94a;     /* merkgoud, lichter zodat het op donker navy leest */
    --accent-hover: #e4bb63;
    --accent-press: #c69838;
    --accent-contrast: #08121f;
    --accent-soft: rgba(215, 169, 74, 0.16);

    --success: #46c191;
    --success-soft: rgba(70, 193, 145, 0.14);
    --warning: #e0aa4e;
    --warning-soft: rgba(224, 170, 78, 0.14);
    --danger: #f2837b;
    --danger-soft: rgba(242, 131, 123, 0.14);

    --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);
    --focus-ring-inset: inset 0 0 0 2px #d4e2f5, inset 0 0 0 4px var(--accent); /* binnenlaag licht op donkere achtergrond (AC2.1) */
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.30), 0 1px 3px rgba(0, 0, 0, 0.40);
    --shadow-2: 0 14px 36px -12px rgba(0, 0, 0, 0.60), 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-3: 0 28px 64px -16px rgba(0, 0, 0, 0.70), 0 4px 12px rgba(0, 0, 0, 0.40);
}
