/* Self-hosted fonts.
   Fraunces (variable display serif, opsz + wght axes) for headings and numerals,
   Instrument Sans (variable) for reading and UI. One latin subset each, plus
   metric-adjusted fallback faces so the swap shifts nothing. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../assets/fonts/fraunces-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: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/instrument-sans-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;
}

/* Metric-adjusted fallbacks to minimise layout shift on font swap. Sizes measured against
   the real faces: Fraunces 300 / Georgia = 0.982, Instrument Sans 400 / Arial = 1.016;
   ascent and descent are the faces' own hhea metrics divided by size-adjust. */
@font-face {
  font-family: 'Fraunces Fallback';
  src: local('Georgia');
  font-weight: 300 600;
  size-adjust: 98%;
  ascent-override: 99.8%;
  descent-override: 26%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Instrument Sans Fallback';
  src: local('Arial');
  font-weight: 400 700;
  size-adjust: 101.5%;
  ascent-override: 95.5%;
  descent-override: 24.6%;
  line-gap-override: 0%;
}
