/* ============================================================
 * 自托管字体（2026-11-12）
 * ------------------------------------------------------------
 * 背景：原本通过第三方 CDN 加载（Google Fonts / 清华 TUNA 镜像）。
 * - Google Fonts 在国内不稳定；TUNA 镜像在国外又慢；
 * - 每个页面额外付出 2 个 preconnect + 2 个跨域样式表请求；
 * - 工具页还多请求一个 Inter，但 CSS 里从未使用（纯浪费）。
 *
 * 方案：改为同源托管 latin 子集（Space Grotesk 22KB + JetBrains Mono 31KB），
 * 国内外访问路径完全一致，且可被 HTTP/2 复用、浏览器长缓存。
 * 中文本身不在字体文件内，仍走系统字体，无需额外下载。
 * ============================================================ */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./space-grotesk-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./space-grotesk-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./space-grotesk-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./space-grotesk-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./jetbrains-mono-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./jetbrains-mono-latin.woff2') format('woff2');
}
