:root {
  color-scheme: light;
  --ink: #17130f;
  --ink-soft: #3b3027;
  --paper: #f2eadc;
  --paper-deep: #e0d0b8;
  --cream: #fbf6ed;
  --brass: #9a6b2f;
  --vermilion: #b23824;
  --rain: #426f78;
  --moss: #526148;
  --line: rgba(45, 34, 22, 0.2);
  --shadow: 0 18px 60px rgba(34, 24, 14, 0.16);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(251, 246, 237, 0.92), rgba(242, 234, 220, 0.98)),
    var(--paper);
  color: var(--ink);
  font-family: "Alegreya Sans", "Trebuchet MS", sans-serif;
  font-size: 18px;
  line-height: 1.58;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 19, 15, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 19, 15, 0.025) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(251, 246, 237, 0.18);
  background: rgba(24, 20, 16, 0.88);
  color: var(--cream);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 66px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 234, 220, 0.5);
  color: var(--paper);
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1;
}

.brand span:last-child {
  display: block;
  color: rgba(251, 246, 237, 0.72);
  font-size: 0.72rem;
  margin-top: 3px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid transparent;
  color: rgba(251, 246, 237, 0.82);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: rgba(251, 246, 237, 0.28);
  color: var(--cream);
  background: rgba(251, 246, 237, 0.08);
}

.hero {
  position: relative;
  min-height: min(72vh, 760px);
  display: grid;
  align-items: end;
  overflow: clip;
  color: var(--cream);
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 13, 10, 0.82), rgba(18, 13, 10, 0.42) 48%, rgba(18, 13, 10, 0.16)),
    linear-gradient(0deg, rgba(18, 13, 10, 0.9), rgba(18, 13, 10, 0.08) 46%);
}

.hero-inner {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(76px, 13vw, 150px) 0 clamp(44px, 8vw, 78px);
}

.eyebrow,
.section-kicker {
  color: var(--vermilion);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #e3ad78;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  max-width: 840px;
  margin-top: 12px;
  font-size: clamp(3rem, 8vw, 7.2rem);
  font-weight: 700;
}

.hero-copy {
  max-width: 720px;
  margin-top: 20px;
  color: rgba(251, 246, 237, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button,
.source-list a,
.related-strip a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: var(--vermilion);
  color: var(--cream);
  border-color: rgba(178, 56, 36, 0.75);
}

.button.ghost {
  color: var(--cream);
  background: rgba(251, 246, 237, 0.08);
  border-color: rgba(251, 246, 237, 0.32);
}

.page-header {
  background:
    linear-gradient(135deg, rgba(31, 25, 19, 0.98), rgba(66, 111, 120, 0.76)),
    var(--ink);
  color: var(--cream);
}

.page-header-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(64px, 11vw, 120px) 0 clamp(36px, 7vw, 66px);
}

.page-header h1 {
  max-width: 960px;
  font-size: clamp(2.7rem, 7vw, 6.4rem);
}

.page-header p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(251, 246, 237, 0.82);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.content {
  position: relative;
  z-index: 1;
}

.ad-top {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 0;
}

.ad-slot {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.ad-slot-leaderboard,
.ad-slot-mobile {
  margin: 0 auto;
}

.ad-slot-rectangle,
.ad-slot-native {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 46px) 0;
  border-bottom: 1px solid var(--line);
}

.ad-label {
  color: rgba(59, 48, 39, 0.58);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.ad-frame {
  max-width: 100%;
  overflow: clip;
  display: grid;
  place-items: center;
  border: 1px solid rgba(45, 34, 22, 0.14);
  background: rgba(251, 246, 237, 0.42);
}

.ad-frame-leaderboard {
  width: 728px;
  min-height: 90px;
}

.ad-frame-rectangle {
  width: 300px;
  min-height: 250px;
}

.ad-frame-mobile {
  width: 320px;
  min-height: 50px;
}

.ad-frame-native {
  width: min(100%, 980px);
  min-height: 120px;
  padding: 8px;
}

.ad-slot-mobile {
  display: none;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 86px) 0;
  border-bottom: 1px solid var(--line);
}

.section:last-child {
  border-bottom: 0;
}

.section h2 {
  max-width: 860px;
  margin-top: 8px;
  font-size: clamp(1.9rem, 4vw, 3.8rem);
}

.section p {
  max-width: 840px;
  margin: 18px 0 0;
  color: var(--ink-soft);
}

.section-answer {
  padding-top: clamp(44px, 6vw, 70px);
}

.fact-grid,
.watch-grid,
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.fact-card,
.watch-grid article,
.platform-grid article {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(251, 246, 237, 0.68);
  box-shadow: 0 1px 0 rgba(251, 246, 237, 0.6) inset;
}

