@font-face {
    font-family: "Source Serif 4";
    src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
}

@font-face {
    font-family: Manrope;
    src: url("../fonts/manrope-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

:root {
    color-scheme: light dark;
    --paper: #f7f7f2;
    --paper-raised: #fbfbf8;
    --ink: #1b2526;
    --muted: #626a69;
    --soft: #858c89;
    --rule: #d9dcd5;
    --accent: #b6322c;
    --accent-hover: #8f2925;
    --focus: #154f7c;
    --serif: "Source Serif 4", Georgia, serif;
    --sans: Manrope, "Helvetica Neue", sans-serif;
    --page-width: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.public-site {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.public-site a { color: inherit; text-decoration: none; }
.public-site a:hover { color: var(--accent); }
.public-site a:focus-visible,
.public-site button:focus-visible,
.public-site input:focus-visible,
.public-site select:focus-visible,
.public-site summary:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    z-index: 10;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    color: var(--paper) !important;
    background: var(--ink);
    transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.masthead {
    border-top: 4px solid var(--accent);
    background: var(--paper);
}

.masthead-inner,
.page-shell,
.footer-inner {
    width: min(var(--page-width), calc(100% - 64px));
    margin-inline: auto;
}

.edition-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0 10px;
    color: var(--muted);
    border-bottom: 1px solid var(--rule);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .045em;
}

.edition-line time { text-align: right; }

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 12px 0;
}

.wordmark,
.footer-wordmark {
    font-family: var(--serif);
    font-size: clamp(33px, 4.6vw, 54px);
    font-weight: 700;
    letter-spacing: -.065em;
    line-height: .95;
    white-space: nowrap;
}

.masthead-search { display: flex; align-items: center; justify-content: flex-end; }
.search-toggle { display: none; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.category-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.5vw, 34px);
    min-height: 46px;
    overflow: visible;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--rule);
    font-size: 12px;
    font-weight: 700;
}

.category-links { display: flex; flex: 1; align-items: center; gap: clamp(16px, 2.5vw, 34px); min-width: 0; overflow: visible; }
.category-links > a { white-space: nowrap; }

.more-categories { position: relative; margin-left: auto; white-space: nowrap; }
.more-categories summary { position: relative; padding-right: 16px; cursor: pointer; list-style: none; }
.more-categories summary::-webkit-details-marker { display: none; }
.more-categories summary::before,
.more-categories summary::after { position: absolute; top: 50%; right: 0; width: 9px; height: 1px; background: var(--accent); content: ""; }
.more-categories summary::before { transform: rotate(90deg); }
.more-categories[open] summary::before { transform: rotate(90deg) scaleX(0); }

.category-menu {
    position: absolute;
    z-index: 5;
    top: calc(100% + 12px);
    right: 0;
    display: grid;
    min-width: 220px;
    padding: 8px 16px;
    border: 1px solid var(--rule);
    background: var(--paper-raised);
    box-shadow: 0 12px 25px rgb(27 37 38 / 12%);
}

.category-menu a { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.category-menu a:last-child { border-bottom: 0; }

.page-shell { padding-top: 43px; padding-bottom: 72px; }

.archive-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--rule);
}

.section-kicker {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    line-height: 1.4;
    text-transform: uppercase;
}

.archive-heading h1,
.article-header h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(36px, 5.5vw, 62px);
    font-weight: 650;
    letter-spacing: -.045em;
    line-height: 1.02;
}

