/* typography.css - the Lani Prime Design System, shipped verbatim.
 *
 * SOURCE: docs/design/lani-prime-design-system/lani-prime-design-system-8be1580b-0eca-463e-bd74-8aa265b1a30c/tokens/typography.css
 * MANIFEST: lani-prime-design-system-8be1580b-0eca-463e-bd74-8aa265b1a30c
 *
 * Copied 2026-09-22 (U-E8.0), re-copied the same day (U-E8.0c: the scale went rem at the
 * 16px root, so adopting it cannot make the portal's type absolute). The body below is
 * byte-for-byte the source file;
 * only this header is added. EDIT THE SOURCE, NOT THIS COPY - a change made here
 * and not there forks the thing the mocks are drawn against, and the mocks are the
 * design authority (U-E8 section 0).
 *
 * The three refresh2 mocks reference these tokens in 588 inline styles, and before
 * this file existed not one of them was defined in shipped Shell CSS - so every one
 * dropped and the served surfaces drew without them. The compatibility aliases the
 * source carries are kept for the same reason in reverse: nothing already shipped
 * may change colour because this landed.
 */

:root {
  /* Shipping shell stack (system-first, CJK-aware) — chrome and dense operational UI.
     "Hiragino Sans" / "Noto Sans CJK JP" are OS-provided CJK fallbacks (Apple/Google system fonts,
     not self-hostable); no @font-face on purpose — the stack renders natively per platform. */
  --lp-font-shell: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans CJK JP", sans-serif;
  /* Brand/vision stack — new surfaces, marketing, immersive views (Sanity, onboarding). */
  --lp-font-ui: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --lp-font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

  /* U-E8.0c — THE SCALE IS rem, AT THE 16px ROOT.
     Every size below was the same number in px and is byte-equivalent at the
     default root; the px is kept in the comment because that is how the scale
     was designed and reviewed.

     WHY IT MOVED. WCAG 1.4.4 asks that text scale to 200%, and a scale in px
     cannot be enlarged by the readers who most need to enlarge it. Shell's
     typography.css converted for exactly that reason and records the verified
     prerequisite — no html or :root px font-size exists anywhere in Shell — so
     a portal token reading var(--lp-fs-body) now inherits the same promise.
     Had this stayed px, adopting it would have silently made the portal's whole
     scale absolute, and nothing in the build would have said so.

     LAYOUT METRICS STAY px (spacing.css: rail, sidebar, top bar). A rail that
     grew with a reader's text setting is a different decision nobody has made. */
  /* Scale — size / line-height (px shown is the value at a 16px root) */
  --lp-fs-display: 2.25rem; --lp-lh-display: 2.625rem;  /* hero, intro dialogue */
  --lp-fs-h1: 1.75rem;      --lp-lh-h1: 2.125rem;       /* surface title */
  --lp-fs-h2: 1.375rem;      --lp-lh-h2: 1.75rem;       /* card/section heading */
  --lp-fs-panel: 0.9375rem;   --lp-lh-panel: 1.25rem;    /* panel heading */
  --lp-fs-body: 0.875rem;    --lp-lh-body: 1.3125rem;     /* body copy (shell 13-14) */
  --lp-fs-small: 0.8125rem;   --lp-lh-small: 1.125rem;    /* operational copy, meta */
  --lp-fs-meta: 0.75rem;    --lp-lh-meta: 1rem;     /* labels, freshness */
  --lp-fs-micro: 0.6875rem;   --lp-lh-micro: 0.9375rem;    /* mono IDs, keycaps, rail labels 10-11 */

  --lp-heading-tracking: -0.02em;  /* headings: weight 600 */
  --lp-kicker-tracking: 0.12em;    /* kickers: 10.5-12px uppercase */
}
