/* Inter Variable — self-hosted, shared by the field and the wall.
 *
 * Both stylesheets named Inter in their font stack, but only wall.php ever
 * loaded it (from Google Fonts). index.php named a font it never fetched, so
 * the home page rendered in San Francisco or Segoe while the wall rendered in
 * Inter — the two halves of a site whose whole premise is that they are one
 * thing were set in different typefaces.
 *
 * Self-hosted rather than restored from Google Fonts for three reasons:
 *   1. No third-party request, so it stays clear of the open consent question
 *      in the roadmap's §0.3 for an EU-based site.
 *   2. No external dependency to be unavailable or to change under us.
 *   3. One variable file covers the whole 100–900 axis for less than the three
 *      static cuts the wall was requesting, and gives the title's proximity
 *      effect a real weight axis to move along instead of only letter-spacing.
 *
 * Licence: SIL Open Font License 1.1 — see assets/fonts/LICENSE-Inter.txt.
 * Source: @fontsource-variable/inter 5.3.0 (wght axis, upstream rsms/inter).
 *
 * The latin-ext face carries its own unicode-range so it is only fetched when
 * a glyph actually needs it. Site copy is Latin-1, so the default cost is the
 * 48KB latin file; latin-ext exists for wall messages left by strangers.
 *
 * The version is in the filename on purpose. .htaccess caches woff2 as
 * immutable for a year, and tmip_asset() cannot reach a URL written inside a
 * stylesheet — so a same-named replacement would stay stale for returning
 * visitors. Bumping Inter means renaming the files and these two rules.
 */

@font-face {
    font-family: "Inter Variable";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-var-5.3.0.woff2") format("woff2-variations");
    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 Variable";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-ext-var-5.3.0.woff2") format("woff2-variations");
    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;
}

:root {
    /* Both stylesheets read this, so the stack is declared once. The fallbacks
       stay in place for the swap window and for any load failure. */
    --font-sans: "Inter Variable", Inter, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
