/*
 * Self-hosted brand fonts (Playfair Display + Inter), replacing the external
 * Google Fonts requests and the unloaded "Outfit"/"Nunito Sans" references
 * that were previously scattered across templates.
 *
 * Each @font-face below points at a single static-but-variable-range woff2
 * (Google's css2 API serves the same file for weights 400-700 of Inter and
 * 600-700 of Playfair Display), so only two files are ever fetched.
 *
 * The matching "Fallback" faces override system-font metrics (ascent,
 * descent, size-adjust) so the fallback glyphs occupy very close to the same
 * box as the real webfont - this is what keeps the font-display:swap swap
 * from shifting layout (CLS) once the real font loads. Inter's values below
 * are Inter's own published fallback metrics; Playfair Display's are a
 * reasonable approximation for a Georgia/Times fallback and can be
 * fine-tuned later with a tool like Fontaine if a pixel-perfect match is
 * needed.
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-var-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: 'Inter Fallback';
  src: local('Arial');
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/fonts/playfair-display-var-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: 'Playfair Display Fallback';
  src: local('Georgia');
  ascent-override: 98%;
  descent-override: 24%;
  line-gap-override: 0%;
  size-adjust: 112%;
}

:root {
  --font-sans: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-serif: 'Playfair Display', 'Playfair Display Fallback', Georgia, 'Times New Roman', serif;
}
