/* ==========================================================================
   Webfonts, zelf gehost (geen externe runtime-afhankelijkheid). Twee families, elk met een vaste rol (typografie 29-09-2026):
   Geist voor tekst, interface, tijden en aantallen (tabular-nums), Bricolage Grotesque alleen voor koppen.
   Bron: Fontsource 5.3.0 (woff2), licentie SIL OFL 1.1 — zie assets/fonts/LICENSE-*.txt.
   Bricolage staat vastgezet op gewicht 700 met variabele optische grootte (bin/fonts-bricolage.py); de browser kiest de
   optische grootte zelf bij de lettergrootte (font-optical-sizing: auto).
   De namen sluiten aan op --font-body en --font-display in tokens.css.
   latin-ext wordt alleen geladen als een pagina zulke tekens bevat (unicode-range).
   ========================================================================== */

/* ---- Geist (tekst en interface), variabel 100–900, recht en cursief ---- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/geist-latin-wght-normal.woff2?v=1") 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: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/geist-latin-ext-wght-normal.woff2?v=1") 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: "Geist";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/geist-latin-wght-italic.woff2?v=1") 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: "Geist";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/geist-latin-ext-wght-italic.woff2?v=1") 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;
}

/* ---- Bricolage Grotesque (alleen koppen), 700, optische grootte 12–96 ---- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/bricolage-grotesque-latin-opsz-700.woff2?v=1") 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: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/bricolage-grotesque-latin-ext-opsz-700.woff2?v=1") 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;
}

/* ---- Vervangers op maat: lokale Arial / Liberation Sans, geschaald naar de breedte en hoogte van de
   webfont, zodat tekst niet verspringt als de webfont binnenkomt (font-display: swap). Berekend met fontTools
   (docs/superpowers/plans/2026-09-29-typografie/fallback-maten.py) en gemeten in Chrome (font-swap.mjs).
   Bricolage is afgestemd op de h1 (optische grootte 32). ---- */
@font-face {
  font-family: "Geist Fallback";
  font-weight: 100 500;
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 102.3%; ascent-override: 98.2%; descent-override: 28.8%; line-gap-override: 0%;
}
@font-face {
  font-family: "Geist Fallback";
  font-weight: 600 900;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold");
  size-adjust: 102.9%; ascent-override: 97.7%; descent-override: 28.7%; line-gap-override: 0%;
}
@font-face {
  font-family: "Bricolage Fallback";
  font-weight: 700;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold");
  size-adjust: 98%; ascent-override: 94.9%; descent-override: 27.6%; line-gap-override: 0%;
}
