:root {
  color-scheme: light;
  --background: #f5f4ef;
  --surface: #fbfaf6;
  --surface-soft: #ecefe9;
  --text: #292d2a;
  --text-soft: #626962;
  --border: #d7dcd5;
  --accent: #526c63;
  --accent-soft: #e4ebe7;
  --focus: #245f8f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
}

a {
  color: var(--accent);
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-200%);
  padding: 0.45rem 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  z-index: 10;
}

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

.site-shell {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.reading-column {
  max-width: 72ch;
}

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

.header-row,
.footer-row {
  display: flex;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.header-row {
  min-height: 3.5rem;
  padding-block: 0.6rem;
}

.site-name {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.primary-nav,
.site-footer nav {
  display: flex;
  gap: 0.35rem 0.9rem;
  flex-wrap: wrap;
}

.primary-nav a,
.site-footer nav a {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.primary-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 650;
}

main {
  padding-block: 1.8rem 4rem;
}

.page-heading {
  margin-bottom: 1.5rem;
}

h1,
h2,
h3 {
  line-height: 1.3;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2rem);
  letter-spacing: -0.015em;
}

h2 {
  margin-top: 2.2rem;
  font-size: 1.15rem;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

p,
ul {
  margin-block: 0.7rem;
}

.lede {
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 1rem;
}

.eyebrow,
.meta,
.status,
.route-label {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.notice,
.card,
.claim,
.uncertainty,
.perspective,
.source {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.55rem;
}

.notice {
  padding: 0.8rem 0.95rem;
  margin: 1rem 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.card,
.claim,
.uncertainty,
.perspective,
.source {
  padding: 0.85rem 0.95rem;
}

.card h2 {
  margin: 0.25rem 0 0.4rem;
  font-size: 1rem;
}

.card p:last-child,
.source p:last-child {
  margin-bottom: 0;
}

.claim,
.uncertainty,
.perspective,
.source {
  margin-block: 0.7rem;
}

.claim-head {
  display: flex;
  gap: 0.5rem 0.8rem;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}

.confidence {
  display: inline-block;
  border-radius: 999px;
  background: var(--accent-soft);
  padding: 0.1rem 0.5rem;
  font-size: 0.82rem;
}

.route {
  border-left: 3px solid var(--border);
  margin-top: 0.7rem;
  padding-left: 0.75rem;
}

.compact-list,
ul {
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.25rem;
}

.back-link {
  margin-top: 0;
}

.source:target,
.uncertainty:target,
.claim:target {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  background: var(--surface);
  padding-block: 1rem 1.75rem;
  font-size: 0.88rem;
}

@media (max-width: 44rem) {
  .header-row {
    align-items: flex-start;
  }

  .primary-nav {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
