/* ============================================
   Base — Reset & Typography
   ============================================ */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-soft);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text);
    line-height: 1.25;
}

h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-base); }

p { color: var(--text-2); }

a {
    color: var(--brand);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--brand-hover); }

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

button, input, select, textarea { font: inherit; color: inherit; }

.mono { font-family: var(--font-mono); font-size: 0.85em; }

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--brand);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 10000;
    font-size: var(--text-sm);
    font-weight: 500;
}
.skip-link:focus { top: 0; color: #fff; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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

::selection { background: var(--brand-glow); color: var(--brand); }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
}

.container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.animate-in   { animation: fadeUp 0.4s ease-out both; }
.fade-in      { animation: fadeIn 0.6s ease-out both; }
.delay-1      { animation-delay: 0.05s; }
.delay-2      { animation-delay: 0.1s; }
.delay-3      { animation-delay: 0.15s; }
.delay-4      { animation-delay: 0.2s; }

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