/* ─── Metric-matched fallback families (eliminate font-swap CLS) ──────
   When the real Fraunces / Inter woff2 is still loading, the browser
   uses these synthetic 'Fraunces Fallback' / 'Inter Fallback' families
   built from system Georgia / Arial with size-adjust + ascent/descent
   overrides so that swap-in is visually identical-sized.
   Reference values from Fontaine / Capsize automated metric matching. */

@font-face {
  font-family: 'Fraunces Fallback';
  font-style: normal;
  font-weight: 400 600;
  src: local('Georgia');
  ascent-override: 91%;
  descent-override: 23%;
  line-gap-override: 0%;
  size-adjust: 109%;
}
@font-face {
  font-family: 'Fraunces Fallback';
  font-style: italic;
  font-weight: 400;
  src: local('Georgia Italic'), local('Georgia');
  ascent-override: 91%;
  descent-override: 23%;
  line-gap-override: 0%;
  size-adjust: 109%;
}
@font-face {
  font-family: 'Inter Fallback';
  font-style: normal;
  font-weight: 400 800;
  src: local('Arial');
  ascent-override: 90%;
  descent-override: 23%;
  line-gap-override: 0%;
  size-adjust: 107%;
}

/* ─── Real fonts ──────────────────────────────────────────────────────
   Cookie, JetBrains Mono, and Fraunces italic are rarely-rendered
   accents → font-display: optional (no swap, no shift, may not load
   on slow connections — acceptable for these). */

@font-face {
  font-family: 'Cookie';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('../fonts/cookie-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: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-variable.woff2') format('woff2-variations');
  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: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: optional;
  src: url('../fonts/fraunces-variable-italic.woff2') format('woff2-variations');
  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: 100 900;
  font-display: swap;
  src: url('../fonts/inter-variable.woff2') format('woff2-variations');
  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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('../fonts/jetbrains-mono-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;
}
