@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;0,6..72,800;1,6..72,400;1,6..72,600&family=Roboto:wght@300;400;500;700;900&family=Roboto+Condensed:wght@400;700&display=swap');

:root {
  --paper: #FAF8F3;
  --paper-2: #F2EFE7;
  --ink: #0B0B0C;
  --ink-2: #2B2B2E;
  --muted: #5B5B62;
  --rule: #D8D2C4;
  --rule-strong: #0B0B0C;
  --accent: #A8121C;
  --accent-dark: #7C0D15;
  --flag: #12306B;
  --max: 1200px;
  --z-nav: 30;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- utility type ---------- */
.eyebrow {
  font-family: 'Roboto Condensed', 'Roboto', system-ui, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.meta {
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
}
.sans { font-family: 'Roboto', system-ui, sans-serif; }

/* ---------- alert bar ---------- */
.alertbar {
  background: var(--accent);
  color: #fff;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 7px 0;
  overflow: hidden;
  white-space: nowrap;
}
.alertbar .track {
  display: inline-block;
  padding-left: 100%;
  animation: crawl 42s linear infinite;
}
.alertbar b { font-weight: 700; }
.alertbar span { padding: 0 34px; opacity: .95; }
@keyframes crawl { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .alertbar .track { animation: none; padding-left: 0; }
}

/* ---------- masthead ---------- */
.masthead { border-bottom: 3px double var(--rule-strong); background: var(--paper); }
.masthead .inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 26px 24px 18px;
  max-width: var(--max);
  margin: 0 auto;
}
.masthead .side { font-family: 'Roboto', sans-serif; font-size: 11.5px; line-height: 1.5; color: var(--muted); letter-spacing: .03em; }
.masthead .side.right { text-align: right; }
.masthead .side strong { color: var(--ink); display: block; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 10.5px; }
.wordmark {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 800;
  font-size: clamp(38px, 7.6vw, 82px);
  line-height: .9;
  letter-spacing: -.035em;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}
.wordmark .the { display: block; font-size: .2em; letter-spacing: .42em; font-weight: 600; text-transform: uppercase; margin-bottom: .35em; color: var(--muted); }
.motto {
  text-align: center;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 0 24px 14px;
}

/* ---------- nav ---------- */
nav.sections {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: var(--z-nav);
}
nav.sections ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 12px;
}
nav.sections a {
  display: block;
  padding: 11px 15px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  transition: color .2s ease, background .2s ease;
  cursor: pointer;
}
nav.sections a:hover { color: var(--accent); background: var(--paper-2); }
nav.sections a:focus-visible,
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--flag);
  outline-offset: 2px;
}

