@font-face {
  font-family: "Liberation Serif";
  src: url("/fonts/liberation-serif-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Liberation Serif";
  src: url("/fonts/liberation-serif-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Liberation Serif";
  src: url("/fonts/liberation-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/fonts/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/fonts/inter-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --paper-raised: #fffdf8;
  --ink: #1b1612;
  --muted: #5c534a;
  --rule: #d9d1c5;
  --rule-strong: #1b1612;
  --kicker: #9f1d14;
  --mark: #d21f12;
  --flag-bg: #f3e4c4;
  --flag-border: #9f1d14;
  --focus: #ffdd00;
  --band: #111111;
  --band-ink: #f7f4ee;
  --footer: #111111;
  --footer-ink: #f4efe6;
  --footer-muted: #ddd4c8;
  --serif: "Liberation Serif", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: Inter, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 40rem;
  --page: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #141210;
    --paper-raised: #1c1916;
    --ink: #f4efe6;
    --muted: #cbbfae;
    --rule: #3c362f;
    --rule-strong: #f4efe6;
    --kicker: #ff8a78;
    --flag-bg: #3d3118;
    --flag-border: #e2b657;
    --band: #0c0b0a;
    --footer: #0c0b0a;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141210;
  --paper-raised: #1c1916;
  --ink: #f4efe6;
  --muted: #cbbfae;
  --rule: #3c362f;
  --rule-strong: #f4efe6;
  --kicker: #ff8a78;
  --flag-bg: #3d3118;
  --flag-border: #e2b657;
  --band: #0c0b0a;
  --footer: #0c0b0a;
}

:root[data-theme="light"] {
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.55;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--kicker);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--focus);
  color: #1b1612;
  padding: 0.6rem 0.8rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus);
}

.paper {
  width: min(var(--page), calc(100% - 2rem));
  margin: 0 auto;
}

.utility,
.mast,
.nav,
.columns {
  width: min(var(--page), calc(100% - 2rem));
  margin-inline: auto;
}

.utility {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.utility-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  align-items: center;
}

.utility a {
  text-decoration: none;
  font-weight: 600;
}

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

.theme-toggle {
  font: inherit;
  font-weight: 600;
  color: inherit;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.2rem 0.8rem;
  cursor: pointer;
}

.mast {
  text-align: center;
  padding: 1.15rem 0 0.85rem;
  border-bottom: 4px solid var(--rule-strong);
  position: relative;
}

.mast::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  border-bottom: 1px solid var(--rule-strong);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.mark {
  width: 3rem;
  height: 3rem;
  flex: none;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  letter-spacing: -0.035em;
  line-height: 0.9;
}

.tagline {
  margin: 0.45rem 0 0;
  font-style: italic;
  color: var(--muted);
  font-size: 1.15rem;
}

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.55rem;
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--mark);
}

.band {
  width: 100%;
  margin-top: 1.25rem;
  background: var(--band);
  color: var(--band-ink);
}

.band-inner {
  width: min(var(--page), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.9rem 0;
}

.band img {
  height: 46px;
  width: auto;
  flex: none;
}

.band p {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.45;
}

.band a {
  color: inherit;
  font-weight: 600;
}

.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17.5rem;
  gap: 2.5rem;
  padding: 1.6rem 0 3rem;
}

main h1,
.article h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}

.dateline,
.meta,
.byline,
.checked {
  font-family: var(--sans);
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 0.8rem;
}

.standfirst {
  font-size: 1.35rem;
  line-height: 1.35;
  margin: 0 0 0.8rem;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kicker);
  margin: 0 0 0.25rem;
}

.crumbs {
  font-family: var(--sans);
  font-size: 0.85rem;
  margin: 0 0 1rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--muted);
}

.briefing,
.hits,
.archive-list,
.topic-index,
.latest,
.search-results {
  list-style: none;
  padding: 0;
  margin: 0;
}

.briefing > li,
.hits > li,
.archive-list > li,
.latest > li,
.search-results > li {
  border-top: 1px solid var(--rule);
  padding: 1rem 0 1.1rem;
}

.briefing > li {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.75rem;
}

