/* The Front Page — The Overcorrect. Newsprint by default; .theme-web = dark. */
:root {
  --paper:  #f5f1e6;
  --paper2: #ece5d4;
  --panel:  #efe9db;
  --ink:    #1b1712;
  --ink2:   #4c443a;
  --ink3:   #756a5b;
  --rule:   #241f18;
  --hair:   #c9bfa8;
  --accent: #a5301b;   /* press red — breaking, stamps, links */
  --serif-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --serif-body: "Spectral", Georgia, serif;
  --label: "Oswald", system-ui, sans-serif;
  --maxw: 74rem;
}
.theme-web {
  --paper:  #0c0c0e;
  --paper2: #141417;
  --panel:  #161619;
  --ink:    #f3f2ee;
  --ink2:   #b9b3a6;
  --ink3:   #837c6f;
  --rule:   #33302a;
  --hair:   #2a2824;
  --accent: #f59e0b;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  line-height: 1.5;
  transition: background .2s, color .2s;
}
.theme-web body { background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--paper); padding: .5rem .8rem; z-index: 60; border-radius: 4px; }

/* ---- Masthead ---- */
.masthead { max-width: var(--maxw); margin: 0 auto; padding: 1.4rem 1.25rem .2rem; }
.mast-row { display: grid; grid-template-columns: 2.5rem 1fr 2.5rem; align-items: center; gap: .5rem; }
.mast-btn {
  width: 2.5rem; height: 2.5rem; border: 1px solid var(--hair); background: transparent;
  color: var(--ink2); border-radius: 6px; font-size: 1.1rem; cursor: pointer; line-height: 1;
  transition: border-color .15s, color .15s, background .15s;
}
.mast-btn:hover { border-color: var(--accent); color: var(--accent); }
.mast-brand { text-align: center; min-width: 0; }
.mast-motto { font-family: var(--label); text-transform: uppercase; letter-spacing: .18em; font-size: .58rem; color: var(--ink3); margin: 0 0 .35rem; font-weight: 500; }
.mast-title {
  font-family: var(--serif-display); font-weight: 900; margin: 0;
  font-size: clamp(2.2rem, 8vw, 5rem); line-height: .92; letter-spacing: -.01em;
  text-transform: uppercase;
}
.mast-sub { font-family: var(--label); text-transform: uppercase; letter-spacing: .3em; font-size: .62rem; color: var(--ink2); margin: .4rem 0 0; }
/* Share bars: position only — the widget styles itself via currentColor. */
.mast-share { display: flex; justify-content: center; margin-top: .6rem; color: var(--ink2); }
.mast-rule {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  border-top: 3px double var(--rule); border-bottom: 1px solid var(--rule);
  margin-top: .9rem; padding: .4rem .1rem; font-family: var(--label);
  text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; color: var(--ink2);
}
.mast-price { color: var(--ink3); }
.mast-search { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.mast-search input {
  border: none; border-bottom: 1px solid var(--hair); background: transparent; color: var(--ink);
  font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: .7rem;
  padding: .2rem .1rem; width: 11rem; max-width: 42vw;
}
.mast-search input:focus { outline: none; border-color: var(--accent); }

/* ---- Ticker ---- */
.ticker {
  max-width: var(--maxw); margin: .55rem auto 0; display: flex; align-items: stretch;
  border: 1px solid var(--rule); overflow: hidden; background: var(--panel);
}
.ticker-tag {
  flex: 0 0 auto; background: var(--accent); color: #fff; font-family: var(--label);
  font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .68rem;
  display: flex; align-items: center; padding: 0 .8rem; white-space: nowrap;
  position: relative; z-index: 1; /* paint above the crawling track */
}
/* Clips the crawling track to the space right of the tag so the text never
   slides on top of the "Breaking" label. */
.ticker-viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; position: relative; }
.ticker-track { display: flex; white-space: nowrap; will-change: transform; animation: crawl 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { font-family: var(--serif-body); font-size: .82rem; color: var(--ink); padding: .35rem 0; }
.ticker-item b { font-family: var(--label); text-transform: uppercase; font-size: .62rem; letter-spacing: .1em; color: var(--accent); margin: 0 .5rem 0 1.4rem; }
.ticker-item .dot { margin: 0 1.2rem; color: var(--ink3); }
@keyframes crawl { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---- Beat nav ---- */
.beats {
  max-width: var(--maxw); margin: .8rem auto 0; padding: 0 1.25rem;
  display: flex; gap: .1rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
}
.beats::-webkit-scrollbar { display: none; }
.beat {
  flex: 0 0 auto; border: none; background: transparent; cursor: pointer;
  font-family: var(--label); text-transform: uppercase; letter-spacing: .09em;
  font-size: .72rem; color: var(--ink2); padding: .5rem .8rem; border-bottom: 2px solid transparent;
  white-space: nowrap; transition: color .15s, border-color .15s;
}
.beat:hover { color: var(--accent); }
.beat[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.beat .n { color: var(--ink3); font-size: .62rem; margin-left: .3rem; }

/* ---- Archive drawer (menu button → article list by date) ---- */
.archive { position: fixed; inset: 0; z-index: 55; }
.archive[hidden] { display: none; }
.archive-backdrop { position: absolute; inset: 0; background: rgba(12, 10, 6, .5); backdrop-filter: blur(2px); }
.archive-panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(24rem, 88vw);
  background: var(--paper); border-right: 3px double var(--rule);
  box-shadow: .4rem 0 2rem rgba(0, 0, 0, .28); overflow-y: auto;
  display: flex; flex-direction: column; animation: archive-in .22s ease;
}
@keyframes archive-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .archive-panel { animation: none; } }
.archive-head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; padding: .9rem 1.1rem .7rem; background: var(--paper); border-bottom: 1px solid var(--rule);
}
.archive-title { font-family: var(--serif-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.01em; }
.archive-sub { font-family: var(--label); text-transform: uppercase; letter-spacing: .1em; font-size: .6rem;
  color: var(--ink3); margin: .3rem 1.1rem .5rem; }
.archive-list { padding: 0 1.1rem 2rem; }
.arch-group { margin-top: 1rem; }
.arch-date { font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; font-size: .66rem;
  color: var(--accent); border-bottom: 1px solid var(--hair); padding-bottom: .3rem; margin: 0 0 .5rem; }
.arch-item { display: block; width: 100%; text-align: left; border: none; background: transparent; cursor: pointer;
  padding: .5rem 0; border-bottom: 1px solid var(--hair); }
.arch-item:last-child { border-bottom: none; }
.arch-kicker { display: block; font-family: var(--label); text-transform: uppercase; letter-spacing: .1em;
  font-size: .56rem; color: var(--ink3); margin-bottom: .15rem; }
.arch-headline { display: block; font-family: var(--serif-display); font-weight: 700; font-size: .98rem;
  line-height: 1.2; color: var(--ink); }
.arch-item:hover .arch-headline { color: var(--accent); }

/* ---- Front page sheet ---- */
.sheet { max-width: var(--maxw); margin: 0 auto; padding: 1.2rem 1.25rem 2rem; }

/* Lead story */
.lead { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.6rem; align-items: start;
  border-bottom: 3px double var(--rule); padding-bottom: 1.6rem; margin-bottom: 1.4rem; }
.lead-fig { margin: 0; }
.lead-fig img { border: 1px solid var(--rule); width: 100%; aspect-ratio: 16/9; object-fit: cover; filter: saturate(.96) contrast(1.02); }
.lead-fig figcaption, .fig figcaption { font-family: var(--serif-body); font-style: italic; font-size: .78rem; color: var(--ink3); margin-top: .4rem; line-height: 1.35; }
.lead-body { min-width: 0; }
.kicker { font-family: var(--label); text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; color: var(--accent); font-weight: 600; display: inline-block; margin-bottom: .4rem; }
.lead h2 { font-family: var(--serif-display); font-weight: 800; line-height: 1.02; letter-spacing: -.01em;
  font-size: clamp(1.7rem, 4.2vw, 3rem); margin: 0 0 .7rem; cursor: pointer; }
.lead h2:hover { color: var(--accent); }
.deck { font-size: 1.05rem; color: var(--ink2); margin: 0 0 .8rem; line-height: 1.5; }
.byline { font-family: var(--label); text-transform: uppercase; letter-spacing: .09em; font-size: .64rem; color: var(--ink3); }
.byline b { color: var(--ink2); font-weight: 600; }
.readmore { display: inline-block; margin-top: .9rem; font-family: var(--label); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; cursor: pointer; }

/* Section label above the column grid */
.sec-label { font-family: var(--label); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--ink2);
  border-bottom: 1px solid var(--rule); padding-bottom: .3rem; margin: 0 0 1rem; display: flex; justify-content: space-between; }
