/* =========================================================
   全站字体：Inter（补充 7）+ 图标字体还原。注意本文件的 !important 兜底会被 post.css 补充 43 定向恢复 KaTeX。
   （原 custom.css 拆分；"补充 N" 是历史编号，站内注释按编号引用，不要重排）
   ========================================================= */

/* =========================================================
   补充 7：全站字体换成 Inter（保留图标/代码字体）
    不能用 * 通配，否则 FontAwesome 图标字体被覆盖 → 图标变方块
   ========================================================= */

/*
   文件：source/fonts/Inter-latin.woff2（48KB）。
    Inter 是**可变字体**（wght 轴 100~900）—— Google 那边 400/500/600/700 四个字重
      返回的是**同一个文件**，所以这里只需一条 @font-face 并声明**字重范围**，
      不要按字重拆成四条（拆了也是同一个文件，白白多写三遍）。
    只含拉丁字形：中文靠下面字体栈里的 PingFang SC / 微软雅黑 兜底（与原来一致）。
    字体族的名字必须仍叫 "Inter"，下面那条全站字体规则才不用改。 */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/Inter-latin.woff2') format('woff2');
}

body,
#body-wrap, #nav, #nav a, #nav span, #nav i,
#blog-info, .site-name,
#page-header, #page-header .post-title, #post-info, #post-info *,
#article-container, #article-container p, #article-container li,
#article-container h1, #article-container h2, #article-container h3,
#article-container h4, #article-container h5, #article-container h6,
#article-container table, #article-container th, #article-container td,
#article-container blockquote,
#aside-content, #aside-content *,
#footer, #footer *,
#pagination, #pagination *,
h1, h2, h3, h4, h5, h6, p, a, li, td, th, span, div,
input, textarea, button, select {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 "PingFang SC", "Microsoft YaHei", "微软雅黑", sans-serif !important;
}

/* 图标字体必须还原，且要「压过」上面的文本规则
   （文本规则里有 #nav i 这种带 ID 的选择器，特异性高于 i.fas，
     所以这里必须同样带上 html + 祖先 ID 才能赢）
   
   上面的文本规则里有 `#post-info, #post-info *`（两个都在），
   而这里原来只镜像了 `html #page-header i`；以前 post-info 就住在 #page-header 里，
   靠那条兜住了图标。自从 `disable_top_img: true` 之后，主题把 post-info 渲染到
   `#content-inner > #post > #post-info`（正文卡片内），`html #page-header i` 再也罩不到它，
   于是 `#post-info *`（1,1,0）压过 `html body i.far`（0,1,3）——
   **文章页的「发表于/更新于/作者/分类/总字数」等图标全被换成 Inter 字体，显示成空白**。
   
   同页 #nav 里的图标 font-family 正常，两相对照即可确认。 */
html #nav i, html #nav i[class*="fa"],
html #page-header i, html #page-header i[class*="fa"],
html #post-info i, html #post-info i[class*="fa"],
html #aside-content i, html #aside-content i[class*="fa"],
html #footer i, html #footer i[class*="fa"],
html #pagination i, html #pagination i[class*="fa"],
html body i.fa, html body i.fas, html body i.far, html body i.fab, html body i.fal, html body i.fad,
html body i[class^="fa-"], html body i[class*=" fa-"],
html body .fa, html body .fas, html body .far, html body .fab, html body .fal, html body .fad,
html body [class^="fa-"], html body [class*=" fa-"] {
    font-family: 'Font Awesome 7 Free', 'Font Awesome 6 Free',
                 'Font Awesome 6 Brands', 'Font Awesome 5 Free',
                 'Font Awesome 5 Brands', FontAwesome !important;
}

/* Monaco webfont —— 全平台统一（macOS 优先用系统自带，其它平台走 woff） */
@font-face {
    font-family: 'Monaco';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Monaco'), local('Monaco Regular'),
         url('/fonts/Monaco.woff') format('woff');
}

/* 代码块/行内代码保持等宽字体（Monaco 优先） */
#article-container pre, #article-container pre *,
#article-container code, #article-container code *,
.highlight, .highlight *,
kbd, samp {
    font-family: Monaco, Menlo, Consolas, "Courier New", "PingFang SC", "Microsoft YaHei", monospace !important;
}

/* 只放大正文到 16px（导航/标题/摘要/侧边栏/页脚仍为主题默认 14px） */
#article-container,
#article-container p,
#article-container li,
#article-container blockquote,
#article-container td,
#article-container th {
    font-size: 16px;
}

/* 代码块字号固定 14px（不跟着正文一起放大） */
#article-container pre,
#article-container pre *,
#article-container code,
#article-container code *,
.highlight,
.highlight * {
    font-size: 14px !important;
}

