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

:root {
    --coral: #d4735e;
    --sage: #7a9e7e;
    --parchment: #f5f0e6;
    --gold: #c9a832;
    --teal: #2a8a7a;
    --dark-brown: #2c1e12;
    --cream: #ede5d6;
    --warm-beige: #e0cfc4;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    color: var(--dark-brown);
    background-color: var(--parchment);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--parchment) 0%, var(--warm-beige) 100%);
    overflow: hidden;
}

.bokeh-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 120px at 20% 30%, rgba(212, 115, 94, 0.2) 0%, transparent 70%),
        radial-gradient(circle 180px at 70% 60%, rgba(42, 138, 122, 0.15) 0%, transparent 70%),
        radial-gradient(circle 90px at 50% 20%, rgba(201, 168, 50, 0.18) 0%, transparent 70%),
        radial-gradient(circle 150px at 80% 25%, rgba(212, 115, 94, 0.12) 0%, transparent 70%),
        radial-gradient(circle 200px at 30% 70%, rgba(122, 158, 126, 0.15) 0%, transparent 70%),
        radial-gradient(circle 100px at 60% 80%, rgba(201, 168, 50, 0.1) 0%, transparent 70%),
        radial-gradient(circle 80px at 10% 80%, rgba(42, 138, 122, 0.12) 0%, transparent 70%),
        radial-gradient(circle 140px at 90% 85%, rgba(122, 158, 126, 0.1) 0%, transparent 70%);
    animation: bokehFloat 20s ease-in-out infinite alternate;
}

@keyframes bokehFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10px, 5px) scale(1.02); }
    100% { transform: translate(5px, -8px) scale(0.98); }
}

.memphis-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.memphis-svg {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: var(--dark-brown);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.2s ease-out 0.3s forwards;
}

.hero-subtitle {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal);
    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 1s ease-out 0.8s forwards;
}

.scroll-indicator {
    margin-top: 3rem;
    opacity: 0;
    animation: fadeUp 1s ease-out 1.3s forwards;
}

.scroll-arrow {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--coral);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Squiggle Dividers */
.squiggle-divider {
    width: 100%;
    padding: 0;
    line-height: 0;
    background: var(--parchment);
}

.squiggle-divider svg {
    width: 100%;
    height: 40px;
}

/* Chapter Sections */
.chapter {
    position: relative;
    padding: clamp(4rem, 10vw, 8rem) clamp(2rem, 8vw, 12rem);
    background: var(--parchment);
    overflow: hidden;
}

.chapter-alt {
    background: var(--cream);
}

.chapter-bokeh {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background:
        radial-gradient(circle 100px at 80% 30%, rgba(201, 168, 50, 0.15) 0%, transparent 70%),
        radial-gradient(circle 130px at 20% 70%, rgba(42, 138, 122, 0.1) 0%, transparent 70%),
        radial-gradient(circle 80px at 60% 90%, rgba(212, 115, 94, 0.12) 0%, transparent 70%);
}

.chapter-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.chapter-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--coral);
    display: block;
    margin-bottom: 1rem;
}

.chapter-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--dark-brown);
    margin-bottom: 1.5rem;
}

.chapter-body {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.8;
    color: var(--dark-brown);
    margin-bottom: 1.5rem;
}

.chapter-body:last-child {
    margin-bottom: 0;
}

/* Scroll reveal */
.chapter-content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Footer */
.footer {
    position: relative;
    padding: 4rem 2rem;
    background: linear-gradient(0deg, var(--warm-beige), var(--parchment));
    text-align: center;
    overflow: hidden;
}

.footer-memphis {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.footer-svg {
    width: 100%;
    height: 100%;
}

.footer-text {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-brown);
    position: relative;
    z-index: 2;
}

.footer-caption {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal);
    margin-top: 0.5rem;
    position: relative;
    z-index: 2;
}
