/* Hallmark · macrostructure: Stat-Led · tone: editorial · anchor hue: 39 (terracotta)
 * palette: SDesign warm-humanist/claude — 色值锁定，未自行发明任何颜色
 * accent 占用 < 3% 视口；正文对比度 16.7:1；小字强调色用 --color-accent-ink (4.57:1)
 */

/* ─────────── 字体 ───────────
 * 三族上限（Hallmark 闸门 37）：Fraunces（拉丁展示）+ Noto Serif SC（中文标题）
 * + Noto Sans SC（正文）。
 * 全部本地托管，无任何外部请求。子集由 tools/build-fonts.py 生成。
 * 两个 Noto 都是**可变字体**，一个文件覆盖全字重区间，CSS 里可自由用 400–700。
 *
 * 注意：这里刻意**没有**引入等宽字体。原先的 JetBrains Mono 只用在两个小标签上，
 * 而那两处文字都是中文（「[机器人名称] · 运行记录」「二维码占位」），
 * 等宽字体没有对应字形、实际一直在回退到本字体，属于纯占位负担，故移除。
 * 小标签的「技术感」改用字号 + 字距 + 大写字形来表达。
 */
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces.woff2') format('woff2-variations');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Serif SC';
  src: url('fonts/noto-serif-sc.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans SC';
  src: url('fonts/noto-sans-sc.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ── 色板（SDesign warm-humanist/claude 精确值）── */
  --color-paper:         #f5f4ed;   /* oklch(96.6% 0.0093 100.0) */
  --color-surface:       #faf9f5;   /* oklch(98.2% 0.0054  95.1) */
  --color-border:        #f0eee6;   /* oklch(94.8% 0.0109  95.2) */
  --color-ink:           #141413;   /* oklch(19.1% 0.0020 106.6) */
  --color-ink-2:         #3d3d3a;   /* oklch(35.9% 0.0051 106.7) */
  --color-ink-3:         #5e5d59;   /* oklch(47.8% 0.0064  95.2) */

  /* 强调色：原值 #c96442 在奶油底上仅 3.54:1，够大字与边框，不够正文小字。
     故拆成两个同色相 token，语义不同、取值不同。 */
  --color-accent:        #c96442;   /* 大字 / 边框 / 焦点环（3.54:1，达 3:1 门槛） */
  --color-accent-ink:    #b35230;   /* 小字 / 链接文字（4.57:1，达 4.5:1 门槛） */
  --color-accent-wash:   #f7ece7;   /* 极浅底纹，仅用于 1 处 */

  --color-rule:          #ddd9cd;   /* 可见分隔线（hairline 的实色版） */
  --color-focus:         #b35230;

  /* ── 字体 ── */
  --font-display: 'Fraunces', 'Noto Serif SC', Georgia, 'Songti SC', serif;
  --font-body:    'Noto Sans SC', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-serif:   'Noto Serif SC', Georgia, 'Songti SC', serif;

  /* ── 间距（4pt 栅格）── */
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 7rem;

  /* ── 字号（比 1.25，major third）── */
  --text-xs:     0.78rem;
  --text-sm:     0.875rem;
  --text-base:   1.0625rem;   /* 17px */
  --text-lg:     1.3125rem;
  --text-xl:     1.65rem;
  --text-2xl:    2.05rem;
  --text-3xl:    2.6rem;
  --text-4xl:    3.25rem;
  --text-display: clamp(3.5rem, 13vw, 8.5rem);   /* 数字卡专用 */

  /* ── 行高 ── */
  --lh-display: 0.88;
  --lh-tight:   1.10;
  --lh-snug:    1.35;
  --lh-body:    1.65;

  /* ── 圆角（SDesign 指定：卡片 16px，按钮 12px）── */
  --radius-card:   16px;
  --radius-button: 12px;
  --radius-pill:   999px;

  /* ── 动效 ── */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro:   120ms;
  --dur-short:   220ms;
  --dur-long:    420ms;

  /* ── 版心 ── */
  --measure: 64ch;
  --page-max: 74rem;
}
