/* Ontwerptokens — één plek voor kleur, schaal, ritme en timing. */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  color-scheme: light;

  /* Kaarslicht */
  --kleur-nacht: #2b0a10;
  --kleur-nacht-diep: #1d060b;
  --kleur-rood: #7b0d18;
  --kleur-vlam: #a8121f;
  --kleur-goud: #f2c75c;
  --kleur-goud-diep: #c08e2c;
  /* Gilt-bruin: het enige goud dat op perkament 4,5:1 haalt. */
  --kleur-gilt: #8a6210;

  /* Focusring: goud haalt op perkament maar 1,43:1, rood 9,79:1. */
  --kleur-focus: #7b0d18;
  --kleur-goud-zacht: #e3bd7a;

  /* Perkament */
  --kleur-perkament: #faf1e0;
  --kleur-perkament-diep: #f2e3c9;
  --kleur-kaart: #fffaf0;
  --kleur-inkt: #2b1015;
  --kleur-inkt-zacht: #71534a;
  --kleur-lijn: #e4d2b4;

  /* Tekst op donker */
  --kleur-creme: #fbf1de;
  --kleur-creme-zacht: #d9bfae;

  /* Typografie */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-tekst: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;

  --tekst-klein: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --tekst-basis: clamp(1.02rem, 0.97rem + 0.22vw, 1.15rem);
  --tekst-lead: clamp(1.14rem, 1rem + 0.6vw, 1.42rem);
  --tekst-h3: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
  --tekst-h2: clamp(1.9rem, 1.3rem + 2.4vw, 3.4rem);
  --tekst-h1: clamp(2.4rem, 1.1rem + 5.6vw, 5.2rem);
  --tekst-cijfer: clamp(2.6rem, 1.6rem + 3.6vw, 5rem);

  /* Ritme — bewust ongelijk, niet overal dezelfde padding */
  --ruimte-sectie: clamp(4.5rem, 3rem + 7vw, 9.5rem);
  --ruimte-sectie-kort: clamp(3rem, 2rem + 4vw, 5.5rem);
  --rand: clamp(1.15rem, 0.6rem + 2.6vw, 4.5rem);
  --maat: 76rem;
  --maat-lezen: 36rem;

  /* Vorm — bewust niet overal dezelfde radius */
  --rond-klein: 8px;
  --rond: 14px;
  --rond-groot: 26px;

  /* Diepte */
  --schaduw-laag: 0 1px 2px rgba(43, 10, 16, 0.08),
    0 8px 24px -12px rgba(43, 10, 16, 0.22);
  --schaduw-hoog: 0 2px 4px rgba(43, 10, 16, 0.12),
    0 28px 60px -28px rgba(43, 10, 16, 0.45);
  --gloed-goud: 0 0 0 1px rgba(242, 199, 92, 0.35),
    0 18px 50px -20px rgba(242, 199, 92, 0.45);

  /* Beweging */
  --duur-kort: 160ms;
  --duur: 320ms;
  --duur-traag: 760ms;
  --soepel: cubic-bezier(0.16, 1, 0.3, 1);
}
