/*
 * 共享设计变量：颜色、字体、间距。大厅与阅读器共用。
 * 只用系统字体栈，不引外部字体（PLAN §2、§9）。
 */
:root {
  /* 字体 */
  /* Noto Serif SC 放在 Source Han Serif SC 之前：有些机器只装了思源宋体的 Heavy 字重，排在前面会让正文全变粗 */
  --font-serif: "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, "SimSun", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;

  /* 字号 */
  --text-s: 0.875rem;
  --text-m: 1rem;
  --text-l: 1.375rem;
  --text-xl: 2rem;
  --leading: 1.7;

  /* 间距 */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --measure: 34em;

  /* 浅色表面（大厅默认，实际由当前小时的 palette 覆盖） */
  --color-paper: #f2f2f2;
  --color-ink: #1b1b1b;
  --color-muted: #5c5c5c;
  --color-line: #cfcfcf;

  /* 深色表面（阅读器）：中性灰，便于判断插画本身的颜色 */
  --viewer-bg: #1e1e1e;
  --viewer-surface: #2a2a2a;
  --viewer-ink: #ececec;
  --viewer-muted: #a8a8a8;
  --viewer-line: #3c3c3c;

  /* 焦点 */
  --focus-width: 2px;
  --focus-offset: 3px;

  /* 动效 */
  --duration-fade: 600ms;
}
