:root {
  --paper: #f7f8f4;
  --white: #ffffff;
  --ink: #102f24;
  --muted: #52635b;
  --forest: #173b2d;
  --green: #26754b;
  --mint: #e6eee5;
  --border: #d3ded2;
  --signal: #8bc69d;
  --serif: "Crimson Pro", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 12px;
  transform: translateY(-160%);
  padding: 10px 15px;
  background: var(--white);
  border: 1px solid var(--ink);
  font-weight: 750;
}

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

.site-header {
  position: relative;
  z-index: 10;
  max-width: 1440px;
  margin: 0 auto;
  min-height: 88px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.06em;
}

.wordmark i {
  color: var(--green);
  font-family: var(--serif);
  font-size: 1.25em;
  font-weight: 500;
}

.site-header nav,
footer nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header nav a,
footer nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--green);
}

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

.closing a:focus-visible,
footer a:focus-visible {
  outline-color: var(--white);
}

.hero {
  max-width: 1440px;
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.96fr);
  border-bottom: 1px solid var(--border);
}

.hero-copy {
  padding: clamp(84px, 9vw, 142px) 7vw 92px 48px;
  align-self: center;
}

.eyebrow {
  margin: 0 0 34px;
  display: flex;
  gap: 13px;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow span:first-child {
  padding: 7px 10px;
  border: 1px solid var(--ink);
}

.eyebrow span:last-child {
  color: var(--green);
}

.eyebrow span:last-child::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgb(38 117 75 / 10%);
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 0.93;
}

h1 {
  max-width: 780px;
  margin-bottom: 34px;
  font-size: clamp(64px, 8.5vw, 126px);
}

h1 em {
  color: var(--green);
  font-weight: 400;
}

.lede {
  max-width: 660px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 52px;
  padding: 14px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--forest);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--forest);
  color: var(--white);
}

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

.button-quiet {
  border-color: var(--border);
  background: transparent;
}

.button-quiet:hover {
  border-color: var(--green);
}

.variable-field {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgb(23 59 45 / 8%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(23 59 45 / 8%) 1px, transparent 1px), var(--mint);
  background-size: 42px 42px;
  border-left: 1px solid var(--border);
}

.variable-field::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgb(23 59 45 / 25%);
  border-radius: 50%;
  animation: orbit 24s linear infinite;
}

.axis {
  position: absolute;
  z-index: 1;
  background: var(--green);
  opacity: 0.55;
}

.axis-x {
  width: 82%;
  height: 1px;
}

.axis-y {
  width: 1px;
  height: 82%;
}

.coordinate {
  position: absolute;
  z-index: 2;
  left: calc(50% + 8px);
  top: calc(50% + 8px);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.identity-mark {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: baseline;
  color: var(--forest);
  line-height: 0.7;
}

.identity-mark b {
  font-size: clamp(78px, 10vw, 154px);
  font-weight: 900;
  letter-spacing: -0.09em;
}

.identity-mark i {
  position: relative;
  top: -0.34em;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(90px, 12vw, 178px);
  font-weight: 400;
}

.variable-field > p {
  position: absolute;
  z-index: 3;
  right: 36px;
  bottom: 30px;
  max-width: 230px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--green);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.variable-field > p strong {
  color: var(--green);
}

.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 128px 48px;
  border-bottom: 1px solid var(--border);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1.65fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 76px;
}

.kicker,
.index,
.connection-number,
.error-code {
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(48px, 6vw, 88px);
}

.origin-grid {
  margin-left: calc(17.5% + 17px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}

.origin-grid article {
  min-height: 300px;
  padding: 26px 30px 30px 0;
  border-right: 1px solid var(--border);
}

.origin-grid article + article {
  padding-left: 30px;
}

.origin-grid article:last-child {
  border-right: 0;
}

.origin-grid h3,
.planes h3 {
  margin: 55px 0 18px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 560;
  line-height: 1;
}

.origin-grid p,
.planes article > p:last-child {
  color: var(--muted);
  font-size: 14px;
}

.declaration {
  max-width: 1440px;
  margin: 0 auto;
  padding: 120px 48px;
  background: var(--forest);
  color: var(--paper);
}

.declaration p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 7.2vw, 106px);
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.declaration-emphasis {
  color: var(--signal);
  font-style: italic;
}

.loop {
  background: var(--white);
}

.loop-heading {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  align-items: end;
}

.loop-heading > p {
  max-width: 430px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 17px;
}

.loop-track {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  border-top: 1px solid var(--forest);
  border-bottom: 1px solid var(--forest);
}

.loop-track li {
  position: relative;
  min-height: 210px;
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}

.loop-track li:last-child {
  border-right: 0;
  background: var(--mint);
}

.loop-track span {
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
}

.loop-track strong {
  margin-top: auto;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 560;
}

