/* Base Styles - Reset, Global Layout, Typography */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Crimson Text', 'Georgia', serif;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg-cream);
    padding-top: 70px;
    font-size: 18px;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 8px 0;
}

.skip-to-content:focus {
    top: 0;
}

/* Typography */
h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 48px;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

h4 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 24px;
    line-height: 1.8;
    color: var(--text-light);
}

ul {
    margin: 24px 0 24px 28px;
    line-height: 1.9;
}

li {
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 1.05rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Page Layout */
.page-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 80px 40px;
    min-height: calc(100vh - 300px);
}

/* Utilities */
.hidden {
    display: none;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes heroGlow {
    from {
        transform: translate(0, 0) scale(1);
    }
    to {
        transform: translate(-5%, 3%) scale(1.05);
    }
}

@keyframes earlyBirdGlow {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(-8%, 5%);
    }
}
