:root {
    --paper: #f7f4ed;
    --ink: #241f1b;
    --muted: #615a52;
    --line: #d7cfc3;
    --accent: #a42d21;
    --accent-dark: #7b2118;
    --serif: 'DM Serif Text', Georgia, 'Times New Roman', serif;
    --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --page: 1200px;
    --gutter: clamp(16px, 4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 1rem/1.55 var(--sans);
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .17em; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.shell { width: min(var(--page), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: .55rem .9rem; background: var(--paper); }
.skip-link:focus { top: 1rem; }
.site-header { border-top: 4px solid var(--accent); }

.utility {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 42px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: .75rem;
    font-weight: 560;
}

.utility a { text-decoration: none; }
.utility a:hover { text-decoration: underline; }

.brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    min-height: 125px;
    padding-block: 13px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .16em;
    font: bold clamp(3.05rem, 8vw, 6.5rem)/.95 var(--serif);
    letter-spacing: -.083em;
    text-decoration: none;
}

.brand-mark { flex: none; width: .65em; height: .65em; }
.brand-wordmark { display: inline-flex; align-items: baseline; gap: .095em; }
.brand-accent { font-weight: normal; }
.brand-dot { width: .094em; height: .094em; background: var(--accent); border-radius: 100%; }

.search {
    display: flex;
    width: min(230px, 40%);
    border-bottom: 1px solid var(--muted);
}

.search input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: .9rem;
}

.search input::placeholder { color: var(--muted); opacity: 1; }
.search button { flex: 0 0 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.search button:hover { color: var(--accent); }
.search-icon { position: relative; display: block; width: 13px; height: 13px; border: 1.7px solid currentColor; border-radius: 50%; }
.search-icon::after { content: ''; position: absolute; width: 7px; height: 1.7px; right: -5px; bottom: -3px; transform: rotate(45deg); background: currentColor; }

.nav-wrap { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.section-nav { display: flex; gap: clamp(20px, 4vw, 47px); overflow-x: auto; scrollbar-width: thin; }
.section-nav a { display: flex; flex: 0 0 auto; align-items: center; gap: .5rem; min-height: 47px; border-bottom: 2px solid transparent; padding-top: 2px; text-decoration: none; font-size: .85rem; font-weight: 670; }
.section-nav a[aria-current], .section-nav a:hover { color: var(--accent); border-color: currentColor; }
.section-nav a:focus-visible { outline-offset: -2px; }
.news-dot { display: inline-block; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 100%; background: var(--accent); }

.main { flex: 1; padding-block: clamp(24px, 4vw, 48px) clamp(46px, 7vw, 96px); }
.page-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: clamp(17px, 2.25vw, 29px); padding-bottom: 13px; border-bottom: 1px solid var(--ink); }
.page-heading h1, .rule-heading { font: bold clamp(1.85rem, 3.4vw, 2.75rem)/1.06 var(--serif); letter-spacing: -.048em; }
.update-note { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .75rem; white-space: nowrap; }
.query-note { margin-top: .4rem; color: var(--muted); }
.query-note a { color: var(--accent-dark); }

.front-grid, .detail-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 55px); }
.lead { min-width: 0; }
.lead-visual {
    position: relative;
    display: block;
    overflow: hidden;
    isolation: isolate;
    aspect-ratio: 2.42;
    min-height: 158px;
    background: #8a281e;
    text-decoration: none;
}

