/* 全站自托管字体统一入口：index.html / index_ssr.html 以非阻塞方式引入（media="print" + onload 切换）。
   blog 首页：Fraunces / Manrope / JetBrains Mono；
   tools MoyuHot Bold 系统：Bagel Fat One / Fraunces / Ma Shan Zheng / Space Mono / ZCOOL KuaiLe；
   tools 基础：Geist / JetBrains Mono。
   woff2 均存 public/fonts/（来源与许可见同目录 SOURCES.md / OFL-1.1.txt）。 */

/* --- MoyuHot Bold 系统（原 github-trending / trend-radar / about 页内 @font-face 提升） --- */
@font-face {
  font-family: 'Bagel Fat One';
  src: url('/fonts/bagel-fat-one-ui.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-ui.woff2') format('woff2');
  font-display: swap;
  font-weight: 400 600;
}

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-italic-ui.woff2') format('woff2');
  font-display: swap;
  font-style: italic;
  font-weight: 400 600;
}

/* 只含站内标题实际用到的 ~175 个字（35KB，原 common-cn 版 1.5MB）：由 scripts/subset-ma-shan-zheng.py 生成，
   新增用此字体的标题文字后重跑脚本并更新这里的 unicode-range；范围外的字不下载本字体，回落到 CSS 后备字体。 */
@font-face {
  font-family: 'Ma Shan Zheng';
  src: url('/fonts/ma-shan-zheng-display.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+21-7E, U+B7, U+2014, U+2018-2019, U+201C-201D, U+2026, U+3001-3002, U+300A-300B, U+4E00, U+4E03, U+4E0A-4E0B, U+4E48, U+4E8E, U+4EC0, U+4ECA, U+4F5C, U+5143, U+5168, U+516B, U+5173, U+5177, U+518C, U+521B, U+5230, U+5269, U+52BF, U+534A, U+53C8, U+53D1, U+53F7, U+540D, U+542C, U+5668, U+56FE, U+5728, U+5929, U+5BC6, U+5C0F, U+5DE5, U+5F55, U+5FD8, U+60C5, U+60F3, U+6237, U+62A5, U+6478, U+65F6, U+662F, U+6765, U+6B21, U+6C14, U+6CE8, U+6EE1, U+70AC, U+7247, U+73ED, U+7528, U+767B, U+7684, U+7801, U+7BB1, U+7EBF, U+7F16, U+7F51, U+8424, U+8BB0, U+8D26, U+8D8B, U+8F91, U+9C7C, U+FF01, U+FF08-FF09, U+FF0C, U+FF1A-FF1B, U+FF1F;
}

@font-face {
  font-family: 'Space Mono';
  src: url('/fonts/space-mono-regular-ui.woff2') format('woff2');
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: 'Space Mono';
  src: url('/fonts/space-mono-bold-ui.woff2') format('woff2');
  font-display: swap;
  font-weight: 700;
}

@font-face {
  font-family: 'ZCOOL KuaiLe';
  src: url('/fonts/zcool-kuaile-ui.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'ZCOOL KuaiLe';
  src: url('/fonts/zcool-kuaile-stats-cn.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+8FD1, U+9879;
}

/* --- tools 基础字体（原 styles/index.css 的 googleapis @import 自托管） --- */
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-latin.woff2') format('woff2');
  font-display: swap;
  font-weight: 400 700;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-display: swap;
  font-weight: 400 600;
  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;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  font-display: swap;
  font-weight: 400 600;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- blog 首页字体（原 index.html 的 googleapis 链接自托管） --- */
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  font-display: swap;
  font-weight: 400 700;
  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;
}

@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin-ext.woff2') format('woff2');
  font-display: swap;
  font-weight: 400 700;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
