/* ======================================================================
   全站字体（2026-10-12，用户：「所有的字体都和libtv保持一致」）。
   照 LibTV（liblib.tv）线上那一份逐字抄的：正文是系统字体，只有英文、数字另外加载 Inter（可变字重 100–900、只含拉丁字符）；
   字体栈按界面语言分——中文、英文各一套，其余语言（日 / 法 / 俄）用它的默认那套；等宽字体也是它那一串。
   Windows 上的效果：中文照旧是微软雅黑（装了 Noto Sans SC 的用它），英文、数字、“”…— 这些标点换成 Inter；Mac 上是苹果系统字体 + 苹方。

   **每张页面最先加载这一份**（主页面、控制台、导演台、找回 / 重置密码、用户协议 / 隐私政策，新旧两版），别处一律写 var(--font-text) / var(--font-mono)，
   **别在别的样式表里再写死字体栈**（tests/shell.test.js 扫着）。唯一的例外是侧栏「3D 导演台」里那个「3D」（.sidebar-label-latin，和汉字对齐用的）。
   Inter 是 SIL OFL 开源字体（许可证 fonts/Inter-OFL.txt），文件取自官方发布的 @fontsource-variable/inter 5.3.0，和 LibTV 用的那份逐字节一样（Inter 4.001）。
   地址带 ?v=：静态文件带戳的才给长缓存（StampedStatic），换字体文件时把版本号一起改。
   ====================================================================== */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/inter-latin-wght-normal.woff2?v=4.001") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-text: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* 界面语言由 i18n.js 写在 <html lang> 上（zh-CN / ja / en / fr / ru）。 */
:root:lang(zh) {
  --font-text: -apple-system, BlinkMacSystemFont, "PingFang SC", "Inter", "Noto Sans SC", "Microsoft YaHei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

:root:lang(en) {
  --font-text: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* 字体平滑也照它（只在 Mac 上有区别：文字细一点；Windows 上不起作用）。 */
html,
body {
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
