/* ============================================================
   潜龙八字 · 尺寸标尺（唯一真源）        T-UI-10 / U2 · 260923
   ------------------------------------------------------------
   为什么独立成层（owner 260922 拍板 · 见 `260922-U1-三端尺寸审计（报告）.md` §八）
     · 现状：字号/间距/圆角标尺**定义在皮肤层**，与 EL-5「皮肤只改颜色与质感、版式归版式层」**冲突**；
     · 实测极差：`--r-pill` 横跨 **0→999px**、`--sp-8` 差 **18px**、`--fs-hero` 差 **10px**
       ⇒ owner 原话「点开青铜礼器的尺寸就跟他其他不一样」，**可量化成立**。
     ⇒ 裁定：① 字号收敛 ＝ **乙**（共用基准 ＋ 单一 `--fs-scale`，**0.94–1.06**）；
              ② 标尺基准 ＝ **甲**（**上移出版式层**，皮肤只给旋钮／引用圆角族）。

   ⛔ 本文件**只定义尺寸标尺**（字号阶／间距阶／圆角族）；⛔ 不含任何组件样式与选择器。
   ⛔ 皮肤层**不得**再出现 `--fs-*`／`--sp-*`／`--r-*` 的**数值**（只允许 `var()` 引用与两个 scale 旋钮）。
   ============================================================ */

:root{
  /* ---------- 字号阶（基准 8 档 · 唯一定义处） ---------- */
  --fs-scale: 1;                          /* ★ 皮肤唯一允许的**字体**旋钮（规范区间 0.94–1.06） */
  --fs-hero:  calc(34px   * var(--fs-scale));
  --fs-2xl:   calc(26px   * var(--fs-scale));
  --fs-xl:    calc(20px   * var(--fs-scale));
  --fs-lg:    calc(17px   * var(--fs-scale));
  --fs-md:    calc(15px   * var(--fs-scale));
  --fs-base:  calc(14px   * var(--fs-scale));
  --fs-sm:    calc(12.5px * var(--fs-scale));
  --fs-xs:    calc(12px   * var(--fs-scale));

  /* ---------- 间距阶（基准 7 档 · 消除原「sp-1..6 后直接 sp-8」的跳号） ---------- */
  --sp-scale: 1;                          /* ★ 皮肤允许的**间距**旋钮（建议区间 0.9–1.6） */
  --sp-1: calc(4px  * var(--sp-scale));
  --sp-2: calc(8px  * var(--sp-scale));
  --sp-3: calc(12px * var(--sp-scale));
  --sp-4: calc(16px * var(--sp-scale));
  --sp-5: calc(20px * var(--sp-scale));
  --sp-6: calc(24px * var(--sp-scale));
  --sp-7: calc(32px * var(--sp-scale));   /* ★ 原 light/dark 的 `--sp-8`（值 32）**正名**为 sp-7 ⇒ 零视觉变化 */
  --sp-8: var(--sp-7);                    /* 兼容：历史文件曾用 `--sp-8`，保留为别名（不再单独取值） */

  /* ---------- 圆角三族（皮肤只能**引用族常量**，不得自定义数值） ---------- */
  --r-sharp-sm: 2px;  --r-sharp-md: 3px;  --r-sharp-lg: 5px;  --r-sharp-xl: 7px;  --r-sharp-pill: 3px;
  --r-round-sm: 6px;  --r-round-md: 10px; --r-round-lg: 14px; --r-round-xl: 16px; --r-round-pill: 999px;
  --r-flat-sm:  0px;  --r-flat-md:  1px;  --r-flat-lg:  2px;  --r-flat-xl:  3px;  --r-flat-pill:  0px;

  /* 默认族 ＝ round（原 light／dark／qing／dawn 即此族） */
  --r-sm:   var(--r-round-sm);
  --r-md:   var(--r-round-md);
  --r-lg:   var(--r-round-lg);
  --r-xl:   var(--r-round-xl);
  --r-pill: var(--r-round-pill);
}
