/* ============================================================
   Inter 自托管（lazydraw.cn）
   ------------------------------------------------------------
   原来 index.html 从 fonts.googleapis.com 引 stylesheet，
   该域名在大陆不可达，而 stylesheet 是渲染阻塞资源，
   浏览器要等它超时才继续渲染首屏（通常 5~20 秒）。
   改为本地 woff2 + font-display: swap：
     · 不再阻塞渲染（字体异步加载，先显示系统字体）
     · 视觉与原来一致（同一款 Inter，latin 子集；
       中文本来就回落到系统字体，行为和以前完全相同）

   为什么单独放成 public/fonts/fonts.css，而不是写进 src/index.css：
     src/index.css 会被 PostCSS 处理，Vite 会扫描里面的 url() 并调用
     publicFileToBuiltUrl → crypto.hash()。crypto.hash 是 Node 20.12+
     / 21.7+ 才有的 API，服务器上的 Node 版本较老，构建会直接报
     "crypto.hash is not a function" 失败。
     这个文件在 public/ 下，不经 Vite 处理，跟 Node 版本无关。
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-latin-700.woff2') format('woff2');
}
