/*
 * Self-hosted Inter (variable, weights 100-900).
 *
 * Why self-hosted rather than the Google Fonts <link> the auth pages use:
 * the font then loads from our own origin, so there is no third-party request
 * on every page view, no extra DNS/TLS handshake, and no dependency on
 * fonts.googleapis.com being reachable.
 *
 * Why it exists at all: templates/index2.html -- which 30 templates extend,
 * including the homepage -- previously fell through to Tailwind's default
 * `--font-sans`, i.e. whatever the OS calls "system-ui". That renders as Segoe
 * UI on Windows, SF Pro on macOS, and DejaVu Sans on Linux (~15% wider), so
 * the same page looked noticeably different per platform. Meanwhile 11 other
 * templates already loaded Inter from Google Fonts, so /login and / did not
 * even match each other.
 *
 * Only the latin and latin-ext subsets are shipped. The Cyrillic, Greek and
 * Vietnamese subsets Google also serves are ~200KB more for glyphs this site
 * does not use; browsers fall back per unicode-range if they are ever needed.
 *
 * `font-display: swap` renders fallback text immediately and swaps Inter in
 * when it arrives -- no invisible-text flash on a slow connection.
 *
 * Regenerating: fetch the woff2 URLs from
 *   https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap
 * with a modern browser UA (an older UA gets ttf/woff instead of woff2).
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900; /* variable font: one file covers every weight */
  font-display: swap;
  src: url("/static/fonts/inter-latin.260c81a4759b.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("/static/fonts/inter-latin-ext.1ad231aac0a8.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;
}

/*
 * Put Inter at the front of Tailwind's sans stack. Everything after it is the
 * stock Tailwind v4 fallback chain, kept intact so the page still renders
 * sensibly if the woff2 fails to load.
 */
:root {
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
    'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}
