:root {
  --night: #19151f; --paper: #f0e9dc; --accent: #bca16b; --muted: #b9aebe; --line: #49404d; --violet: #81718e;
  --serif: 'Cormorant Garamond', Georgia, serif; --sans: 'DM Sans', sans-serif; --mono: 'DM Mono', monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--paper); background: var(--night); font: 15px/1.7 var(--sans); }
button, input, select { font: inherit; }
button, a, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button, a, summary { transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
::selection { background: var(--accent); color: var(--night); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
.wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 20; top: 12px; left: 12px; transform: translateY(-180%); padding: 12px 20px; background: var(--paper); color: var(--night); }
.skip-link:focus { transform: none; }
.preview-note { padding: 6px 14px; text-align: center; background: #27202e; color: var(--muted); font: 10px/1.6 var(--mono); }
.masthead-row { padding-block: 24px 21px; }
.brand { display: block; width: min(800px, 100%); margin-inline: auto; }
.brand img { width: 100%; height: auto; mix-blend-mode: lighten; }
.navigation-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-block: 1px solid var(--line); padding-block: 7px; }
.edition-label { font: 9px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.navigation-row nav { display: flex; gap: 28px; }
.navigation-row a, .network-link { display: inline-flex; align-items: center; min-height: 36px; font-size: 11px; }
.network-link { color: var(--accent); white-space: nowrap; }
.hero { padding-block: 44px 62px; text-align: center; }
.eyebrow { font: 10px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.ruled-label { display: flex; justify-content: center; gap: 15px; align-items: center; color: var(--accent); }
.ruled-label::before { content: ''; width: 25px; height: 1px; background: var(--accent); }
h1 { font: 400 clamp(60px, 7.8vw, 102px)/.99 var(--serif); letter-spacing: -.025em; margin: 25px 0 25px; }
h1 em { color: var(--accent); font-weight: 400; }
.intro { color: var(--muted); font-size: 13px; max-width: 620px; line-height: 1.9; margin: 0 auto 25px; }
.hero-search { display: flex; border-bottom: 1px solid var(--accent); min-height: 50px; max-width: 580px; margin-inline: auto; }
.hero-search input, .archive-search input { min-width: 0; flex: 1; border: 0; border-radius: 0; padding: 14px 16px; background: transparent; color: var(--paper); font-size: 13px; }
input::placeholder { color: var(--muted); opacity: 1; }
.hero-search button, .solid-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; border: 1px solid var(--accent); background: var(--accent); color: var(--night); padding: 13px 20px; font-size: 12px; }
.solid-button:hover { background: var(--paper); border-color: var(--paper); }
.hero-search button { border: 0; color: var(--accent); background: transparent; }
.hero-search button:hover { color: var(--paper); }
.random-button { padding: 14px 0 0; min-height: 44px; background: transparent; border: 0; font-size: 11px; color: var(--accent); }
.random-button span { margin-left: 18px; }
.random-button:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.action-status { color: var(--accent); font-size: 12px; margin-top: 10px; overflow-wrap: anywhere; }
.action-status:empty, .copy-status:empty { display: none; }
.daily-section { padding-bottom: 20px; }
.section-ribbon { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 20px; }
.section-ribbon h2 { color: var(--accent); font: 400 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.section-ribbon>span { color: var(--muted); font: 10px/1.6 var(--mono); }
.daily-feature, .story-dialog { --accent: #766036; --muted: #61586a; --line: #c9bdab; color: var(--night); background: var(--paper); color-scheme: light; }
.daily-feature { display: grid; grid-template-columns: 1.05fr 1fr; padding: 32px; gap: 32px; align-items: center; border-top: 3px solid #bca16b; }
.daily-image-frame { position: relative; aspect-ratio: 4/3; display: grid; place-items: center; background: #ddd3c2; overflow: hidden; }
.daily-image-frame>p { text-align: center; padding: 24px; color: var(--muted); font: 27px/1.3 var(--serif); }
.daily-image-frame>img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.image-note { position: absolute; bottom: 10px; left: 10px; right: 10px; width: fit-content; padding: 5px 8px; background: #19151fed; color: #f0e9dc; font: 9px/1.5 var(--mono); }
.daily-editorial { min-width: 0; padding: 8px 0 8px 32px; border-left: 1px solid #bca16b; }
.daily-date { font: 10px/1.6 var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 21px; }
.daily-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 15px; color: var(--muted); font: 9px/1.6 var(--mono); text-transform: uppercase; margin-bottom: 14px; }
.daily-copy h3 { font: 500 clamp(30px, 2.9vw, 40px)/1.12 var(--serif); letter-spacing: -.025em; overflow-wrap: anywhere; }
.daily-subject { font-size: 11px; color: var(--accent); margin-top: 15px; }
.daily-summary { font-size: 13px; color: var(--muted); line-height: 1.85; margin-block: 18px 22px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.daily-bottom { border-top: 1px solid var(--line); padding-top: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.record-status { font: 9px/1.6 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.text-link { border: 0; background: transparent; padding: 8px 0; color: inherit; font-size: 12px; }
.daily-bottom .text-link, .daily-error button { color: var(--accent); }
.daily-error { font-size: 14px; color: var(--muted); }
.archive { padding-block: 68px 72px; }
.archive-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding-bottom: 35px; margin-bottom: 35px; border-bottom: 1px solid var(--line); }
.archive-heading .eyebrow { color: var(--accent); margin-bottom: 14px; }
.archive h2 { font: 400 clamp(47px, 5vw, 67px)/.98 var(--serif); letter-spacing: -.03em; }
.archive h2 em { color: var(--accent); font-weight: 400; }
.archive-intro { font: 12px/1.9 var(--sans); color: var(--muted); }
.archive-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 52px; }
.chapter-index { align-self: start; position: sticky; top: 24px; }
.chapter-index>.eyebrow { color: var(--muted); margin-bottom: 17px; font-size: 9px; }
.category-filters { display: flex; flex-direction: column; }
.category-filters button { text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); padding: 14px 8px; font-size: 12px; display: flex; align-items: center; gap: 15px; }
.category-filters button span { font: 10px/1.5 var(--mono); color: var(--violet); }
.category-filters button[aria-pressed=true] { color: var(--paper); background: #29222f; box-shadow: inset 2px 0 var(--accent); }
.category-filters button[aria-pressed=true] span { color: var(--accent); }
.category-filters button:hover { color: var(--accent); background: #251e2c; }
.index-note { color: var(--muted); font: italic 21px/1.4 var(--serif); padding-top: 24px; }
.archive-results { min-width: 0; }
.archive-search { display: flex; margin-bottom: 24px; }
.archive-search input { border: 1px solid var(--line); border-right: 0; }
.archive-search select { max-width: 170px; margin-left: 12px; border: 1px solid var(--line); border-radius: 0; background: var(--night); color: var(--paper); padding: 10px; font-size: 12px; }
.archive-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 14px; color: var(--accent); }
.archive-toolbar .eyebrow { font-size: 9px; }
.result-total { font: 10px/1.5 var(--mono); color: var(--muted); }
.archive-status { font: 10px/1.6 var(--mono); color: var(--muted); margin-top: 15px; overflow-wrap: anywhere; }
.archive-status:empty { display: none; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.story-card { min-width: 0; border-bottom: 1px solid var(--line); padding: 28px 0 18px; }
.story-kicker { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px 15px; margin-bottom: 13px; color: var(--accent); font: 9px/1.6 var(--mono); text-transform: uppercase; }
.story-kicker span:last-child { color: var(--muted); }
.story-open { font: 500 clamp(30px, 3.1vw, 41px)/1.1 var(--serif); letter-spacing: -.015em; text-align: left; color: var(--paper); padding: 0; background: transparent; border: 0; overflow-wrap: anywhere; }
.story-open:hover { color: var(--accent); }
.story-subject { color: var(--accent); font-size: 11px; margin-top: 13px; }
.story-excerpt { color: var(--muted); font-size: 13px; line-height: 1.85; margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 12px; }
.story-arrow { font-size: 22px; min-height: 44px; min-width: 44px; padding: 5px; background: transparent; border: 0; color: var(--accent); }
.story-arrow:hover { text-decoration: underline; text-underline-offset: 5px; }
.archive-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 27px; }
.archive-bottom>span { font: 10px/1.5 var(--mono); color: var(--muted); }
.outline-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; padding: 13px 21px; background: transparent; color: var(--paper); border: 1px solid var(--line); font-size: 12px; }
.outline-button:hover { border-color: var(--accent); color: var(--accent); }
.archive-disclaimer { font-size: 11px; color: var(--muted); margin-top: 28px; }
.archive-empty, .archive-error { text-align: center; padding-block: 45px; }
.archive-empty h3 { font: 400 36px/1.2 var(--serif); }
.archive-empty p, .archive-error p { font-size: 13px; color: var(--muted); margin-block: 12px 22px; }
.tools-section { background: #241d2b; border-block: 1px solid var(--line); padding-block: 58px; }
.tools-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 85px; }
.tools-intro .eyebrow { color: var(--accent); font-size: 9px; margin-bottom: 21px; }
.tools-intro h2 { font: 400 clamp(40px, 4.1vw, 56px)/1.05 var(--serif); letter-spacing: -.025em; }
.tools-intro h2 em { color: var(--accent); font-weight: 400; }
.tools-intro>p:last-child { font-size: 13px; color: var(--muted); margin-top: 23px; }
.tool-options { min-width: 0; }
.tool-option { border-bottom: 1px solid var(--line); }
.tool-option:first-child { border-top: 1px solid var(--line); }
.tool-option summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; cursor: pointer; }
.tool-option summary::-webkit-details-marker { display: none; }
.tool-index { display: block; color: var(--accent); font: 9px/1.6 var(--mono); letter-spacing: .08em; margin-bottom: 6px; }
.tool-option strong { font-size: 15px; font-weight: 400; }
.expand-icon { font-size: 22px; color: var(--accent); }
.tool-option[open] .expand-icon { transform: rotate(45deg); }
.tool-content { padding-bottom: 19px; min-width: 0; }
.tool-content>p { font-size: 12px; color: var(--muted); margin-bottom: 15px; }
.tool-content pre { margin: 0 0 12px; padding: 14px; background: var(--night); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font: 10px/1.9 var(--mono); color: var(--paper); }
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.tool-actions a { font-size: 11px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.tool-content .guide-note { font-size: 10px; margin: 12px 0 0; }
.copy-status { font-size: 11px; color: var(--accent); margin-top: 10px; overflow-wrap: anywhere; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 30px 35px; }
.footer-brand { font: 400 27px/1.2 var(--serif); }
.site-footer p { font-size: 10px; color: var(--muted); margin-top: 6px; }
.story-dialog { width: min(770px, calc(100% - 32px)); max-height: 90svh; padding: 0; border: 1px solid var(--accent); }
.story-dialog::backdrop { background: #100c17dc; backdrop-filter: blur(5px); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; position: sticky; top: 0; z-index: 1; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 28px; font: 9px/1.6 var(--mono); text-transform: uppercase; }
.dialog-top button { background: transparent; border: 0; color: var(--accent); padding: 10px; font: inherit; }
.dialog-content { padding: 35px 44px 40px; }
.dialog-content>.eyebrow { color: var(--muted); margin-bottom: 15px; overflow-wrap: anywhere; }
.story-dialog h2 { font: 500 clamp(35px, 4vw, 50px)/1.08 var(--serif); letter-spacing: -.025em; margin-bottom: 23px; overflow-wrap: anywhere; }
.story-labels { display: flex; flex-wrap: wrap; gap: 10px 20px; border-bottom: 1px solid var(--line); padding-bottom: 21px; margin-bottom: 24px; font: 10px/1.6 var(--mono); text-transform: uppercase; color: var(--muted); }
.story-body { font-size: 15px; line-height: 1.95; overflow-wrap: anywhere; }
.story-body p+p { margin-top: 20px; }
.story-sources { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 23px; }
.story-sources h3 { font: 500 11px/1.6 var(--mono); text-transform: uppercase; }
.story-sources ul { padding-left: 18px; font-size: 13px; }
.story-sources a { text-decoration: underline; color: var(--accent); overflow-wrap: anywhere; }
.source-note { font-size: 11px; color: var(--muted); margin: 15px 0 23px; }
.story-dialog .solid-button { background: var(--night); color: var(--paper); border-color: var(--night); }
.story-dialog .solid-button:hover { background: #382e41; }
body:has(.story-dialog[open]) { overflow: hidden; }
.noscript { padding-block: 25px; }
.noscript a { text-decoration: underline; }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .edition-label { display: none; }
  .brand { width: min(700px, 100%); }
  .daily-feature { padding: 24px; gap: 24px; }
  .daily-editorial { padding-left: 24px; }
  .archive-layout { grid-template-columns: 195px minmax(0,1fr); gap: 30px; }
  .category-filters button { font-size: 11px; gap: 10px; }
  .archive-search { flex-wrap: wrap; }
  .archive-search select { width: 100%; max-width: none; margin: 10px 0 0; }
  .tools-layout { gap: 40px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .masthead-row { padding-block: 24px; }
  .hero { padding-block: 34px 42px; }
  h1 { font-size: 72px; }
  .daily-feature { grid-template-columns: 1fr; gap: 24px; }
  .daily-image-frame { max-width: 600px; width: 100%; margin-inline: auto; }
  .daily-editorial { border-left: 0; border-top: 1px solid #bca16b; padding: 22px 0 0; }
  .daily-copy h3 { font-size: 36px; }
  .daily-date { margin-bottom: 16px; }
  .archive { padding-block: 44px; }
  .archive-layout { grid-template-columns: minmax(0,1fr); gap: 25px; }
  .chapter-index { position: static; }
  .category-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; }
  .category-filters button { font-size: 12px; }
  .index-note { display: none; }
  .story-open { font-size: 36px; }
  .tools-layout { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 580px) {
  .wrap { width: calc(100% - 36px); }
  .navigation-row { flex-wrap: wrap; justify-content: center; gap: 0; padding-block: 5px; }
  .navigation-row nav { width: 100%; justify-content: center; gap: 25px; }
  .navigation-row a { min-height: 38px; }
  .navigation-row .network-link { font-size: 10px; }
  h1 { font-size: 12.2vw; margin-block: 24px; }
  .ruled-label { font-size: 8px; gap: 10px; }
  .intro { font-size: 13px; }
  .hero-search input { font-size: 16px; padding-inline: 0; }
  .hero-search input::placeholder { font-size: 11px; }
  .hero-search button { gap: 10px; padding-inline: 12px 0; }
  .section-ribbon>span { font-size: 9px; max-width: 105px; text-align: right; }
  .section-ribbon h2 { font-size: 9px; }
  .daily-feature { padding: 17px; }
  .daily-copy h3 { font-size: 30px; }
  .image-note { font-size: 8px; }
  .archive-heading { margin-bottom: 26px; padding-bottom: 26px; }
  .archive-intro { display: none; }
  .archive h2 { font-size: 14vw; }
  .archive-search input { font-size: 16px; flex-basis: calc(100% - 96px); max-width: calc(100% - 96px); padding-inline: 12px; }
  .archive-search input::placeholder { font-size: 11px; }
  .archive-search>.solid-button { width: 96px; padding-inline: 12px; gap: 12px; }
  .archive-search select { font-size: 16px; padding: 11px; }
  .category-filters { gap: 0 10px; }
  .category-filters button { font-size: 10px; gap: 7px; padding: 12px 5px; }
  .category-filters button span { font-size: 9px; }
  .story-open { font-size: 31px; }
  .archive-bottom { flex-direction: column; align-items: start; gap: 17px; }
  .outline-button { width: 100%; }
  .tools-section { padding-block: 39px; }
  .tools-intro h2 { font-size: 11vw; }
  .tool-content pre { font-size: 11px; }
  .site-footer { flex-wrap: wrap; gap: 15px; }
  .dialog-top { padding-inline: 14px; }
  .dialog-content { padding: 27px 22px; }
  .story-dialog h2 { font-size: 32px; }
}
@media (pointer: coarse) {
  .navigation-row a, .random-button, .text-link, .category-filters button, .tool-actions>a, .network-link, .dialog-top button { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