/* ---------- layout ---------- */
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  padding: 34px 0 60px;
}
@media (max-width: 900px) {
  .grid-main { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- lede ---------- */
.lede { border-bottom: 1px solid var(--rule); padding-bottom: 30px; margin-bottom: 30px; }
.lede h1 {
  font-size: clamp(34px, 5.4vw, 63px);
  line-height: 1.02;
  letter-spacing: -.028em;
  font-weight: 800;
  margin: 12px 0 14px;
}
.lede h1 a { text-decoration: none; }
.lede h1 a:hover { color: var(--accent-dark); }
.dek {
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.45;
  color: var(--ink-2);
  font-weight: 400;
  max-width: 62ch;
  margin-bottom: 18px;
}
.byline {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .03em;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 9px 0;
  margin-bottom: 22px;
}
.byline b { color: var(--ink); font-weight: 700; }
figure { margin: 0 0 12px; }
figure img { width: 100%; height: auto; border: 1px solid var(--rule); background: #fff; }
figcaption {
  font-family: 'Roboto', sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  padding-top: 8px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
}
figcaption b { color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }

/* ---------- story cards ---------- */
.section-rule {
  display: flex; align-items: center; gap: 14px;
  margin: 6px 0 20px;
}
.section-rule h2 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  white-space: nowrap;
}
.section-rule::after { content: ""; flex: 1; height: 1px; background: var(--rule-strong); opacity: .28; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px 26px; }
@media (max-width: 780px) { .cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

.card { border-top: 3px solid var(--ink); padding-top: 12px; }
.card .eyebrow { display: block; margin-bottom: 7px; }
.card h3 { font-size: 21px; line-height: 1.18; letter-spacing: -.012em; font-weight: 700; margin-bottom: 8px; }
.card h3 a { text-decoration: none; transition: color .2s ease; }
.card h3 a:hover { color: var(--accent-dark); }
.card p { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.card .meta { margin-top: 9px; display: block; }

/* ---------- sidebar ---------- */
aside .box {
  border: 1px solid var(--rule);
  background: var(--paper-2);
  padding: 18px 18px 20px;
  margin-bottom: 26px;
}
aside .box h4 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 14px;
}
ol.mostread { list-style: none; counter-reset: mr; }
ol.mostread li {
  counter-increment: mr;
  display: grid; grid-template-columns: 34px 1fr; gap: 10px;
  padding: 10px 0; border-bottom: 1px dotted var(--rule);
  font-size: 16px; line-height: 1.32;
}
ol.mostread li:last-child { border-bottom: 0; }
ol.mostread li::before {
  content: counter(mr);
  font-family: 'Roboto', sans-serif; font-weight: 900; font-size: 24px;
  color: var(--accent); opacity: .55; line-height: 1;
}
ol.mostread a { text-decoration: none; }
ol.mostread a:hover { color: var(--accent-dark); text-decoration: underline; }

.corrections p { font-size: 14.5px; line-height: 1.5; padding: 9px 0; border-bottom: 1px dotted var(--rule); color: var(--ink-2); }
.corrections p:last-child { border-bottom: 0; }
.corrections em { color: var(--muted); }

.signup label { display: block; font-family: 'Roboto', sans-serif; font-size: 13px; margin-bottom: 8px; color: var(--ink-2); }
.signup input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--rule); background: #fff;
  font-family: 'Roboto', sans-serif; font-size: 15px; margin-bottom: 10px; color: var(--ink);
}
.signup input:focus-visible { outline: 3px solid var(--flag); outline-offset: 1px; }
.btn {
  display: inline-block; width: 100%; text-align: center; cursor: pointer;
  background: var(--ink); color: #fff; border: 0;
  font-family: 'Roboto Condensed', sans-serif; font-weight: 700; font-size: 14px;
  letter-spacing: .16em; text-transform: uppercase; padding: 13px 16px;
  transition: background .2s ease;
}
.btn:hover { background: var(--accent); }
.signup .note { font-family: 'Roboto', sans-serif; font-size: 11.5px; color: var(--muted); margin-top: 9px; line-height: 1.45; }

/* ---------- article page ---------- */
article.story { max-width: 100%; }
.story-head { border-bottom: 1px solid var(--rule); padding-bottom: 22px; margin-bottom: 26px; }
.story-head h1 {
  font-size: clamp(32px, 4.8vw, 56px); line-height: 1.04; letter-spacing: -.028em;
  font-weight: 800; margin: 12px 0 16px;
}
.story-body { font-size: 19.5px; line-height: 1.72; }
.story-body > p { margin-bottom: 1.15em; max-width: 70ch; }
.story-body > p:first-of-type::first-letter {
  float: left; font-size: 4.05em; line-height: .82; font-weight: 700;
  padding: .04em .09em 0 0; color: var(--accent);
}
.story-body h2 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 14px; letter-spacing: .2em; text-transform: uppercase;
  margin: 2.1em 0 .9em; padding-bottom: 8px; border-bottom: 2px solid var(--ink);
  max-width: 70ch;
}
.story-body h3 { font-size: 24px; margin: 1.6em 0 .5em; letter-spacing: -.015em; max-width: 70ch; }
.story-body blockquote {
  border-left: 4px solid var(--accent);
  margin: 1.6em 0; padding: 4px 0 4px 22px;
  font-size: 25px; line-height: 1.36; font-style: italic; font-weight: 500;
  max-width: 62ch; color: var(--ink);
}
.story-body blockquote cite {
  display: block; margin-top: 12px; font-style: normal; font-size: 13px;
  font-family: 'Roboto', sans-serif; letter-spacing: .05em; color: var(--muted); text-transform: uppercase;
}
.story-body ul, .story-body ol { max-width: 68ch; margin: 0 0 1.2em 1.3em; }
.story-body li { margin-bottom: .5em; }
.story-body a { color: var(--accent-dark); text-underline-offset: 3px; }

.callout {
  border: 1px solid var(--ink); background: var(--paper-2);
  padding: 20px 22px; margin: 2em 0; max-width: 70ch;
}
.callout h4 {
  font-family: 'Roboto Condensed', sans-serif; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; margin-bottom: 10px; color: var(--accent);
}
.callout p { font-size: 16.5px; line-height: 1.6; margin-bottom: .7em; }
.callout p:last-child { margin-bottom: 0; }

.sources { margin-top: 3em; border-top: 3px double var(--rule-strong); padding-top: 22px; }
.sources h2 {
  font-family: 'Roboto Condensed', sans-serif; font-size: 13px; letter-spacing: .2em;
  text-transform: uppercase; margin-bottom: 16px; border: 0; padding: 0;
}
.sources ol { list-style: none; counter-reset: src; margin: 0; }
.sources li {
  counter-increment: src;
  font-family: 'Roboto', sans-serif; font-size: 13.5px; line-height: 1.55;
  color: var(--ink-2); padding: 8px 0 8px 34px; position: relative;
  border-bottom: 1px dotted var(--rule); max-width: 82ch;
}
.sources li::before {
  content: counter(src) ".";
  position: absolute; left: 0; top: 8px; font-weight: 700; color: var(--muted);
}
.sources li i { color: var(--muted); }