.sec-label span { color: var(--ink3); }

/* Secondary features: two wider cards with art, under the lead */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin: 0 0 1.6rem; }
.story.feature { border-bottom: none; padding-bottom: 0; margin: 0; }
.story.feature .story-fig img { aspect-ratio: 16/9; }
.story.feature h3 { font-size: 1.45rem; }
.story.feature .deck { font-size: .95rem; }

/* Briefs: compact, text-only */
.story.brief h3 { font-size: 1.05rem; }
.story.brief { margin: 0 0 1rem; padding-bottom: 1rem; }

/* Column grid of stories */
.cols { columns: 3 16rem; column-gap: 1.6rem; }
.story { break-inside: avoid; margin: 0 0 1.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--hair); cursor: pointer; }
.story:hover h3 { color: var(--accent); }
.story-fig { margin: 0 0 .6rem; }
.story-fig img { border: 1px solid var(--rule); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.story h3 { font-family: var(--serif-display); font-weight: 700; line-height: 1.08; font-size: 1.18rem; margin: .2rem 0 .4rem; }
.story .deck { font-size: .9rem; margin: .3rem 0 .5rem; }
.story .stamp-mini { font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: .55rem; color: var(--accent); border: 1px solid var(--accent); padding: .05rem .3rem; border-radius: 2px; }
.empty { text-align: center; color: var(--ink3); font-style: italic; padding: 3rem 1rem; }

/* ---- Colophon ---- */
.colophon { max-width: var(--maxw); margin: 0 auto; padding: 1.2rem 1.25rem 3rem;
  border-top: 3px double var(--rule); display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between;
  font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: .64rem; color: var(--ink3); }
.colophon a { color: var(--ink2); text-decoration: none; }
.colophon a:hover { color: var(--accent); }

/* ---- Reader overlay ---- */
.reader { position: fixed; inset: 0; background: var(--paper); z-index: 50; overflow-y: auto; }
.reader[hidden] { display: none; }
.reader-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule); padding: .55rem 1rem; }
.reader-bar-mid { flex: 1; display: flex; justify-content: center; align-items: center; gap: .5rem; color: var(--ink2); }
.rd-share { display: inline-flex; }
.reader-nav { display: flex; gap: .4rem; }
.rd-btn { border: 1px solid var(--hair); background: transparent; color: var(--ink2); cursor: pointer;
  font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: .66rem; padding: .4rem .7rem; border-radius: 5px; transition: border-color .15s, color .15s; }
