/* tokens.css — design tokens for the Ashmo portfolio.
   Legacy palette is preserved verbatim so the existing markup renders
   identically through Phase 0. New brand palette + scales are introduced
   here and adopted section-by-section starting at Phase 1. */

:root {
    /* Legacy palette (current site, phasing out) */
    --ink-black: #1a1a1a;
    --paper-cream: #faf7f2;
    --pencil-gray: #4a4a4a;
    --sketch-line: #d4cfc7;
    --accent-coral: #ff6b6b;
    --accent-teal: #4ecdc4;
    --accent-gold: #ffd93d;
    --accent-lavender: #c9b1ff;
    --shadow-soft: rgba(26, 26, 26, 0.08);
    --danger-red: #e74c3c;

    /* New brand palette (Phase 1+) */
    --bg: #F5F1EC;
    --ink: #171717;
    --muted: #6b6760;
    --line: #e3ddd4;
    --lavender: #8B7CF6;
    --cyan: #7AD7D0;
    --peach: #F4B7A8;
    --glow-lavender: rgba(139, 124, 246, 0.18);
    --glow-cyan: rgba(122, 215, 208, 0.18);
    --glow-peach: rgba(244, 183, 168, 0.20);

    /* Glass surfaces */
    --glass-bg: color-mix(in oklab, var(--bg) 72%, transparent);
    --glass-border: color-mix(in oklab, var(--ink) 8%, transparent);
    --glass-blur: 20px;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Caveat', 'Comic Sans MS', cursive;

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 5rem;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    /* Elevation */
    --shadow-card: 0 5px 20px var(--shadow-soft);
    --shadow-elevated: 0 10px 40px var(--shadow-soft);
    --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.5);

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --dur-fast: 200ms;
    --dur-base: 400ms;
    --dur-slow: 800ms;
}

[data-theme="dark"] {
    --bg: #14110e;
    --ink: #f0ece7;
    --muted: #b8b3ac;
    --line: #2a251f;
    --paper-cream: #1a1612;
    --ink-black: #f5f1ec;
    --pencil-gray: #b8b3ac;
    --sketch-line: #3a342e;
    --shadow-soft: rgba(0, 0, 0, 0.45);
    --glass-bg: color-mix(in oklab, var(--bg) 60%, transparent);
    --glass-border: color-mix(in oklab, var(--ink) 12%, transparent);
}