.fact-card span,
.platform-grid span {
  display: block;
  color: var(--brass);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.fact-card strong,
.watch-grid strong,
.platform-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
  line-height: 1.22;
}

.split-section,
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.hub-list {
  display: grid;
  gap: 10px;
}

.hub-list a {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px 16px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  border-top: 1px solid var(--line);
  background: color-mix(in oklch, var(--paper) 78%, var(--cream));
}

.hub-list a:hover {
  background: var(--cream);
}

.hub-list span {
  grid-row: span 2;
  color: var(--vermilion);
  font-family: Georgia, serif;
  font-size: 1.55rem;
  line-height: 1;
}

.hub-list strong {
  font-size: 1.08rem;
  line-height: 1.15;
}

.hub-list em {
  color: var(--ink-soft);
  font-style: normal;
  font-size: 0.96rem;
}

.search-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: center;
}

.search-panel {
  padding: 18px;
  background: var(--ink);
  color: var(--cream);
}

.search-panel label {
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  color: #e3ad78;
  text-transform: uppercase;
}

.search-panel input {
  width: 100%;
  min-height: 54px;
  margin-top: 10px;
  border: 1px solid rgba(251, 246, 237, 0.28);
  background: rgba(251, 246, 237, 0.08);
  color: var(--cream);
  padding: 0 14px;
  font: inherit;
}

.search-panel input::placeholder {
  color: rgba(251, 246, 237, 0.58);
}

.search-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.search-results a {
  display: block;
  padding: 12px;
  border: 1px solid rgba(251, 246, 237, 0.16);
  color: var(--cream);
  text-decoration: none;
}

.search-results span {
  display: block;
  color: rgba(251, 246, 237, 0.72);
  font-size: 0.9rem;
}

.clean-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.clean-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  background: var(--vermilion);
}

.note-section {
  background: linear-gradient(90deg, rgba(154, 107, 47, 0.12), rgba(66, 111, 120, 0.08));
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
}

.note-section h2 {
  font-size: clamp(1.55rem, 3vw, 2.6rem);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(251, 246, 237, 0.62);
  border: 1px solid var(--line);
}

.data-table th,
.data-table td {
  padding: 16px;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  color: var(--brass);
  text-transform: uppercase;
  font-size: 0.78rem;
}

.data-table td:first-child {
  font-weight: 900;
}

.related-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.timeline-cities,
.reveal-timeline {
  display: grid;
  gap: 12px;
}

.timeline-cities article,
.reveal-timeline article {
  display: grid;
  grid-template-columns: 110px 240px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.timeline-cities span,
.reveal-timeline time {
  color: var(--vermilion);
  font-family: Georgia, serif;
  font-size: 1.4rem;
  line-height: 1;
}

.timeline-cities strong,
.reveal-timeline strong {
  line-height: 1.2;
}

.sources {
  background: var(--ink);
  color: var(--cream);
}

.sources-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.sources h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.source-list a {
  color: var(--cream);
  background: rgba(251, 246, 237, 0.08);
  border-color: rgba(251, 246, 237, 0.2);
}

.site-footer {
  background: #120f0c;
  color: rgba(251, 246, 237, 0.7);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.92rem;
}

.footer-inner a {
  color: var(--cream);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 50;
  transform: translateY(-140%);
  background: var(--cream);
  color: var(--ink);
  padding: 8px 10px;
}

.skip-link:focus {
  transform: translateY(0);
}

@media (max-width: 860px) {
  .nav-wrap {
    grid-template-columns: 1fr;
    padding: 12px 0;
  }

  .nav-links {
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .hero {
    min-height: 68vh;
  }

  .ad-top {
    padding-top: 16px;
  }

  .ad-slot-leaderboard {
    display: none;
  }

  .ad-slot-mobile {
    display: grid;
  }

  .ad-slot-rectangle,
  .ad-slot-native {
    padding: 24px 0;
  }

  .fact-grid,
  .watch-grid,
  .platform-grid,
  .split-section,
  .two-col,
  .search-band {
    grid-template-columns: 1fr;
  }

  .timeline-cities article,
  .reveal-timeline article {
    grid-template-columns: 86px 1fr;
  }

  .timeline-cities article p,
  .reveal-timeline article p {
    grid-column: 2;
    margin-top: 0;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }

  .brand > span:last-child > span {
    display: none;
  }

  h1 {
    font-size: clamp(2.6rem, 17vw, 4.8rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
  }

  .data-table thead {
    display: none;
  }

  .data-table td {
    padding: 12px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
