/* Fully local/offline font bundle (no external font CDNs). */
@font-face {
    font-family: "Noto Sans SC";
    src: local("Noto Sans SC"), local("NotoSansSC"),
        url("/static/fonts/NotoSansSC-Var.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: optional;
}

@font-face {
    font-family: "Noto Serif SC";
    src: local("Noto Serif SC"), local("NotoSerifSC"),
        url("/static/fonts/NotoSerifSC-Var.ttf") format("truetype");
    font-style: normal;
    font-weight: 200 900;
    font-display: optional;
}

@font-face {
    font-family: "Cinzel";
    src: url("/static/fonts/Cinzel-Var.ttf") format("truetype");
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
}

:root {
    /* System CJK fonts first to avoid forcing huge bundled fonts on first visit. */
    --ga-font-sans: "PingFang SC", "PingFang TC", "Microsoft YaHei",
        "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans CJK TC",
        "Noto Sans JP", "Meiryo", "Segoe UI", "Helvetica Neue", Arial,
        "Noto Sans SC", sans-serif;
    --ga-font-heading: "Cinzel", "Songti SC", "Noto Serif CJK SC",
        "Noto Serif CJK TC", "Noto Serif JP", "Times New Roman", "Georgia",
        "Noto Serif SC", "MS Mincho", serif;
}

html,
body {
    font-family: var(--ga-font-sans);
}

h1,
h2,
h3,
h4,
h5,
h6,
.nav-logo,
.brand-title {
    font-family: var(--ga-font-heading);
}
