/*
 * uai data — Design System Tokens
 * colors_and_type.css
 *
 * Google Fonts used:
 *   DM Sans       — https://fonts.google.com/specimen/DM+Sans
 *   JetBrains Mono — https://fonts.google.com/specimen/JetBrains+Mono
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ─── Light Mode (default) ─────────────────────────────────────────────────── */
:root {
    /* Backgrounds */
    --bg: #FAF9F6;
    /* warm off-white page background */
    --surface: #F2F1ED;
    /* cards, nav backdrop */
    --surface-2: #F5F4F0;
    /* alternate section backgrounds */

    /* Borders */
    --border: #E5E4DF;
    /* all dividers and borders */

    /* Text */
    --text: #1C1C1A;
    /* primary (warm near-black) */
    --text-muted: #6B6A66;
    /* secondary, captions, placeholders */
    --text-on-accent: #FFFFFF;
    /* text on --accent backgrounds */

    /* Accent */
    --accent: #F59E0B;
    /* amber — CTAs, icons, eyebrows */
    --accent-hover: #D97706;
    /* darker amber on hover */
    --accent-subtle: rgba(245, 158, 11, 0.10);
    /* icon container bg */

    /* Project/Portfolio accent bars */
    --project-1: #F59E0B;
    /* amber */
    --project-2: #6366F1;
    /* indigo */
    --project-3: #0D9488;
    /* teal */
    --project-4: #EC4899;
    /* pink */

    /* Shadows */
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-card-dark: 0 12px 40px rgba(0, 0, 0, 0.20);
    --shadow-cta: 0 4px 20px rgba(245, 158, 11, 0.30);
    --shadow-cta-hover: 0 8px 28px rgba(245, 158, 11, 0.40);

    /* Fixed-dark surfaces — always dark regardless of theme */
    --surface-invert: #1C1C1A;
    /* Stats bar, Projects cards, Footer CTA */
    --surface-invert-text: #FFFFFF;
    /* text on --surface-invert */

    /* Nav backdrop on scroll */
    --nav-bg-scrolled: rgba(250, 249, 246, 0.95);
}

/* ─── Dark Mode ────────────────────────────────────────────────────────────── */
[data-theme="dark"],
.dark {
    --bg: #141412;
    /* warm near-black */
    --surface: #1E1D1B;
    /* cards, nav backdrop */
    --surface-2: #191817;
    /* alternate section backgrounds */

    --border: #2E2D2A;
    /* dividers */

    --text: #F0EFE8;
    /* primary (warm off-white) */
    --text-muted: #8A8882;
    /* secondary */
    --text-on-accent: #FFFFFF;

    --accent: #FBBF24;
    /* lighter amber for dark bg */
    --accent-hover: #F59E0B;
    --accent-subtle: rgba(251, 191, 36, 0.12);

    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.30);
    --shadow-card-dark: 0 12px 40px rgba(0, 0, 0, 0.50);
    --shadow-cta: 0 4px 20px rgba(245, 158, 11, 0.35);
    --shadow-cta-hover: 0 8px 28px rgba(245, 158, 11, 0.45);

    /* Fixed-dark surfaces — slightly deeper in dark mode */
    --surface-invert: #0D0D0B;
    --nav-bg-scrolled: rgba(20, 20, 18, 0.95);
}

/* ─── Typography ───────────────────────────────────────────────────────────── */
:root {
    --font-head: "DM Sans", sans-serif;
    --font-body: "DM Sans", sans-serif;
    --font-mono: "JetBrains Mono", monospace;
}

/* ─── Type Scale ───────────────────────────────────────────────────────────── */
:root {
    --text-xs: 0.72rem;
    /* 11.5px — tags, micro labels */
    --text-sm: 0.8rem;
    /* 12.8px — nav lang, small mono */
    --text-base: 0.875rem;
    /* 14px   — nav links, small body */
    --text-md: 1rem;
    /* 16px   — body text */
    --text-lg: 1.1rem;
    /* 17.6px — card titles */
    --text-xl: 1.15rem;
    /* 18.4px — portfolio titles */
    --text-2xl: clamp(1.75rem, 3vw, 2.5rem);
    /* section h2 smaller */
    --text-3xl: clamp(2rem, 3.5vw, 2.75rem);
    /* section h2 standard */
    --text-4xl: clamp(2.2rem, 4vw, 3.5rem);
    /* hero h1 */
}

/* ─── Semantic Typography ──────────────────────────────────────────────────── */
h1 {
    font-family: var(--font-head);
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
}

h2 {
    font-family: var(--font-head);
    font-size: var(--text-3xl);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text);
}

h3 {
    font-family: var(--font-head);
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--text);
}

p {
    font-family: var(--font-body);
    font-size: var(--text-md);
    line-height: 1.75;
    color: var(--text-muted);
}

code,
.mono {
    font-family: var(--font-mono);
    font-size: var(--text-base);
    font-weight: 500;
}

/* Section eyebrow label */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

/* Tag / chip */
.tag {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 3px 9px;
    color: var(--text-muted);
}

/* ─── Spacing Scale ────────────────────────────────────────────────────────── */
:root {
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */
    --space-14: 3.5rem;
    /* 56px */
    --space-28: 7rem;
    /* 112px — section vertical padding */
}

/* ─── Border Radii ─────────────────────────────────────────────────────────── */
:root {
    --radius-sm: 6px;
    /* tags */
    --radius-md: 8px;
    /* small elements */
    --radius-btn: 10px;
    /* buttons, icon containers */
    --radius-card: 14px;
    /* standard cards */
    --radius-lg: 20px;
    /* about photo */
    --radius-pill: 100px;
    /* pill/badge */
}

/* ─── Layout ───────────────────────────────────────────────────────────────── */
:root {
    --max-width: 1120px;
    --nav-height: 64px;
    --section-pad-v: var(--space-28);
    --section-pad-h: clamp(1.5rem, 5vw, 3rem);
}
