/* ==========================================================================
   Snug Simple / Light Academia — Design Tokens
   知行 (MyBlogMvc) 全站设计令牌
   ========================================================================== */

:root {
    /* ---------- 1. 色彩系统 (WCAG 2.1 AA >= 4.5:1) ---------- */
    --bg-page: #FAFAF5;                 /* 奶油米白主背景 */
    --bg-surface: #FFFFFF;              /* 纯净卡片与浮层表面 */
    --bg-subtle: #F3F1E8;               /* 暖亚麻次级底色 / 代码块 */
    --bg-hover: #ECE9DD;                /* 温润悬浮高亮 */

    --text-primary: #1C1917;            /* 暖深灰主文字 (16.84:1 on #FAFAF5) */
    --text-secondary: #44403C;          /* 正文与摘要文字 (9.80:1 on #FAFAF5) */
    --text-muted: #5C564F;              /* 辅助元信息 / 占位符 (6.77:1 on #FAFAF5) */

    --color-accent: #C2410C;            /* 赤陶色主强调 (4.98:1 on #FAFAF5, 5.18:1 on #FFF) */
    --color-accent-hover: #9A3412;      /* 深赤陶悬浮态 (7.06:1 on #FAFAF5) */
    --color-accent-soft: #FDF3EE;       /* 赤陶淡晕底色 (4.74:1 with #C2410C) */
    --color-accent-ring: rgba(194, 65, 12, 0.16);
    --color-accent-warm: #7C4A2D;       /* 暖棕色点缀 */

    --border-subtle: #E5E7EB;           /* 极细辅助分割线 */
    --border-strong: #D1D5DB;           /* 输入框与交互强化边框 */

    --color-success: #2F6F4E;           /* 成功态 (5.64:1) */
    --color-warning: #9A5B06;           /* 警告态 (5.31:1) */
    --color-danger: #B91C1C;            /* 危险态 (5.97:1) */
    --color-danger-soft: #FEF2F2;

    --btn-primary-bg: #1C1917;          /* 主按钮：暖炭墨色 */
    --btn-primary-hover: #C2410C;       /* 主按钮悬浮：过渡至赤陶暖色 */
    --btn-primary-text: #FAFAF5;

    /* ---------- 2. 排版系统 ---------- */
    --font-display: "Playfair Display", "Merriweather", "Noto Serif SC", "Songti SC", Georgia, serif;
    --font-serif: "Merriweather", "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
    --font-sans: "Inter", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-mono: "JetBrains Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Consolas, monospace;

    --text-xs: 0.75rem;                 /* 12px */
    --text-sm: 0.875rem;                /* 14px */
    --text-base: 0.9375rem;             /* 15px */
    --text-md: 1rem;                    /* 16px */
    --text-lg: 1.125rem;                /* 18px */
    --text-xl: 1.25rem;                 /* 20px */
    --text-2xl: 1.5rem;                 /* 24px */
    --text-3xl: clamp(1.75rem, 3vw, 2.25rem);

    --leading-tight: 1.32;
    --leading-snug: 1.45;
    --leading-normal: 1.7;              /* 正文行高 1.6-1.8 */
    --leading-relaxed: 1.78;            /* 长文阅读行高 */

    /* ---------- 3. 8px 间距体系与栅格 ---------- */
    --space-0-5: 4px;
    --space-1: 8px;
    --space-1-5: 12px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-8: 64px;
    --space-10: 80px;

    --container-max: 1100px;            /* 内容区最大宽度 1100px */
    --reading-max: 720px;               /* 正文舒适行宽 */
    --navbar-height: 72px;              /* 9 * 8px */

    /* ---------- 4. 圆角与柔和阴影 ---------- */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-card-hover: 0 10px 30px rgba(28, 25, 23, 0.06);
    --shadow-dropdown: 0 14px 34px rgba(28, 25, 23, 0.09);

    /* ---------- 5. 动效曲线与时长 ---------- */
    --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-gentle: cubic-bezier(0.25, 0.8, 0.25, 1);
    --duration-fast: 160ms;
    --duration-base: 280ms;
    --duration-page: 360ms;
}
