:root {
  color-scheme: light dark;
  --background: #faf9f6;
  --surface: #f0ede6;
  --text: #1c1c1a;
  --body: #3a3a38;
  --muted: #6a6a63;
  --accent: #0b1d3a;
  --accent-hover: #1a2e4f;
  --on-accent: #fdfcf9;
  --line: rgb(11 29 58 / 12%);
  --focus: #315b98;
  --content: 92rem;
  --font-body: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading: Iowan Old Style, "Palatino Linotype", Palatino, Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111827;
    --surface: #18243a;
    --text: #f5f3ed;
    --body: #dedbd3;
    --muted: #aaa79f;
    --accent: #b7c9e5;
    --accent-hover: #d3def0;
    --on-accent: #0b1d3a;
    --line: rgb(223 231 244 / 17%);
    --focus: #f0c878;
  }
}

* {
  box-sizing: border-box;
}

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

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 2;
  padding: 0.7rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  transform: translateY(-180%);
}

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

.site-header {
  min-height: 4.5rem;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.06em;
  line-height: 1;
  text-decoration: none;
}

.wordmark span {
  color: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  white-space: nowrap;
}

nav a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

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

main,
footer {
  max-width: var(--content);
  margin: 0 auto;
}

.hero {
  min-height: calc(100dvh - 4.5rem);
  padding: clamp(3.5rem, 7vw, 7rem) 3rem;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
}

.hero-copy {
  min-width: 0;
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 500;
}

h1 {
  max-width: 12ch;
  margin-bottom: 2rem;
  font-size: clamp(3rem, 5.7vw, 6.4rem);
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.hero-summary {
  max-width: 35rem;
  margin-bottom: 2.25rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
}

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

.button {
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-secondary {
  background: transparent;
  color: var(--accent);
}

.button-secondary:hover {
  background: var(--surface);
}

.hero-visual {
  min-width: 0;
  margin: 0;
  min-height: 28rem;
  overflow: hidden;
  background: var(--surface);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  display: block;
  object-fit: cover;
}

.purpose {
  padding: clamp(5rem, 9vw, 9rem) 3rem;
  display: grid;
  grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(4rem, 9vw, 10rem);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.purpose-intro {
  min-width: 0;
  align-self: start;
  position: sticky;
  top: 2rem;
}

h2 {
  max-width: 16ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.4rem, 4vw, 4.8rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.purpose-intro p,
.boundary p {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.purpose-list article {
  padding: 2.25rem 0 2.6rem;
  border-bottom: 1px solid var(--line);
}

.purpose-list,
.boundary > * {
  min-width: 0;
}

.purpose-list article:first-child {
  padding-top: 0;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.purpose-list p {
  max-width: 46rem;
  margin-bottom: 1rem;
  color: var(--body);
}

.purpose-list a,
.boundary a {
  color: var(--accent);
  font-weight: 700;
}

.boundary {
  padding: clamp(5rem, 9vw, 9rem) 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
  gap: clamp(4rem, 10vw, 11rem);
  border-top: 1px solid var(--line);
}

dl {
  margin: 0;
}

dl > div {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

dl > div:first-child {
  padding-top: 0;
}

dt {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--text);
  font-size: 1.03rem;
}

footer {
  padding: 2.25rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

footer p {
  margin: 0;
}

.footer-wordmark {
  font-size: 1.2rem;
}

@media (max-width: 56rem) {
  .hero,
  .purpose,
  .boundary {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 22rem;
  }

  .hero-visual img {
    min-height: 22rem;
  }

  .purpose-intro {
    position: static;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 42rem) {
  .site-header {
    min-height: auto;
    padding: 1.25rem 1.25rem 1rem;
    align-items: flex-start;
  }

  nav {
    max-width: 13rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
  }

  nav a {
    font-size: 0.68rem;
  }

  .hero,
  .purpose,
  .boundary {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
    gap: 3.5rem;
  }

  h1 {
    font-size: clamp(2.7rem, 12.5vw, 3.5rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 18rem;
  }

  .purpose,
  .boundary {
    gap: 3rem;
  }

  footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
