/* === concepts.news — styles.css === */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-ink: #0A0A0C;
    --bg-charcoal: #1A1A1E;
    --text-cream: #F2E8D5;
    --text-parchment: #B8A88A;
    --accent-gold: #C4A35A;
    --accent-gold-pale: #D4B96A;
    --rule-smoke: #3A3A3A;
    --emphasis-burgundy: #8B2D3A;
    --bg: #0A0A0C;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Lora', 'Times New Roman', serif;
    --font-sans: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

    --reveal-duration: 0.9s;
    --reveal-easing: cubic-bezier(0.76, 0, 0.24, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text-cream);
    transition: background-color 0.6s ease;
    overflow: hidden;
}

/* --- Spread Container (Scroll Snap) --- */
#spread-container {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

/* --- Individual Spread --- */
.spread {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spread-inner {
    width: 100%;
    max-width: 1400px;
    height: 100%;
    padding: 4rem 3rem;
    position: relative;
    display: flex;
}

/* --- Background colors per spread --- */
.spread-1 { background-color: #0A0A0C; }
.spread-2 { background-color: #1A1A1E; }
.spread-3 { background-color: #0A0A0C; }
.spread-4 { background-color: #1A1A1E; }
.spread-5 { background-color: #0A0A0C; }


/* ============================================================
   SPREAD 1: THE MASTHEAD
   ============================================================ */
.masthead-layout {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 12%;
}

.masthead-content {
    max-width: 80%;
}

.masthead-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3rem, 10vw, 8rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-cream);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.masthead-rule {
    width: 100%;
    height: 1px;
    background-color: var(--text-cream);
    margin-bottom: 1.5rem;
}

.masthead-tagline {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    color: var(--text-parchment);
    letter-spacing: 0.05em;
    line-height: 1.6;
}


/* ============================================================
   SPREAD 2: THE LEAD ESSAY
   ============================================================ */
.lead-layout {
    flex-direction: row;
    align-items: flex-start;
    padding-top: 6rem;
    gap: 0;
}

.lead-main {
    flex: 0 0 62.5%;
    padding-right: 3rem;
}

.lead-headline {
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.02em;
    line-height: 1.15;
    color: var(--text-cream);
    margin-bottom: 2.5rem;
}

.lead-body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.75;
    color: var(--text-cream);
    max-width: 38em;
    margin-bottom: 1.5rem;
}

/* Drop Cap */
.dropcap::first-letter {
    float: left;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 4.5em;
    line-height: 0.8;
    padding-right: 0.08em;
    color: var(--accent-gold);
}

.lead-marginalia {
    flex: 0 0 37.5%;
    position: relative;
    padding-left: 3rem;
    padding-top: 2rem;
}

.column-rule {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: var(--rule-smoke);
}

.pull-quote {
    position: relative;
    padding-top: 2.5rem;
}

.pull-quote-mark {
    position: absolute;
    top: -0.5rem;
    left: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 4rem;
    color: var(--accent-gold);
    line-height: 1;
}

.pull-quote-text {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--text-cream);
    opacity: 0.6;
}


/* ============================================================
   SPREAD 3: THE PHOTO ESSAY
   ============================================================ */
.photo-layout {
    position: relative;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.photo-bg {
    position: absolute;
    inset: 0;
    /* Placeholder background: a deep atmospheric gradient simulating a high-contrast B&W photo */
    background:
        radial-gradient(ellipse at 40% 45%, #2a2a2e 0%, #0A0A0C 70%),
        linear-gradient(135deg, #1a1a1e 0%, #0A0A0C 50%, #111113 100%);
    filter: grayscale(1) contrast(1.15) brightness(0.85);
    transform: scale(1.05);
    animation: kenBurns 8s ease-out forwards paused;
}

.photo-bg.animate {
    animation-play-state: running;
}

@keyframes kenBurns {
    from { transform: scale(1.05); }
    to { transform: scale(1); }
}

.grain-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.04;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.photo-text-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    opacity: 0;
    transition: opacity 1.2s ease;
    transition-delay: 1.5s;
}

.photo-text-overlay.visible {
    opacity: 1;
}

.photo-statement {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.3;
    color: var(--text-cream);
    text-shadow: 0 2px 40px rgba(10, 10, 12, 0.8);
}


/* ============================================================
   SPREAD 4: THE ANALYSIS GRID
   ============================================================ */
.analysis-layout {
    flex-direction: row;
    align-items: flex-start;
    padding-top: 6rem;
    gap: 0;
}

.analysis-column {
    flex: 1;
    padding: 0 2rem;
}

.column-rule-v {
    width: 1px;
    background-color: var(--rule-smoke);
    align-self: stretch;
    flex-shrink: 0;
}

.analysis-heading {
    font-family: var(--font-display);
    font-variant: small-caps;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: var(--text-parchment);
    margin-bottom: 1.5rem;
    text-transform: lowercase;
}

.analysis-body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.75;
    color: var(--text-cream);
    margin-bottom: 1.5rem;
}

.analysis-attribution {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    color: var(--text-parchment);
    font-style: italic;
}


/* ============================================================
   SPREAD 5: THE COLOPHON
   ============================================================ */
.colophon-layout {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.colophon-content {
    max-width: 520px;
}

.colophon-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-cream);
    margin-bottom: 1.5rem;
}

.colophon-rule {
    width: 60px;
    height: 1px;
    background-color: var(--rule-smoke);
    margin: 1.5rem auto;
}

.colophon-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-parchment);
    margin-bottom: 1rem;
}

.colophon-contact {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--rule-smoke);
    margin-top: 0.5rem;
}


