/* Inter, self-hosted.
 *
 * WHY NOT @import FROM GOOGLE
 *
 * This used to be a single line in design-system/styles/globals.css:
 *
 *   @import url('https://fonts.googleapis.com/css2?family=Inter:...&display=swap');
 *
 * Three problems with that here:
 *
 *   1. Request chain. globals.css is loaded by a dynamic import() in main.js
 *      that fires AFTER the app mounts, and the @import inside it is another
 *      hop, and the CSS it returns points at a third host for the actual font.
 *      So the chain was JS -> CSS -> fonts.googleapis.com -> fonts.gstatic.com,
 *      resolving well after first paint. Text rendered in the fallback and then
 *      visibly reflowed once Inter landed.
 *   2. Third-party dependency on the critical path for text rendering.
 *   3. GDPR. Requesting a font from Google transmits the visitor's IP to Google;
 *      a German court (LG München I, 3 O 17493/20) awarded damages over exactly
 *      this pattern. Self-hosting removes the transfer entirely.
 *
 * WHAT IS HERE
 *
 * Inter v20 ships as a variable font, so ONE file per subset covers the whole
 * 100-900 weight axis. The three weights previously requested (400/500/700) are
 * all served by the same three files; `font-weight: 100 900` on each face tells
 * the browser it can synthesise any weight in range from it.
 *
 * Subsets are latin, latin-ext and greek. Greek is not decorative: the active
 * locales (en/fr/es) contain Σ and τ in stat/formula copy, and without the greek
 * face those fall back to a different typeface mid-sentence. The cyrillic and
 * vietnamese subsets are deliberately omitted; if USER_LANGUAGE_OPTIONS in
 * i18n/index.js ever gains ru or vi, re-run the fetch and add them here.
 *
 * `font-display: swap` keeps text visible during load rather than blanking it.
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-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';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-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;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1,
    U+03A3-03FF;
}
