/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #2A2A2A;
    background-color: #FAF5F0;
    overflow-x: hidden;
    transition: background-color 1.2s ease;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #2C5F5C;
}

p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.78;
    font-weight: 400;
    color: #2A2A2A;
}

/* Navigation */
.site-nav {
    position: fixed;
    top: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-start;
    gap: 2.5rem;
    padding: 0 4rem;
    z-index: 100;
    font-family: 'Playfair Display', serif;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-link {
    color: #2A2A2A;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.25rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #E85D3A;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Magazine Container */
.magazine-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    scroll-snap-type: y mandatory;
}

/* Spread System */
.spread {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

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

.spread-content {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    padding: 4rem;
    position: relative;
    z-index: 1;
}

/* Spread 1: Hero */
.spread-1 {
    background: linear-gradient(135deg, #E8A87C 0%, #6BA3A0 100%);
}

.hero-section {
    grid-column: 3 / 9;
    grid-row: 4 / 8;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    color: #FFFFFF;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-divider {
    width: 100px;
    height: 2px;
    background-color: #FFFFFF;
    margin-bottom: 1rem;
}

.hero-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    color: #FFFFFF;
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 450px;
    opacity: 0.95;
}

.hero-accent-container {
    grid-column: 8 / 12;
    grid-row: 2 / 11;
    position: relative;
}

.accent-block {
    position: absolute;
    opacity: 0.6;
}

.accent-warm {
    width: 200px;
    height: 250px;
    background-color: #E85D3A;
    top: 10%;
    right: 0;
    border-radius: 2px;
}

.accent-cool {
    width: 180px;
    height: 200px;
    background-color: #2C5F5C;
    bottom: 5%;
    right: 20px;
    border-radius: 2px;
}

/* Spread 2: Collage */
.spread-2 {
    background-color: #F0F5F5;
}

.collage-container {
    grid-column: 1 / 13;
    grid-row: 1 / 13;
    position: relative;
    perspective: 800px;
    will-change: transform;
}

.tilt-element {
    transform: perspective(800px);
    transition: transform 600ms ease-out;
}

.collage-piece {
    position: absolute;
    overflow: hidden;
    background: linear-gradient(135deg, #6BA3A0 0%, #E8A87C 100%);
    border-radius: 1px;
    will-change: transform;
}

.piece-1 {
    width: 280px;
    height: 340px;
    top: 15%;
    left: 5%;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

.piece-2 {
    width: 300px;
    height: 280px;
    top: 45%;
    left: 35%;
    clip-path: polygon(10% 0, 100% 5%, 95% 100%, 0 95%);
}

.piece-3 {
    width: 250px;
    height: 300px;
    top: 25%;
    right: 8%;
    clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
}

.collage-overlay {
    position: absolute;
    opacity: 0.4;
    mix-blend-mode: multiply;
    border-radius: 1px;
}

.overlay-1 {
    width: 400px;
    height: 350px;
    background-color: #E85D3A;
    top: 35%;
    left: 25%;
    clip-path: polygon(0 0, 100% 10%, 90% 100%, 0 90%);
}

.overlay-2 {
    width: 350px;
    height: 400px;
    background-color: #2C5F5C;
    bottom: 10%;
    right: 15%;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 5% 100%);
}

/* Spread 3: Typography Asymmetric */
.spread-3 {
    background-color: #FFF0E6;
}

.text-left-block {
    grid-column: 2 / 7;
    grid-row: 3 / 10;
}

.text-left-block h2 {
    margin-bottom: 2rem;
}

.text-left-block p {
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 450px;
    color: #6B6B6B;
}

.text-right-accent {
    grid-column: 8 / 12;
    grid-row: 5 / 9;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.accent-quote {
    font-size: 1.375rem;
    font-style: italic;
    color: #E85D3A;
    line-height: 1.6;
    max-width: 280px;
}

/* Spread 4: Magazine Grid */
.spread-4 {
    background-color: #F0F5F5;
}

.magazine-grid {
    grid-column: 1 / 13;
    grid-row: 1 / 13;
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    will-change: transform;
}

.grid-item {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #6BA3A0 0%, #C8C0B8 100%);
    border-radius: 1px;
}

.item-1 {
    grid-column: 1 / 7;
    grid-row: 1 / 7;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 95%);
}

.item-2 {
    grid-column: 7 / 13;
    grid-row: 1 / 7;
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
}

.item-3 {
    grid-column: 1 / 7;
    grid-row: 8 / 13;
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 100%);
}

.item-4 {
    grid-column: 7 / 13;
    grid-row: 8 / 13;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 95%);
}

.grid-overlay {
    position: absolute;
    opacity: 0.35;
    mix-blend-mode: multiply;
    z-index: 10;
    pointer-events: none;
    border-radius: 1px;
}

.overlay-grid-1 {
    width: 400px;
    height: 400px;
    background-color: #E85D3A;
    top: 25%;
    left: 30%;
    clip-path: polygon(0 0, 100% 15%, 85% 100%, 0 85%);
}

.overlay-grid-2 {
    width: 350px;
    height: 350px;
    background-color: #2C5F5C;
    bottom: 20%;
    right: 25%;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 85%);
}

