:root {
  --ink: #151515;
  --muted: #5e6464;
  --paper: #fbfbf8;
  --panel: #ffffff;
  --line: #d9dedb;
  --red: #a83232;
  --red-dark: #7e2424;
  --teal: #176b64;
  --gold: #b4862c;
  --green-soft: #eef4ef;
  --gray-band: #f2f5f4;
  --shadow: 0 20px 50px rgba(20, 26, 25, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(21, 21, 21, 0.03) 0,
    rgba(21, 21, 21, 0.03) 1px,
    transparent 1px,
    transparent 38px
  );
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 0.9rem;
  border-radius: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 72px;
  padding: 0.9rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  background: rgba(251, 251, 248, 0.9);
  backdrop-filter: blur(18px);
}

.site-header[data-scrolled] {
  box-shadow: 0 10px 30px rgba(21, 21, 21, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.8rem);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  align-items: stretch;
  gap: clamp(2rem, 4vw, 5rem);
  min-height: calc(92svh - 72px);
  padding: clamp(2.5rem, 6vw, 6rem) clamp(1rem, 4vw, 4rem) 3.5rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 6.5vw, 6.1rem);
  font-weight: 500;
}

h2 {
  margin-bottom: 1.15rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.6vw, 4.6rem);
  font-weight: 500;
}

h3 {
  font-size: 1.15rem;
}

.hero-lede {
  max-width: 680px;
  color: #343838;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.hero-actions a + a {
  background: transparent;
  color: var(--ink);
}

.hero-actions a:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.hero-image {
  align-self: center;
  margin: 0;
}

.hero-image img {
  width: min(100%, 480px);
  max-height: 72svh;
  margin-left: auto;
  object-fit: cover;
  object-position: center top;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(21, 21, 21, 0.16);
  box-shadow: var(--shadow);
  filter: grayscale(1) contrast(1.08);
}

.hero-image figcaption {
  max-width: 480px;
  margin: 0.85rem 0 0 auto;
  color: var(--muted);
  font-size: 0.86rem;
}

.section {
  padding: clamp(4rem, 7vw, 7rem) clamp(1rem, 4vw, 4rem);
}

.band {
  background: var(--gray-band);
  border-block: 1px solid var(--line);
}

.event-band {
  background:
    linear-gradient(90deg, rgba(168, 50, 50, 0.07), transparent 36%),
    var(--gray-band);
}

.war-band {
  background:
    linear-gradient(90deg, rgba(23, 107, 100, 0.09), transparent 45%),
    var(--green-soft);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 5rem);
  max-width: 1180px;
  margin: 0 auto;
}

.copy {
  color: #2d3232;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.copy p:last-child,
.section-grid p:last-child {
  margin-bottom: 0;
}

.event-facts {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.event-facts div {
  padding: 1.15rem;
  background: var(--panel);
}

.event-facts span,
.program-list span,
.program-list small,
.source-note,
.timeline time {
  color: var(--muted);
  font-size: 0.86rem;
}

.event-facts span,
.program-list span {
  display: block;
  margin-bottom: 0.25rem;
}

.event-facts strong,
.program-list strong {
  display: block;
  line-height: 1.25;
}

.program {
  max-width: 1180px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
}

.program h3 {
  margin-bottom: 1rem;
}

.program-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.program-list li {
  min-height: 150px;
  padding: 1.1rem;
  background: var(--panel);
}

.evening-map,
.biography-grid,
.score-map,
.question-grid {
  display: grid;
  max-width: 1180px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.evening-map,
.biography-grid,
.score-map,
.question-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.evening-map article,
.biography-grid article,
.score-map div,
.question-grid article {
  min-height: 210px;
  padding: 1.2rem;
  background: var(--panel);
}

.evening-map span,
.score-map span,
.question-grid span {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evening-map p,
.biography-grid p,
.score-map p,
.question-grid p,
.reading-guide li,
.cue {
  margin-bottom: 0;
  color: #424848;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.timeline article {
  min-height: 220px;
  padding: 1.15rem;
  background: var(--panel);
}

.timeline h3,
.listening-grid h3,
.context-panels h3 {
  margin-bottom: 0.65rem;
}

.timeline p,
.listening-grid p,
.context-panels p,
.glossary dd {
  margin-bottom: 0;
  color: #424848;
}

.listening-grid,
.context-panels {
  display: grid;
  max-width: 1180px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  gap: 1rem;
}

.listening-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.listening-grid article,
.context-panels article {
  position: relative;
  min-height: 250px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--panel);
}

.listening-grid span {
  display: inline-grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  margin-bottom: 1.4rem;
  border: 1px solid var(--red);
  color: var(--red);
  font-weight: 800;
}

.cue {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
}

.score-map div {
  min-height: 170px;
}

.score-map span {
  color: var(--teal);
}

.context-panels {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.context-panels article {
  min-height: 190px;
  border-top: 4px solid var(--red);
}

.reading-guide {
  max-width: 1180px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: var(--panel);
}

.reading-guide h3 {
  margin-bottom: 1rem;
}

.reading-guide ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reading-guide li {
  padding-top: 1rem;
  border-top: 3px solid var(--teal);
}

.reading-guide strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.route {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  background: rgba(23, 107, 100, 0.32);
  border: 1px solid rgba(23, 107, 100, 0.32);
}

.route article {
  min-height: 210px;
  padding: 1rem;
  background: #fff;
}

.route span {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  margin-bottom: 1rem;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-weight: 800;
}

.route h3 {
  margin-bottom: 0.65rem;
}

.route p {
  margin-bottom: 0;
  color: #424848;
}

.question-grid article {
  min-height: 170px;
}

.question-grid span {
  color: var(--gold);
}

.glossary {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.glossary div {
  padding: 1.25rem;
  background: var(--panel);
}

.glossary dt {
  margin-bottom: 0.35rem;
  color: var(--teal);
  font-weight: 850;
}

.sources ul {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sources li {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.source-note {
  max-width: 1180px;
  margin: 2rem auto 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer a {
  font-weight: 750;
}

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

  .program-list,
  .listening-grid,
  .evening-map,
  .biography-grid,
  .score-map,
  .question-grid,
  .route {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reading-guide ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-image img,
  .hero-image figcaption {
    margin-left: 0;
  }

  .hero-image img {
    width: min(100%, 420px);
    max-height: 48svh;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero {
    padding-top: 2.25rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  .program-list,
  .timeline,
  .listening-grid,
  .context-panels,
  .route,
  .evening-map,
  .biography-grid,
  .score-map,
  .question-grid {
    grid-template-columns: 1fr;
  }

  .program-list li,
  .timeline article,
  .listening-grid article,
  .context-panels article,
  .evening-map article,
  .biography-grid article,
  .score-map div,
  .question-grid article {
    min-height: auto;
  }

  .route article {
    min-height: auto;
  }

  .footer {
    flex-direction: column;
  }
}

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