.rd-btn:hover { border-color: var(--accent); color: var(--accent); }
.rd-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.rd-btn:disabled { opacity: .4; cursor: default; }
.rd-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--accent); transition: width .1s linear; }

.reader-page { max-width: 42rem; margin: 0 auto; padding: 1.8rem 1.25rem 5rem; }
.reader-page .kicker { font-size: .74rem; }
.reader-page h1 { font-family: var(--serif-display); font-weight: 900; line-height: 1.02; letter-spacing: -.01em;
  font-size: clamp(1.9rem, 6vw, 3.2rem); margin: .1rem 0 .6rem; }
.rd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: .5rem 0; margin: 0 0 1.2rem; font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: .64rem; color: var(--ink3); }
.rd-meta b { color: var(--ink2); }
.stamp { display: inline-block; transform: rotate(-4deg); border: 2px solid var(--accent); color: var(--accent);
  font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .62rem;
  padding: .12rem .45rem; border-radius: 3px; }
.rd-hero { margin: 0 0 1.4rem; }
.rd-hero img { border: 1px solid var(--rule); width: 100%; }
.rd-hero figcaption { font-style: italic; font-size: .8rem; color: var(--ink3); margin-top: .45rem; }
.reader-page .body p { font-size: 1.08rem; line-height: 1.66; margin: 0 0 1.05rem; text-align: justify; hyphens: auto; }
.reader-page .body p.lead-para::first-letter { font-family: var(--serif-display); font-weight: 800; float: left; font-size: 3.4rem; line-height: .72; padding: .35rem .55rem 0 0; color: var(--accent); }
.reader-page .body .subhead { font-family: var(--label); text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: var(--ink2); margin: 1.4rem 0 .6rem; }
.fig { margin: 1.4rem 0; }
.fig img { border: 1px solid var(--rule); width: 100%; }

