/* lens0 · 字体（7 个 woff2 / 5 个字体族）
 *
 * 移植自 lynuxbak/public/assets/css/fonts.css（原文件指向 /assets/fonts/）。
 * 这里改成相对路径 ../fonts/：主题打包后的整份 CSS 落在同级目录 css/theme.css，
 * 相对路径不变，所以源文件与产物用同一份 url()。
 *
 *   Collapse         400/700  正文
 *   Rules Compressed 400/600  标签、徽章、h3
 *   Rules Expanded   400/700  标题、h1/h2
 *   Mondwest         400      元信息、导航、页脚（大写 + 字间距）
 */

@font-face {
    font-family: 'Collapse';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Collapse-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Collapse';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Collapse-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Rules Compressed';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/RulesCompressed-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Rules Compressed';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/RulesCompressed-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Rules Expanded';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/RulesExpanded-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Rules Expanded';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/RulesExpanded-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Mondwest';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Mondwest-Regular.woff2') format('woff2');
}

/* 字体角色 token：中文走系统 CJK 栈兜底（woff2 里没有汉字） */
:root,
:root[data-theme="dark"] {
    --font-sans: 'Collapse', -apple-system, BlinkMacSystemFont, "PingFang SC",
                 "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
    --font-rules-compressed: 'Rules Compressed', var(--font-sans);
    --font-rules-expanded: 'Rules Expanded', var(--font-sans);
    --font-mondwest: 'Mondwest', var(--font-sans);
}
