:root {
  color-scheme: dark;
  --felt: #071f18;
  --felt-light: #0d2c22;
  --paper: #f4f1e8;
  --muted: #a9b8af;
  --line: rgba(244, 241, 232, 0.18);
  --accent: #43c98b;
  --page-padding: clamp(1.35rem, 4vw, 4rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 8%, rgba(67, 201, 139, 0.08), transparent 30rem),
    var(--felt);
  color: var(--paper);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.08em;
}

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

.site-header,
main,
footer {
  padding-inline: var(--page-padding);
}

.site-header {
  min-height: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mark {
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.95rem;
}

nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
}

nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 160ms ease;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--paper);
}

.hero {
  min-height: calc(100svh - 5.25rem);
  display: flex;
  max-width: 72rem;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(5rem, 13vw, 10rem);
  animation: enter 650ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.eyebrow,
.section-index {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 15ch;
  margin-bottom: 1.75rem;
  font-size: clamp(3.3rem, 9vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.lede {
  max-width: 39rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.4rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.2rem;
}

.primary-link {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.15rem;
  background: var(--accent);
  color: #042218;
  font-weight: 760;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.primary-link:hover {
  background: #65dda6;
  transform: translateY(-2px);
}

.text-link {
  color: var(--muted);
}

.principles,
.document section {
  display: grid;
  grid-template-columns: minmax(3rem, 0.24fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-block: clamp(4rem, 9vw, 7rem);
  border-top: 1px solid var(--line);
}

.principles h2,
.document h2 {
  max-width: 18ch;
  margin-bottom: 1.2rem;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.principles div > p,
.document section div > p {
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.document {
  max-width: 75rem;
}

.document-header {
  padding-block: clamp(5rem, 12vw, 9rem);
  animation: enter 550ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.document-header h1 {
  font-size: clamp(3rem, 8vw, 7rem);
}

.document h3 {
  margin: 2rem 0 0.55rem;
  font-size: 1.05rem;
}

.document strong {
  color: var(--paper);
}

.document section a {
  color: var(--accent);
}

footer {
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

footer p {
  margin: 0;
}

footer div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.2rem;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 38rem) {
  .site-header {
    min-height: 4.5rem;
  }

  .wordmark {
    font-size: 0.92rem;
  }

  .mark {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 4.5rem);
  }

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

  .principles,
  .document section {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  footer {
    justify-content: center;
    padding-block: 2rem;
  }

  footer div {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
