/* ===================================================================
 * editorial-magazine · 国风杂志 · 设计令牌
 * 气质:典雅、人文、版式考究、东方韵味
 * 变量名与其它皮肤一致,仅改值
 * =================================================================== */

:root {
  /* ---------- 配色:中国红点睛 + 黛绿 + 宣纸底 ---------- */
  --color-primary: #8B2E2E;             /* 朱砂红 */
  --color-primary-soft: rgba(139, 46, 46, 0.10);
  --color-secondary: #3A4A3F;           /* 黛绿 */

  --color-bg: #F7F3EC;                  /* 宣纸米黄 */
  --color-card: #FCFAF5;
  --color-border: #DDD3C2;

  --color-text: #2B2520;                /* 墨色 */
  --color-text-secondary: #5A5048;
  --color-text-muted: #8C8175;
  --color-text-disabled: #BFB5A6;
  --color-text-inverse: #FCFAF5;

  --color-success: #3A7D44;
  --color-warning: #C7882B;
  --color-error: #A0322B;
  --color-info: #4A6B7C;

  /* ---------- 字体:宋体衬线为主 ---------- */
  --font-heading: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', serif;
  --font-body: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', serif;
  --font-mono: 'JetBrains Mono', monospace;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1.0625rem;          /* 正文略大,阅读舒适 */
  --font-size-lg: 1.1875rem;
  --font-size-xl: 1.625rem;
  --font-size-2xl: 2.125rem;
  --font-size-3xl: 3.25rem;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.3;
  --line-height-normal: 1.8;            /* 正文最松,阅读优先 */
  --line-height-relaxed: 2.0;

  --letter-spacing-tight: -0.01em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.15em;        /* 标签宽字距,显疏朗 */

  /* ---------- 间距:页边距宽,显考究 ---------- */
  --space-page-x: 32px;
  --space-section: 72px;
  --space-card-pad: 28px;

  /* ---------- 形状:多直角/小圆角,版式感 ---------- */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --border-width-thin: 1px;             /* 杂志风细线 */
  --border-width-normal: 1px;

  /* 阴影:极淡,几乎无,纸面感 */
  --shadow-sm: 0 1px 3px rgba(58, 46, 30, 0.05);
  --shadow-md: 0 4px 12px rgba(58, 46, 30, 0.08);
  --shadow-lg: 0 12px 32px rgba(58, 46, 30, 0.12);

  /* ---------- 动效:平稳,不花哨 ---------- */
  --motion-duration-fast: 150ms;
  --motion-duration-normal: 300ms;
  --motion-duration-slow: 500ms;
  --motion-easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --motion-easing-decelerate: cubic-bezier(0, 0, 0.2, 1);
  --motion-easing-spring: cubic-bezier(0.34, 1.2, 0.64, 1);

  /* ---------- 布局 ---------- */
  --container-max: 1100px;
  --ratio-card: 4 / 5;                  /* 偏竖构图,杂志感 */

  /* 代码块配色(墨色) */
  --color-code-bg: #1E1A16;
  --color-code-text: #EDE6D8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1E1A16;
    --color-card: #2B2620;
    --color-border: #3F3830;
    --color-text: #EDE6D8;
    --color-text-secondary: #A89B86;
    --color-text-muted: #7A6F5E;
  }
}
