/* ============================================================
   gunsul.studio: Editorial Design System
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    background-color: #F2EDE3;
}

body {
    font-family: 'Lora', serif;
    color: #2C2418;
    background-color: #F2EDE3;
    line-height: 1.65;
    overflow-x: hidden;
}

/* ============================================================
   Spread Layout System
   ============================================================ */

.spread {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: #F2EDE3;
}

.spread::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(212, 197, 169, 0.02);
    pointer-events: none;
}

/* Additional color palette references */
:root {
    --color-black: #000;
    --color-dark-brown: #252017;
    --color-light-tan: #D4C5A9;
    --color-white: #FFF;
    --color-dark: #1A1714;
    --color-medium-dark: #2C2418;
    --color-taupe: #8A7E6B;
    --color-gold: #C8A96E;
    --color-beige: #A69A82;
    --color-warm-beige: #E8E0D0;
    --color-cream: #F2EDE3;
}

.spread-content {
    width: 90%;
    max-width: 1400px;
    height: 85%;
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* Margin Zone (Left Column - Captions, Footnotes) */
.margin-zone {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 1rem;
    border-left: 2px solid #C8A96E;
    padding-left: 1.5rem;
}

.caption {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #A69A82;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.marginal-note {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #8A7E6B;
    margin-top: auto;
}

.footnote {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #8A7E6B;
    margin-top: auto;
    line-height: 1.5;
}

/* Content Zone (Main Content) */
.content-zone {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background-color: #E8E0D0;
    position: relative;
}

.content-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #C8A96E, transparent);
}

/* Gutter Zone (Right Column) */
.gutter-zone {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    border-right: 2px solid #C8A96E;
    padding-right: 1.5rem;
}

/* ============================================================
   Typography System
   ============================================================ */

h1.h1-display {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 10vw, 9rem);
    font-weight: 700;
    color: #1A1714;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2.h2-serif {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: #1A1714;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h3.h3-serif {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #2C2418;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.subtitle-editorial {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #C8A96E;
    letter-spacing: 0.1em;
    font-weight: 400;
    margin-bottom: 2rem;
}

.prose-intro,
.prose-body {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: #2C2418;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.prose-body {
    font-size: 1rem;
}

.prose-list {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #2C2418;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    list-style: none;
}

.prose-list li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.prose-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: #C8A96E;
}

/* ============================================================
   Editorial Elements
   ============================================================ */

.pull-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    color: #C8A96E;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #A69A82;
    border-bottom: 1px solid #A69A82;
    margin-top: 2rem;
}

.editorial-mark {
    width: 3px;
    height: 40px;
    background-color: #C8A96E;
    margin-top: 1rem;
}

.color-swatch {
    width: 60px;
    height: 60px;
    border: 1px solid #A69A82;
    margin-top: 1rem;
}

.visual-accent {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #C8A96E, transparent);
    margin-top: 2rem;
}

.nav-marginal {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #8A7E6B;
}

.nav-label {
    display: block;
    padding: 0.5rem 0;
}

/* ============================================================
   Image Spreads
   ============================================================ */

.image-spread {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 2rem;
}

.image-container {
    background-color: #2C2418;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    overflow: hidden;
}

.spread-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    position: relative;
}

.spread-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #2C2418;
    mix-blend-mode: color;
    opacity: 0.7;
    pointer-events: none;
}

.image-credit {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #8A7E6B;
    text-align: center;
    margin-top: auto;
}

/* ============================================================
   Contact and Footer
   ============================================================ */

.contact-info {
    background-color: #E8E0D0;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 3px solid #C8A96E;
}

.contact-info p {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #2C2418;
    margin-bottom: 0.5rem;
}

.contact-info strong {
    color: #1A1714;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #C8A96E;
    text-decoration: none;
    border-bottom: 1px solid #C8A96E;
    padding-bottom: 0.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #1A1714;
    border-bottom-color: #1A1714;
}

