/* ============================================================================
   ChipWorld — Self-hosted webfonts (variable, woff2)
   ----------------------------------------------------------------------------
   为什么不用第三方字体 CDN（这是硬要求，不是优化）：
     · 站点前置 DDoS-Guard，目标用户在俄罗斯 → 第三方域名是单点风险
     · 字体是首屏关键路径，多一次外部 DNS+TLS 往返 ≈ 200-600ms
   方案：
     · 三个可变字体族，每族只保留 latin + cyrillic 两个子集 → 共 6 个文件 142.8 KB
     · 用 unicode-range 让浏览器按需加载：俄语页面只下 cyrillic，英文只下 latin
     · font-display: swap：字体未到时先用系统字体渲染，绝不阻塞 LCP
   授权：Inter / Manrope / JetBrains Mono 均为 SIL Open Font License 1.1，可商用可自托管。
   更新方式：重新从 Google Fonts 拉 css2（带 @font-face 的 UA）→ 取 latin/cyrillic 块 → 替换文件。
   ========================================================================== */


/* Inter · cyrillic · weight 400 600 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Inter · latin · weight 400 600 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Manrope · cyrillic · weight 600 800 */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Manrope · latin · weight 600 800 */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono · cyrillic · weight 400 500 */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jbmono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* JetBrains Mono · latin · weight 400 500 */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jbmono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
