/* ─────────────────────────────────────────────────────────────
   PONS CITY - type
   4 faces, 80.7 KB, subset + audited 2026-09-05 via _tools/type_audit.py
   Lifted from brand/type-stack.md section 6. Owner TY1. Do not retune here:
   the pixel faces are STEPPED, the vector faces are FLUID, and that split is
   the whole reason the type does not turn the pixel art to mush.
   ───────────────────────────────────────────────────────────── */

/* --- 1. the two vector faces: variable, swap, metric-matched --- */
@font-face {
  font-family: "Chivo";
  src: url("/fonts/chivo-latin.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Chivo Mono";
  src: url("/fonts/chivo-mono-latin.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --- 2. the two pixel faces: static, BLOCK (identity integrity) ---
   block + preload = the block period is effectively zero, and the wordmark
   never flashes in a system face. A pixel wordmark that swaps is a broken mark. */
@font-face {
  font-family: "Jersey 20";
  src: url("/fonts/jersey20.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: block;
}
@font-face {
  font-family: "Tiny5";
  src: url("/fonts/tiny5.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: block;
}

/* --- 3. CLS killers: metric-matched fallback boxes ---------------
   Measured off the binaries (hhea asc 940 / desc -250 / gap 0, upm 1000).
   These faces are a BOX, not a design choice: they exist so the pre-swap
   line box is already the right size. */
@font-face {
  font-family: "Chivo Fallback";
  src: local("Arial"), local("Helvetica Neue");
  size-adjust: 110.46%;
  ascent-override: 85.10%;
  descent-override: 22.63%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Chivo Mono Fallback";
  src: local("Menlo"), local("Consolas");
  size-adjust: 99.66%;
  ascent-override: 94.32%;
  descent-override: 25.09%;
  line-gap-override: 0%;
}

:root {
  --ff-display: "Jersey 20", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ff-body:    "Chivo", "Chivo Fallback", ui-sans-serif, system-ui,
                -apple-system, "Segoe UI", sans-serif;
  --ff-mono:    "Chivo Mono", "Chivo Mono Fallback", ui-monospace,
                SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --ff-hud:     "Tiny5", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* fluid scale: 360px -> 1440px viewport, ~1.25 major third.
     VECTOR faces only. The pixel faces are stepped. */
  --fs-statement: clamp(2.5rem,   1.7500rem + 3.3333vw, 4.75rem);
  --fs-h1:        clamp(2rem,     1.5000rem + 2.2222vw, 3.5rem);
  --fs-h2:        clamp(1.625rem, 1.3333rem + 1.2963vw, 2.5rem);
  --fs-h3:        clamp(1.312rem, 1.1667rem + 0.6481vw, 1.75rem);
  --fs-h4:        clamp(1.188rem, 1.1250rem + 0.2778vw, 1.375rem);
  --fs-body-lg:   clamp(1.125rem, 1.0833rem + 0.1852vw, 1.25rem);
  --fs-body:      clamp(1.062rem, 1.0417rem + 0.0926vw, 1.125rem);
  --fs-small:     clamp(0.9375rem,0.9167rem + 0.0926vw, 1rem);
  --fs-data-lg:   clamp(1.25rem,  1.1667rem + 0.3704vw, 1.5rem);
  --fs-data:      clamp(0.9375rem,0.9167rem + 0.0926vw, 1rem);
  --fs-label:     clamp(0.75rem,  0.7292rem + 0.0926vw, 0.8125rem);

  /* stepped, NOT fluid. SPEC section 2. */
  --fs-wordmark: 34px;
  --fs-hud:       8px;
  --fs-hud-2x:   16px;
  --fs-hud-3x:   24px;

  --ff-features-body:  "kern" 1, "liga" 1, "pnum" 1;
  --ff-features-table: "kern" 1, "liga" 1, "zero" 1;
  --ff-features-mono:  "zero" 1, "tnum" 1;
}

/* --- roles --------------------------------------------------- */
.wordmark {
  font-family: var(--ff-display);
  font-size: var(--fs-wordmark);
  line-height: 40px;
  letter-spacing: 0;
  color: var(--accent);
}
.hud {
  font-family: var(--ff-hud);
  font-size: var(--fs-hud-2x);
  line-height: 24px;
  letter-spacing: 0;
}
.statement {
  font-family: var(--ff-body); font-weight: 800;
  font-size: var(--fs-statement);
  line-height: 0.98; letter-spacing: -0.02em;
  text-wrap: balance;
  font-feature-settings: var(--ff-features-body);
}
h1 { font-family: var(--ff-body); font-weight: 700; font-size: var(--fs-h1);
     line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-family: var(--ff-body); font-weight: 700; font-size: var(--fs-h2);
     line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-family: var(--ff-body); font-weight: 600; font-size: var(--fs-h3);
     line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
h4 { font-family: var(--ff-body); font-weight: 600; font-size: var(--fs-h4);
     line-height: 1.3;  letter-spacing: 0; }
body, p {
  font-family: var(--ff-body); font-weight: 400;
  font-size: var(--fs-body); line-height: 1.6; letter-spacing: 0;
  font-feature-settings: var(--ff-features-body);
  text-wrap: pretty;
  text-align: start;
}
.lede { font-size: var(--fs-body-lg); line-height: 1.55; }
small, .caption { font-size: var(--fs-small); line-height: 1.5; }

/* the ticker-header move: all-caps mono, wide tracking, lime.
   this is what carries the instrument-panel read. */
.label {
  font-family: var(--ff-mono); font-weight: 700;
  font-size: var(--fs-label);
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-feature-settings: var(--ff-features-mono);
}
.data, td.num, .addr, .wei, .lot-id {
  font-family: var(--ff-mono); font-weight: 400;
  font-size: var(--fs-data); line-height: 1.65; letter-spacing: 0;
  font-feature-settings: var(--ff-features-mono);
  font-variant-numeric: tabular-nums slashed-zero;
}
.data-lg { font-size: var(--fs-data-lg); font-weight: 500; line-height: 1.4; }
