/* ============================================================================
 * 自托管字体（子集化）· 三端共用
 * ----------------------------------------------------------------------------
 * 原先各端通过 fx.css 从 cdn.jsdelivr.net 拉 Geist / Space Grotesk 的完整
 * latin 字符集（117KB、4 个请求、外部依赖）。这里换成同目录 fonts/ 下的
 * 子集版：只保留 ASCII + 常用符号，共 42KB，零外部请求。
 *
 * family 名特意区别于 fx.css 里的 "Geist FX" / "Grotesk FX"：不同名，
 * fx.css 那几条 @font-face 就不会被浏览器取用（只有 font-family 命中才下载）。
 * 本文件必须放在 fx.css 之后加载，--font / --font-display 才能生效。
 * ==========================================================================*/

@font-face {
  font-family: "RH Geist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/geist-400.woff2") format("woff2");
}
@font-face {
  font-family: "RH Geist";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/geist-600.woff2") format("woff2");
}
@font-face {
  font-family: "RH Geist";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/geist-700.woff2") format("woff2");
}
@font-face {
  font-family: "RH Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/grotesk-700.woff2") format("woff2");
}

:root {
  --font: "RH Geist", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB",
          sans-serif;
  --font-display: "RH Grotesk", var(--font);
}
