
/*!
 * fonts-modern-serifhead.css — C 方案（子集優先）
 * Headings: Noto Serif TC Bold (subset) → 罕字 fallback 到 Noto Sans TC
 * Body: Noto Sans TC + Nunito (latin)
 * 字型檔：/themes/quwan/fonts/NotoSerifTC-Bold.subset.woff2
 */

:root{
  --font-body: "Noto Sans TC", Nunito, "PingFang TC", "Microsoft JhengHei", "Heiti TC", Arial, sans-serif;
  --font-heading: "Noto Serif TC", "Noto Sans TC", Nunito, serif;
}

/* Nunito (latin only, variable) */
@font-face{
  font-family: Nunito;
  src: url("/themes/quwan/fonts/Nunito-Var.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  unicode-range:
    U+0000-00FF,
    U+0100-017F,
    U+0180-024F,
    U+02B0-02FF,
    U+1E00-1EFF,
    U+2000-206F,
    U+20A0-20CF,
    U+2100-214F,
    U+2150-218F,
    U+2190-21FF,
    U+2200-22FF,
    U+2300-23FF,
    U+2460-24FF;
}

/* Noto Sans TC */
@font-face{
  font-family: "Noto Sans TC";
  src: url("/themes/quwan/fonts/NotoSansTC-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face{
  font-family: "Noto Sans TC";
  src: url("/themes/quwan/fonts/NotoSansTC-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* Noto Serif TC — Bold for headings (subset only) */
@font-face{
  font-family: "Noto Serif TC";
  src: url("/themes/quwan/fonts/NotoSerifTC-Bold.subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

html{ -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-east-asian: traditional; }
*, *::before, *::after{ font-feature-settings: "locl" 0; }

body{ font-family: var(--font-body); }

h1,h2,h3,h4,h5,h6,
.nav a, .topnav, .menu a,
.btn, .button, .badge, .pill{
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Keep icons safe */
[class^="fa-"], [class*=" fa-"], .fa, .icon, [class^="icon-"], [class*=" icon-"], .iconfont{
  font-family: inherit;
}
