/* Base Styles — ABP Studio USA
   Brand-specific variables go in each site's brand.css
   This file defines shared typography, spacing, layout */

/* ═══ SPACING SYSTEM ═══ */
:root {
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 80px;
    --space-section: 80px;

    /* Typography */
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

@media (min-width: 1200px) {
    :root {
        --space-section: 120px;
    }
}

/* ═══ TYPOGRAPHY ═══ */
body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

p {
    line-height: 1.6;
    color: var(--color-text-light);
}

small {
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Tablet */
@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }
}

/* Desktop */
@media (min-width: 1200px) {
    h1 { font-size: 3.25rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.5rem; }
    body { font-size: 1.125rem; }
}

/* ═══ LAYOUT ═══ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 48px;
    }
}

section {
    padding: var(--space-section) 0;
}

/* ═══ ANIMATIONS ═══ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ═══ ACCESSIBILITY ═══ */
.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;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    padding: 8px 16px;
    background: var(--color-primary);
    color: var(--color-white);
    z-index: 100;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}