/* Pull quote — big serif between double rules, classic broadsheet furniture */
.reader-page .body .pullquote {
  margin: 1.8rem 0; padding: 1.1rem .4rem;
  border-top: 3px double var(--rule); border-bottom: 3px double var(--rule);
  font-family: var(--serif-display); font-weight: 700; font-size: 1.45rem;
  line-height: 1.28; text-align: center; letter-spacing: -.005em;
}
.reader-page .body .pullquote::before { content: "“"; display: block; color: var(--accent); font-size: 2.2rem; line-height: .6; margin-bottom: .35rem; }
.speaking { background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: -.4rem 0 0 color-mix(in srgb, var(--accent) 14%, transparent); }

.keypoints { border: 1px solid var(--rule); background: var(--panel); padding: 1rem 1.1rem; margin: 1.6rem 0; }
.keypoints h4 { font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; color: var(--accent); margin: 0 0 .6rem; }
.keypoints ul { margin: 0; padding-left: 1.1rem; }
.keypoints li { font-size: .94rem; margin: 0 0 .45rem; line-height: 1.45; }
.rd-foot { margin-top: 2rem; padding-top: 1rem; border-top: 3px double var(--rule); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: .64rem; color: var(--ink3); }
.rd-foot a { color: var(--accent); text-decoration: none; }

/* More from the newsroom — related-story cards at the end of an article */
.related { margin-top: 1.6rem; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.rel-item { display: block; text-align: left; border: none; background: transparent; cursor: pointer; padding: 0; color: inherit; font: inherit; }
.rel-item img { border: 1px solid var(--rule); width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: .45rem; }
.rel-headline { display: block; font-family: var(--serif-display); font-weight: 700; font-size: .95rem; line-height: 1.2; color: var(--ink); margin-top: .15rem; }
.rel-item:hover .rel-headline { color: var(--accent); }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .lead { grid-template-columns: 1fr; gap: 1rem; }
  .cols { columns: 1; }
  .features { grid-template-columns: 1fr; }
  .rel-grid { grid-template-columns: 1fr; }
  .rel-item img { aspect-ratio: 16/6; }
  .mast-search input { width: 8rem; }
  .reader-page .body p { text-align: left; hyphens: none; }
}

/* ---- Print: a paper that actually prints like one ---- */
@media print {
  :root, .theme-web { --paper: #fff; --paper2: #fff; --panel: #f4f4f4; --ink: #000; --ink2: #333; --ink3: #555; --hair: #bbb; --rule: #000; }
  .ticker, .beats, .mast-btn, .mast-search, .archive, .reader-bar, .colophon a { display: none !important; }
  body { background: #fff; color: #000; overflow: visible !important; }
  /* Reader open → print just the article, as a static page */
  body.reading .masthead, body.reading #front, body.reading .colophon, body.reading .ticker { display: none !important; }
  .reader { position: static !important; overflow: visible !important; }
  .reader[hidden] { display: none !important; }
  .story, .lead, .fig, .keypoints, .pullquote { break-inside: avoid; }
  .rel-item { pointer-events: none; }
}
