/* ===========================================
   satire.bar - Dark Editorial Broadsheet
   =========================================== */

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

html {
    font-size: 17px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Serif 4', 'Georgia', serif;
    font-weight: 400;
    line-height: 1.7;
    color: #2C2C2C;
    background-color: #F5F0E8;
    overflow-x: hidden;
}

/* --- Breaking News Ticker --- */
#ticker-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: stretch;
    height: 36px;
    background-color: #8B0000;
    border-bottom: 2px solid #1A1A1A;
    overflow: hidden;
}

.ticker-label {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background-color: #1A1A1A;
    color: #FFFFFF;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 80s linear infinite;
}

.ticker-item {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #FFFFFF;
    text-transform: uppercase;
    padding: 0 8px;
}

.ticker-divider {
    color: #C9B458;
    font-size: 10px;
    padding: 0 12px;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* --- Masthead --- */
#masthead {
    margin-top: 36px;
    padding: 28px 40px 20px;
    text-align: center;
    background-color: #F5F0E8;
}

.masthead-ornament-top,
.masthead-ornament-bottom {
    height: 4px;
    background: linear-gradient(to right,
        transparent 0%,
        #1A1A1A 10%,
        #1A1A1A 10.5%,
        transparent 10.5%,
        transparent 12%,
        #1A1A1A 12%,
        #1A1A1A 88%,
        transparent 88%,
        transparent 89.5%,
        #1A1A1A 89.5%,
        #1A1A1A 90%,
        transparent 90%
    );
    margin: 0 auto;
    max-width: 900px;
}

.masthead-ornament-top {
    margin-bottom: 12px;
    border-top: 1px solid #1A1A1A;
    border-bottom: 1px solid #1A1A1A;
}

.masthead-ornament-bottom {
    margin-top: 12px;
    border-top: 1px solid #1A1A1A;
    border-bottom: 1px solid #1A1A1A;
}

.masthead-dateline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 10px;
    padding: 0 10px;
}

.masthead-dateline span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4A4A4A;
}

.dateline-center {
    font-style: italic;
    letter-spacing: 0.15em !important;
}

.masthead-rule {
    max-width: 900px;
    margin: 0 auto;
}

.masthead-rule-double {
    border-top: 3px double #1A1A1A;
    margin-bottom: 16px;
}

.masthead-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 900;
    font-size: 84px;
    color: #1A1A1A;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
}

.masthead-motto {
    font-family: 'Libre Baskerville', 'Georgia', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 18px;
    color: #8B0000;
    margin: 8px 0 12px;
    letter-spacing: 0.04em;
}

.masthead-rule-ornamental {
    position: relative;
    border-top: 1px solid #1A1A1A;
    margin-bottom: 10px;
}

.masthead-rule-ornamental .rule-ornament {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #F5F0E8;
    padding: 0 12px;
    color: #C9B458;
    font-size: 16px;
    line-height: 1;
}

.masthead-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.masthead-meta span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    color: #4A4A4A;
    letter-spacing: 0.05em;
}

.meta-separator {
    color: #C9B458;
}

/* --- Content Sections (shared) --- */
.content-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Section Rules --- */
.section-rule {
    max-width: 960px;
    margin: 24px auto 18px;
}

.section-rule-thick {
    border-top: 4px solid #1A1A1A;
}

.section-rule-thin {
    border-top: 1px solid #4A4A4A;
    margin-top: 6px;
    margin-bottom: 20px;
}

.section-rule-ornamental {
    position: relative;
    border-top: 1px solid #1A1A1A;
    margin-top: 40px;
    margin-bottom: 14px;
}

.section-rule-ornamental .rule-ornament {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #F5F0E8;
    padding: 0 12px;
    color: #C9B458;
    font-size: 16px;
    line-height: 1;
}

.section-header {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    font-size: 22px;
    color: #1A1A1A;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    margin: 6px 0 4px;
}

