/* static/css/fonts.css */
@font-face {
  font-family: "server-serif";
  src: url("https://cdn.jsdmirror.cn/gh/Yang-4128/web-fonts-cdn/SourceHanSerifCN-VF.ttf.woff2")
    format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap; /*作用: 避免字体加载期间文字 “隐形”，先用系统字体显示，加载完再替换*/
}

@font-face {
  font-family: "server-sans-serif";
  src: url("https://cdn.jsdmirror.cn/gh/Yang-4128/web-fonts-cdn/SourceHanSansCN-VF.ttf.woff2")
    format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "server-handwrite";
  src: url("../fonts/Caveat-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "server-monospace";
  src: url("../fonts/JetBrainsMono[wght].ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "server-hw";
  src: url("https://cdn.jsdmirror.cn/gh/Yang-4128/web-fonts-cdn/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Regular.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
