/* base.css — design tokens + reset + typography */

:root {
    /* colours */
    --bg: #000000;
    --bg-elev: #0A0A0A;
    --bg-card: #111111;
    --ink: #E5E5E5;
    --ink-muted: #888888;
    --ink-subtle: #555555;
    --accent: #00FFD1;
    --accent-soft: rgba(0, 255, 209, 0.12);
    --accent-glow: rgba(0, 255, 209, 0.35);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --danger: #FF5C5C;

    /* career trajectory — brand era colours */
    --era-accenture: #A100FF;
    --era-ey:        #FFE600;
    --era-deloitte:  #86BC25;

    /* capabilities — per-axis accent tokens (mint stays the lead) */
    --axis-ai:         var(--accent);
    --axis-ai-soft:    var(--accent-soft);
    --axis-ai-glow:    var(--accent-glow);
    --axis-cloud:      #6FB1FF;
    --axis-cloud-soft: rgba(111, 177, 255, 0.12);
    --axis-cloud-glow: rgba(111, 177, 255, 0.30);
    --axis-biz:        #C7A6FF;
    --axis-biz-soft:   rgba(199, 166, 255, 0.12);
    --axis-biz-glow:   rgba(199, 166, 255, 0.30);

    /* typography */
    --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
    --font-sans: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.5rem;
    --text-2xl: 2.25rem;
    --text-3xl: 3.5rem;
    --text-4xl: 5rem;

    /* spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;

    /* radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* timing */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --dur-fast: 180ms;
    --dur-base: 320ms;
    --dur-slow: 600ms;

    /* layout */
    --max-w: 1200px;
    --nav-h: 64px;

    /* iOS safe-area insets — fall back to 0 on platforms without env() */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);

    /* WCAG 2.5.5 minimum tap target */
    --tap-min: 44px;

    /* Agent widget z-index layers (Spec #24) */
    --z-agent-nudge: 55;     /* below panel (60), above FAB and bottom-bar (50) */
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* Anchor jumps land below the fixed nav (64px) plus a 16px breathing
       gap. Lenis-handled scrolls use a matching -80 offset in main.js. */
    scroll-padding-top: calc(var(--nav-h) + var(--space-4));
}

/* Non-Retina displays (Windows Chrome 100–125% DPI, DPR ≤ 1.49x) render
   rem-based sizes noticeably larger than macOS Retina (DPR 2x). Dropping
   the root font-size to 14px (87.5%) matches the 85–90% manual zoom
   Windows users typically need. All rem tokens scale proportionally. */
@media (max-resolution: 1.49dppx) {
    html { font-size: 14px; }
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
}

code, pre, .mono {
    font-family: var(--font-mono);
}

a {
    color: inherit;
    text-decoration: none;
}

img, svg, canvas {
    display: block;
    max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