.archive-intro { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.result-count { margin: 0 0 4px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.result-count span { display: block; color: var(--muted); font-size: 11px; font-weight: 500; text-align: right; }

.archive-tools {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    padding: 18px 0 22px;
}

.search-form { width: min(100%, 440px); }
.search-form > label,
.filter-form label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 750; }
.search-control { display: flex; gap: 6px; }
.search-control input,
.filter-form select {
    min-width: 0;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid #aeb5af;
    /* Content stays square; interactive controls use one restrained 4px radius. */
    border-radius: 4px;
    color: var(--ink);
    background: var(--paper-raised);
    font: inherit;
    font-size: 13px;
}

.search-control input { flex: 1; }
.search-control input::placeholder { color: #737b78; opacity: 1; }
.masthead-search .search-form { width: min(35vw, 340px); }
.masthead-search .search-control input { min-height: 40px; }
.masthead-search .search-control button { min-height: 40px; padding-inline: 14px; }
.search-control button,
.filter-form button {
    min-height: 42px;
    padding: 8px 17px;
    border: 1px solid var(--ink);
    border-radius: 4px;
    color: var(--paper);
    background: var(--ink);
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.search-control button:hover,
.filter-form button:hover { border-color: var(--accent-hover); background: var(--accent-hover); }
.advanced-filters { align-self: center; color: var(--muted); font-size: 12px; }
.advanced-filters summary { color: var(--ink); cursor: pointer; font-weight: 700; }
.advanced-filters summary::marker { color: var(--accent); }
.filter-form { display: flex; align-items: end; gap: 12px; padding-top: 14px; }
.filter-form label { margin: 0; }
.filter-form select { display: block; min-width: 180px; margin-top: 6px; }

.front-page-stories {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(270px, .7fr);
    gap: clamp(24px, 4vw, 54px);
    padding-top: 10px;
}

.lead-story { min-width: 0; }
.lead-image-link { position: relative; display: block; overflow: hidden; aspect-ratio: 2 / 1; margin-bottom: 0; background: #d9dcd5; }
.lead-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.lead-copy { max-width: 780px; margin-bottom: 20px; }
.story-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.archive-tag { padding: 2px 6px; border: 1px solid #c5c9c1; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.lead-story h2 { max-width: 780px; margin: 10px 0 9px; font-family: var(--serif); font-size: clamp(32px, 4.6vw, 50px); font-weight: 620; letter-spacing: -.04em; line-height: 1.04; }
.story-summary { margin: 0; color: #485150; font-size: 14px; line-height: 1.65; }
.story-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 14px; margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.story-byline time { font-variant-numeric: tabular-nums; }
.story-byline a { color: var(--accent); font-weight: 750; }

.secondary-stories { display: grid; align-content: start; }
.story-row { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.story-row--secondary { padding: 0 0 21px; border-bottom: 1px solid var(--rule); }
.story-row--secondary + .story-row--secondary { padding-top: 21px; }
.story-row--secondary .story-image-link { position: relative; display: block; overflow: hidden; aspect-ratio: 1.85; margin-bottom: 13px; background: #d9dcd5; }
.story-row--secondary .story-image-link img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.story-row--secondary h3 { margin: 8px 0 6px; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 29px); font-weight: 620; letter-spacing: -.025em; line-height: 1.13; }
.story-row--secondary .story-summary { font-size: 12px; }

.latest-section,
.related-section { margin-top: 54px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 0 0 12px; border-bottom: 1px solid var(--ink); }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -.025em; }
.section-heading > span { color: var(--muted); font-size: 10px; }
.story-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.story-row--list { grid-template-columns: minmax(118px, .39fr) minmax(0, 1fr); gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.story-row--list.story-row--no-image { grid-template-columns: minmax(0, 1fr); }
.story-row--list .story-image-link { position: relative; display: block; align-self: start; overflow: hidden; aspect-ratio: 1.3; background: #d9dcd5; }
.story-row--list .story-image-link img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.story-row--list h3,
.story-row--related h3 { margin: 7px 0 6px; font-family: var(--serif); font-size: 21px; font-weight: 620; letter-spacing: -.025em; line-height: 1.18; }
.story-row--list .story-summary { display: -webkit-box; overflow: hidden; font-size: 11px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.filtered-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.filtered-results .story-row { grid-template-columns: minmax(118px, .39fr) minmax(0, 1fr); gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.filtered-results .story-row--no-image { grid-template-columns: minmax(0, 1fr); }
.filtered-results .story-image-link { position: relative; display: block; align-self: start; overflow: hidden; aspect-ratio: 1.3; background: #d9dcd5; }
.filtered-results .story-image-link img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.filtered-results .story-row h3 { margin: 7px 0 6px; font-family: var(--serif); font-size: 21px; font-weight: 620; letter-spacing: -.025em; line-height: 1.18; }
.filtered-results .story-summary { display: -webkit-box; overflow: hidden; font-size: 11px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

aside.ad-placement {
    margin: 18px auto 24px;
    text-align: center;
}

.ad-placement__label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.3;
}

.filtered-results > .ad-placement { grid-column: 1 / -1; }

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 36px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
    font-size: 11px;
}

.pagination .small { color: var(--muted); }
.pagination a { font-weight: 750; }
.empty-state { padding: 48px 0; }
.empty-state h2 { max-width: 600px; margin: 0; font-family: var(--serif); font-size: 34px; line-height: 1.1; }
.empty-state p:not(.section-kicker) { color: var(--muted); }
.text-link { display: inline-block; margin-top: 10px; color: var(--accent) !important; font-size: 12px; font-weight: 800; text-decoration: underline !important; text-underline-offset: 3px; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 31px; color: var(--muted); font-size: 11px; }
.breadcrumbs a { color: var(--accent); font-weight: 750; }
.article-page { max-width: 860px; margin-inline: auto; }
.article-header { padding-bottom: 27px; }
.article-header h1 { max-width: 840px; }
.article-deck { max-width: 750px; margin: 16px 0 0; color: #485150; font-family: var(--serif); font-size: clamp(19px, 2.6vw, 25px); line-height: 1.42; }
.article-byline { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 24px; padding-top: 13px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 11px; }
.article-byline > div { display: flex; flex-wrap: wrap; gap: 6px 15px; }
.article-byline time { font-variant-numeric: tabular-nums; }
.article-source { color: var(--ink); font-weight: 750; }
.source-link { color: var(--accent) !important; font-size: 11px; font-weight: 800; white-space: nowrap; }
.source-link svg { width: 10px; height: 10px; margin-left: 3px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; vertical-align: -1px; }
.article-sharing { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.article-sharing-label { margin-right: 2px; color: var(--muted); font-size: 11px; }
.article-share-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 44px; min-height: 44px; padding: 7px 11px; border: 1px solid var(--rule); color: var(--ink) !important; font-size: 11px; font-weight: 750; line-height: 1.2; }
.article-share-link:hover { border-color: var(--accent); color: var(--accent) !important; }
.article-share-link svg { flex: 0 0 auto; width: 18px; height: 18px; fill: currentColor; }
.article-share-link:first-of-type svg path { fill: currentColor; }
.article-share-link:last-of-type svg path:first-child { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; }
.article-figure { margin: 0 0 32px; }
.article-figure img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: cover; }
.article-figure figcaption { margin-top: 7px; color: var(--muted); font-size: 10px; }
.article-body { max-width: 68ch; margin: 0 auto; font-family: var(--serif); font-size: 19px; line-height: 1.8; overflow-wrap: anywhere; }
.article-body > :first-child { margin-top: 0; }
.article-body h2,
.article-body h3 { margin: 1.7em 0 .55em; font-family: var(--serif); line-height: 1.2; }
.article-body p { margin: 0 0 1.35em; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { display: block; max-width: 100%; height: auto; margin: 1.5em auto; }
.article-body figure { margin: 1.5em 0; }
.article-body figcaption { color: var(--muted); font-family: var(--sans); font-size: 11px; line-height: 1.45; }
.article-body blockquote { margin: 1.5em 0; padding: 0 0 0 20px; border-left: 2px solid var(--accent); color: #485150; }
.article-body ul,
.article-body ol { padding-left: 1.3em; }
.article-source-note { display: flex; justify-content: space-between; gap: 18px; max-width: 68ch; margin: 32px auto 0; padding-top: 13px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 10px; }
.article-source-note a { color: var(--accent); font-weight: 750; }
.related-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.story-row--related { align-content: start; padding-top: 18px; border-top: 1px solid var(--rule); }
.story-row--related .story-image-link { position: relative; display: block; overflow: hidden; aspect-ratio: 1.55; margin-bottom: 12px; background: #d9dcd5; }
.story-row--related .story-image-link img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.story-row--related .story-summary { font-size: 11px; }

.site-footer { border-top: 1px solid var(--ink); background: var(--paper-raised); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding-block: 12px; }
.footer-wordmark { font-size: 25px; }
.footer-inner p { margin: 0 auto 0 8px; color: var(--muted); font-size: 10px; }
.footer-inner > a:last-child { color: var(--accent); font-size: 10px; font-weight: 750; }

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #151a19;
        --paper-raised: #1c2220;
        --ink: #eff0e8;
        --muted: #b5bcb5;
        --soft: #959e98;
        --rule: #3d4540;
        --accent: #ef7868;
        --accent-hover: #d85e53;
        --focus: #8fc6ef;
    }
    .search-control input,
    .filter-form select { border-color: #69716b; }
    .search-control input::placeholder { color: #aab1aa; }
    .search-control button,
    .filter-form button { color: #161a19; background: var(--accent); border-color: var(--accent); }
    .story-summary,
    .article-deck,
    .article-body blockquote { color: #c4cbc4; }
    .category-menu { box-shadow: 0 12px 25px rgb(0 0 0 / 35%); }
}

@media (max-width: 900px) {
    .category-links { overflow-x: auto; scrollbar-width: thin; }
    .front-page-stories { grid-template-columns: minmax(0, 1.1fr) minmax(235px, .9fr); gap: 24px; }
    .story-list,
    .filtered-results { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .masthead-inner,
    .page-shell,
    .footer-inner { width: min(100% - 36px, var(--page-width)); }
    .edition-line { align-items: flex-start; font-size: 9px; }
    .edition-line time { max-width: 50%; }
    .brand-row { gap: 12px; padding: 13px 0; }
    .wordmark { font-size: clamp(32px, 9vw, 43px); }
    .masthead-search { position: relative; flex: 1; }
    .search-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 8px 13px;
        border: 1px solid var(--rule);
        border-radius: 4px;
        color: var(--ink);
        background: var(--paper-raised);
        font: inherit;
        font-size: 12px;
        font-weight: 750;
        cursor: pointer;
    }
    .masthead-search .search-form {
        position: absolute;
        z-index: 6;
        top: calc(100% + 10px);
        right: 0;
        width: min(calc(100vw - 36px), var(--page-width));
        padding: 12px;
        border: 1px solid var(--rule);
        background: var(--paper-raised);
        box-shadow: 0 12px 25px rgb(27 37 38 / 12%);
    }
    .masthead-search .search-form[hidden] { display: none; }
    .category-nav { gap: 12px; margin-right: -18px; padding-right: 18px; overflow: visible; font-size: 11px; }
    .category-links { gap: 18px; }
    .more-categories { flex: 0 0 auto; padding-right: 18px; }
    .page-shell { padding-top: 31px; padding-bottom: 54px; }
    .archive-heading { align-items: start; gap: 14px; padding-bottom: 19px; }
    .archive-heading h1 { font-size: clamp(34px, 9vw, 45px); }
    .archive-intro { max-width: 340px; font-size: 11px; }
    .result-count { padding-top: 20px; font-size: 10px; }
    .result-count span { font-size: 9px; }
    .archive-tools { display: block; padding: 16px 0 19px; }
    .advanced-filters { margin-top: 13px; }
    .filter-form { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .filter-form select { width: 100%; }
    .front-page-stories { grid-template-columns: 1fr; gap: 27px; }
    .lead-image-link { aspect-ratio: 1.62; }
    .lead-copy { margin-bottom: 14px; }
    .lead-story h2 { font-size: clamp(31px, 8.5vw, 42px); }
    .story-summary { font-size: 12px; }
    .secondary-stories { grid-template-columns: 1fr 1fr; gap: 17px; }
    .story-row--secondary { padding-bottom: 0; border-bottom: 0; }
    .story-row--secondary + .story-row--secondary { padding-top: 0; }
    .story-row--secondary h3 { font-size: 20px; }
    .story-row--secondary .story-summary { display: none; }
    .story-list,
    .filtered-results { grid-template-columns: 1fr; }
    .story-row--list,
    .filtered-results .story-row { grid-template-columns: minmax(94px, .35fr) minmax(0, 1fr); gap: 13px; padding: 16px 0; }
    .story-row--list.story-row--no-image,
    .filtered-results .story-row--no-image { grid-template-columns: minmax(0, 1fr); }
    .story-row--list h3,
    .filtered-results .story-row h3 { font-size: 19px; }
    .story-row--list .story-summary,
    .filtered-results .story-summary { display: none; }
    .section-heading { align-items: start; }
    .section-heading h2 { font-size: 25px; }
    .section-heading > span { max-width: 145px; text-align: right; }
    .latest-section,
    .related-section { margin-top: 38px; }
    .breadcrumbs { margin-bottom: 23px; }
    .article-header h1 { font-size: clamp(35px, 9.5vw, 48px); }
    .article-deck { font-size: 19px; }
    .article-byline { align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 18px; }
    .article-byline > div { display: grid; gap: 4px; }
    .article-body { font-size: 18px; line-height: 1.76; }
    .article-source-note { flex-direction: column; gap: 7px; }
    .related-stories { grid-template-columns: 1fr; gap: 21px; }
    .story-row--related { grid-template-columns: 110px minmax(0, 1fr); gap: 13px; }
    .story-row--related.story-row--no-image { grid-template-columns: minmax(0, 1fr); }
    .story-row--related .story-image-link { grid-row: span 3; margin: 0; }
    .story-row--related h3 { margin-top: 0; font-size: 19px; }
    .story-row--related .story-summary { display: none; }
    .footer-inner { gap: 10px 12px; }
    .footer-wordmark { font-size: 21px; }
    .footer-inner p { margin-left: 0; }
}

@media (max-width: 380px) {
    .masthead-inner,
    .page-shell,
    .footer-inner { width: calc(100% - 28px); }
    .edition-line { gap: 7px; }
    .edition-line time { max-width: 44%; }
    .brand-row { align-items: center; flex-direction: row; gap: 9px; }
    .category-nav { margin-right: 0; padding-right: 0; }
    .archive-heading { display: block; }
    .result-count { padding-top: 10px; text-align: left; }
    .result-count span { display: inline; padding-left: 5px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
