/* ============================================
   MONOPOLE.NEWS — Vintage Newspaper / Broadsheet
   ============================================ */

:root {
    --burgundy: #8B1A1A;
    --charcoal: #2D2D2D;
    --newsprint: #F5F0E8;
    --cream: #E8DFD0;
    --warm-brown: #6B5B4F;
    --ink-black: #1A1A1A;
    --rule-tan: #C4B5A0;
}

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

body {
    font-family: 'Lora', serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--charcoal);
    background: var(--newsprint);
    background-image: repeating-radial-gradient(
        circle at 50% 50%,
        rgba(0,0,0,0.02) 0px,
        rgba(0,0,0,0.02) 1px,
        transparent 1px,
        transparent 4px
    );
}

/* ---- Masthead ---- */

.masthead {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 24px 0;
    text-align: center;
}

.masthead-inner {
    padding-bottom: 16px;
}

.masthead-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.date-text,
.edition-text {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: var(--warm-brown);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.masthead-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 64px;
    color: var(--ink-black);
    letter-spacing: 0.08em;
    line-height: 1;
    margin-bottom: 8px;
}

.masthead-motto {
    margin-bottom: 4px;
}

.motto-text {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 14px;
    color: var(--warm-brown);
}

/* Thick-thin rule below masthead */
.masthead-rule {
    width: 0%;
    margin: 0 auto;
    border: none;
    position: relative;
    height: 8px;
    transition: width 0.6s ease-out;
}

.masthead-rule::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ink-black);
}

.masthead-rule::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--ink-black);
}

.masthead-rule.expanded {
    width: 100%;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 14px 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-tabs.visible {
    opacity: 1;
}

.nav-tab {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--warm-brown);
    cursor: pointer;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.nav-tab:hover,
.nav-tab.active {
    color: var(--burgundy);
    border-bottom-color: var(--burgundy);
}

.thin-rule {
    height: 1px;
    background: var(--rule-tan);
    opacity: 0.6;
}

/* ---- Newspaper Grid ---- */

.newspaper-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

/* Column rules */
.newspaper-grid::before {
    content: '';
    position: absolute;
    top: 32px;
    bottom: 32px;
    left: calc(25% + 12px);
    width: 1px;
    background: var(--rule-tan);
    opacity: 0.4;
    pointer-events: none;
}

.newspaper-grid::after {
    content: '';
    position: absolute;
    top: 32px;
    bottom: 32px;
    right: calc(25% + 12px);
    width: 1px;
    background: var(--rule-tan);
    opacity: 0.4;
    pointer-events: none;
}

/* ---- Articles ---- */

.article {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.article.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Lead Story: spans all 4 columns */
.lead-story {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rule-tan);
    margin-bottom: 8px;
}

/* Secondary stories: span 2 columns each */
.story-secondary {
    grid-column: span 2;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(196, 181, 160, 0.4);
}

/* Tertiary stories: single column */
.story-tertiary {
    grid-column: span 1;
}

/* ---- Headlines ---- */

.headline {
    font-family: 'Playfair Display', serif;
    color: var(--ink-black);
    letter-spacing: -0.01em;
}

.headline-lead {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.15;
    margin-bottom: 12px;
}

.headline-secondary {
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.headline-tertiary {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 8px;
}

/* ---- Bylines ---- */

.byline {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--warm-brown);
    margin-bottom: 12px;
}

/* ---- Article Text ---- */

.article-text {
    font-family: 'Lora', serif;
    font-size: 15px;
    line-height: 1.75;
    color: var(--charcoal);
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    margin-bottom: 12px;
}

.story-tertiary .article-text {
    font-size: 14px;
    line-height: 1.65;
}

/* Drop cap for lead story */
.lead-story .article-body .article-text:first-of-type::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 700;
    float: left;
    line-height: 0.85;
    margin-right: 8px;
    margin-top: 4px;
    color: var(--burgundy);
}

/* ---- Crosshatch Image Placeholders ---- */

.crosshatch-placeholder {
    width: 100%;
    min-height: 280px;
    background-color: var(--cream);
    background-image: repeating-linear-gradient(
        45deg,
        var(--rule-tan) 0px,
        var(--rule-tan) 1px,
        transparent 1px,
        transparent 8px
    ),
    repeating-linear-gradient(
        -45deg,
        var(--rule-tan) 0px,
        var(--rule-tan) 1px,
        transparent 1px,
        transparent 8px
    );
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rule-tan);
}

.small-placeholder {
    min-height: 160px;
    margin-bottom: 12px;
}

.placeholder-label {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--warm-brown);
    background: var(--newsprint);
    padding: 4px 12px;
}

/* ---- Thick-Thin Rules ---- */

.thick-thin-rule {
    position: relative;
    height: 8px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.thick-thin-rule::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: var(--ink-black);
}

.thick-thin-rule::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 24px;
    right: 24px;
    height: 1px;
    background: var(--ink-black);
}

/* ---- Footer ---- */

.newspaper-footer {
    max-width: 1100px;
    margin: 32px auto 0;
    padding: 0 24px 40px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
}

.footer-text {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--warm-brown);
}

.footer-divider {
    color: var(--rule-tan);
    font-size: 11px;
}

/* ---- Hover Effects ---- */

.article .headline {
    transition: color 0.3s ease;
}

.article:hover .headline {
    color: var(--burgundy);
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    .masthead-title {
        font-size: 40px;
        letter-spacing: 0.04em;
    }

    .newspaper-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .lead-story {
        grid-template-columns: 1fr;
    }

    .story-secondary,
    .story-tertiary {
        grid-column: span 1;
    }

    .headline-lead {
        font-size: 28px;
    }

    .headline-secondary {
        font-size: 22px;
    }

    .nav-tabs {
        gap: 16px;
        flex-wrap: wrap;
    }

    .newspaper-grid::before,
    .newspaper-grid::after {
        display: none;
    }
}
