@font-face {
    font-family: 'OldEnglish';
    src: url('../fonts/OPTIEngraversOldEnglish.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #111111;
    --muted: #666666;
    --line: #dddddd;
    --paper: #ffffff;
    --soft: #f7f7f5;
    --accent: #b4161b;
    --accent-dark: #7d0f13;
    --serif: Georgia, "Times New Roman", serif;
    --sans: Inter, Arial, Helvetica, sans-serif;
    --oldeng: 'OldEnglish', Georgia, serif;
    --nav-bg: #000000;
    --header-black: #000000;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent);
}

/* ─── UTILITY BAR ─────────────────────────────────────────── */

.utility-bar {
    background: var(--header-black) !important;
    border-bottom: none;
}

.utility-inner {
    background: var(--header-black);
    max-width: 1180px;
    margin: 0 auto;
    padding: 7px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.utility-left {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #999;
    font-size: 0.77rem;
    letter-spacing: 0.03em;
}

.utility-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.utility-link {
    color: #999;
    font-size: 0.77rem;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}

.utility-link:hover {
    color: #fff;
}

.util-divider {
    color: #444;
}

/* ─── MASTHEAD ROW ────────────────────────────────────────── */

.masthead-bar {
    background: var(--header-black);
    border-bottom: 1px solid var(--header-black);
}

.masthead-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.p-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--header-black);
    color: #ffffff;
    font-family: var(--oldeng);
    font-size: 2.6rem;
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    line-height: 1;
    padding-bottom: 4px;
    transition: background 0.15s;
}

.p-logo:hover {
    background: var(--header-black);
    color: #ffffff;
}

.masthead-title {
    font-family: var(--oldeng);
    font-size: clamp(1.5rem, 3.2vw, 2.9rem);
    color: #ffffff;
    text-align: center;
    line-height: 1.1;
    flex: 1;
    display: block;
    transition: color 0.2s ease;
}

.masthead-title:hover {
    color: #ddd;
}

.masthead-actions {
    width: 68px;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.satire-badge {
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 2px;
    white-space: nowrap;
}

/* ─── SATIRE NOTICE ───────────────────────────────────────── */

.satire-notice-bar {
    background: var(--soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.satire-notice-bar .inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 9px 20px 9px 24px;
    font-size: 0.82rem;
    color: #555;
    border-left: 3px solid var(--accent);
}

/* ─── STICKY NAV ──────────────────────────────────────────── */

.main-nav {
    background: var(--header-black) !important;
    position: sticky;
    top: 0;
    z-index: 100;
    border-top: none;
    border-bottom: none;
    margin-top: 0;
}

.nav-inner {
    background: var(--header-black);
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
    display: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 14px 0;
    cursor: pointer;
    width: 100%;
    text-align: left;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0;
    text-transform: uppercase;
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    white-space: nowrap;
    justify-content: flex-start;
}

.nav-links a {
    color: #bbb;
    padding: 14px 15px;
    display: block;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
    color: #fff;
    border-bottom-color: var(--accent);
}

/* ─── MAIN CONTENT ────────────────────────────────────────── */

main,
.site-footer {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
    gap: 28px;
    margin-top: 24px;
}

.lead-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line);
    gap: 22px;
    padding-bottom: 22px;
}

.lead-story > *,
.article-card {
    min-width: 0;
}

.lead-story.no-image {
    grid-template-columns: minmax(0, 760px);
}

.lead-image,
.card-image {
    display: block;
    max-width: 100%;
    object-fit: cover;
    width: 100%;
}

.lead-image-figure,
.card-image-figure {
    margin: 0;
}

.lead-image {
    height: 100%;
    min-height: 260px;
}

.card-image {
    aspect-ratio: 16 / 9;
    height: auto;
}

.card-image-figure {
    margin-bottom: 12px;
}

.lead-image-figure figcaption,
.card-image-figure figcaption {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 6px;
    text-align: center;
}

.story-content h1,
.article-hero h1,
.section-heading h1 {
    font-family: var(--serif);
    font-size: clamp(2.1rem, 5vw, 4.2rem);
    letter-spacing: -0.04em;
    line-height: 0.96;
    margin: 8px 0 14px;
    overflow-wrap: break-word;
}

