/* ──────────────────────────────────────────────────────────────────────
   ElevateOS — Brand font loader
   ──────────────────────────────────────────────────────────────────────
   Inter Variable is self-hosted (the .woff2 files live next to this CSS).
   Noto Sans JP / TC are loaded from Google Fonts because their full
   CJK coverage is ~5 MB across hundreds of unicode-range subsets and
   doesn't belong in a design-system repo. See README.md.
   ────────────────────────────────────────────────────────────────────── */

/* ── Inter Variable — Latin, primary product + brand ─────────────────── */
/* Source: rsms.me/inter (Inter v4.x, SIL Open Font License 1.1).
   Single variable file covers wght 100–900 + all Latin / Latin-ext /
   Cyrillic / Greek / Vietnamese. License text in Inter-LICENSE.txt.

   We expose both 'InterVariable' (canonical token) and 'Inter' (legacy
   alias) so font-family declarations that pre-date this design system —
   e.g. `font-family: Inter, sans-serif` — keep resolving locally. */
@font-face {
  font-family: "InterVariable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src:
    url("InterVariable.woff2") format("woff2-variations"),
    url("InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: "InterVariable";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src:
    url("InterVariable-Italic.woff2") format("woff2-variations"),
    url("InterVariable-Italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src:
    url("InterVariable.woff2") format("woff2-variations"),
    url("InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src:
    url("InterVariable-Italic.woff2") format("woff2-variations"),
    url("InterVariable-Italic.woff2") format("woff2");
}

/* ── Noto Sans JP / TC — CJK fallback ─────────────────────────────────
   The Google Fonts @import was REMOVED (2026-06-04). Production ships
   light-only, Latin-primary, and EU schools require no third-party font
   requests — so previews now load only the self-hosted Inter above and
   never make an external call. CJK text falls back to system-installed
   Noto Sans JP / TC (or the OS sans-serif) through the --eos-font-jp /
   --eos-font-zh-tc stacks. To self-host the real Noto woff2 for a CJK
   launch, follow the plan in README.md — only this file changes.

   The local() stubs below register the family names so the design-system
   compiler knows they are intentional. The browser resolves them from
   the OS font cache; if not installed, the fallback stack applies. No
   file upload or external request is made. */
@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: local("Noto Sans JP"), local("NotoSansJP");
}
@font-face {
  font-family: "Noto Sans TC";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: local("Noto Sans TC"), local("NotoSansTC");
}

/* ── Cascadia Code — monospace fallback ────────────────────────────────
   SF Mono (system) is the primary mono font; Cascadia Code is a
   fallback for Windows/Linux. local() stub registers the name for the
   compiler; resolves from OS font cache if installed. */
@font-face {
  font-family: "Cascadia Code";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: local("Cascadia Code"), local("CascadiaCode");
}
