/* ---------- 品牌图标字体（本地，不加密） ---------- */

@font-face {
  font-family: "FA Brands";
  src: url("/l/fontawesome/fa-brands-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.fab {
  font-family: "FA Brands";
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  display: inline-block;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fa-weixin::before {
  content: "\f1d7";
}
.fa-qq::before {
  content: "\f1d6";
}
.fa-bilibili::before {
  content: "\e3d9";
}
.fa-github::before {
  content: "\f09b";
}

/* ============================================
   自托管字体（OFL）

   主源：https://k.wwz.life:8888/uploads/
        用户自己的服务器，国内可直连，已开启 CORS
   兜底：/h/fonts/ 同名本地副本，主源失败时浏览器自动改用

   图标字体 fa-brands-400.woff2 只存在于本地 /l/fontawesome/，
   上传目录里没有这个文件（404），所以它只有本地一个源。
   ============================================ */

/* Fraunces · 展示衬线（可变） */
@font-face {
  font-family: "Fraunces";
  src: url("https://k.wwz.life:8888/uploads/Fraunces-Variable.woff2")
      format("woff2"),
    url("/h/fonts/Fraunces-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("https://k.wwz.life:8888/uploads/Fraunces-Variable-Italic.woff2")
      format("woff2"),
    url("/h/fonts/Fraunces-Variable-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* Maple Mono · 等宽 */
@font-face {
  font-family: "Maple Mono";
  src: url("https://k.wwz.life:8888/uploads/MapleMono-Regular.woff2")
      format("woff2"),
    url("/h/fonts/MapleMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Maple Mono";
  src: url("https://k.wwz.life:8888/uploads/MapleMono-Medium.woff2")
      format("woff2"),
    url("/h/fonts/MapleMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Maple Mono";
  src: url("https://k.wwz.life:8888/uploads/MapleMono-SemiBold.woff2")
      format("woff2"),
    url("/h/fonts/MapleMono-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* LXGW WenKai · 中文文艺 */
@font-face {
  font-family: "LXGW WenKai";
  src: url("https://k.wwz.life:8888/uploads/LXGWWenKai-Regular-GB2312.woff2")
      format("woff2"),
    url("/h/fonts/LXGWWenKai-Regular-GB2312.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LXGW WenKai";
  src: url("https://k.wwz.life:8888/uploads/LXGWWenKai-Light-GB2312.woff2")
      format("woff2"),
    url("/h/fonts/LXGWWenKai-Light-GB2312.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LXGW WenKai";
  src: url("https://k.wwz.life:8888/uploads/LXGWWenKai-Medium-GB2312.woff2")
      format("woff2"),
    url("/h/fonts/LXGWWenKai-Medium-GB2312.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", "Songti SC", SimSun,
    serif;
  --font-mono: "Maple Mono", ui-monospace, "SF Mono", "JetBrains Mono",
    Consolas, monospace;
  --font-cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, sans-serif;
  --font-kai: "LXGW WenKai", "Songti SC", SimSun, "STSong", serif;
}

/* Instrument Serif · 细锐衬线（浅色主题） */
@font-face {
  font-family: "Instrument Serif";
  src: url("https://k.wwz.life:8888/uploads/InstrumentSerif-Regular.woff2")
      format("woff2"),
    url("/h/fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("https://k.wwz.life:8888/uploads/InstrumentSerif-Italic.woff2")
      format("woff2"),
    url("/h/fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Playfair Display · 古典高对比衬线（深色主题） */
@font-face {
  font-family: "Playfair Display";
  src: url("https://k.wwz.life:8888/uploads/PlayfairDisplay-Variable.woff2")
      format("woff2"),
    url("/h/fonts/PlayfairDisplay-Variable.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("https://k.wwz.life:8888/uploads/PlayfairDisplay-Variable-Italic.woff2")
      format("woff2"),
    url("/h/fonts/PlayfairDisplay-Variable-Italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
