/*
 * Inter — self-hosted variable font.
 *
 * One woff2 (~48 KB Latin-subsetted) covers the full 100-900 weight range via
 * the `wght` axis. Replaces the previous 5 static-weight files served from
 * fonts.bunny.net, eliminating 4 network requests and a cross-origin DNS+TLS
 * handshake. The file lives at /assets/fonts/inter-variable-latin.woff2 and
 * is fetched and committed by scripts/build-fonts.sh.
 *
 * Italic note: the slant axis was dropped to save ~50 KB; the single italic
 * usage (submit.php privacy note) falls back to browser-synthesized obliquing.
 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-variable-latin.woff2') format('woff2-variations');
}

/*
 * Inter Fallback — Arial rescaled to match Inter's metrics.
 *
 * Pre-Inter paint uses local Arial; the size-adjust + *-override values bend
 * Arial's box geometry into Inter's, so when the real Inter swaps in there is
 * zero layout shift — only a glyph-style change. Override numbers come from
 * Next.js's font-fallback table for Inter↔Arial.
 *
 * The Tailwind interStack lists 'Inter Fallback' immediately after 'Inter',
 * before the OS system fonts, so this face wins until the variable woff2
 * arrives.
 */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  ascent-override: 90.49%;
  descent-override: 22.56%;
  line-gap-override: 0%;
  size-adjust: 107.39%;
}
