/* ============================================================================
 * 智序 ZhiXu · 本地自托管字体 (V0.7-10 · #10 零外部依赖)
 *
 * 替代原 01-login.html 的 fonts.loli.net 外链 → 运行时零外部调用。
 *
 * 字体文件 (woff2) 不在 git 里,需跑 `assets/fonts/fetch-fonts.sh` 拉取到本目录。
 * woff2 缺失时:font-display:swap + login.css 的 --font-* 系统字体栈自动兜底
 *   (PingFang SC / 系统 serif / SF Mono 等),页面照常,只是非 Inter/Noto 精确外观。
 * 所以"零外部依赖"在删外链那刻即达成;woff2 是外观保真增强。
 *
 * 路径相对本 css:woff2 与本文件同目录 (assets/fonts/)。
 * ========================================================================== */

/* ---- Inter (Latin sans · body) ---- */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('./inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('./inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('./inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('./inter-700.woff2') format('woff2');
}

/* ---- JetBrains Mono (Latin mono · 代码/编码) ---- */
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('./jetbrains-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('./jetbrains-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('./jetbrains-mono-600.woff2') format('woff2');
}

/* ---- Noto Serif SC (CJK serif · 登录 hero 大字) ----
 * ⚠ CJK 全量 woff2 体积大(数 MB)。建议 fetch-fonts.sh 用 pyftsubset
 *   按 01-login.html 实际中文字符子集化 → 每字重几十 KB。
 * 若未子集化/未拉取 → 自动回落 login.css --font-serif 的系统 serif。 */
@font-face {
  font-family: 'Noto Serif SC'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('./noto-serif-sc-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Serif SC'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('./noto-serif-sc-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Serif SC'; font-style: normal; font-weight: 900; font-display: swap;
  src: url('./noto-serif-sc-900.woff2') format('woff2');
}
