/* ============================================================================
 * 自托管字体（子集化）· 前后台共用
 * ----------------------------------------------------------------------------
 * 原先各端通过 fx.css 从 cdn.jsdelivr.net 拉 Geist / Space Grotesk 的完整
 * latin 字符集（117KB、4 个请求、外部依赖）。国内访问 jsdelivr 常年不稳，
 * 一旦超时就整站回退系统字体——那正是「字体发虚、观感廉价」的直接来源。
 * 这里换成同目录 fonts/ 下的子集版：只保留 ASCII + 常用符号，共 42KB，
 * 走 nginx 长缓存，零外部请求。
 *
 * family 名特意区别于 fx.css 里的 "Geist FX" / "Grotesk FX"：不同名，
 * fx.css 那几条 @font-face 就不会被浏览器取用（只有 font-family 命中才下载）。
 * 本文件必须放在 fx.css 之后加载，--font / --font-display 才能生效。
 * ==========================================================================*/

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

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