/* ============================================================
   Self-hosted Inter font face declarations
   ============================================================
   目的:
   - 把 jsdelivr / Google Fonts 的 Inter 改成本地服务,消除第三方
     DNS + TLS 阻塞,稳定 LCP。
   - font-display: swap 避免 FOIT (内容先用 system font 渲染,
     字体到了再无感切换)。
   - 加载顺序: <link rel="stylesheet" href="css/fonts.css"> 必须
     在 tokens.css 之前(tokens.css 引用 var(--font-family) 时
     已经能解析到 Inter)。

   文件位置: public/assets/fonts/
     - Inter-Regular.woff2
     - Inter-SemiBold.woff2
     - Inter-Bold.woff2

   如果文件缺失(下载失败),会回退到 system-ui (浏览器默认)。
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/Inter-Bold.woff2') format('woff2');
}
