/* =====================================================================
   水渠随笔 shuiqu.fun · 设计令牌（Design Tokens）
   方向：杂志编辑 Editorial × 等宽数字工业点缀
   双主题：主站「水渠随笔」水青蓝 ｜ 作品页「活水」琥珀橙（.theme-amber）
   底色：暖白米（拒绝纯白）｜文字：暖近黑
   ===================================================================== */
:root {
  /* 语义色 */
  --color-bg: #faf7f2;
  --color-surface: #fffdf9;
  --color-surface-2: #f3ede3;
  --color-ink: #1f1d1a;
  --color-text: #1f1d1a;
  --color-muted: #6f6a61;
  --color-faint: #a49d92;

  /* 强调（主站默认：水青蓝 · 水意象；仅关键动作与记忆元素） */
  --color-accent: #0f766e;
  --color-accent-deep: #0b5d57;
  --color-accent-soft: rgba(15, 118, 110, 0.09);
  --color-accent-line: rgba(15, 118, 110, 0.35);

  /* 深底区（技术蓝图 / 页脚） */
  --color-ink-bg: #1c1916;
  --color-ink-bg-2: #262220;
  --color-ink-text: #f2ede4;
  --color-ink-muted: #8f887d;

  /* 线 */
  --color-border: rgba(31, 29, 26, 0.14);
  --color-border-strong: rgba(31, 29, 26, 0.3);
  --color-border-ink: rgba(242, 237, 228, 0.16);

  /* 字体 */
  --font-display: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'SimSun', serif;
  --font-body: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', 'Cascadia Code', Consolas, monospace;

  /* 模块化字阶（1.25） */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5625rem;
  --text-2xl: 1.9531rem;
  --text-3xl: 2.4414rem;
  --text-4xl: 3.0518rem;
  --text-5xl: 3.8147rem;
  --text-6xl: 4.7684rem;
  --text-hero: clamp(3.4rem, 8.5vw, 7.5rem);

  /* 间距 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  /* 圆角（编辑风：克制） */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* 三级阴影（暖环境光） */
  --shadow-1: 0 2px 8px rgba(31, 29, 26, 0.07);
  --shadow-2: 0 8px 28px rgba(31, 29, 26, 0.11);
  --shadow-3: 0 24px 64px rgba(31, 29, 26, 0.16);

  /* 动效 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 160ms;
  --dur-base: 320ms;
  --dur-slow: 640ms;

  /* 版心 */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ---- 作品页主题：活水（琥珀橙） ---- */
.theme-amber {
  --color-accent: #e05a00;
  --color-accent-deep: #b84900;
  --color-accent-soft: rgba(224, 90, 0, 0.08);
  --color-accent-line: rgba(224, 90, 0, 0.35);
}
