/* ============================================================
   Vichem — Typography Tokens (RESKIN_BUILD_PLAN §5 / RS8)
   Display: "UTM Bebas" — ALL-CAPS, condensed. Headlines & amounts only.
   Body:    "Be Vietnam Pro" — Vietnamese-first humanist sans for all
            running text & UI (full diacritic coverage, 400–700 weights).
   Loaded AFTER spacing.css so the --font-* aliases here win where the
   legacy definitions overlap.
   ============================================================ */

:root {
  /* ---- Families ---- */
  --font-display: 'UTM Bebas', 'Bebas Neue', 'Be Vietnam Pro', sans-serif;
  --font-body: 'Be Vietnam Pro', 'Averta', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Code', 'Menlo', monospace;

  /* ---- Type scale (rem, 16px base) ---- */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-md:   1.125rem;  /* 18px */
  --text-lg:   1.375rem;  /* 22px */
  --text-xl:   1.75rem;   /* 28px */
  --text-2xl:  2.25rem;   /* 36px */
  --text-3xl:  3rem;      /* 48px */
  --text-4xl:  4rem;      /* 64px */
  --text-5xl:  5.5rem;    /* 88px display */

  /* ---- Product ramp (v16 reskin R1, design doc 06 §3.3) ----------------
     Five roles with TWO values each: mobile is the base, desktop steps one
     notch down (a pointer sits closer than a phone, so the same hierarchy
     needs less size). Declared as tokens so the desktop step lives in ONE
     media block at the bottom of this file instead of a ≥768 override on
     every rule that uses them. Sub and label are identical on both tiers —
     doc 06 §3.3 says only the top three rows need the override.
     Anything below 12.5px is out of bounds (the v3 CSS broke its own floor
     14 times; we do not port that). */
  --ramp-title: 30px;    /* screen title            desktop 24 */
  --ramp-hero:  34px;    /* hero number             desktop 30 */
  --ramp-row:   15px;    /* list row / body         desktop 14 */
  --ramp-sub:   12.5px;  /* secondary line          both tiers */
  --ramp-label: 11.5px;  /* uppercase section label both tiers */

  /* ---- Weights ---- */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ---- Line heights ---- */
  --leading-tight: 1.04;   /* display — Bebas sits tight */
  --leading-snug: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* ---- Letter spacing ---- */
  --tracking-display: 0.01em;  /* Bebas: near-zero, slightly open */
  --tracking-tight: -0.01em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-caps: 0.12em;     /* small all-caps labels */

  /* ---- Semantic roles ---- */
  --font-heading: var(--font-display);
  --font-text: var(--font-body);
}

/* The whole desktop type ramp, in one place (v16 R1). The min-height guard is
   NOT decoration — without it a phone held sideways (740×360) picks up the
   desktop tier. Every media block in this codebase carries the pair. */
@media (min-width: 768px) and (min-height: 501px) {
  :root {
    --ramp-title: 24px;
    --ramp-hero:  30px;
    --ramp-row:   14px;
  }
}
