/* =============================================================
 * 自托管字体（本地化，不再依赖 fonts.googleapis.com / gstatic.com）
 * family 名与全局变量 --font-display / --font-sans / --font-mono 保持一致：
 *   "Fraunces" (display) / "Noto Serif SC" (display 中文回退)
 *   "Noto Sans SC" (正文)  / "Space Mono" (等宽)
 * 文件位于 /fonts/ ，由 _proxy.js (8123) 与 Nginx 静态提供（font/woff2）。
 * CJK 已子集化为 GB2312 常用字 + 站点实际用字 + 常用符号（可变轴保留），
 * 覆盖日常中文 99.9%；罕见字回退系统字体，不影响阅读。
 * ============================================================= */

/* ---------- Fraunces（拉丁显示体，仅拉丁字形） ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/fraunces-400.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-600.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/fraunces-700.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/fraunces-400italic.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-600italic.woff2") format("woff2");
}

/* ---------- Space Mono（等宽，仅拉丁字形） ---------- */
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/space-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/space-mono-700.woff2") format("woff2");
}

/* ---------- Noto Sans SC（正文中文，可变轴 100–900，GB2312 子集） ---------- */
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/NotoSansSC.woff2") format("woff2");
}

/* ---------- Noto Serif SC（标题中文回退，可变轴 100–900，GB2312 子集） ---------- */
@font-face {
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/NotoSerifSC.woff2") format("woff2");
}
