:root {
  --paper: #f3eee4;
  --paper-2: #ebe4d6;
  --ink: #1a1612;
  --muted: #5c564c;
  --line: #c9bfae;
  --prussian: #0f4c64;
  --prussian-2: #163d4e;
  --ochre: #b8955a;
  --brick: #cbb392;
  --white: #f7f4ef;
  --measure: 68ch;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--prussian);
}

a:hover {
  color: var(--prussian-2);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: var(--pad);
  z-index: 20;
  background: var(--white);
  padding: 0.5rem 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.nav a:hover,
.nav a[aria-current="true"] {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: end;
  color: var(--white);
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(15 20 24 / 0.15) 20%, rgb(15 20 24 / 0.78) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: calc(var(--pad) * 1.4) var(--pad) 3rem;
  max-width: 52rem;
}

.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 0.6rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0;
  max-width: 38rem;
  font-size: 1.15rem;
  color: #efe8dc;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts div {
  background: var(--paper);
  padding: 1.15rem var(--pad);
}

.facts dt {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.15rem;
}

section {
  padding: 4.5rem var(--pad);
}

.section-head {
  max-width: 72rem;
  margin: 0 auto 2rem;
  display: grid;
  gap: 0.5rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.section-head h2 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.prose {
  max-width: var(--measure);
}

.prose p {
  margin: 0 0 1.1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.split {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

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

.timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--prussian);
}

.timeline strong {
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.05rem;
}

.timeline span {
  color: var(--muted);
  font-size: 0.92rem;
}

.gallery {
  max-width: 72rem;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery figure,
.plan-grid figure,
.hero-caption {
  margin: 0;
}

.gallery figcaption,
.plan-grid figcaption,
.photo figcaption {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.gallery a,
.plan-grid a,
.photo a {
  display: block;
  background: var(--paper-2);
}

.gallery img,
.plan-grid img,
.photo img,
.plan-grid svg {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.gallery .wide {
  grid-column: span 2;
}

.gallery .wide img,
.photo-hero img {
  aspect-ratio: 16 / 9;
}

.photo {
  max-width: 72rem;
  margin: 0 auto 2rem;
}

.plan-grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.plan-grid .full {
  grid-column: 1 / -1;
}

.plan-grid svg {
  aspect-ratio: 800 / 420;
  background: var(--paper-2);
}

.plan-grid .elev svg {
  aspect-ratio: 800 / 560;
}

.note {
  max-width: 72rem;
  margin: 1.5rem auto 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 0.95rem;
}

.sources {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

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

.sources h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-family: "Source Serif 4", Georgia, serif;
}

.sources p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 2rem var(--pad) 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgb(12 10 8 / 0.92);
  display: none;
  place-items: center;
  padding: 1.5rem;
  z-index: 30;
}

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

.lightbox img {
  max-height: 88vh;
  width: auto;
}

.lightbox button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 840px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0.75rem var(--pad) 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

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

  .facts,
  .split,
  .gallery,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .gallery .wide {
    grid-column: auto;
  }

  .facts div {
    padding-inline: var(--pad);
  }
}