/* --- Lead Story --- */
.lead-article {
    position: relative;
}

.article-category {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8B0000;
    margin-bottom: 8px;
    padding-top: 14px;
}

.lead-headline {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 900;
    font-size: 48px;
    line-height: 1.08;
    color: #1A1A1A;
    margin-bottom: 12px;
    max-width: 780px;
}

.lead-byline {
    font-family: 'Libre Baskerville', 'Georgia', serif;
    font-style: italic;
    font-size: 13px;
    color: #4A4A4A;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #4A4A4A;
}

.byline-author {
    color: #2C2C2C;
}

.byline-separator {
    color: #C9B458;
    padding: 0 6px;
}

.byline-location {
    font-family: 'IBM Plex Mono', monospace;
    font-style: normal;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4A4A4A;
}

/* --- Multi-Column Text --- */
.columns-3 {
    column-count: 3;
    column-gap: 28px;
    column-rule: 1px solid #4A4A4A;
}

.columns-3 p {
    margin-bottom: 14px;
    text-align: justify;
    text-indent: 0;
}

.columns-3 p + p {
    text-indent: 1.5em;
}

/* --- Drop Caps --- */
.drop-cap {
    float: left;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 900;
    font-size: 72px;
    line-height: 0.8;
    padding: 4px 8px 0 0;
    color: #8B0000;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.drop-cap.visible {
    opacity: 1;
    transform: scale(1);
}

/* --- Stamps --- */
.stamp {
    position: absolute;
    opacity: 0;
    transform: rotate(-15deg) scale(0.6);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    pointer-events: none;
}

.stamp.visible {
    opacity: 0.7;
    transform: rotate(-12deg) scale(1);
}

.stamp-verified {
    top: 20px;
    right: -10px;
    width: 100px;
    height: 100px;
}

.stamp-true {
    top: 10px;
    right: -20px;
    width: 110px;
    height: 110px;
}

.stamp-svg {
    width: 100%;
    height: 100%;
}

/* --- Editorial Columns --- */
.columns-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: start;
}

.column-rule {
    width: 1px;
    background-color: #4A4A4A;
    align-self: stretch;
    margin: 0 18px;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.column-rule.visible {
    opacity: 1;
    transform: scaleY(1);
}

.column-article {
    padding: 4px 0 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.column-article.visible {
    opacity: 1;
    transform: translateY(0);
}

.column-headline {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.15;
    color: #1A1A1A;
    margin-bottom: 6px;
}

.column-byline {
    font-family: 'Libre Baskerville', 'Georgia', serif;
    font-style: italic;
    font-size: 12px;
    color: #4A4A4A;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dotted #C9B458;
}

.column-article p {
    font-size: 15px;
    line-height: 1.65;
    text-align: justify;
}

/* --- Pull-Quote Section --- */
#pull-quote-section {
    padding-top: 10px;
    padding-bottom: 10px;
}

.pull-quote-container {
    position: relative;
    text-align: center;
    padding: 40px 60px 30px;
    max-width: 760px;
    margin: 0 auto;
}

.pull-quote-mark {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 900;
    font-size: 120px;
    color: #C9B458;
    line-height: 1;
    position: absolute;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.pull-quote-mark.visible {
    opacity: 0.6;
    transform: scale(1);
}

.pull-quote-open {
    top: -10px;
    left: 0;
}

.pull-quote-close {
    bottom: 10px;
    right: 0;
}

.pull-quote-text {
    font-family: 'Libre Baskerville', 'Georgia', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.5;
    color: #1A1A1A;
    border: none;
    margin: 0;
    padding: 0 20px;
}

.pull-quote-attribution {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    font-style: normal;
    color: #8B0000;
    letter-spacing: 0.08em;
    margin-top: 16px;
}

/* --- Opinion / Letters Section --- */
#opinion-section {
    position: relative;
}

#opinion-section .section-rule-ornamental .rule-ornament {
    background: #F5F0E8;
}