.rank {
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.briefing h2,
.hits h2,
.hits h3,
.latest h2,
.latest h3,
.search-results h2,
.archive-list h2 {
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.briefing h2 a,
.hits h2 a,
.latest h2 a,
.search-results h2 a,
.archive-list a {
  text-decoration: none;
}

.briefing h2 a:hover,
.hits h2 a:hover,
.latest h2 a:hover,
.search-results h2 a:hover,
.archive-list a:hover {
  text-decoration: underline;
}

.dek,
.hit-summary {
  margin: 0 0 0.45rem;
}

.flag,
.note {
  background: var(--flag-bg);
  border-left: 4px solid var(--flag-border);
  padding: 0.55rem 0.75rem;
  margin: 0.6rem 0;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.note {
  background: var(--paper-raised);
  border-left-color: var(--ink);
}

.player {
  margin: 0 0 1.25rem;
}

.player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  height: auto;
}

.player figcaption,
.graphic figcaption {
  font-family: var(--sans);
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

.graphic {
  margin: 0 0 1.2rem;
}

.graphic img {
  display: block;
  width: 100%;
  height: auto;
}

.quiet {
  font-family: var(--sans);
  color: var(--muted);
}

.prose {
  max-width: var(--measure);
  font-size: 1.16rem;
}

.prose p,
.page-body p {
  margin: 0 0 1rem;
}

.page-body {
  max-width: 42rem;
}

.page-body h2,
.prose h2,
.sources h2,
.facts h2,
.correction h2 {
  font-size: 1.45rem;
  margin: 1.6rem 0 0.5rem;
}

.page-body ul,
.page-body ol,
.facts ul,
.sources ol {
  padding-left: 1.2rem;
}

.page-body li + li,
.facts li + li,
.sources li + li {
  margin-top: 0.35rem;
}

.sources a,
.page-body a,
.prose a {
  text-decoration-thickness: 1px;
}

.source-label {
  color: var(--muted);
}

.correction {
  background: var(--flag-bg);
  padding: 0.8rem 1rem;
  margin: 0 0 1rem;
}

.correction h2 {
  margin-top: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.85rem;
}

.tags a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--rule);
  padding: 0.15rem 0.55rem;
  text-decoration: none;
  background: var(--paper-raised);
}

.rail h2 {
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
  font-family: var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rail ol,
.rail ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
}

.rail li + li {
  border-top: 1px solid var(--rule);
}

.rail a {
  display: flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
}

.topic-index li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
}

.topic-index h2 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
}

.topic-index p {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
  max-width: 36rem;
}

.search-form label {
  flex-basis: 100%;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
}

.search-form input {
  flex: 1;
  min-height: 48px;
  font: inherit;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper-raised);
  color: inherit;
  border-radius: 0;
}

.search-form button,
.button {
  min-height: 48px;
  padding: 0.4rem 0.9rem;
  font-family: var(--sans);
  font-weight: 600;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
}

code {
  font-family: "Cascadia Mono", "Liberation Mono", ui-monospace, monospace;
  font-size: 0.92em;
}

.site-footer {
  width: 100%;
  background: var(--footer);
  color: var(--footer-ink);
  padding: 2rem 0 1.4rem;
}

.footer-grid {
  width: min(var(--page), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

.site-footer a {
  color: inherit;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin: 0.3rem 0;
}

.site-footer p,
.legal-line {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--footer-muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.footer-brand img {
  height: 34px;
  width: auto;
}

.legal-line {
  width: min(var(--page), calc(100% - 2rem));
  margin: 1.4rem auto 0;
  padding-top: 0.8rem;
  border-top: 1px solid #333;
}

.empty h1 {
  max-width: 16ch;
}

@media (max-width: 860px) {
  .columns,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .utility {
    flex-direction: column;
    align-items: flex-start;
  }

  .band-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 0;
  }

  .wordmark {
    font-size: 2.4rem;
  }

  .mark {
    width: 2.4rem;
    height: 2.4rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .utility,
  .nav,
  .theme-toggle,
  .band,
  .rail,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  a {
    text-decoration: underline;
  }
}
