:root {
  color-scheme: light;
  --ink: #1f2525;
  --muted: #596161;
  --paper: #fbf8ef;
  --paper-strong: #f3ead8;
  --white: #fffdf7;
  --maroon: #8f2634;
  --saffron: #c97528;
  --green: #2c6c55;
  --blue: #254c68;
  --line: rgba(31, 37, 37, 0.14);
  --shadow: 0 22px 70px rgba(45, 35, 25, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(143, 38, 52, 0.07) 1px, transparent 1px) 0 0 / 84px 84px,
    var(--paper);
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 248, 239, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  background: var(--maroon);
  border-radius: 50%;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  text-decoration: none;
}

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

.language-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.language-control select {
  min-height: 38px;
  padding: 7px 34px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.78fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  min-height: calc(100svh - 72px);
  padding: clamp(40px, 7vw, 92px) clamp(18px, 6vw, 86px) clamp(24px, 4vw, 48px);
}

.hero-copy {
  max-width: 770px;
}

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

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

h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 11vw, 8.4rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.24rem;
}

.hero-lede {
  max-width: 710px;
  color: #384141;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.45;
}

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

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

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

.button.secondary {
  background: rgba(255, 253, 247, 0.72);
}

.hero-portrait,
.feature-image,
.gallery figure {
  margin: 0;
}

.hero-portrait {
  align-self: end;
  max-width: 460px;
  justify-self: center;
}

.hero-portrait img,
.feature-image img,
.gallery img {
  width: 100%;
  border: 1px solid rgba(31, 37, 37, 0.18);
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-portrait img {
  aspect-ratio: 1367 / 2115;
  object-fit: cover;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: var(--green);
  color: white;
}

.stats-band article {
  min-height: 150px;
  padding: 26px clamp(18px, 3vw, 34px);
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.stats-band span,
.stats-band small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
}

.stats-band strong {
  display: block;
  margin: 12px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 2.25rem);
  line-height: 1;
}

.section {
  padding: clamp(54px, 8vw, 110px) clamp(18px, 6vw, 86px);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 82px);
}

.body-copy p,
.feature-copy p,
.panel-copy p,
.legacy-grid article p,
.timeline p {
  color: #3f4848;
  font-size: 1.03rem;
  line-height: 1.75;
}

.feature-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.72fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: center;
  padding: clamp(54px, 8vw, 110px) clamp(18px, 6vw, 86px);
  background: var(--paper-strong);
  border-block: 1px solid var(--line);
}

.feature-copy {
  max-width: 760px;
}

.feature-image {
  max-width: 480px;
  justify-self: center;
}

.feature-image img {
  aspect-ratio: 816 / 1161;
  object-fit: cover;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.timeline-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter.is-active {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.timeline {
  display: grid;
  gap: 0;
  max-width: 1040px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.timeline li.is-hidden {
  display: none;
}

.timeline time {
  color: var(--maroon);
  font-weight: 900;
}

.timeline p {
  margin: 7px 0 0;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.72fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: start;
  background: #f7f4e9;
}

.quote-stack {
  display: grid;
  gap: 18px;
}

blockquote {
  margin: 0;
  padding: 28px;
  color: white;
  background: var(--maroon);
  border-radius: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  line-height: 1.15;
}

blockquote:nth-child(2) {
  background: var(--blue);
}

cite {
  display: block;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.35;
}

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

.legacy-grid .section-heading {
  grid-column: 1 / -1;
}

.legacy-grid article {
  padding-top: 20px;
  border-top: 4px solid var(--saffron);
}

.legacy-grid article:nth-of-type(2) {
  border-color: var(--green);
}

.legacy-grid article:nth-of-type(3) {
  border-color: var(--blue);
}

.legacy-grid article:nth-of-type(4) {
  border-color: var(--maroon);
}

.archive {
  background: #f1eadc;
  border-block: 1px solid var(--line);
}

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

.gallery-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-button:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 4px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 52px);
  background: rgba(16, 18, 18, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  width: min(1120px, 86vw);
  max-height: 88vh;
  margin: 0;
  color: white;
}

.lightbox-content img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
}

.lightbox-content figcaption {
  max-width: 940px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-arrow {
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translateY(-50%);
  font-size: 2.6rem;
  line-height: 1;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-arrow:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.lightbox-arrow:disabled:hover {
  background: rgba(255, 255, 255, 0.12);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 6vw, 86px);
  color: white;
  background: var(--ink);
}

.footer p {
  margin: 0;
}

.footer a {
  color: white;
  font-weight: 800;
}

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

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

  .language-control {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .feature-section,
  .two-column,
  .split-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-portrait,
  .feature-image {
    justify-self: start;
    max-width: min(440px, 100%);
  }

  .stats-band,
  .legacy-grid,
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .brand {
    white-space: normal;
  }

  .nav {
    font-size: 0.88rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .stats-band,
  .legacy-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .stats-band article {
    min-height: 128px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  blockquote {
    padding: 22px;
  }

  .lightbox {
    padding: 64px 14px 22px;
  }

  .lightbox-content {
    width: 100%;
  }

  .lightbox-arrow {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox-prev {
    left: 18px;
  }

  .lightbox-next {
    right: 18px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
