:root {
  --paper: #f3efe6;
  --paper-deep: #e9e2d5;
  --ink: #292d2c;
  --muted: #626966;
  --accent: #0e5554;
  --accent-dark: #083d3d;
  --line: #c9c3b7;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent-dark); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
video:focus-visible {
  outline: 3px solid #bd6b35;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

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

.shell {
  width: min(100% - 2.25rem, 74rem);
  margin-inline: auto;
}

.narrow { max-width: 53rem; }

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-mark {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero {
  padding-block: clamp(3.5rem, 9vw, 8rem);
}

.hero-copy { max-width: 58rem; }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2.65rem, 10.5vw, 6.3rem);
  letter-spacing: -0.045em;
  line-height: 0.96;
}

h1 span {
  display: block;
  max-width: 16ch;
  margin-top: 1.25rem;
  color: var(--accent-dark);
  font-size: 0.43em;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.intro {
  max-width: 49rem;
  margin: 2rem 0 0;
  font-size: clamp(1.08rem, 2.8vw, 1.3rem);
  line-height: 1.65;
}

.hero-image {
  position: relative;
  margin: clamp(2.75rem, 7vw, 5rem) 0 0;
}

.hero-image::before {
  content: "";
  position: absolute;
  top: -1rem;
  right: 0;
  left: 18%;
  border-top: 1px solid var(--accent);
}

.hero-image img {
  width: 100%;
  max-height: 44rem;
  object-fit: cover;
  object-position: center 48%;
}

figcaption,
.image-credit,
.comparison-help {
  color: var(--muted);
  font-size: 0.8rem;
}

figcaption { margin-top: 0.55rem; }

.section-pad {
  padding-block: clamp(4.5rem, 11vw, 8rem);
}

.video-section,
.context-section,
.details-section {
  background: var(--accent-dark);
  color: #f7f4ec;
}

.video-section .eyebrow,
.context-section .eyebrow,
.details-section .eyebrow { color: #9fc4c0; }

h2 {
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  font-size: clamp(2rem, 7vw, 4.25rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h2 span {
  color: #9fc4c0;
  font-size: 0.5em;
  font-style: italic;
  white-space: nowrap;
}

.video-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #171918;
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #171918;
  object-fit: contain;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 2.1rem;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  bottom: 0.55rem;
  left: 0.35rem;
  width: 1px;
  background: var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 3.1rem;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  top: 0.47rem;
  left: -2.13rem;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.timeline .year {
  margin: 0 0 0.25rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 4.5vw, 1.8rem);
  line-height: 1.15;
}

.timeline p:last-child { margin: 0; }

.timeline .focus-event {
  margin-left: -0.75rem;
  padding: 1.4rem 1.2rem 3rem;
  border-left: 3px solid var(--accent);
  background: rgba(14, 85, 84, 0.08);
}

.timeline .focus-event::before { left: -1.83rem; }

.context-layout { display: grid; gap: 1rem; }

.context-copy .lead {
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 4.3vw, 1.75rem);
  line-height: 1.48;
}

.source-note {
  margin: 0;
  padding: 1.15rem 0 1.15rem 1.2rem;
  border-left: 2px solid #9fc4c0;
  color: #d9e7e4;
  font-weight: 700;
}

.reconstruction {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.reconstruction h3 {
  margin: 0 0 1.2rem;
  font-size: 1.45rem;
}

.reconstruction h3 span {
  display: block;
  margin-top: 0.3rem;
  color: #9fc4c0;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.reconstruction ul {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}

.reconstruction p:last-child {
  color: #c9d6d3;
  font-size: 0.9rem;
}

.comparison-section { overflow: hidden; }

.comparison-images {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  max-height: 46rem;
  background: #dad5cb;
  touch-action: pan-y;
  user-select: none;
}

.comparison-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.comparison-after {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

.comparison-label {
  position: absolute;
  top: 0.8rem;
  z-index: 2;
  padding: 0.35rem 0.55rem;
  background: rgba(31, 34, 33, 0.84);
  color: white;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.label-before { right: 0.8rem; }
.label-after { left: 0.8rem; }

.divider {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 2px;
  background: white;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
  transform: translateX(-1px);
  pointer-events: none;
}

.divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3rem;
  height: 3rem;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
}

.divider span::before {
  content: "↔";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 1.15rem;
  line-height: 1;
}

.comparison label {
  display: block;
  margin-top: 1.25rem;
  font-weight: 700;
}

.comparison input[type="range"] {
  width: 100%;
  min-height: 2.75rem;
  margin: 0.35rem 0 0;
  accent-color: var(--accent);
  cursor: ew-resize;
}

.comparison-help { margin: 0; }
.image-credit { margin-top: 1.3rem; }

.details-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.details-grid article {
  position: relative;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.details-grid article > span {
  color: #9fc4c0;
  font-family: var(--serif);
  font-size: 0.85rem;
}

.details-grid h3 {
  margin: 0.35rem 0 0.55rem;
  font-size: 1.45rem;
}

.details-grid p { margin: 0; color: #d7e0de; }

.site-footer {
  padding-block: 3.5rem;
  background: #202524;
  color: #cbd1cf;
}

.site-footer h2 {
  margin-bottom: 1.25rem;
  color: white;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-footer ul {
  columns: 2;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  break-inside: avoid;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
}

.site-footer p {
  margin: 2rem 0 0;
  color: #959d9a;
  font-size: 0.76rem;
}

@media (min-width: 48rem) {
  .shell { width: min(100% - 5rem, 74rem); }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.65fr);
    align-items: end;
    gap: 4rem;
  }

  .hero-image { margin: 0; }

  .hero-image img {
    height: min(70vh, 42rem);
    object-position: center;
  }

  .context-layout {
    grid-template-columns: minmax(15rem, 0.65fr) minmax(0, 1.35fr);
    gap: 4rem;
  }

  .details-grid { grid-template-columns: 1fr 1fr; }

  .details-grid article:nth-child(odd) { padding-right: 2.5rem; }
  .details-grid article:nth-child(even) { padding-left: 2.5rem; border-left: 1px solid rgba(255, 255, 255, 0.25); }
}

@media (max-width: 30rem) {
  .site-footer ul { columns: 1; }
}

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

@media (prefers-contrast: more) {
  :root { --muted: #454a48; --line: #817b70; }
}
