/* ============================================================================
 * Almasa self-hosted webfonts.
 *
 * WHO NEEDS THIS FILE
 *   AMC Tracker, Control Center, Media Gallery  -> yes, import it.
 *   HR Dashboard                                -> NO. It loads Inter and
 *     Space Grotesk through next/font, which already self-hosts them and
 *     sets --font-inter / --font-grotesk. Importing this there would ship
 *     the same faces twice.
 *
 * WHY IT EXISTS
 *   Control Center and Media Gallery declared `font-family: Inter, ...` for
 *   a long time while shipping no webfont at all, so they silently rendered
 *   in ui-sans-serif (SF Pro / Segoe UI) instead. AMC Tracker did ship a
 *   webfont, but it was IBM Plex Sans, which was removed when the four apps
 *   standardised on Inter. Without this file, three of the four apps do not
 *   actually render in the font their CSS claims.
 *
 * WHAT IT DEFINES
 *   Variable fonts, latin subset only — the same subset next/font is
 *   configured with in the HR Dashboard, so all four apps carry identical
 *   glyph coverage. Non-latin text (Arabic, Chinese) is NOT covered here and
 *   deliberately falls through to the system CJK fallbacks that
 *   --almasa-font-ui / --almasa-font-mono declare. Do not "fix" that by
 *   adding subsets; the fallback chain is what keeps the Lark webview from
 *   rendering tofu.
 *
 *   Family names are deliberately `Inter` and `Space Grotesk` — NOT the
 *   `... Variable` names Fontsource ships — so they match the plain family
 *   names inside var(--font-inter, Inter) in tokens.css.
 *
 * WEIGHT RANGES — these differ, and it matters:
 *   Inter          100–900  (covers the unusual 850 used for eyebrow labels)
 *   Space Grotesk  300–700  (does NOT cover 800/850/900; a heavier weight on
 *                            mono text will be synthesised or clamped)
 *
 * Both fonts are SIL Open Font License 1.1 — see LICENSE-*.txt beside this
 * file. Self-hosting and redistribution are permitted; the licence text must
 * travel with the font files.
 *
 * Sourced from @fontsource-variable/inter and @fontsource-variable/space-grotesk
 * (both 5.3.0). Files are committed rather than npm-installed because Media
 * Gallery has no build step and cannot resolve node_modules.
 * ========================================================================= */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(./fonts/inter-latin-wght-normal.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: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(./fonts/space-grotesk-latin-wght-normal.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;
}
