/* ============================================================
   mitbbs.ai Design Tokens — Phase 0 Foundation
   Shared by User Center + Webmail. Single source of truth.
   Official palette: LIGHT YELLOW (never #C8102E red).
   ============================================================ */
:root {
    /* ---------- Spacing (4px base) ---------- */
    --hx-space-1: 4px;
    --hx-space-2: 8px;
    --hx-space-3: 12px;
    --hx-space-4: 16px;
    --hx-space-6: 24px;
    --hx-space-8: 32px;
    --hx-space-12: 48px;

    /* ---------- Radius ---------- */
    --hx-radius: 8px;
    --hx-radius-lg: 12px;
    --hx-radius-xl: 16px;
    --hx-radius-pill: 999px;

    /* ---------- Official light-yellow palette ---------- */
    --hx-primary-from: #fdf6dd;
    --hx-primary-to: #f7e9bd;
    --hx-primary-hover-from: #fef9e7;
    --hx-primary-hover-to: #faedc8;
    --hx-border-gold: #d4b84a;
    --hx-border-gold-hover: #b8962e;
    --hx-text-brown: #5a4a1a;
    --hx-header-gold: #7a5c14;
    --hx-card-bg: #fffdf5;
    --hx-card-border: #e8d9a8;
    --hx-accent-soft: #fdf6dd;

    /* ---------- Neutral greys ---------- */
    --hx-grey-900: #1a1a1a;
    --hx-grey-700: #3a3a3a;
    --hx-grey-500: #6b6b6b;
    --hx-grey-300: #d1d1d1;
    --hx-grey-200: #e8e8e8;
    --hx-grey-100: #f5f5f5;
    --hx-white: #ffffff;

    /* ---------- Semantic ---------- */
    --hx-success: #2e7d32;
    --hx-warning: #e65100;
    --hx-danger: #c62828;
    --hx-info: #1565c0;

    /* ---------- Typography ---------- */
    --hx-font: -apple-system, BlinkMacSystemFont, "PingFang SC",
        "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    --hx-body-size: 16px;
    --hx-line-height: 1.6;
    --hx-small-size: 14px;
    --hx-h1-size: 24px;
    --hx-h2-size: 20px;
    --hx-h3-size: 17px;

    /* ---------- Shadows ---------- */
    --hx-shadow-sm: 0 1px 3px rgba(120, 100, 40, .06);
    --hx-shadow-md: 0 4px 12px rgba(120, 100, 40, .10);
    --hx-shadow-lg: 0 8px 24px rgba(120, 100, 40, .14);

    /* ---------- Transitions ---------- */
    --hx-transition: all .18s ease;
}
