:root {
  --paper: #fbf9f4;
  --ink: #262420;
  --accent: #8a6a4a;
  --rule: #d8cdb8;
  --font-serif: "Lora", "Source Serif 4", Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, sans-serif;
  line-height: 1.55;
}

.masthead {
  padding: 2.5rem 1rem 1.5rem;
  border-bottom: 3px double var(--accent);
}

.masthead-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.masthead-brand {
  flex: 1 1 320px;
  text-align: center;
}

.wordmark {
  max-width: 420px;
  margin: 0 auto;
}

.wordmark svg {
  display: block;
  width: 100%;
  height: auto;
}

.masthead h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 6vw + 0.5rem, 3rem);
  letter-spacing: 0.02em;
  margin: 0;
}

.masthead .tagline {
  font-style: italic;
  color: var(--accent);
  margin: 0.25rem 0;
}

.dateline {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b6156;
  margin: 0.5rem 0 0;
}

.page-published {
  font-size: 0.75rem;
  color: #6b6156;
  margin: 0.15rem 0 0;
}

.masthead-nav {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
}

.masthead-nav a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.masthead-nav a:hover {
  border-bottom-color: var(--accent);
}

.legend {
  flex: 0 1 300px;
  font-size: 0.78rem;
  color: #6b6156;
}

.legend-heading {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

.legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legend-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* Legend swatches reuse the real badge/tag classes so colors can never
   drift from what's actually shown on the page -- only margins differ. */
.legend .legend-swatch {
  margin: 0;
  flex: 0 0 auto;
}

.legend-text {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 720px) {
  .masthead-inner {
    flex-direction: column;
    text-align: center;
  }

  /* Reset the row-layout flex-basis values -- in a column flex container
     the main axis is vertical, so a leftover pixel basis reserves that
     much *height* instead of width, leaving a large blank gap. */
  .masthead-brand,
  .legend {
    flex-basis: auto;
  }

  .legend {
    text-align: left;
    align-self: stretch;
  }
}

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.lead-story {
  max-width: 720px;
  margin: 0 auto;
}

.category-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin: 0 0 0.75rem;
}

.satire-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #fff;
  background: #7a1f3d;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin: 0 0.5rem 0.75rem 0;
}

.factcheck-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #fff;
  background: #b5540f;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin: 0 0.5rem 0.75rem 0;
}

.factcheck-notice {
  background: #fdf2e7;
  border: 1px solid #e3b57f;
  border-left: 4px solid #b5540f;
  border-radius: 4px;
  padding: 0.85rem 1rem;
  margin: 0 0 1.5rem;
}

.factcheck-heading {
  font-weight: 600;
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
}

.factcheck-quote {
  font-style: italic;
  margin: 0 0 0.4rem;
}

.factcheck-rating {
  font-size: 0.9rem;
  margin: 0 0 0.4rem;
}

.factcheck-rating a {
  color: var(--accent);
}

.factcheck-caveat {
  font-size: 0.72rem;
  color: #6b6156;
  margin: 0;
}

.headline {
  font-family: var(--font-serif);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.lead-story .headline {
  font-size: clamp(1.5rem, 4vw + 0.75rem, 2.1rem);
}

.secondary-story .headline {
  font-size: clamp(1.15rem, 2.5vw + 0.75rem, 1.4rem);
}

.sources {
  font-size: 0.8rem;
  color: #6b6156;
  margin: 0 0 1.25rem;
}

.summary {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.secondary-story .summary {
  font-size: 0.95rem;
}

.story-video {
  display: block;
  width: 100%;
  max-width: 280px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  margin: 0 0 1.5rem;
  background: #000;
}

.go-deeper {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}

.go-deeper h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.deeper-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.deeper-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.65rem 0.85rem;
  background: #fdf9f0;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.deeper-item:hover {
  background: #fff4de;
}

.deeper-item.deeper-article {
  border-left-color: #3f6b64;
}

.deeper-item.deeper-book {
  border-left-color: #a6741b;
}

.deeper-item.deeper-paper {
  border-left-color: #5b4b8a;
}

.deeper-item.deeper-source {
  border-left-color: #6b6156;
}

.kind-tag {
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  margin-top: 0.1rem;
}

.kind-tag.kind-article {
  background: #3f6b64;
}

.kind-tag.kind-book {
  background: #a6741b;
}

.kind-tag.kind-paper {
  background: #5b4b8a;
}

.kind-tag.kind-source {
  background: #6b6156;
}

.deeper-body {
  flex: 1 1 auto;
  min-width: 0;
}

.deeper-title {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.deeper-title:hover {
  border-bottom-color: var(--accent);
}

.deeper-meta {
  font-size: 0.8rem;
  color: #6b6156;
  margin: 0.25rem 0 0;
}

.book-disclaimer {
  font-size: 0.7rem;
  font-style: italic;
  color: #6b6156;
  margin: 0.15rem 0 0;
}

.also-today {
  margin-top: 3rem;
  border-top: 3px double var(--accent);
  padding-top: 1.5rem;
}

.also-today .section-heading {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 1.25rem;
  text-align: center;
}

.also-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

@media (max-width: 640px) {
  .also-grid {
    grid-template-columns: 1fr;
  }
}

.secondary-story {
  padding: 1.25rem 1.4rem;
  background: #fbf6ea;
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.about-page {
  max-width: 720px;
  margin: 0 auto;
}

.about-page .headline {
  font-size: clamp(1.6rem, 4vw + 0.75rem, 2.1rem);
}

.about-page h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 2rem 0 0.5rem;
}

.about-page p {
  margin: 0 0 1rem;
}

.about-page a {
  color: var(--accent);
}

footer {
  text-align: center;
  font-size: 0.75rem;
  color: #6b6156;
  padding: 1.5rem 1rem 2.5rem;
}

footer .disclaimer {
  max-width: 640px;
  margin: 0.75rem auto 0;
  font-size: 0.7rem;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .masthead {
    padding: 1.75rem 1rem 1.25rem;
  }

  main {
    padding: 1.5rem 1rem 3rem;
  }

  .secondary-story {
    padding: 1rem 1.1rem;
  }

  .deeper-item {
    padding: 0.6rem 0.7rem;
    gap: 0.55rem;
  }

  .factcheck-notice {
    padding: 0.7rem 0.85rem;
  }
}
