/* ══════════════════════════════════════════════════
   iTracker — Typography tokens
   ★ 本檔即 token 值正本，直接改這裡。站台載入 Pages/Shared/_DesignTokens.cshtml（一律在 site.css 之前）。

   字級整組上推一階（舊 body 11px 太小已退役），
   預設 xs13 < sm14 < body15 < lg17 < h2 19；Display 固定 32（不隨 data-fs 縮放）。
   三檔密度：html[data-fs="sm"|"lg"] 各 -2/+2px。
   標題一律 Medium 500（Linear 對齊）— 永不 Bold 700。
   ══════════════════════════════════════════════════ */
:root {
  /* ── Font stacks（英數自架 Inter + 度量對齊 fallback；CJK 走系統字）── */
  --font-sans:
    'Inter', 'Inter Fallback',
    -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI',
    'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHeiUI', 'Microsoft JhengHei',
    sans-serif;

  /* ── Font-size ladder (md = default) ── */
  --fs-h2:     19px;   /* H2 / settings h1 / section-title */
  --fs-lg:     17px;   /* H1（modal 與頁標題 17/500）、合計數字 */
  --fs-body:   15px;   /* body, inputs, buttons, table cells, nav */
  --fs-sm:     14px;   /* caption / meta / hint / th */
  --fs-xs:     13px;   /* 最小階：hint / annotation / badge */
  --fs-display: 32px;  /* .stat-value 大數字 — 不隨 data-fs 縮放 */

  /* ── Weights ── */
  --fw-medium:  500;
  --fw-bold:    600;
  --fw-heading: 500;   /* ALL headings: Medium, never Bold */

  /* ── Line heights ── */
  --lh-normal:  1.65;
  --lh-relaxed: 1.7;
}

html[data-fs="sm"] {
  --fs-h2:   17px;
  --fs-lg:   15px;
  --fs-body: 13px;
  --fs-sm:   12px;
  --fs-xs:   11px;
}
html[data-fs="lg"] {
  --fs-h2:   21px;
  --fs-lg:   19px;
  --fs-body: 17px;
  --fs-sm:   16px;
  --fs-xs:   15px;
}
