/* @jowheeman/tokens — typefaces, self-hosted.
 *
 * Was a single @import from fonts.googleapis.com, which meant: a third-party
 * request on every page, nothing in a native (Tauri) build with no internet,
 * and — because no consumer ever imported this file — three families that were
 * *named* in the tokens and never actually loaded. The desktop has been
 * rendering in system-ui the whole time.
 *
 * Now: the faces are served from this package, subsetted to latin + latin-ext +
 * the arrows and geometry the UI actually draws (Oswald adds a cyrillic cut).
 *
 *   Inter          — UI. opsz 14–32 keeps 11px chrome crisp and 20px+ calm.
 *   Fraunces       — display. SOFT/WONK pinned to the house setting; opsz live.
 *   JetBrains Mono — code, JSON, token values.
 *   Oswald         — condensed UI/body. Not a platform default: it is here because
 *                    a tenant brand names it (sbs — Patryk's own theme), and a
 *                    brand that names a face it cannot load is worse than no brand,
 *                    it silently degrades to the OS font.
 *   Bebas Neue     — condensed display, same origin. Static, single weight.
 *
 * Files and subsets are the ones that tenant's own site already serves; adding a
 * family here costs nothing to anyone who does not name it (a face is downloaded
 * only when something actually renders in it).
 *
 * All three are SIL OFL 1.1; the licences ship in ./fonts/ beside the files.
 * A tenant that wants its own face overrides
 * --brand-typography-font-family-{sans,display,mono} — this file is the default,
 * never a lock.
 */

@font-face {
  font-family: 'Inter var';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/inter-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2000-206F, U+2074,
    U+20A0-20CF, U+2113, U+2122, U+2190-21FF, U+2212, U+2215, U+25A0-25FF,
    U+2900-297F, U+A720-A7FF, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces var';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/fraunces-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2000-206F, U+2074,
    U+20A0-20CF, U+2113, U+2122, U+2190-21FF, U+2212, U+2215, U+25A0-25FF,
    U+2900-297F, U+A720-A7FF, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono var';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('./fonts/jetbrains-mono-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2000-206F, U+2074,
    U+20A0-20CF, U+2113, U+2122, U+2190-21FF, U+2212, U+2215, U+25A0-25FF,
    U+2900-297F, U+A720-A7FF, U+FEFF, U+FFFD;
}

/* ── Oswald ────────────────────────────────────────────────────────────────
 * Variable 200–700, three subsets, exactly as the site this face comes from
 * serves them: the cyrillic cut is real load-bearing there (Bulgarian runs in
 * this display face), so it stays a separate file that a latin page never
 * fetches. `swap` for body text — a late swap on running text costs a reflow,
 * never an invisible page. */
@font-face {
  font-family: 'Oswald var';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('./fonts/Oswald-Variable-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: 'Oswald var';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('./fonts/Oswald-Variable-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: 'Oswald var';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('./fonts/Oswald-Variable-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ── Bebas Neue ────────────────────────────────────────────────────────────
 * Display only, one weight, no variable axes. `fallback` and not `swap` or
 * `optional` — that choice is the tenant's, made empirically on the site this
 * face comes from: `optional` scored best on Speed Index but on a cold cache
 * the display face never appeared at all, so every heading rendered in a system
 * font and the letterform carrying the design was simply invisible. `fallback`
 * keeps the short block period and still allows the swap. */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: fallback;
  src: url('./fonts/BebasNeue-Regular.woff2') format('woff2');
}
