/* monopole.news - Vintage broadsheet newspaper */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    color: #3a3530;
    background: #f2ece0;
    background-image:
        radial-gradient(circle, #b8b0a4 0.5px, transparent 0.5px);
    background-size: 4px 4px;
    overflow-x: hidden;
    line-height: 1.65;
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Masthead */
.masthead {
    text-align: center;
    padding: 32px 0 16px;
    position: relative;
}

.masthead-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 6rem);
    color: #2a2520;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: 1;
    animation: mastheadSpace 0.6s ease forwards;
}

@keyframes mastheadSpace {
    from { letter-spacing: -0.05em; }
    to { letter-spacing: 0.2em; }
}

.masthead-sub {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: #2a2520;
    letter-spacing: 0.3em;
    display: block;
    margin-top: 4px;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.6s forwards;
}

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

.extra-stamp {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: #8b2020;
    border: 3px solid #8b2020;
    padding: 4px 12px;
    transform: rotate(-12deg);
    animation: stampBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1s forwards;
    opacity: 0;
}

@keyframes stampBounce {
    from { opacity: 0; transform: rotate(0deg) scale(0.8); }
    to { opacity: 1; transform: rotate(-12deg) scale(1); }
}

.double-rule {
    margin: 16px 0 8px;
    border-top: 2px solid #2a2520;
    border-bottom: 1px solid #2a2520;
    padding: 2px 0;
    position: relative;
}

.rule-draw {
    width: 0;
    height: 0;
    animation: ruleGrow 0.4s ease 1s forwards;
}

@keyframes ruleGrow {
    to { width: 100%; }
}

.dateline {
    margin: 8px 0;
}

.dateline-text {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    color: #6a6258;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-tabs {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
    border-top: 1px solid rgba(42, 37, 32, 0.3);
    padding-top: 8px;
}

.section-tab {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 0.65rem;
    color: #6a6258;
    letter-spacing: 0.1em;
    cursor: pointer;
}

/* Lead Story */
.lead-story {
    padding: 24px 0;
}

.lead-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.lead-headline {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: #2a2520;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.byline {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    color: #6a6258;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.lead-columns {
    columns: 2;
    column-gap: 24px;
    column-rule: 1px solid rgba(42, 37, 32, 0.15);
    text-align: justify;
    hyphens: auto;
}

.lead-columns p {
    margin-bottom: 12px;
}

/* Sidebar */
.lead-sidebar {
    border-left: 1px solid rgba(42, 37, 32, 0.3);
    padding-left: 24px;
}

.pull-quote {
    margin-bottom: 24px;
    padding-left: 16px;
    border-left: 3px solid #c4a54a;
    position: relative;
}

.quote-mark {
    font-family: 'Libre Baskerville', serif;
    font-size: 4rem;
    color: #b8b0a4;
    position: absolute;
    top: -16px;
    left: -8px;
    line-height: 1;
}

.quote-text {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #2a2520;
    line-height: 1.5;
    margin-bottom: 8px;
    padding-top: 16px;
}

.quote-attr {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    color: #6a6258;
    letter-spacing: 0.08em;
}

.infographic {
    margin-top: 24px;
    border: 1px dashed #b8b0a4;
    padding: 16px;
}

.infographic-svg {
    display: block;
    margin: 0 auto;
}

.info-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
}

.info-line.drawn {
    transition: stroke-dashoffset 1s ease;
    stroke-dashoffset: 0;
}

.figure-caption {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 0.65rem;
    color: #6a6258;
    letter-spacing: 0.04em;
    display: block;
    margin-top: 8px;
    line-height: 1.5;
}

/* Fold Crease */
.fold-crease {
    height: 4px;
    background: linear-gradient(to right, transparent, #d8d0c4, transparent);
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.03);
    margin: 32px 0;
}

/* Below the Fold */
.below-fold {
    padding: 24px 0;
}

.stories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.story {
    padding: 16px 24px;
    border-right: 1px solid rgba(42, 37, 32, 0.15);
    border-bottom: 1px solid rgba(42, 37, 32, 0.2);
}

.story:nth-child(2n) {
    border-right: none;
}

.story-headline {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: #2a2520;
    line-height: 1.15;
    margin-bottom: 8px;
}

.story-body {
    text-align: justify;
    hyphens: auto;
    margin-bottom: 10px;
}

/* Story reveal */
.story-reveal {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.story-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Editorial */
.editorial {
    max-width: 60ch;
    margin: 48px auto;
    padding: 32px 0;
    border-top: 2px solid #2a2520;
}

.editorial-headline {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: #2a2520;
    line-height: 1.15;
    margin-bottom: 12px;
}

.editorial-body {
    margin-bottom: 16px;
    text-align: justify;
    hyphens: auto;
    line-height: 1.8;
}

/* Mobile */
@media (max-width: 768px) {
    .lead-content {
        grid-template-columns: 1fr;
    }

    .lead-columns {
        columns: 1;
    }

    .lead-sidebar {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(42, 37, 32, 0.3);
        padding-top: 24px;
    }

    .stories-grid {
        grid-template-columns: 1fr;
    }

    .story {
        border-right: none;
    }

    .section-tabs {
        flex-wrap: wrap;
        gap: 12px;
    }

    .extra-stamp {
        font-size: 0.9rem;
    }
}
