/* Inter 4.1, self-hosted (https://rsms.me/inter, SIL Open Font License 1.1,
   LICENSE.txt in this directory). The two WOFF2 files are the unmodified
   variable fonts of the official release (github.com/rsms/inter, v4.1, web/).
   One upright file covers every weight from 100 to 900, so font-semibold (600)
   renders a true Semi Bold. The italic file is fetched only when a page
   renders italic text. Kept in sync with the same faces in src/index.css. */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter/InterVariable-Italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* Metric-override fallback. `font-display: swap` shows a fallback font until
   Inter loads; without matched metrics that swap reflows text (line-height and
   width change) and adds layout shift (CLS). This face wraps a locally
   installed Arial and re-declares Inter's own metrics, so the pre-swap box
   matches Inter. Listed immediately after 'Inter' in the font stack
   (src/index.css, tailwind.config.js), the swap-in is metric-neutral.
   Inter (InterVariable.woff2, default instance): unitsPerEm 2048; hhea
   ascender 1984, descender 494, lineGap 0; average advance of English text
   983.795 (a-z and space weighted by letter frequency, the measure capsize and
   next/font use; OS/2 xAvgCharWidth averages all ~2,500 glyphs and is no
   guide to running text). Arial: unitsPerEm 2048, same average 915.393.
   size-adjust = 983.795 / 915.393; each override = Inter's value /
   (2048 * size-adjust). */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  font-weight: 100 900;
  font-style: normal;
  size-adjust: 107.47%;
  ascent-override: 90.14%;
  descent-override: 22.44%;
  line-gap-override: 0%;
}
