/*
 * Huisstijl Noord (Boltwise): de tokens als CSS-variabelen. Bron: het design system "Boltwise" (tokens.json).
 * Alles in rem (16 px = 1 rem), zodat tekst en ruimte meegroeien op 200 %. Afstanden enkel uit de reeks
 * 4, 8, 12, 16, 24, 32, 48, 64, 96 px. Schrijf nooit een hex-waarde of een px-waarde in een scherm of in app.css:
 * ontbreekt er iets, dan ontbreekt er een token. De PHPUnit-test "Huisstijl · enkel tokens" bewaakt dat.
 */

/* Lettertypes, zelf gehost (OFL). Geen Google Fonts, geen CDN. Alleen de gewichten 400 en 500. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.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: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-ext-400-normal.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; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-500-normal.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: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-ext-500-normal.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; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-ext-400-normal.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; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-ext-500-normal.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 */
  --surface-canvas: #ede7dc;
  --surface-raised: #f7f3ec;
  --surface-sunken: #e3dcce;
  --ink: #1e3a34;
  --text-secondary: #4a5560;
  --text-muted: #58626d;
  --brand-green: #1e3a34;
  --brand-sand: #ede7dc;
  --brand-copper: #c0693b;
  --accent: #c0693b;
  --accent-ink: #8f4a26;
  --accent-tint: #f0dfd3;
  --line: #d6cdbe;
  --line-strong: #b9ab94;
  --border-control: #8a7a62;
  --positive: #2f6f4f;
  --positive-tint: #dde9e1;
  --warning: #7d5a10;
  --warning-tint: #f2e8d2;
  --negative: #8c3a2e;
  --negative-tint: #f3dfda;
  --stage-1: #9db3ac;
  --stage-2: #75938b;
  --stage-3: #4e7368;
  --stage-4: #27544a;
  --focus: var(--accent);

  /* Lettertypes */
  --font-sans: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Typeschaal: grootte / regelafstand / gewicht. Regelafstand van titels en koppen is 1,4 (hard: minstens 1,4). */
  --display-size: 2.5rem;
  --display-line: 2.75rem;
  --display-weight: 500;
  --title-size: 1.75rem;
  --title-line: 2.45rem;
  --title-weight: 500;
  --heading-size: 1.25rem;
  --heading-line: 1.75rem;
  --heading-weight: 500;
  --subheading-size: 1rem;
  --subheading-line: 1.4rem;
  --subheading-weight: 500;
  --body-size: 1rem;
  --body-line: 1.5rem;
  --body-weight: 400;
  --body-strong-size: 1rem;
  --body-strong-line: 1.5rem;
  --body-strong-weight: 500;
  --small-size: 0.875rem;
  --small-line: 1.25rem;
  --small-weight: 400;
  --label-size: 0.875rem;
  --label-line: 1.25rem;
  --label-weight: 500;
  --figure-display-size: 2rem;
  --figure-display-line: 2.125rem;
  --figure-display-weight: 500;
  --figure-lg-size: 1.25rem;
  --figure-lg-line: 1.75rem;
  --figure-lg-weight: 500;
  --figure-size: 1rem;
  --figure-line: 1.4rem;
  --figure-weight: 400;
  --figure-sm-size: 0.875rem;
  --figure-sm-line: 1.25rem;
  --figure-sm-weight: 400;

  /* Ruimte */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Hoeken */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.625rem;
  --radius-pill: 999rem;

  /* Lijnen en aanraakvlakken */
  --hairline: 1px;
  --focus-width: 0.125rem;
  --touch: 3rem;
  --touch-desktop: 1.5rem;
  --control: 2.5rem;
  --sidebar: 15rem;
  --bar-height: 3.5rem;
  --page-max: 72rem;
  --read-max: 40rem;

  /* Schaduwen: enkel voor wat echt zweeft */
  --shadow-popover: 0 0.5rem 1.5rem rgba(30,58,52,0.12), 0 0.125rem 0.375rem rgba(30,58,52,0.08);
  --shadow-sticky: 0 0.0625rem 0 rgba(30,58,52,0.08);
}

[data-theme="dark"] {
  color-scheme: dark;
  --surface-canvas: #14201d;
  --surface-raised: #1c2a26;
  --surface-sunken: #0f1917;
  --ink: #ece6da;
  --text-secondary: #a7b0b8;
  --text-muted: #7f8a93;
  --brand-green: #1e3a34;
  --brand-sand: #ede7dc;
  --brand-copper: #c0693b;
  --accent: #d98b5e;
  --accent-ink: #e9a877;
  --accent-tint: #33231a;
  --line: #2c3a35;
  --line-strong: #41524c;
  --border-control: #6f8179;
  --positive: #6cc39a;
  --positive-tint: #17291f;
  --warning: #e0b457;
  --warning-tint: #2e2412;
  --negative: #e89180;
  --negative-tint: #301915;
  --stage-1: #3c5a52;
  --stage-2: #52736a;
  --stage-3: #6a8d83;
  --stage-4: #86a79d;
  --shadow-popover: 0 0.5rem 1.5rem rgba(0,0,0,0.45), 0 0.125rem 0.375rem rgba(0,0,0,0.3);
  --shadow-sticky: 0 0.0625rem 0 rgba(0,0,0,0.4);
}