.lead-visual img { width: 100%; height: 100%; object-fit: cover; }
.lead-visual--graphic {
    background:
        repeating-linear-gradient(0deg, transparent 0 3px, #16050319 3px 4px),
        repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), #ffcfb020 calc(12.5% - 1px) 12.5%),
        radial-gradient(ellipse at 20% 70%, #d9714d 0%, #a33625 45%, #632119 87%);
}

.lead-visual--graphic::before, .lead-visual--graphic::after {
    position: absolute;
    z-index: -1;
    content: '';
    inset: 12px;
    border: 1px solid #ffcfb080;
}

.lead-visual--graphic::after {
    inset: 0;
    border: 0;
    background: repeating-linear-gradient(128deg, transparent 0 7px, #370d121f 7px 8px);
    mask-image: linear-gradient(105deg, #000, transparent 62%);
}

.orbit { position: absolute; left: 50%; top: 50%; width: 85%; height: 71%; border: 1px solid #ffd1ad8c; border-radius: 100%; transform: translate(-50%, -50%) rotate(-24deg); }
.orbit-two { width: 72%; height: 68%; transform: translate(-50%, -50%) rotate(24deg); }
.orbit-three { width: 58%; height: 107%; transform: translate(-50%, -50%) rotate(-54deg); }
.lead-monogram { position: absolute; top: 50%; left: 50%; transform: translate(-56%, -58%); color: #f8e5c6; font: italic bold clamp(6rem, 16vw, 13rem)/1 var(--serif); letter-spacing: -.12em; text-shadow: 3px 4px #50191150; }
.lead-monogram span { color: #f9b67c; }

.lead-copy { padding-top: 18px; }
.story-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .18rem .65rem; color: var(--muted); font-size: .73rem; font-weight: 570; line-height: 1.35; }
.story-meta time::before { content: '·'; margin-right: .65rem; }
.desk { color: var(--accent-dark); font-size: .67rem; font-weight: 780; letter-spacing: .095em; text-transform: uppercase; }
.lead h2 { margin-top: .54rem; font: bold clamp(1.9rem, 4.2vw, 3.8rem)/1.035 var(--serif); letter-spacing: -.045em; overflow-wrap: anywhere; }
.lead h2 a, .timeline h3 a, .headline-card h2 a, .headline-card h3 a { text-decoration: none; }
.lead h2 a:hover, .timeline h3 a:hover, .headline-card h2 a:hover, .headline-card h3 a:hover { color: var(--accent-dark); text-decoration: underline; text-decoration-thickness: .055em; }
.lead p { max-width: 61ch; margin-top: .9rem; color: var(--muted); }
.story-link { display: inline-flex; align-items: center; gap: .45rem; margin-top: .9rem; color: var(--accent-dark); font-size: .85rem; font-weight: 730; text-decoration: none; }
.story-link:hover { text-decoration: underline; }

.front-rail { padding-left: clamp(18px, 2.7vw, 36px); border-left: 1px solid var(--line); }
.rail-title { padding-bottom: .65rem; border-bottom: 2px solid var(--ink); font: bold clamp(1.15rem, 1.8vw, 1.6rem)/1.2 var(--serif); letter-spacing: -.034em; }
.timeline { padding: 0; margin: 0; list-style: none; }
.timeline li { padding-block: 14px; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline h3 { margin-top: .36rem; font: bold clamp(1.02rem, 1.8vw, 1.35rem)/1.17 var(--serif); letter-spacing: -.025em; overflow-wrap: anywhere; }

.front-grid + .headlines { margin-top: clamp(40px, 6vw, 68px); }
.rule-heading { padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.headline-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 38px); }
.headline-card { padding-block: 20px 22px; border-bottom: 1px solid var(--line); }
.headline-card :is(h2, h3) { margin-top: .5rem; font: bold clamp(1.15rem, 2.05vw, 1.55rem)/1.15 var(--serif); letter-spacing: -.032em; overflow-wrap: anywhere; }
.headline-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-top: .56rem; color: var(--muted); font-size: .87rem; }

.empty { padding: clamp(24px, 6vw, 72px) clamp(16px, 4vw, 55px); border-bottom: 1px solid var(--line); background: #efe9de; }
.empty h2 { font: bold clamp(1.5rem, 3vw, 2.25rem)/1.15 var(--serif); letter-spacing: -.04em; }
.empty p { margin-top: .6rem; color: var(--muted); }

.breadcrumb { display: flex; align-items: center; gap: .65rem; margin-bottom: 18px; color: var(--muted); font-size: .82rem; }
.breadcrumb a { color: var(--accent-dark); }
.detail h1, .info-page h1 { font: bold clamp(2.15rem, 5vw, 4rem)/1.06 var(--serif); letter-spacing: -.055em; overflow-wrap: anywhere; }
.detail .story-meta { margin-top: 1rem; }
.detail-image { width: 100%; max-height: 480px; margin-top: 1.5rem; object-fit: cover; }
.summary { margin-top: 1.4rem; max-width: 68ch; font: clamp(1.13rem, 2vw, 1.35rem)/1.6 var(--serif); }
.summary p + p { margin-top: .75em; }
.source-box { display: flex; justify-content: space-between; align-items: center; gap: 1.1rem; margin-top: 1.7rem; padding: clamp(14px, 3vw, 24px); border: 1px solid var(--line); background: #eee8db; }
.source-label { display: block; color: var(--muted); font-size: .72rem; font-weight: 720; text-transform: uppercase; letter-spacing: .075em; }
.source-box strong { display: block; margin-top: .22rem; }
.source-title { display: block; margin-top: .25rem; color: var(--muted); font-size: .84rem; }
.source-button { display: inline-flex; justify-content: center; align-items: center; gap: .55rem; min-height: 44px; padding: .6rem .85rem; background: var(--accent-dark); color: white; font-size: .85rem; font-weight: 690; text-decoration: none; white-space: nowrap; }
.source-button:hover { background: var(--ink); }
.source-credit { margin-top: .85rem; color: var(--muted); font-size: .8rem; }
.source-credit a { color: var(--accent-dark); }

.info-page { max-width: 68ch; }
.info-page h2 { margin-top: 1.6rem; font: bold 1.55rem/1.2 var(--serif); }
.info-page p, .info-page ul { margin-top: .85rem; color: var(--muted); }
.sources-list { padding-left: 1.2rem; }
.sources-list li { padding-left: .25rem; }
.sources-list li::marker { color: var(--accent); }

.site-footer { padding-block: 27px; border-top: 4px solid var(--accent); background: var(--ink); color: var(--paper); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-brand { font: bold 2rem/.95 var(--serif); letter-spacing: -.065em; text-decoration: none; }
.footer-brand span { font-weight: normal; }
.footer-brand .footer-dot { color: #ed8b6b; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .8rem; }
.site-footer a:focus-visible { outline-color: #ed8b6b; }
.site-footer small { color: #d8cec2; white-space: nowrap; }

@media (max-width: 780px) {
    .brand-row { min-height: 100px; }
    .front-grid, .detail-grid { grid-template-columns: minmax(0, 1fr); }
    .front-rail { padding-left: 0; border-left: 0; }
    .timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.15rem; }
    .timeline li:last-child { border-bottom: 1px solid var(--line); }
    .headline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lead-visual { aspect-ratio: 2.5; }
}

@media (max-width: 490px) {
    .utility { min-height: 35px; font-size: .68rem; }
    .brand-row { gap: 12px; min-height: 75px; }
    .brand { font-size: clamp(2.18rem, 9vw, 3.1rem); }
    .search { width: min(154px, 42%); }
    .search input { min-height: 38px; font-size: .76rem; }
    .search button { flex-basis: 29px; }
    .section-nav a { min-height: 42px; font-size: .8rem; }
    .page-heading { flex-direction: column; align-items: flex-start; gap: .5rem; }
    .update-note { font-size: .69rem; }
    .lead-visual { aspect-ratio: 1.95; }
    .lead-monogram { font-size: 7rem; }
    .timeline, .headline-grid { grid-template-columns: minmax(0, 1fr); }
    .source-box { align-items: flex-start; flex-direction: column; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
}
