/* css/fonts.css — Color Studio v2 字体层：本地 woff2 资产 + 排版令牌默认值
   只含字体声明块与 :root 默认变量；不含选择器样式，不含远程引用。
   字族集合 = assets/fonts/*.woff2 实际打包的 6 字族（Inter / IBM Plex Sans / Source Serif 4 /
   Space Grotesk / JetBrains Mono / Nunito Sans），每族 400 + 700 = 12 条字体声明。
   资产为变量字体（OpenType fvar/gvar/avar）：每族只打包 1 个 -400.woff2，700 规则的 src 复用同一文件，
   由 font-weight 描述符取 wght 轴实例（400 → wght=400，700 → wght=700），非独立字重文件。
   消费方：css/studio.css（T11 起）。 */

/* std: STD-URL | 项目约定「零外部请求 / 外部 URL 白名单」（2026-11-18，AC9）| 6 字族 latin 子集 woff2 全部本地落盘，本文件零远程引用 */
/* std: STD-CSSFONTS3 | CSS Fonts Module Level 3 W3C Recommendation 2018-09-20 | 字体声明块的 font-family / src(format woff2) / 码位子集语义；家族回退顺序 = 西文族 → 系统中文字族 → 通用族 */

/* ── Inter ───────────────────────────────────────────────────────────────── */

/* std: STD-FONTDISPLAY | CSS Fonts Module Level 4 — font-display（版本 UNVERIFIED，无 REC 版本，按 2026 现行实现行为使用）| 下列每条字体声明块均声明 font-display:swap，避免 FOIT；首屏系统栈先渲染 */
/* std: STD-OPENTYPE | WOFF 2.0 W3C Recommendation 2018-03-01 | Inter latin 子集 woff2，format("woff2") + 码位子集（不含 CJK 区）；swap 策略（STD-FONTDISPLAY，版本 UNVERIFIED）避免 FOIT */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* std: STD-OPENTYPE | WOFF 2.0 W3C Recommendation 2018-03-01 | Inter latin 子集 woff2，format("woff2") + 码位子集（不含 CJK 区）；swap 策略（STD-FONTDISPLAY，版本 UNVERIFIED）避免 FOIT */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/inter-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── IBM Plex Sans ───────────────────────────────────────────────────────── */

/* std: STD-OPENTYPE | WOFF 2.0 W3C Recommendation 2018-03-01 | IBM Plex Sans latin 子集 woff2，format("woff2") + 码位子集（不含 CJK 区）；swap 策略（STD-FONTDISPLAY，版本 UNVERIFIED）避免 FOIT */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* std: STD-OPENTYPE | WOFF 2.0 W3C Recommendation 2018-03-01 | IBM Plex Sans latin 子集 woff2，format("woff2") + 码位子集（不含 CJK 区）；swap 策略（STD-FONTDISPLAY，版本 UNVERIFIED）避免 FOIT */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Source Serif 4 ──────────────────────────────────────────────────────── */

/* std: STD-OPENTYPE | WOFF 2.0 W3C Recommendation 2018-03-01 | Source Serif 4 latin 子集 woff2，format("woff2") + 码位子集（不含 CJK 区）；swap 策略（STD-FONTDISPLAY，版本 UNVERIFIED）避免 FOIT */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/source-serif-4-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* std: STD-OPENTYPE | WOFF 2.0 W3C Recommendation 2018-03-01 | Source Serif 4 latin 子集 woff2，format("woff2") + 码位子集（不含 CJK 区）；swap 策略（STD-FONTDISPLAY，版本 UNVERIFIED）避免 FOIT */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/source-serif-4-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Space Grotesk ───────────────────────────────────────────────────────── */

/* std: STD-OPENTYPE | WOFF 2.0 W3C Recommendation 2018-03-01 | Space Grotesk latin 子集 woff2，format("woff2") + 码位子集（不含 CJK 区）；swap 策略（STD-FONTDISPLAY，版本 UNVERIFIED）避免 FOIT */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* std: STD-OPENTYPE | WOFF 2.0 W3C Recommendation 2018-03-01 | Space Grotesk latin 子集 woff2，format("woff2") + 码位子集（不含 CJK 区）；swap 策略（STD-FONTDISPLAY，版本 UNVERIFIED）避免 FOIT */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── JetBrains Mono ──────────────────────────────────────────────────────── */

/* std: STD-OPENTYPE | WOFF 2.0 W3C Recommendation 2018-03-01 | JetBrains Mono latin 子集 woff2，format("woff2") + 码位子集（不含 CJK 区）；swap 策略（STD-FONTDISPLAY，版本 UNVERIFIED）避免 FOIT */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* std: STD-OPENTYPE | WOFF 2.0 W3C Recommendation 2018-03-01 | JetBrains Mono latin 子集 woff2，format("woff2") + 码位子集（不含 CJK 区）；swap 策略（STD-FONTDISPLAY，版本 UNVERIFIED）避免 FOIT */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Nunito Sans ─────────────────────────────────────────────────────────── */

/* std: STD-OPENTYPE | WOFF 2.0 W3C Recommendation 2018-03-01 | Nunito Sans latin 子集 woff2，format("woff2") + 码位子集（不含 CJK 区）；swap 策略（STD-FONTDISPLAY，版本 UNVERIFIED）避免 FOIT */
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/nunito-sans-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* std: STD-OPENTYPE | WOFF 2.0 W3C Recommendation 2018-03-01 | Nunito Sans latin 子集 woff2，format("woff2") + 码位子集（不含 CJK 区）；swap 策略（STD-FONTDISPLAY，版本 UNVERIFIED）避免 FOIT */
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/nunito-sans-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── 排版令牌默认值（= js/fonts.js 的 modern 预设，T09 逐值对齐） ─────────── */

/* std: STD-CLREQ | clreq（Requirements for Chinese Text Layout）中文排版需求（版本 UNVERIFIED）| 中文行高 1.5–2.0 区间，默认 1.75；中英混排以系统中文字族回退栈收尾，字距不破坏可读性 */
:root {
  --font-display: "Inter","PingFang SC","HarmonyOS Sans SC","MiSans","Microsoft YaHei","Source Han Sans SC",sans-serif;
  --font-body: "Inter","PingFang SC","HarmonyOS Sans SC","MiSans","Microsoft YaHei","Source Han Sans SC",sans-serif;
  --font-mono: "JetBrains Mono",ui-monospace,Menlo,Consolas,monospace;
  --text-base: 16px;
  --text-scale-ratio: 1.25;
  --leading-cjk: 1.75;
  --leading-latin: 1.55;
  --tracking-display: -0.011em;
}
