/* 試玩不下載網頁字型。內文用系統黑體，國三標題用系統宋體。 */

:root {
  --font-sans: "PingFang TC", "Hiragino Sans CNS", "Microsoft JhengHei", "Noto Sans CJK TC", "WenQuanYi Micro Hei", sans-serif;
  --font-display: "Songti TC", "PMingLiU", "Noto Serif CJK TC", "Songti SC", serif;
  --font-serif: "Songti TC", "PMingLiU", "Noto Serif CJK TC", "Songti SC", serif;
}

[data-theme="g5"] {
  --font-display: "PingFang TC", "Hiragino Maru Gothic ProN", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif;
}

[data-theme="g9"] {
  --font-display: "Songti TC", "PMingLiU", "Noto Serif CJK TC", "Songti SC", serif;
}

html,
body {
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
}

/* ---------- 自架 jf open 粉圓（選擇性） ----------
 * Google Fonts 的 Huninn 與 justfont 官方「jf open 粉圓 2.1」幾乎相同，
 * 但字重與部分字形略有差異。若要鎖定 2.1 原檔，請自 GitHub Release 下載
 * https://github.com/justfont/open-huninn-font/releases/tag/v2.1
 * 將 woff2 放到 ./fonts/ 並改用下面這段，同時請一併附上 OFL 授權全文。
 *
 * @font-face {
 *   font-family: "jf-openhuninn";
 *   font-style: normal;
 *   font-weight: 400;
 *   font-display: swap;
 *   src: url("./fonts/jf-openhuninn-2.1.woff2") format("woff2");
 * }
 * [data-theme="g5"] {
 *   --font-display: "jf-openhuninn", "Huninn", "Noto Sans TC", sans-serif;
 * }
 */