.footer-mark {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #A69A82;
    opacity: 0.4;
    letter-spacing: 0.1em;
}

/* ============================================================
   Scroll Indicator
   ============================================================ */

.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #8A7E6B;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 100;
    background-color: rgba(242, 237, 227, 0.9);
    padding: 0.75rem 1rem;
    border: 1px solid #A69A82;
}

.scroll-progress,
.scroll-total {
    color: #C8A96E;
    font-weight: 600;
}

/* ============================================================
   Spread-Specific Animations
   ============================================================ */

.spread {
    opacity: 0;
    animation: slideReveal 0.8s ease-out forwards;
}

.spread-1 { animation-delay: 0s; }
.spread-2 { animation-delay: 0.1s; }
.spread-3 { animation-delay: 0.2s; }
.spread-4 { animation-delay: 0.3s; }
.spread-5 { animation-delay: 0.4s; }
.spread-6 { animation-delay: 0.5s; }
.spread-7 { animation-delay: 0.6s; }
.spread-8 { animation-delay: 0.7s; }
.spread-9 { animation-delay: 0.8s; }
.spread-10 { animation-delay: 0.9s; }

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

.spread-content h1,
.spread-content h2,
.spread-content h3 {
    animation: titleSlide 0.8s ease-out 0.2s backwards;
}

@keyframes titleSlide {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.spread-content p,
.spread-content .prose-list {
    animation: bodyFade 0.8s ease-out 0.4s backwards;
}

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

.margin-zone,
.gutter-zone {
    animation: marginSlide 0.8s ease-out 0.3s backwards;
}

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

/* ============================================================
   Responsive Design
   ============================================================ */

@media (max-width: 1200px) {
    .spread-content {
        grid-template-columns: 0.8fr 2.2fr 0.8fr;
        gap: 1.5rem;
    }

    h1.h1-display {
        font-size: clamp(2rem, 8vw, 5rem);
    }

    h2.h2-serif {
        font-size: clamp(1.5rem, 4vw, 3rem);
    }
}

@media (max-width: 768px) {
    .spread {
        height: auto;
        min-height: 100vh;
    }

    .spread-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        height: auto;
        padding: 2rem 1rem;
        width: 100%;
    }

    .margin-zone,
    .gutter-zone {
        border: none;
        padding: 1rem 0;
    }

    .margin-zone {
        border-bottom: 2px solid #C8A96E;
        padding-bottom: 1rem;
    }

    .gutter-zone {
        border-top: 2px solid #C8A96E;
        padding-top: 1rem;
    }

    .content-zone {
        padding: 1.5rem;
    }

    h1.h1-display {
        font-size: clamp(1.5rem, 6vw, 3rem);
    }

    h2.h2-serif {
        font-size: clamp(1.2rem, 4vw, 2rem);
    }

    h3.h3-serif {
        font-size: 1.3rem;
    }

    .prose-intro,
    .prose-body {
        font-size: 1rem;
    }

    .scroll-indicator {
        bottom: 1rem;
        right: 1rem;
        font-size: 0.65rem;
        padding: 0.5rem 0.75rem;
    }

    .contact-info {
        padding: 1rem;
    }

    .social-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .spread {
        width: 100vw;
    }

    .spread-content {
        padding: 1.5rem 0.75rem;
    }

    h1.h1-display {
        font-size: 1.5rem;
        letter-spacing: 0.08em;
    }

    h2.h2-serif {
        font-size: 1.2rem;
    }

    .caption {
        font-size: 1.5rem;
    }

    .prose-intro,
    .prose-body {
        font-size: 0.95rem;
    }

    .margin-zone {
        padding-left: 0;
    }

    .gutter-zone {
        padding-right: 0;
    }
}

/* ============================================================
   Print Styles
   ============================================================ */

@media print {
    body {
        background: white;
    }

    .spread {
        page-break-after: always;
        overflow: visible;
    }

    .scroll-indicator {
        display: none;
    }
}