.share { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0 8px; }
.share button {
  cursor: pointer; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font-family: 'Roboto Condensed', sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; padding: 10px 16px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  transition: background .2s ease, color .2s ease;
}
.share button:hover { background: var(--ink); color: var(--paper); }
.share svg { width: 15px; height: 15px; }

/* ---------- comments ---------- */
.comments { margin-top: 3em; border-top: 1px solid var(--rule); padding-top: 24px; }
.comments > h2 {
  font-family: 'Roboto Condensed', sans-serif; font-size: 13px; letter-spacing: .2em;
  text-transform: uppercase; margin-bottom: 18px;
}
.cmt { display: grid; grid-template-columns: 42px 1fr; gap: 13px; padding: 15px 0; border-bottom: 1px dotted var(--rule); max-width: 74ch; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 15px; color: #fff;
  background: var(--flag);
}
.cmt .who { font-family: 'Roboto', sans-serif; font-size: 13.5px; font-weight: 700; }
.cmt .when { font-family: 'Roboto', sans-serif; font-size: 11.5px; color: var(--muted); margin-left: 8px; font-weight: 400; }
.cmt p { font-size: 16.5px; line-height: 1.55; margin-top: 4px; }
.cmt .votes { font-family: 'Roboto', sans-serif; font-size: 12px; color: var(--muted); margin-top: 7px; }

/* ---------- footer ---------- */
footer.site {
  border-top: 3px double var(--rule-strong);
  background: var(--paper-2);
  margin-top: 40px;
  padding: 40px 0 54px;
}
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 820px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { footer.site .cols { grid-template-columns: 1fr; } }
footer.site h5 {
  font-family: 'Roboto Condensed', sans-serif; font-size: 11.5px; letter-spacing: .2em;
  text-transform: uppercase; margin-bottom: 12px; color: var(--ink);
}
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 7px; }
footer.site a { font-family: 'Roboto', sans-serif; font-size: 14px; color: var(--ink-2); text-decoration: none; }
footer.site a:hover { color: var(--accent); text-decoration: underline; }
footer.site .brandcol p { font-family: 'Roboto', sans-serif; font-size: 13.5px; line-height: 1.6; color: var(--muted); max-width: 40ch; }
footer.site .brandcol .fm { font-family: 'Newsreader', serif; font-size: 27px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 10px; }
.legal {
  border-top: 1px solid var(--rule); margin-top: 32px; padding-top: 20px;
  font-family: 'Roboto', sans-serif; font-size: 12px; line-height: 1.6; color: var(--muted);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}

/* ---------- staff / about ---------- */
.staff { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px; margin-top: 8px; }
@media (max-width: 700px) { .staff { grid-template-columns: 1fr; } }
.person { border-top: 3px solid var(--ink); padding-top: 12px; }
.person .role { font-family: 'Roboto Condensed', sans-serif; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.person .name { font-size: 22px; font-weight: 700; letter-spacing: -.015em; margin: 4px 0 6px; }
.person p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }

.prose { max-width: 72ch; }
.prose h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -.028em; font-weight: 800; margin-bottom: 18px; }
.prose h2 {
  font-family: 'Roboto Condensed', sans-serif; font-size: 13px; letter-spacing: .2em;
  text-transform: uppercase; margin: 2em 0 .8em; padding-bottom: 7px; border-bottom: 2px solid var(--ink);
}
.prose p { margin-bottom: 1.1em; }
.prose ul { margin: 0 0 1.2em 1.3em; }
.prose li { margin-bottom: .5em; }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(14px);
  background: var(--ink); color: #fff; font-family: 'Roboto', sans-serif; font-size: 14px;
  padding: 13px 20px; opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease;
  z-index: 60; max-width: calc(100vw - 40px); text-align: center;
}
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- masthead: small screens ---------- */
@media (max-width: 760px) {
  .masthead .inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
    padding: 20px 20px 12px;
  }
  .masthead .side { display: none; }
  .masthead .side.right {
    display: block;
    text-align: center;
    font-size: 11px;
    line-height: 1.6;
  }
  .masthead .side.right strong { display: inline; }
  .wordmark { font-size: clamp(32px, 11vw, 60px); }
  .motto { font-size: 10.5px; letter-spacing: .22em; padding-bottom: 12px; }
  nav.sections a { padding: 10px 11px; font-size: 12px; letter-spacing: .1em; }
}
@media (max-width: 420px) {
  .wordmark .the { letter-spacing: .3em; }
  .story-body { font-size: 18px; }
  .story-body blockquote { font-size: 21px; padding-left: 16px; }
  .story-body > p:first-of-type::first-letter { font-size: 3.4em; }
  .lede h1, .story-head h1 { letter-spacing: -.02em; }
}

/* ---------- newsletter honeypot ---------- */
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup form { position: relative; }
.signup .btn[disabled] { opacity: .55; cursor: default; }
