/* monopole.news -- editorial newspaper aesthetic */

:root {
    --newsprint: #ffffff;
    --ink: #111111;
    --rule: #e0e0e0;
    --header-navy: #1a1a2e;
    --breaking-red: #c82333;
    --sidebar-fill: #f8f8f8;
    --byline-gray: #666666;

    --serif: "Newsreader", "Source Serif Pro", Georgia, "Times New Roman", serif;
    --mono: "Overpass Mono", "SFMono-Regular", Menlo, Consolas, monospace;

    --measure: 980px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--newsprint);
    color: var(--ink);
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.8;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover {
    color: var(--breaking-red);
    border-bottom-color: var(--breaking-red);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}

.mono {
    font-family: var(--mono);
    font-size: 0.85em;
    letter-spacing: 0.02em;
}

/* ===== MASTHEAD ===== */
.masthead {
    background: var(--header-navy);
    color: #ffffff;
    text-align: center;
    padding: 1.4rem 1.25rem 1rem;
    border-bottom: 3px solid var(--breaking-red);
}

.masthead-top {
    max-width: var(--measure);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    gap: 1rem;
    flex-wrap: wrap;
}

.masthead-top .edition,
.masthead-top .dateline {
    white-space: nowrap;
}

.masthead-tagline {
    flex: 1;
    text-align: center;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--serif);
    font-size: 0.78rem;
}

.masthead-rule {
    max-width: var(--measure);
    margin: 0.85rem auto 0.7rem;
    height: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    position: relative;
}

.masthead-rule::before,
.masthead-rule::after {
    content: "";
    position: absolute;
    top: -3px;
    height: 5px;
    width: 5px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 50%;
}

.masthead-rule::before { left: 50%; transform: translateX(-40px); }
.masthead-rule::after  { left: 50%; transform: translateX(36px); }

.masthead-title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    line-height: 1;
    letter-spacing: -0.025em;
    margin: 0.35rem 0 0.4rem;
    font-feature-settings: "lnum" 1, "kern" 1;
}

.masthead-dot {
    color: var(--breaking-red);
}

.masthead-sub {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 0.9rem;
}

.masthead-nav {
    max-width: var(--measure);
    margin: 0.4rem auto 0;
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 0.7rem;
}

.masthead-nav a {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    border: none;
    padding: 0.1rem 0;
    position: relative;
}

.masthead-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 0;
    height: 1px;
    background: var(--breaking-red);
    transition: width 0.22s ease, left 0.22s ease;
}

.masthead-nav a:hover {
    color: #ffffff;
}

.masthead-nav a:hover::after {
    width: 100%;
    left: 0;
}

/* ===== TICKER ===== */
.ticker {
    background: var(--ink);
    color: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #000;
    position: relative;
}

.ticker-label {
    background: var(--breaking-red);
    color: #ffffff;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.55rem 1rem;
    flex: 0 0 auto;
    align-self: stretch;
    display: flex;
    align-items: center;
    font-weight: 700;
    z-index: 2;
}

.ticker-track {
    display: flex;
    gap: 3rem;
    align-items: center;
    white-space: nowrap;
    padding: 0.55rem 1rem;
    animation: ticker-scroll 60s linear infinite;
    will-change: transform;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.85);
}

.ticker-item strong {
    color: var(--breaking-red);
    font-weight: 700;
    margin-right: 0.4rem;
}

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

/* ===== PAPER (main column) ===== */
.paper {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

.kicker {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--breaking-red);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.rule {
    border: none;
    border-top: 1px solid var(--rule);
    margin: 2.5rem 0;
}

/* ===== LEAD STORY ===== */
.lead {
    border-top: 4px double var(--ink);
    border-bottom: 1px solid var(--rule);
    padding: 1.4rem 0 1.6rem;
}

.lead-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 0.6rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: var(--byline-gray);
    text-transform: uppercase;
}

.lead-meta .kicker {
    margin-bottom: 0;
}

.lead-byline {
    color: var(--byline-gray);
}

.lead-date {
    margin-left: auto;
}