.loop-track small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.planes {
  margin-top: 86px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.planes article {
  min-height: 290px;
  padding: 38px;
  background: var(--paper);
}

.planes article:last-child {
  background: var(--mint);
}

.planes h3 {
  margin-top: 78px;
  font-size: clamp(34px, 4vw, 55px);
}

.connections {
  background: var(--paper);
}

.connection-list {
  border-top: 1px solid var(--forest);
}

.connection-list a {
  min-height: 135px;
  padding: 20px 2px;
  display: grid;
  grid-template-columns: 17.5% 1fr auto;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition:
    background 160ms ease,
    padding 160ms ease;
}

.connection-list a:hover {
  padding-left: 16px;
  padding-right: 16px;
  background: var(--mint);
}

.connection-list strong,
.connection-list small {
  display: block;
}

.connection-list strong {
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 560;
}

.connection-list small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.connection-list i {
  color: var(--green);
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
}

.closing {
  max-width: 1440px;
  margin: 0 auto;
  padding: 120px 48px;
  display: grid;
  grid-template-columns: 0.35fr 1fr auto;
  gap: 32px;
  align-items: end;
  background: var(--green);
  color: var(--white);
}

.closing .kicker {
  color: var(--white);
}

.closing h2 {
  max-width: 760px;
  font-size: clamp(45px, 5.6vw, 80px);
}

.button-light {
  border-color: var(--white);
  color: var(--white);
  white-space: nowrap;
}

.button-light:hover {
  background: var(--white);
  color: var(--green);
}

footer {
  max-width: 1440px;
  min-height: 180px;
  margin: 0 auto;
  padding: 45px 48px;
  display: grid;
  grid-template-columns: 0.35fr 1fr auto;
  gap: 32px;
  align-items: center;
  background: var(--forest);
  color: var(--paper);
}

.wordmark-footer {
  font-size: 31px;
}

footer p {
  margin: 0;
  color: rgb(247 248 244 / 66%);
  font-size: 12px;
}

footer nav a {
  color: rgb(247 248 244 / 72%);
}

.not-found-page {
  min-height: 100vh;
  background:
    linear-gradient(rgb(23 59 45 / 7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(23 59 45 / 7%) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
}

.not-found-page .site-header {
  background: rgb(247 248 244 / 92%);
}

.not-found {
  width: min(980px, calc(100% - 96px));
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: 110px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.not-found h1 {
  max-width: 800px;
  margin: 20px 0 28px;
}

.not-found > p:not(.error-code) {
  max-width: 560px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 19px;
}

@keyframes orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 76px;
    padding: 0 24px;
  }

  .site-header nav {
    gap: 18px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 84px 24px 70px;
  }

  .variable-field {
    min-height: 510px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .section,
  .declaration,
  .closing,
  footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .section {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .section-heading,
  .loop-heading {
    grid-template-columns: 1fr;
    margin-bottom: 55px;
  }

  .origin-grid {
    margin-left: 0;
  }

  .loop-track {
    grid-template-columns: 1fr 1fr;
  }

  .loop-track li:nth-child(2n) {
    border-right: 0;
  }

  .loop-track li:last-child {
    grid-column: 1 / -1;
  }

  .closing,
  footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .closing .button {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .site-header nav a:not(:last-child) {
    display: none;
  }

  h1 {
    font-size: clamp(58px, 18vw, 83px);
  }

  .hero-copy {
    padding-top: 66px;
  }

  .eyebrow {
    align-items: flex-start;
    flex-direction: column;
  }

  .variable-field {
    min-height: 390px;
  }

  .origin-grid,
  .planes {
    grid-template-columns: 1fr;
  }

  .origin-grid article,
  .origin-grid article + article {
    min-height: 230px;
    padding: 25px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .origin-grid article:last-child {
    border-bottom: 0;
  }

  .origin-grid h3 {
    margin-top: 30px;
  }

  .declaration {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .loop-track {
    grid-template-columns: 1fr;
  }

  .loop-track li,
  .loop-track li:nth-child(2n) {
    min-height: 155px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .loop-track li:last-child {
    grid-column: auto;
    border-bottom: 0;
  }

  .planes article {
    min-height: 250px;
    padding: 30px;
  }

  .planes h3 {
    margin-top: 55px;
  }

  .connection-list a {
    grid-template-columns: 40px 1fr auto;
  }

  .not-found {
    width: min(100% - 48px, 980px);
  }
}

@media (max-width: 390px) {
  .site-header,
  .hero-copy,
  .section,
  .declaration,
  .closing,
  footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-header nav {
    gap: 12px;
  }

  h1 {
    font-size: 57px;
  }

  h2 {
    font-size: 45px;
  }

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

  .button {
    width: 100%;
  }

  .variable-field {
    min-height: 340px;
  }

  .variable-field > p {
    right: 18px;
    bottom: 18px;
    max-width: 190px;
  }

  .identity-mark b {
    font-size: 70px;
  }

  .identity-mark i {
    font-size: 86px;
  }

  .connection-list a {
    min-height: 120px;
    padding-left: 0;
    padding-right: 0;
  }

  .connection-list strong {
    font-size: 28px;
  }

  footer nav {
    flex-wrap: wrap;
    gap: 18px;
  }
}

@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;
  }
}
