:root {
  color-scheme: light;
  --ink: #172b3a;
  --muted: #526371;
  --blue: #124e68;
  --blue-dark: #0c3449;
  --teal: #dcebe8;
  --paper: #f7f8f5;
  --white: #fff;
  --line: #d8e0df;
  --accent: #c78342;
  --content: 960px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 10;
  padding: 0.6rem 0.9rem;
  color: var(--white);
  background: var(--blue-dark);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(247 248 245 / 94%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-wrap,
.content-wrap {
  width: min(var(--content), calc(100% - 3rem));
  margin-inline: auto;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1.5rem;
}

.wordmark {
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.back-link {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse at 82% 25%, rgb(91 148 147 / 36%), transparent 34rem),
    linear-gradient(118deg, var(--blue-dark), #14546b 72%, #236c78);
}

.hero::after {
  position: absolute;
  right: -9rem;
  bottom: -17rem;
  width: 40rem;
  height: 40rem;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgb(255 255 255 / 3%), 0 0 0 7rem rgb(255 255 255 / 3%);
  content: "";
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--content), calc(100% - 3rem));
  margin-inline: auto;
  padding-block: 5.5rem;
}

.eyebrow,
.section-kicker {
  color: #b6d6d3;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 0.8rem;
}

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

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  max-width: 16ch;
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 7vw, 4.7rem);
  letter-spacing: -0.045em;
}

.subtitle {
  max-width: 48rem;
  margin-bottom: 0;
  color: #dce9e8;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
}

.hero-credit {
  display: inline-block;
  margin-top: 1.8rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgb(255 255 255 / 28%);
  color: #dce9e8;
  font-size: 0.82rem;
}

.content-wrap {
  padding-block: 3rem 5rem;
}

.section {
  padding-block: 2.4rem;
  border-bottom: 1px solid var(--line);
}

.section:first-child {
  padding-top: 0;
}

.section:last-child {
  border-bottom: 0;
}

.section-kicker {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

h2 {
  margin-bottom: 1.2rem;
  color: var(--blue-dark);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 0.65rem;
  color: var(--blue-dark);
  font-size: 1.3rem;
}

.section > p:last-child,
.section > ul:last-child {
  margin-bottom: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-block: 1.5rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.step {
  padding: 1.35rem;
  background: var(--white);
}

.step-number {
  display: block;
  margin-bottom: 1.15rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.step p,
.note,
.citation-meta {
  color: var(--muted);
}

.step p {
  margin-bottom: 0;
  font-size: 0.93rem;
}

.citation-list {
  margin: 0;
  padding-left: 1.25rem;
}

.citation-list li {
  margin-bottom: 1rem;
  padding-left: 0.3rem;
}

.citation-list li:last-child {
  margin-bottom: 0;
}

.note {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid #a7c7c1;
  background: var(--teal);
}

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

.figure {
  max-width: 700px;
  margin: 1.5rem auto 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.figure img {
  display: block;
  width: min(100%, 620px);
  height: auto;
  margin-inline: auto;
  background: transparent;
}

.figure figcaption {
  padding: 0.55rem 0.2rem 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

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

.funding {
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
}

.contact-card {
  padding: 1.4rem;
  border-top: 2px solid var(--accent);
  background: var(--white);
}

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

.site-footer {
  padding-block: 1.2rem;
  color: #b8c8ca;
  background: #082939;
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--content), calc(100% - 3rem));
  margin-inline: auto;
}

.site-footer a {
  color: var(--white);
}

@media (max-width: 650px) {
  .nav-wrap,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    padding-block: 0.8rem;
  }

  .hero-inner {
    padding-block: 4rem;
  }

  .content-wrap {
    padding-block: 2rem 3.5rem;
  }

  .steps,
  .gallery {
    grid-template-columns: 1fr;
  }

  .step {
    padding: 1.15rem;
  }

  .step-number {
    margin-bottom: 0.6rem;
  }
}

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