:root {
  color-scheme: light;
  --ink: #151515;
  --paper: #f5f1e8;
  --signal: #ffd400;
  --red: #c93525;
  --muted: #6f6a61;
  --line: #bdb6a8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-180%);
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  border-bottom: 1px solid var(--ink);
}

.utility,
.masthead,
.ticker,
main,
footer {
  width: min(100% - 2rem, 1240px);
  margin-inline: auto;
}

.utility {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.utility p {
  margin: 0;
}

.utility strong {
  background: var(--red);
  color: #fff;
  padding: 0.15rem 0.35rem;
}

.masthead {
  min-height: 7.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 0.9;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--signal);
  border: 2px solid var(--ink);
  font-size: 2rem;
}

.masthead nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3.5rem);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.menu-button {
  display: none;
}

.ticker {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  border-top: 1px solid var(--ink);
  padding-block: 0.7rem;
  font-size: 0.9rem;
}

.ticker span {
  background: var(--signal);
  padding-inline: 0.45rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ticker p {
  margin: 0;
}

.crumbs {
  display: flex;
  gap: 0.5rem;
  padding-block: 1.25rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(220px, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.story-header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ink);
}

.kicker,
.rail-label {
  margin: 0 0 0.7rem;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.93;
}

.deck {
  max-width: 60ch;
  margin: 1.5rem 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.byline,
.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
  align-items: center;
  font-size: 0.85rem;
}

.byline span:first-child {
  font-weight: 800;
}

.story-actions {
  margin-top: 1rem;
}

.story-actions a,
.story-actions button,
.comments-empty button,
.menu-button {
  min-height: 2.75rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.story-actions a:hover,
.story-actions button:hover,
.comments-empty button:hover {
  background: var(--signal);
}

figure {
  margin: 0;
}

.hero {
  margin-top: 1.5rem;
}

.hero img,
.inline-image img,
video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink);
}

figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.story-body {
  width: min(100%, 690px);
  margin: 2rem auto 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2vw, 1.22rem);
}

.story-body p {
  margin: 0 0 1.4rem;
}

.story-body .lead {
  font-size: 1.25em;
  line-height: 1.45;
}

.story-body h2 {
  margin: 3.5rem 0 1rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  line-height: 1.05;
}

.fact-box {
  margin: 2rem 0;
  border-block: 4px solid var(--ink);
  padding: 1.2rem 0;
  font-family: Arial, Helvetica, sans-serif;
}

.fact-box ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.inline-image {
  margin: 2.5rem 0;
}

.image-button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

video {
  margin: 2rem 0 0.75rem;
  background: #111;
}

blockquote {
  margin: 2.5rem 0;
  border-left: 0.5rem solid var(--signal);
  padding-left: 1.25rem;
  font-size: 1.45em;
  line-height: 1.25;
}

.comments-empty {
  margin: 3rem 0 5rem;
  border-top: 1px solid var(--ink);
  padding-top: 1.5rem;
}

.comments-empty h2 {
  margin-bottom: 0.25rem;
}

.story-rail {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 1.25rem;
}

.story-rail > * {
  border-top: 3px solid var(--ink);
  padding-top: 0.85rem;
}

.story-rail section > a {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
}

.story-rail section > p:last-child {
  color: var(--muted);
  font-size: 0.85rem;
}

.ad-block {
  display: grid;
  gap: 0.45rem;
  background: var(--signal);
  border: 2px solid var(--ink);
  padding: 1rem;
  text-decoration: none;
}

.ad-block span {
  font-size: 0.72rem;
  text-transform: uppercase;
}

.outbound {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.widget-error {
  display: grid;
  gap: 0.25rem;
  border-color: var(--red);
  color: #7f241a;
}

.widget-error span {
  font-size: 0.82rem;
}

.load-more {
  min-height: 2.75rem;
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--muted);
}

.spa-state {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10;
  max-width: min(24rem, calc(100% - 2rem));
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1rem;
  box-shadow: 0 0 0 4px var(--signal);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--ink);
  padding-block: 1.5rem 3rem;
  font-size: 0.82rem;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .utility time,
  .masthead nav {
    display: none;
  }

  .utility {
    font-size: 0.68rem;
  }

  .masthead {
    min-height: 5.5rem;
    grid-template-columns: 1fr auto;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
  }

  .mobile-menu {
    width: min(100% - 2rem, 1240px);
    margin-inline: auto;
    border-top: 1px solid var(--ink);
    padding-block: 0.7rem;
  }

  .mobile-menu:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .mobile-menu a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }

  .ticker {
    grid-template-columns: 1fr;
  }

  .ticker span {
    width: fit-content;
  }

  .story-layout {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .story-rail {
    position: static;
    margin-bottom: 3rem;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
