/* ===== Design tokens ===== */
:root {
    --brand-400: #f87171;
    --brand-500: #ef4444;
    --brand-600: #dc2626;
    --brand-accent: #ff8a8a;
    --brand-glow: rgba(239, 68, 68, 0.3);

    --bg: #09090b;
    --bg-alt: rgba(24, 24, 27, 0.4);
    --surface: rgba(24, 24, 27, 0.6);
    --surface-hover: rgba(39, 39, 42, 0.8);
    --surface-solid: #18181b;

    --text: #a1a1aa;
    --text-soft: #d4d4d8;
    --text-muted: #71717a;
    --text-strong: #fff;

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);

    --radius-sm: 0.5rem;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --nav-height: 5rem;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);

    color-scheme: dark;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, p, ul {
    margin: 0;
}

h1, h2, h3 {
    color: var(--text-strong);
    line-height: 1.2;
}

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

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

strong {
    color: var(--text-soft);
    font-weight: 600;
}

::selection {
    background: var(--brand-500);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--brand-600);
    color: #fff;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