/* Spread 5: Palette */
.spread-5 {
    background-color: #FAF5F0;
}

.palette-block {
    grid-column: 1 / 7;
    grid-row: 3 / 10;
}

.palette-block h2 {
    margin-bottom: 1.5rem;
}

.palette-block p {
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 450px;
    color: #6B6B6B;
}

.palette-visual {
    grid-column: 8 / 12;
    grid-row: 4 / 9;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
}

.color-swatch {
    width: 180px;
    height: 140px;
    border-radius: 2px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.swatch-warm {
    background: linear-gradient(135deg, #E8A87C 0%, #FAF5F0 100%);
}

.swatch-cool {
    background: linear-gradient(135deg, #6BA3A0 0%, #F0F5F5 100%);
}

/* Spread 6: Editorial Collage */
.spread-6 {
    background-color: #FFF0E6;
}

.piece-large-1 {
    width: 350px;
    height: 400px;
    top: 10%;
    left: 8%;
    clip-path: polygon(0 0, 100% 5%, 95% 100%, 0 95%);
}

.piece-large-2 {
    width: 320px;
    height: 360px;
    top: 35%;
    left: 45%;
    clip-path: polygon(5% 0, 100% 0, 100% 95%, 0 100%);
}

.piece-large-3 {
    width: 300px;
    height: 340px;
    top: 20%;
    right: 10%;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 90%);
}

.overlay-3 {
    width: 450px;
    height: 380px;
    background-color: #E85D3A;
    top: 30%;
    right: 25%;
}

/* Spread 7: Editorial Journey */
.spread-7 {
    background-color: #F0F5F5;
}

.journey-block {
    grid-column: 1 / 13;
    grid-row: 2 / 11;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 4rem;
}

.journey-block h2 {
    margin-bottom: 3rem;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.journey-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.journey-left,
.journey-right {
    display: flex;
    align-items: flex-start;
}

.journey-left p,
.journey-right p {
    font-size: 1.1rem;
    line-height: 1.85;
    color: #6B6B6B;
    max-width: 400px;
}

/* Spread 8: Finale */
.spread-8 {
    background-color: #FAF5F0;
}

.finale-container {
    grid-column: 1 / 13;
    grid-row: 1 / 10;
    position: relative;
    will-change: transform;
}

.piece-fin-1 {
    width: 280px;
    height: 320px;
    top: 15%;
    left: 10%;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
    background: linear-gradient(225deg, #6BA3A0 0%, #C8C0B8 100%);
}

.piece-fin-2 {
    width: 320px;
    height: 280px;
    top: 25%;
    left: 50%;
    clip-path: polygon(10% 0, 100% 5%, 90% 100%, 0 95%);
    background: linear-gradient(225deg, #6BA3A0 0%, #C8C0B8 100%);
}

.piece-fin-3 {
    width: 260px;
    height: 300px;
    top: 30%;
    right: 12%;
    clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 90%);
    background: linear-gradient(225deg, #6BA3A0 0%, #C8C0B8 100%);
}

.finale-caption {
    grid-column: 2 / 12;
    grid-row: 11 / 13;
    display: flex;
    align-items: center;
    justify-content: center;
}

.finale-caption p {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #2C5F5C;
    opacity: 0.7;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .spread-content {
        padding: 2rem;
    }

    .site-nav {
        padding: 0 2rem;
        gap: 1.5rem;
    }

    .hero-section {
        grid-column: 1 / 13;
        grid-row: 4 / 8;
    }

    .hero-accent-container {
        grid-column: 1 / 13;
        grid-row: 8 / 12;
        height: 120px;
    }

    .accent-block {
        width: 140px !important;
        height: 120px !important;
    }

    .text-left-block {
        grid-column: 1 / 13;
    }

    .text-right-accent {
        grid-column: 1 / 13;
        grid-row: auto;
        margin-top: 2rem;
    }

    .palette-block {
        grid-column: 1 / 13;
    }

    .palette-visual {
        grid-column: 1 / 13;
        flex-direction: row;
        gap: 1rem;
    }

    .journey-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .journey-block {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    h2 {
        font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    }

    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .site-nav {
        padding: 0 1rem;
        gap: 1rem;
        font-size: 0.7rem;
    }

    .spread-content {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .collage-piece {
        width: 200px !important;
        height: 240px !important;
    }

    .grid-item {
        grid-column: 1 / 13 !important;
        grid-row: auto !important;
        min-height: 200px;
    }

    .color-swatch {
        width: 120px;
        height: 100px;
    }

    .palette-visual {
        gap: 0.5rem;
    }

    .accent-quote {
        font-size: 1.125rem;
    }

    .journey-left p,
    .journey-right p {
        font-size: 1rem;
        max-width: 100%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