.lead-headline {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(1.85rem, 4.2vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin: 0.3rem 0 0.7rem;
    max-width: 24ch;
    text-wrap: balance;
}

.lead-deck {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    line-height: 1.5;
    color: #2a2a2a;
    margin: 0 0 1.6rem;
    max-width: 64ch;
}

.lead-body {
    column-count: 2;
    column-gap: 2.2rem;
    column-rule: 1px solid var(--rule);
    font-size: 1rem;
    line-height: 1.8;
}

.lead-body p {
    margin: 0 0 1rem;
    text-align: justify;
    hyphens: auto;
}

.dropcap::first-letter {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 4em;
    line-height: 0.85;
    float: left;
    margin: 0.08em 0.12em -0.05em 0;
    color: var(--ink);
}

.pull-quote {
    display: inline;
    font-style: italic;
    color: var(--breaking-red);
    font-weight: 500;
}

.lead-footer {
    margin-top: 1.2rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: var(--byline-gray);
    text-transform: uppercase;
}

/* ===== TWO-COLUMN (feature + sidebar) ===== */
.two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    position: relative;
}

.two-col::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(2 / 3 * 100% - 1.25rem);
    width: 1px;
    background: var(--rule);
}

.feature {
    min-width: 0;
}

.feature-headline {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0.3rem 0 0.6rem;
    text-wrap: balance;
}

.feature-byline {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--byline-gray);
    margin: 0 0 1rem;
}

.feature-deck {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.08rem;
    line-height: 1.55;
    color: #2a2a2a;
    margin: 0 0 1.2rem;
}

.feature p {
    margin: 0 0 1rem;
    text-align: justify;
    hyphens: auto;
}

.feature em {
    font-family: var(--mono);
    font-style: normal;
    font-size: 0.92em;
    background: var(--sidebar-fill);
    padding: 0 0.25em;
}

.continued {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--breaking-red);
    text-transform: uppercase;
    border-top: 1px solid var(--rule);
    padding-top: 0.7rem;
    margin-top: 1.2rem;
}

/* ===== SIDEBAR ===== */
.sidebar {
    background: var(--sidebar-fill);
    padding: 1.4rem 1.3rem;
    align-self: start;
    position: relative;
}

.sidebar-title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ink);
}

.sidebar-list {
    list-style: none;
    counter-reset: sb;
    margin: 0;
    padding: 0;
}

.sidebar-item {
    counter-increment: sb;
    padding: 0.95rem 0;
    border-bottom: 1px dotted var(--rule);
    position: relative;
    padding-left: 2rem;
}

.sidebar-item:first-child {
    padding-top: 0;
}

.sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-item::before {
    content: counter(sb, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.95rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--breaking-red);
    font-weight: 700;
}

.sidebar-item:first-child::before {
    top: 0;
}

.sidebar-item .kicker {
    font-size: 0.65rem;
    margin-bottom: 0.3rem;
}

.sidebar-headline {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.25;
    color: var(--ink);
    border: none;
    display: block;
    margin-bottom: 0.35rem;
}

.sidebar-headline:hover {
    color: var(--breaking-red);
}

.sidebar-deck {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #333;
    margin: 0.2rem 0 0.4rem;
}

.sidebar-meta {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--byline-gray);
    text-transform: uppercase;
}

/* ===== BRIEFS GRID ===== */
.section-heading {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    letter-spacing: -0.01em;
    margin: 0 0 0.3rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ink);
    position: relative;
}

.section-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 80px;
    height: 2px;
    background: var(--breaking-red);
}

.section-deck {
    font-style: italic;
    color: var(--byline-gray);
    margin: 0.4rem 0 1.6rem;
    font-size: 1.02rem;
}

.briefs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.brief {
    padding: 1.2rem 1.4rem 1.2rem 0;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.brief:nth-child(3n) {
    border-right: none;
    padding-right: 0;
}

.brief:nth-child(3n+1) {
    padding-left: 0;
}

.brief:nth-child(3n+2),
.brief:nth-child(3n) {
    padding-left: 1.4rem;
}

.brief:nth-last-child(-n+3) {
    border-bottom: none;
    padding-bottom: 0;
}

.brief-headline {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.25;
    margin: 0.3rem 0 0.55rem;
}

.brief p {
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 0.7rem;
    color: #2a2a2a;
}

/* ===== OP-ED ===== */
.op-ed {
    background: var(--sidebar-fill);
    padding: 2rem 2rem;
    border-left: 4px solid var(--breaking-red);
    position: relative;
}

.op-ed::before {
    content: "\201C";
    position: absolute;
    top: -0.6rem;
    right: 1.4rem;
    font-family: var(--serif);
    font-size: 6rem;
    line-height: 1;
    color: var(--rule);
    pointer-events: none;
}

.oped-headline {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(1.35rem, 2.4vw, 1.95rem);
    line-height: 1.18;
    letter-spacing: -0.01em;
    margin: 0.3rem 0 0.4rem;
    max-width: 30ch;
    text-wrap: balance;
}

.oped-byline {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--byline-gray);
    margin: 0 0 1.1rem;
}

