/*
 * 国内化改造：Google Fonts 自托管
 *
 * 原实现（head.htm）直接引用：
 *   <link href="https://fonts.googleapis.com/css?family=Golos+Text:400,500,600&display=swap" rel="stylesheet">
 * fonts.googleapis.com / fonts.gstatic.com 在中国大陆不可达，且该 <link> 位于 <head>
 * 属于「渲染阻塞」资源，浏览器必须等它超时才会首次绘制 —— 表现为首页长时间白屏、打不开。
 *
 * 现改为本地 woff2 自托管。Golos Text 是可变字体（variable font），
 * 400/500/600 三个字重指向同一份文件，因此只需一条 font-weight: 400 600 声明。
 *
 * 中文字形不在该字体中，中文由 CSS 字体栈中的系统字体兜底（见 _variables.scss）。
 */

/* latin-ext */
@font-face {
    font-family: 'Golos Text';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/golos-text/golos-text-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
        U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
        U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Golos Text';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/golos-text/golos-text-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
        U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * 中文兜底字体栈覆盖
 *
 * 已编译的 assets/css/app.css 里字体栈是 `Golos Text,sans-serif`，没有中文字体。
 * 本文件在 head.htm 中排在 app.css 之后加载，选择器与优先级完全相同，
 * 因此这里可以安全地覆盖 font-family（只覆盖字体，不影响 app.css 里的其它属性）。
 *
 * 若日后重新执行 npm run prod 编译（_variables.scss 已同步修正），本段可保留，
 * 结果一致，属于幂等覆盖，不会与编译产物冲突。
 */
body,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.overline, .overline-small {
    font-family: 'Golos Text', "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
        "Source Han Sans SC", "Noto Sans SC", "WenQuanYi Micro Hei", sans-serif;
}