/* ============================================================
   FOLIO MARKS
   ============================================================ */
.folio {
    position: absolute;
    bottom: 2rem;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--rule-smoke);
    letter-spacing: 0.05em;
}

.folio-left { left: 3rem; }
.folio-right { right: 3rem; }


/* ============================================================
   PAGE INDICATOR
   ============================================================ */
.page-indicator {
    position: fixed;
    bottom: 2rem;
    right: 3rem;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--rule-smoke);
    letter-spacing: 0.08em;
    z-index: 100;
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

.page-indicator.hidden {
    opacity: 0;
}


/* ============================================================
   SLIDE-REVEAL ANIMATION SYSTEM
   ============================================================ */
.reveal-wrap {
    position: relative;
    overflow: hidden;
    display: block;
}

.reveal-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* Horizontal reveal: mask slides from left to right */
.reveal-horizontal::after {
    background-color: inherit;
    transform: translateX(0);
    transition: transform var(--reveal-duration) var(--reveal-easing);
}

.reveal-horizontal.revealed::after {
    transform: translateX(101%);
}

/* Vertical reveal: mask slides from top to bottom */
.reveal-vertical::after {
    background-color: inherit;
    transform: translateY(0);
    transition: transform var(--reveal-duration) var(--reveal-easing);
}

.reveal-vertical.revealed::after {
    transform: translateY(101%);
}

/* Right reveal: mask slides to the left */
.reveal-right::after {
    background-color: inherit;
    transform: translateX(0);
    transition: transform var(--reveal-duration) var(--reveal-easing);
}

.reveal-right.revealed::after {
    transform: translateX(-101%);
}

/* Background color inheritance for masks in each spread */
.spread-1 .reveal-wrap::after { background-color: #0A0A0C; }
.spread-2 .reveal-wrap::after { background-color: #1A1A1E; }
.spread-3 .reveal-wrap::after { background-color: #0A0A0C; }
.spread-4 .reveal-wrap::after { background-color: #1A1A1E; }
.spread-5 .reveal-wrap::after { background-color: #0A0A0C; }


/* ============================================================
   RESPONSIVE: < 768px
   ============================================================ */
@media (max-width: 768px) {

    .spread-inner {
        padding: 3rem 1.5rem;
    }

    /* Masthead */
    .masthead-layout {
        padding-left: 5%;
        align-items: flex-start;
    }

    .masthead-content {
        max-width: 95%;
    }

    /* Lead Essay: single column */
    .lead-layout {
        flex-direction: column;
        padding-top: 4rem;
    }

    .lead-main {
        flex: 1 1 auto;
        padding-right: 0;
    }

    .lead-headline {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
    }

    .lead-marginalia {
        flex: 1 1 auto;
        padding-left: 0;
        padding-top: 2rem;
        border-left: none;
    }

    .lead-marginalia .column-rule {
        display: none;
    }

    .lead-marginalia .pull-quote {
        border-left: 2px solid var(--accent-gold);
        padding-left: 1.2rem;
        padding-top: 0;
        margin-top: 1rem;
    }

    .lead-marginalia .pull-quote-mark {
        position: static;
        display: inline;
        font-size: 2rem;
    }

    .pull-quote-text {
        font-size: 1.2rem;
    }

    /* Analysis Grid: stacked */
    .analysis-layout {
        flex-direction: column;
        padding-top: 3rem;
        gap: 0;
    }

    .analysis-column {
        padding: 1.5rem 0;
    }

    .column-rule-v {
        width: 100%;
        height: 1px;
        align-self: auto;
    }

    /* Folio & indicator adjustments */
    .folio {
        bottom: 1rem;
    }

    .folio-left { left: 1.5rem; }
    .folio-right { right: 1.5rem; }

    .page-indicator {
        right: 1.5rem;
        bottom: 1rem;
    }
}
