/* ============================================================================
   FOW TRAVEL — R16 · GLOBAL TYPOGRAPHY APPLICATION
   Accepted contract: FOW_TRAVEL_GLOBAL_TYPOGRAPHY_LANGUAGE_v0_1 +
   FOW_TRAVEL_TYPOGRAPHY_TOKENS_v0_1.css (linked before this file).

     EN Editorial  → EB Garamond      (OFL · bundled variable woff2)
     EN Instrument → Instrument Sans  (OFL · bundled variable woff2)
     KO Editorial  → RIDIBatang       (free RIDI license · bundled)
     KO Instrument → SUIT             (OFL · bundled variable woff2)

   Editorial speaks about the world. Instrument measures the world.

   EN INSTRUMENT — user-directed correction, Published Page alignment run.
   The EN instrument role was previously Neue Haas Grotesk, a commercial face
   with no asset in this workspace; with nothing to load, the declared chain
   fell through and the EN instrument voice actually rendered in ARIAL on this
   platform (observed via CDP CSS.getPlatformFontsForNode, tools/type_check.py).
   The role is now INSTRUMENT SANS: SIL OFL, upstream google/fonts variable
   source, width axis pinned to 100 and shipped as one weight-variable woff2
   under fonts/. It is a real bundled FOW asset, so all four voices now render
   from owned files with no remote request and no pending-licence state.
   Fallbacks below are technical emergency fallbacks only.

   JA final typography is deferred: the JA edition keeps its structural
   stacks from v2.css untouched.

   This file only loads faces and bridges the accepted --fow-* tokens onto
   the page's existing semantic tokens (--font-display / --font-data /
   --font-utility / --cjk-ko*). Components keep their semantic roles.
   ============================================================================ */

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Variable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Italic-Variable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  /* Instrument Sans — SIL OFL 1.1, see fonts/InstrumentSans-OFL.txt.
     Built from the upstream google/fonts variable source with the wdth axis
     instantiated at 100; wght stays variable 400-700, which is the whole
     range the instrument voice asks for. */
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RIDIBatang";
  src: url("fonts/RIDIBatang.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SUIT";
  src: url("fonts/SUIT-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------ EN (master) */
:root {
  /* Editorial voice — place, story, headings, operation names, reading copy */
  --font-display: var(--fow-font-editorial-en);
  --font-utility: var(--fow-font-editorial-en);
  /* Instrument voice — coordinates, scale, codes, status, HUD notation.
     Instrument Sans, bundled. A grotesk, not a monospace. */
  --font-data: var(--fow-font-instrument-en);
}

/* the instrument voice is a grotesk now, not a monospace — numerals stay
   tabular so plotted readings keep their column discipline */
.u-label, .crumb, .readout__clock time, .readout__tz, .readout__sun span,
.readout__sub, .readout__list, .readout__preview li, .f2r-hud text,
.f2r-marg__t, .crumb__scale {
  font-variant-numeric: tabular-nums lining-nums;
}

/* ------------------------------------------------------------------- KO */
html[lang="ko"] {
  --cjk-ko-display: var(--fow-font-editorial-ko);
  --cjk-ko: var(--fow-font-editorial-ko);
  --font-data: var(--fow-font-instrument-ko);
}
/* RIDIBatang ships one weight: display settings stand at 400, never faux-bold */
html[lang="ko"] .monument, html[lang="ko"] .display, html[lang="ko"] .plate__nm,
html[lang="ko"] .readout__name b, html[lang="ko"] .nowvol__t b, html[lang="ko"] .folio__t b {
  font-weight: 400;
}

/* JA — deferred: structural safety only, no new final type system here */
