/* ============================================================
   hyboox-type.css —— 海博社「海博X」字体方案（70-F 落地版）
   来源：/home/hyboox/proto/hyboox-type.css，字号/行高/字重/命名沿用原值，
   不进 gulp 构建（default.hbs 的 </head> 前单独 <link>，见该文件改动）。
   70-F（董哥 9/21 定）：Chirp 方案作废（69-F 续 (B) 曾接入过，本次整体
   替换），改用旧站 Ghost 后台 Typography 的原生字体组合：标题 Inter，
   正文 Noto Sans，均为开源字体（OFL），文件来自
   /home/hyboox/proto/fonts-ghost/。
   文件里的语义类名（.hb-post-text/.hb-meta/.hb-column-title 等）主题现有
   模板里大部分仍没有对应元素在用（核对结果见 69-F 续回报），维持现状，
   不发明新结构；70-F 新增的部分仅针对卡面点名的四类真实标题元素。
   ============================================================ */

/* ---------- 1. 字体本体：Inter（标题，可变字体）+ Noto Sans（正文，
   400/700 两档），来自 /home/hyboox/proto/fonts-ghost/ ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("../fonts/noto-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("../fonts/noto-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- 2. 字体栈 ---------- */
:root {
  --hb-font-sans:
    "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --hb-font-display:
    "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* 中文不在 Inter / Noto Sans 的拉丁字符集覆盖范围内，由系统字体接管，
     Mac 落到苹方、Windows 落到微软雅黑。此处不做任何干预。 */

  /* ---------- 3. 字号 / 行高（原值不变） ---------- */
  --hb-fs-meta:     13px;  --hb-lh-meta:     16px;
  --hb-fs-body:     15px;  --hb-lh-body:     20px;
  --hb-fs-read:     17px;  --hb-lh-read:     24px;
  --hb-fs-title:    20px;  --hb-lh-title:    24px;
  --hb-fs-section:  23px;  --hb-lh-section:  28px;
  --hb-fs-display:  31px;  --hb-lh-display:  36px;

  /* ---------- 4. 字重（原值不变） ---------- */
  --hb-fw-regular: 400;
  --hb-fw-medium:  500;
  --hb-fw-bold:    700;
  --hb-fw-heavy:   800;
}

/* ---------- 5. 全局基线 ---------- */
body {
  font-family: var(--hb-font-sans);
  font-size: var(--hb-fs-body);
  line-height: var(--hb-lh-body);
  font-weight: var(--hb-fw-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- 6. 语义化排版类（主题现有模板暂无对应元素，先定义，不挂用） ---------- */
.hb-meta        { font-size: var(--hb-fs-meta);  line-height: var(--hb-lh-meta); }
.hb-post-text   { font-size: var(--hb-fs-body);  line-height: var(--hb-lh-body); }
.hb-post-text--focus { font-size: var(--hb-fs-read); line-height: var(--hb-lh-read); }
.hb-author-name { font-size: var(--hb-fs-body);  line-height: var(--hb-lh-body); font-weight: var(--hb-fw-bold); }
.hb-handle      { font-size: var(--hb-fs-body);  line-height: var(--hb-lh-body); font-weight: var(--hb-fw-regular); }
.hb-btn         { font-size: var(--hb-fs-body);  line-height: var(--hb-lh-body); font-weight: var(--hb-fw-bold); }
.hb-nav-item    { font-size: var(--hb-fs-title); line-height: var(--hb-lh-title); font-weight: var(--hb-fw-regular); }
.hb-nav-item.is-active { font-weight: var(--hb-fw-bold); }

.hb-column-title  { font-size: var(--hb-fs-title);   line-height: var(--hb-lh-title);   font-weight: var(--hb-fw-heavy); }
.hb-section-title { font-size: var(--hb-fs-section); line-height: var(--hb-lh-section); font-weight: var(--hb-fw-heavy); }
.hb-display {
  font-family: var(--hb-font-display);
  font-size: var(--hb-fs-display);
  line-height: var(--hb-lh-display);
  font-weight: var(--hb-fw-heavy);
}

/* 正文详情页沿用 17/24，不额外放松行高 */
.hb-article { font-size: var(--hb-fs-read); line-height: var(--hb-lh-read); }

/* ---------- 7. 70-F：标题挂上 --hb-font-display（董哥 9/21 定，四类）----------
   文章详情页标题 [data-post-title]（post.hbs）；栏目页标题
   .hx-watchlist-header strong（个股栏目名——常规栏目页只有栏目条 tab，没有
   独立标题文字，不发明新结构）；区块标题 .hx-account-section h2（个人资料
   三分区）与 .hx-subscribe-card h2（订阅/金三股产品介绍块）；海博日历页
   标题与账单/评论/收藏/账户/管理员权限共用同一个页头组件
   .hx-bookmarks-header h1，一并覆盖。只改 font-family，字号/行高/字重
   不动（各自原有规则已定）。 */
[data-post-title],
.hx-watchlist-header strong,
.hx-bookmarks-header h1,
.hx-account-section h2,
.hx-subscribe-card h2 {
  font-family: var(--hb-font-display);
}
