/* Vaucai — self-hosted webfonts (TAC-FIX-04 + TAC-FIX-05).
 *
 * Replaces:
 *   <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800
 *               &family=Instrument+Serif:ital@1&display=swap" rel="stylesheet">
 *
 * Why self-hosted:
 *  - TAC-FIX-04 (CWE-345, SRI Missing): cross-origin font CSS could not
 *    carry a stable integrity hash (Google ships UA-dependent CSS).
 *    Same-origin removes the need for SRI entirely.
 *  - TAC-FIX-05 (CWE-693, COEP Missing): require-corp blocks cross-origin
 *    resources without explicit CORP headers. Google Fonts does NOT emit
 *    CORP on its CSS or .woff2 — self-hosting from /assets/fonts/* under
 *    our own security-headers snippet (Cross-Origin-Resource-Policy:
 *    same-origin) makes COEP require-corp viable.
 *
 * Inter: rsms.me canonical hinted .woff2, all glyphs in one file per
 * weight (no unicode-range split needed).
 * Instrument Serif: same files Google was serving (latin + latin-ext
 * split) since the upstream repo doesn't publish webfont packages.
 *
 * Cache: served via /assets/* — matches the existing 30d expires +
 * public, immutable directive in vaucai.conf.
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/Inter-ExtraBold.woff2') format('woff2');
}

/* Instrument Serif italic — latin-ext (broader European glyphs). */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/InstrumentSerif-Italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Instrument Serif italic — latin (default). */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/InstrumentSerif-Italic-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;
}