.op-ed p {
    font-size: 1.02rem;
    line-height: 1.75;
    margin: 0 0 0.9rem;
    max-width: 64ch;
}

/* ===== ARCHIVE ===== */
.archive-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.archive-list li {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 1.2rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule);
    align-items: baseline;
}

.archive-list li:last-child {
    border-bottom: none;
}

.archive-date {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--breaking-red);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.archive-list a {
    border: none;
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--ink);
    font-weight: 500;
    transition: padding-left 0.2s ease, color 0.2s ease;
}

.archive-list a::before {
    content: "\203A\00a0";
    color: var(--breaking-red);
    margin-right: 0.2em;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.archive-list a:hover {
    color: var(--breaking-red);
    padding-left: 0.4rem;
}

.archive-list a:hover::before {
    opacity: 1;
}

/* ===== FOOTER / SUBSCRIPTION ===== */
.paper-footer {
    background: var(--header-navy);
    color: #ffffff;
    border-top: 3px solid var(--breaking-red);
    padding: 3rem 1.5rem 2rem;
    margin-top: 2rem;
}

.subscription {
    max-width: var(--measure);
    margin: 0 auto 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
}

.sub-heading {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 0.6rem;
    color: #ffffff;
}

.sub-deck {
    font-style: italic;
    color: rgba(255, 255, 255, 0.75);
    max-width: 56ch;
    margin: 0 auto 1.6rem;
    font-size: 1rem;
    line-height: 1.6;
}

.sub-form {
    max-width: 540px;
    margin: 0 auto;
    text-align: left;
}

.sub-label {
    display: block;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    text-align: center;
}

.sub-row {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.sub-row:focus-within {
    border-color: var(--breaking-red);
    background: rgba(255, 255, 255, 0.08);
}

.sub-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--serif);
    font-size: 1.05rem;
    padding: 0.85rem 1rem;
    min-width: 0;
}

.sub-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.sub-submit {
    background: var(--breaking-red);
    color: #ffffff;
    border: none;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.85rem 1.4rem;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sub-submit:hover {
    background: #a91d2c;
}

.sub-submit:active {
    transform: translateY(1px);
}

.sub-fineprint {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.5);
    margin: 0.9rem 0 0;
    line-height: 1.6;
    text-align: center;
}

.sub-status {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    color: var(--breaking-red);
    text-align: center;
    margin: 0.7rem 0 0;
    min-height: 1.2em;
}

.sub-status.ok {
    color: #5cd28b;
}

/* ===== COLOPHON ===== */
.colophon {
    max-width: var(--measure);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    line-height: 1.65;
}

.colophon h5 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.colophon p {
    margin: 0 0 0.5rem;
}

.colophon a {
    color: rgba(255, 255, 255, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.18);
}

.colophon a:hover {
    color: var(--breaking-red);
    border-bottom-color: var(--breaking-red);
}

.copyline {
    margin-top: 1rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.45);
}

/* ===== TEXT SELECTION ===== */
::selection {
    background: var(--breaking-red);
    color: #ffffff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
    .lead-body {
        column-count: 1;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .two-col::before {
        display: none;
    }

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

    .brief {
        padding: 1.2rem;
        border-right: 1px solid var(--rule);
    }

    .brief:nth-child(3n) {
        border-right: 1px solid var(--rule);
        padding-right: 1.2rem;
    }

    .brief:nth-child(3n+1) {
        padding-left: 1.2rem;
    }

    .brief:nth-child(2n) {
        border-right: none;
        padding-right: 0;
    }

    .brief:nth-child(2n+1) {
        padding-left: 0;
    }

    .colophon {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }
}

@media (max-width: 560px) {
    .masthead-top {
        justify-content: center;
        font-size: 0.65rem;
    }

    .masthead-tagline {
        order: 3;
        flex-basis: 100%;
        text-align: center;
    }

    .masthead-nav {
        gap: 0.9rem;
    }

    .lead-meta {
        flex-direction: column;
        gap: 0.3rem;
    }

    .lead-date {
        margin-left: 0;
    }

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

    .brief {
        border-right: none !important;
        padding: 1rem 0 !important;
    }

    .archive-list li {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .sub-row {
        flex-direction: column;
    }

    .sub-submit {
        width: 100%;
        padding: 0.95rem;
    }

    .op-ed {
        padding: 1.5rem 1.2rem;
    }
}