.kicker,
.byline,
.latest-item span {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.byline {
    color: var(--muted);
    letter-spacing: 0.04em;
}

.latest-panel {
    border-left: 1px solid var(--line);
    padding-left: 22px;
}

.latest-panel h2,
.section-heading h2,
.article-sidebar h2 {
    border-bottom: 3px solid var(--ink);
    font-family: var(--serif);
    font-size: 1.8rem;
    margin: 0 0 12px;
    padding-bottom: 6px;
}

.latest-item {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    transition: transform 0.2s ease;
}

.latest-item:hover {
    transform: translateX(3px);
}

.latest-item h3,
.article-card h3,
.article-card h2 {
    font-family: var(--serif);
    line-height: 1.08;
    margin: 6px 0;
    overflow-wrap: break-word;
}

.section-block,
.listing-page,
.about-page,
.article-page {
    margin: 38px 0;
}

.section-heading {
    align-items: end;
    border-top: 4px solid var(--ink);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-top: 12px;
}

.section-heading a,
.section-heading p {
    color: var(--muted);
    margin: 0;
}

.empty-state {
    margin: 80px auto;
    max-width: 680px;
    text-align: center;
}

.empty-state h1 {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 5vw, 4rem);
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 0 0 14px;
}

.empty-state p {
    color: var(--muted);
    font-size: 1.05rem;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.article-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card {
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
    transition: transform 0.2s ease;
}

.article-card:hover {
    transform: translateY(-3px);
}

.article-card p {
    color: var(--muted);
}

.article-hero {
    border-bottom: 1px solid var(--line);
    margin: 26px auto 22px;
    max-width: 880px;
    padding-bottom: 22px;
    text-align: center;
}

.standfirst {
    color: #333333;
    font-size: 1.25rem;
}

.featured-image {
    display: block;
    margin: 0 auto;
    max-height: 520px;
    max-width: 100%;
    object-fit: cover;
    width: 100%;
}

.featured-image-figure {
    margin: 0 auto 28px;
}

.featured-image-figure figcaption {
    color: #555555;
    display: grid;
    font-family: var(--sans);
    font-size: 0.92rem;
    gap: 3px;
    line-height: 1.45;
    margin-top: 0.55rem;
    text-align: center;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 720px) 300px;
    gap: 44px;
    justify-content: center;
}

.article-body {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.16rem;
}

.article-body h2,
.article-body h3 {
    line-height: 1.15;
}

.inline-article-image {
    margin: 1.6rem 0;
    max-width: 100%;
}

.inline-article-image img {
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}

.inline-article-image figcaption {
    color: #555555;
    display: grid;
    gap: 3px;
    font-family: var(--sans);
    font-size: 0.92rem;
    line-height: 1.45;
    margin-top: 0.55rem;
    text-align: center;
}

.inline-article-image .image-attribution {
    color: var(--muted);
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
}

.article-sidebar {
    display: grid;
    align-content: start;
    gap: 18px;
}

.notice-card,
.related-card {
    background: var(--soft);
    border-top: 4px solid var(--accent);
    padding: 18px;
}

.related-card a {
    border-top: 1px solid var(--line);
    display: block;
    font-family: var(--serif);
    font-weight: 700;
    padding: 12px 0;
    transition: color 0.2s ease;
}

.about-page {
    max-width: 780px;
}

.about-page h1 {
    font-family: var(--serif);
    font-size: 3rem;
    line-height: 1;
}

/* ─── FOOTER ──────────────────────────────────────────────── */

.site-footer {
    max-width: 100%;
    background: var(--nav-bg);
    color: #999;
    border-top: none;
    margin-top: 60px;
    padding: 0;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand-name {
    font-family: var(--oldeng);
    font-size: 1.5rem;
    color: #fff;
    display: block;
    margin-bottom: 8px;
}

.footer-inner p {
    color: #888;
    font-size: 0.85rem;
    margin: 0;
    max-width: 420px;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.footer-links a {
    color: #999;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copy {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 20px;
    border-top: 1px solid #333;
    color: #555;
    font-size: 0.78rem;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 960px) {
    .home-grid,
    .lead-story {
        grid-template-columns: 1fr;
    }

    .lead-image {
        aspect-ratio: 16 / 9;
        height: auto;
        min-height: 0;
    }

    .latest-panel {
        border-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 840px) {
    .home-grid,
    .lead-story,
    .article-layout,
    .article-grid,
    .article-grid.compact {
        grid-template-columns: 1fr;
    }

    .latest-panel {
        border-left: 0;
        padding-left: 0;
    }

    .masthead-inner {
        padding: 14px 16px;
        gap: 12px;
    }

    .p-logo {
        width: 52px;
        height: 52px;
        font-size: 2rem;
    }

    .masthead-actions {
        width: 52px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-inner {
        padding: 0 16px;
        overflow-x: visible;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        white-space: normal;
        padding: 0 0 12px;
        border-top: 1px solid #333;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 11px 0;
        border-bottom: 1px solid #2a2a2a;
        border-left: none;
    }

    .footer-links {
        align-items: flex-start;
    }

    .utility-left .util-divider,
    .utility-left span:last-child {
        display: none;
    }
}
