:root {
  --ink: #1d2329;
  --muted: #5d6670;
  --paper: #fbf7ef;
  --white: #ffffff;
  --line: #ddd4c5;
  --red: #8d1f2d;
  --red-deep: #5d1722;
  --gold: #bc8731;
  --green: #466f63;
  --blue: #243f63;
  --stone: #e7e0d4;
  --shadow: 0 16px 44px rgba(29, 35, 41, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--red);
  border-radius: 6px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(251, 247, 239, 0.95);
  border-bottom: 1px solid rgba(141, 31, 45, 0.16);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--red);
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  line-height: 1;
}

.main-nav,
.site-footer nav,
.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a,
.site-footer nav a,
.footer-legal button {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}

.main-nav a:hover,
.site-footer nav a:hover,
.footer-legal button:hover {
  color: var(--red);
  background: rgba(141, 31, 45, 0.08);
}

.hero {
  position: relative;
  min-height: clamp(520px, 72svh, 720px);
  overflow: hidden;
  display: grid;
  align-items: end;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  z-index: -2;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 20, 23, 0.86) 0%, rgba(18, 20, 23, 0.58) 42%, rgba(18, 20, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(18, 20, 23, 0.62) 0%, rgba(18, 20, 23, 0.04) 46%);
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin: 0 auto 0 clamp(18px, 7vw, 92px);
  padding: 86px 0 72px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero h1,
.section h2,
.intro h2,
.source-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(3.2rem, 5.8vw, 6.6rem);
}

.hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-label {
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.72;
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.11);
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: var(--red);
  border-color: var(--gold);
}

.social-link img {
  width: 19px;
  height: 19px;
}

.hero-social {
  margin-top: 18px;
  color: var(--white);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  color: var(--white);
  background: var(--red);
}

.button-primary:hover {
  background: var(--red-deep);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.section-inner {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
}

.section,
.section-band {
  padding: clamp(58px, 7vw, 96px) 0;
}

.section,
.section-band,
.ad-zone,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}

.section-band {
  background: var(--white);
}

.intro-grid,
.source-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.intro h2,
.section h2,
.source-section h2 {
  max-width: 820px;
  font-size: clamp(2rem, 3.8vw, 3.6rem);
}

.intro p,
.section-heading p,
.source-section p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.fact-strip {
  display: grid;
  gap: 12px;
}

.fact-strip article {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fact-strip strong {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.fact-strip span {
  color: var(--ink);
  font-weight: 700;
}

.ad-zone {
  display: grid;
  place-items: center;
  min-height: 128px;
  margin-block: clamp(30px, 5vw, 54px);
  padding: 18px;
  color: var(--muted);
  background:
    repeating-linear-gradient(135deg, rgba(36, 63, 99, 0.05) 0 10px, rgba(70, 111, 99, 0.05) 10px 20px),
    var(--white);
  border: 1px dashed rgba(93, 102, 112, 0.45);
  border-radius: var(--radius);
}

.ad-zone span {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.adsbygoogle {
  width: 100%;
  min-height: 90px;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.era-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.era-card {
  min-height: 300px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(29, 35, 41, 0.05);
}

.era-card:nth-child(3n + 1) {
  border-bottom: 4px solid var(--red);
}

.era-card:nth-child(3n + 2) {
  border-bottom: 4px solid var(--green);
}

.era-card:nth-child(3n) {
  border-bottom: 4px solid var(--blue);
}

.era-media {
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: var(--stone);
}

.era-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.era-card-body {
  padding: 20px 22px 22px;
}

.era-date {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.era-card h3,
.timeline h3,
.topic-layout h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.era-card p:last-child,
.timeline p,
.topic-layout p {
  margin-bottom: 0;
  color: var(--muted);
}

.timeline-section {
  background: #f3eee6;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.timeline-media,
.topic-media {
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: var(--stone);
}

.timeline-media img,
.topic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-card-body {
  padding: 20px 22px 22px;
}

.timeline time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
  font-weight: 800;
}

.topic-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 16px;
}

.topic-layout article {
  min-height: 220px;
  overflow: hidden;
  color: var(--white);
  background: var(--red);
  border-radius: var(--radius);
}

.topic-layout article:nth-child(2) {
  background: var(--green);
}

.topic-layout article:nth-child(3) {
  background: var(--blue);
}

.topic-layout h3,
.topic-layout p {
  color: var(--white);
}

.topic-card-body {
  padding: 24px 26px 26px;
}

.topic-layout p {
  opacity: 0.88;
}

.blog-section {
  background: #f8f2e8;
}

.blog-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.blog-link-card {
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(29, 35, 41, 0.05);
}

.blog-link-card:hover h3 {
  color: var(--red);
}

.blog-link-media {
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: var(--stone);
}

.blog-link-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-link-body {
  padding: 20px 22px 22px;
}

.blog-link-body h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.blog-link-body p:last-child {
  color: var(--muted);
}

.source-section {
  background: var(--white);
}

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

.source-list li {
  padding: 16px 18px;
  background: var(--paper);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  font-weight: 700;
}

.site-footer {
  padding: 40px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #191f26;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.site-footer .brand,
.site-footer nav a,
.footer-legal button {
  color: var(--white);
}

.footer-links {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.footer-social {
  justify-content: flex-end;
  color: var(--white);
}

.footer-legal {
  justify-content: flex-end;
}

.footer-legal button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.footer-brand {
  margin-bottom: 10px;
}

.site-footer p {
  margin: 0;
}

.policy-page {
  background: var(--white);
}

.policy-hero {
  padding: clamp(58px, 7vw, 90px) 0 28px;
}

.policy-hero h1,
.policy-content h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  letter-spacing: 0;
}

.policy-hero h1 {
  max-width: 880px;
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.policy-updated {
  color: var(--muted);
  font-weight: 700;
}

.policy-content {
  max-width: 880px;
  padding-bottom: clamp(58px, 7vw, 96px);
}

.policy-content h2 {
  margin-top: 1.8em;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.policy-content p,
.policy-content li {
  color: var(--muted);
  font-size: 1.05rem;
}

.policy-content a {
  color: var(--red);
  font-weight: 800;
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(1100px, calc(100% - 36px));
  margin-inline: auto;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cookie-banner h2,
.cookie-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
}

.cookie-banner p,
.cookie-panel p,
.cookie-choice span {
  margin: 4px 0 0;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-actions-end {
  justify-content: flex-end;
  margin-top: 18px;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(25, 31, 38, 0.62);
}

.cookie-panel {
  width: min(680px, 100%);
  max-height: min(760px, calc(100svh - 36px));
  overflow: auto;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cookie-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.cookie-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.cookie-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cookie-choice input {
  width: 22px;
  height: 22px;
  accent-color: var(--red);
}

@media (max-width: 1040px) {
  .era-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .blog-link-grid {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-actions,
  .cookie-actions-end {
    justify-content: stretch;
  }

  .cookie-actions .button {
    flex: 1 1 160px;
  }

  .topic-layout article {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .main-nav a {
    white-space: nowrap;
  }

  .hero {
    min-height: 0;
  }

  .hero-content {
    width: min(100% - 32px, 680px);
    margin-inline: auto;
    padding: 76px 0 56px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.4rem);
  }

  .hero p:not(.eyebrow) {
    font-size: 1.02rem;
  }

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

  .intro-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .fact-strip article {
    grid-template-columns: 72px 1fr;
  }

  .era-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .era-card,
  .timeline li {
    min-height: 0;
  }

  .footer-grid {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .footer-links,
  .footer-legal,
  .footer-social {
    justify-items: start;
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