.opinion-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: start;
    background-color: #FFFDF7;
    padding: 20px 22px;
    border: 1px solid #4A4A4A;
}

.opinion-letter {
    padding: 4px 4px 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.opinion-letter.visible {
    opacity: 1;
    transform: translateY(0);
}

.letter-salutation {
    font-family: 'Libre Baskerville', 'Georgia', serif;
    font-weight: 700;
    font-size: 14px;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.opinion-letter p {
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 10px;
}

.letter-signature {
    font-family: 'Libre Baskerville', 'Georgia', serif;
    font-style: italic;
    font-size: 12px;
    color: #4A4A4A;
    text-align: right;
    line-height: 1.5;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.feature-article {
    position: relative;
    padding: 4px 0 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.feature-article.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-wide {
    border-right: 1px solid #4A4A4A;
    padding-right: 22px;
}

.feature-article:not(.feature-wide) + .feature-article:not(.feature-wide) {
    border-left: 1px solid #4A4A4A;
    padding-left: 22px;
}

.feature-article p {
    font-size: 15px;
    line-height: 1.65;
    text-align: justify;
    margin-bottom: 10px;
}

.feature-article p + p {
    text-indent: 1.5em;
}

/* --- Classifieds Footer --- */
#classifieds {
    margin-top: 40px;
    background-color: #2B2B2B;
    padding: 0 40px 30px;
}

.footer-rule {
    border-top-color: #C9B458 !important;
    max-width: 960px;
}

.footer-rule-thin {
    border-top-color: #4A4A4A !important;
}

.classifieds-header {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    font-size: 18px;
    color: #C9B458;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: center;
    margin: 16px 0 4px;
}

.classifieds-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 16px;
    max-width: 960px;
    margin: 0 auto;
}

.classified-item {
    font-family: 'Source Serif 4', 'Georgia', serif;
    font-size: 11px;
    line-height: 1.5;
    color: #B0A89A;
    padding: 6px 0;
    border-bottom: 1px dotted #4A4A4A;
}

.classified-item strong {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    font-size: 10px;
    color: #C9B458;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* --- Footer Bottom --- */
.footer-bottom {
    max-width: 960px;
    margin: 24px auto 0;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #4A4A4A;
}

.footer-ornament {
    width: 40px;
    height: 2px;
    background-color: #C9B458;
    margin: 0 auto 14px;
}

.footer-notice {
    font-family: 'Libre Baskerville', 'Georgia', serif;
    font-style: italic;
    font-size: 12px;
    color: #8B7A6A;
    margin-bottom: 6px;
}

.footer-copyright {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: #6A6A6A;
    letter-spacing: 0.08em;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .masthead-title {
        font-size: 52px;
    }

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

    .columns-3 {
        column-count: 2;
    }

    .columns-grid,
    .opinion-grid {
        grid-template-columns: 1fr;
    }

    .column-rule {
        width: 100%;
        height: 1px;
        margin: 12px 0;
    }

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

    .feature-wide {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #4A4A4A;
        padding-bottom: 20px;
    }

    .feature-article:not(.feature-wide) + .feature-article:not(.feature-wide) {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #4A4A4A;
        padding-top: 16px;
    }

    .classifieds-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stamp {
        display: none;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 15px;
    }

    #masthead {
        padding: 20px 20px 16px;
    }

    .masthead-title {
        font-size: 38px;
        letter-spacing: 0.04em;
    }

    .masthead-dateline {
        flex-direction: column;
        gap: 3px;
    }

    .content-section {
        padding: 0 18px;
    }

    .columns-3 {
        column-count: 1;
    }

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

    .pull-quote-text {
        font-size: 20px;
    }

    .pull-quote-mark {
        font-size: 80px;
    }

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

    #classifieds {
        padding: 0 18px 24px;
    }
}
