/* ============================================================
   码集 Codeset · 自托管字体 @font-face
   把对应 .woff2 文件放入同级 ./fonts/ 目录即可（命名见 fonts/README.md）。
   CJK（Noto Sans SC）体积大，已用 font-display:swap；如需进一步优化可做子集化。
   ============================================================ */

/* ---------- Hanken Grotesk（西文标题/正文）---------- */
@font-face {
  font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('./fonts/hanken-grotesk-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('./fonts/hanken-grotesk-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('./fonts/hanken-grotesk-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('./fonts/hanken-grotesk-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('./fonts/hanken-grotesk-800.woff2') format('woff2');
}

/* ---------- JetBrains Mono（价格/激活码/标签/时间戳）---------- */
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('./fonts/jetbrains-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('./fonts/jetbrains-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('./fonts/jetbrains-mono-600.woff2') format('woff2');
}

/* ---------- Noto Sans SC（中文）----------
   CJK 字体体积大（每字重数 MB）。建议方案：
   1) 用 google-webfonts-helper 下载完整 woff2，放入 ./fonts/；或
   2) 生产环境对 CJK 保留 Google CDN（首屏更快），仅西文/mono 自托管；或
   3) 用 fonttools 子集化为站点实际用到的字符集。
   下面按完整 woff2 命名。 */
@font-face {
  font-family: 'Noto Sans SC'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('./fonts/noto-sans-sc-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans SC'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('./fonts/noto-sans-sc-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans SC'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('./fonts/noto-sans-sc-700.woff2') format('woff2');
}
