/* 自托管字体 / Self-hosted fonts — no third-party requests (works reliably from mainland China). All SIL OFL 1.1. */
@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
/* Noto Sans SC: variable-weight (200–500) subset containing only the characters used on the site.
   Rebuild with tools/subset-fonts.py after editing Chinese text; missing characters fall back to system fonts. */
@font-face {
  font-family: "Noto Sans SC"; font-style: normal; font-weight: 200 500; font-display: swap;
  src: url("../fonts/noto-sans-sc-subset.woff2") format("woff2");
}
/* Noto Sans TC: same treatment, for the 繁 (Traditional Chinese) view — glyphs for the converted text only. */
@font-face {
  font-family: "Noto Sans TC"; font-style: normal; font-weight: 200 500; font-display: swap;
  src: url("../fonts/noto-sans-tc-subset.woff2") format("woff2");
}
/* "BH Lang": only 简 + 繁 (from Noto Sans SC) for the language toggle — a few KB, same look on every page/language. */
@font-face {
  font-family: "BH Lang"; font-style: normal; font-weight: 200 500; font-display: swap;
  src: url("../fonts/noto-sans-sc-toggle.woff2") format("woff2");
}
