/* =============================================================
   MaiAgent UI System — Typography Tokens (Chapter 03)
   v2.0 · 2026-08-01 · derived from tokens/typography.tokens.json
   -------------------------------------------------------------
   數值取自 index.html「字級階層」既有定案，本檔只把硬編碼收攏成
   token，不重新設計級距。行高一律以 px 落值，避免無單位倍率在
   巢狀元素上累乘。
   styles.css 原本引用的 --font-size-base／--line-height-base 從未
   被定義過（整條宣告失效，body 落回瀏覽器預設 16px）；base 對應到
   級距中最接近的一階＝ body 14px。
   v2.0 併入現況盤點：補字型家族、12px 輔助字級、字距、等寬數字。
   --font-noto／--font-native-cjk 為預設值（繁中），由語系偵測 script 在
   runtime 依 navigator.language 改寫。程式碼與使用規則見
   decisions/typography.md〈語系切換〉。
   ============================================================= */

:root {
  /* ---------- FAMILY ---------- */
  --font-noto:       "Noto Sans TC";
  --font-native-cjk: "PingFang TC", "Microsoft JhengHei";
  --font-sans: "Inter", var(--font-noto), -apple-system, BlinkMacSystemFont, "Segoe UI", var(--font-native-cjk), sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* ---------- SIZE ---------- */
  --text-display: 36px;
  --text-h1:      28px;
  --text-h2:      22px;
  --text-h3:      18px;
  --text-h4:      16px;
  --text-body:    14px;
  --text-caption: 12px;

  /* ---------- LINE HEIGHT ---------- */
  --leading-display: 48px; /* 1.33 */
  --leading-h1:      38px; /* 1.36 */
  --leading-h2:      30px; /* 1.36 */
  --leading-h3:      28px; /* 1.56 */
  --leading-h4:      24px; /* 1.50 */
  --leading-body:    22px; /* 1.57 */
  --leading-caption: 18px; /* 1.50 */

  /* ---------- WEIGHT ---------- */
  --weight-regular: 400;
  --weight-medium:  500;
  --weight-bold:    700;

  /* ---------- LETTER SPACING ----------
     --tracking-normal（值就是 0）於 2026-08-18 退場：它裡面沒有任何決定，
     而 token 存在的理由是「讓一個決定只改一個地方」。 */
  --tracking-table-header: 0.03em;
  --tracking-brand-title:  -0.01em;
}
