/* ==========================================================================
   Design Tokens — MMaffi Portfolio
   Refined Obsidian Dark (default) + Editorial Alabaster Light
   ========================================================================== */

:root {
    /* Typography */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

    /* Core Brand Accents */
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-light: #818cf8;
    --accent-soft: rgba(99, 102, 241, 0.12);
    --accent-border: rgba(99, 102, 241, 0.34);

    --secondary: #8b5cf6;
    --cyan: #38bdf8;
    --cyan-soft: rgba(56, 189, 248, 0.12);

    --emerald: #10b981;
    --emerald-light: #34d399;
    --emerald-soft: rgba(16, 185, 129, 0.12);
    --emerald-border: rgba(16, 185, 129, 0.34);

    --amber: #f59e0b;
    --amber-light: #fbbf24;
    --amber-soft: rgba(245, 158, 11, 0.12);
    --amber-border: rgba(245, 158, 11, 0.3);

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 52%, #06b6d4 100%);
    --gradient-emerald: linear-gradient(135deg, #10b981 0%, #0d9488 55%, #06b6d4 100%);
    --gradient-text: linear-gradient(135deg, #ffffff 10%, #c7d2fe 55%, #67e8f9 100%);

    /* Layout & Radii */
    --container-max: 1200px;
    --header-height: 74px;
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-full: 9999px;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 180ms;
    --duration-base: 260ms;
    --duration-slow: 480ms;

    /* Dark Mode Surfaces (Default) */
    --bg: #07080d;
    --bg-elevated: #0c0f18;
    --surface: #111420;
    --surface-2: #161b2c;
    --surface-hover: #1b2135;
    --header-bg: rgba(7, 8, 13, 0.84);
    --overlay-bg: rgba(4, 6, 12, 0.8);

    /* Dark Mode Text & Borders */
    --text: #f4f6fb;
    --text-secondary: #a0acc4;
    --text-muted: #6c7993;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --border-hover: rgba(129, 140, 248, 0.42);
    --grid-line: rgba(255, 255, 255, 0.032);

    /* Shadows */
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.22);
    --shadow-md: 0 14px 36px -12px rgba(0, 0, 0, 0.48);
    --shadow-lg: 0 26px 64px -18px rgba(0, 0, 0, 0.64);
    --shadow-accent: 0 10px 28px -8px rgba(99, 102, 241, 0.42);
    --shadow-emerald: 0 10px 28px -8px rgba(16, 185, 129, 0.38);
}

/* Light Mode Overrides */
.light-mode {
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-light: #4f46e5;
    --accent-soft: rgba(79, 70, 229, 0.08);
    --accent-border: rgba(79, 70, 229, 0.28);

    --emerald: #059669;
    --emerald-light: #059669;
    --emerald-soft: rgba(5, 150, 105, 0.09);
    --emerald-border: rgba(5, 150, 105, 0.28);

    --amber: #d97706;
    --amber-light: #b45309;
    --amber-soft: rgba(217, 119, 6, 0.1);
    --amber-border: rgba(217, 119, 6, 0.28);

    --gradient-text: linear-gradient(135deg, #0f172a 10%, #4338ca 55%, #0284c7 100%);

    --bg: #f8fafc;
    --bg-elevated: #f1f5f9;
    --surface: #ffffff;
    --surface-2: #f4f7fb;
    --surface-hover: #f8fafc;
    --header-bg: rgba(248, 250, 252, 0.88);
    --overlay-bg: rgba(15, 23, 42, 0.64);

    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: rgba(15, 23, 42, 0.09);
    --border-strong: rgba(15, 23, 42, 0.15);
    --border-hover: rgba(79, 70, 229, 0.38);
    --grid-line: rgba(15, 23, 42, 0.042);

    --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 12px 30px -10px rgba(15, 23, 42, 0.09);
    --shadow-lg: 0 24px 56px -14px rgba(15, 23, 42, 0.16);
    --shadow-accent: 0 10px 26px -8px rgba(79, 70, 229, 0.32);
    --shadow-emerald: 0 10px 26px -8px rgba(5, 150, 105, 0.28);
}
