:root {
  color-scheme: light;
  --ink: #132438;
  --muted: #516274;
  --paper: #f6f8fb;
  --surface: #ffffff;
  --line: #cad4df;
  --accent: #006f70;
  --accent-soft: #d7efed;
  --focus: #b54400;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, var(--accent-soft) 0, var(--accent-soft) 22rem, var(--paper) 22rem);
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: var(--accent);
  font-weight: 700;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.16em;
}

a:focus-visible {
  border-radius: 0.2rem;
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.2rem;
}

::selection {
  background: var(--ink);
  color: var(--surface);
}

.site-header,
main,
footer {
  width: min(72rem, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.5rem;
  border-bottom: 1px solid rgb(19 36 56 / 22%);
}

.wordmark {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark-mark {
  width: 1rem;
  height: 1.25rem;
  border: 0.14rem solid currentColor;
  border-radius: 0.15rem;
  box-shadow: 0.28rem 0.28rem 0 -0.12rem var(--accent-soft), 0.28rem 0.28rem 0 0 var(--ink);
}

.header-link {
  color: var(--ink);
}

.intro {
  padding: clamp(4rem, 8vw, 7rem) 0 5rem;
}

.intro-copy {
  max-width: 56rem;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 1.6rem;
  font-size: clamp(3.1rem, 8vw, 6rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.lede {
  max-width: 66ch;
  margin-bottom: 0;
  color: #364b60;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.route {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(2rem, 0.35fr) minmax(10rem, 1fr) minmax(2rem, 0.35fr) minmax(10rem, 1fr);
  align-items: center;
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.route-stop {
  display: grid;
  gap: 0.05rem;
}

.route-stop strong {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.route-stop > span:last-child,
.route-label {
  color: #42576c;
}

.route-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-line {
  height: 1px;
  margin-inline: 1rem;
  background: var(--ink);
  position: relative;
}

.route-line::after {
  position: absolute;
  top: -0.23rem;
  right: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  content: "";
  transform: rotate(45deg);
}

.route-stop-final {
  padding: 1.3rem 1.45rem;
  border-radius: 0.8rem;
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 0.8rem 2.4rem rgb(19 36 56 / 18%);
}

.route-stop-final .route-label,
.route-stop-final > span:last-child {
  color: #c5d5e4;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 7vw, 7rem);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.facts ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.facts li:last-child {
  border-bottom: 1px solid var(--line);
}

.open-source {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: end;
  margin-bottom: clamp(4rem, 10vw, 8rem);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 1rem 3rem rgb(19 36 56 / 10%);
}

.open-source p {
  max-width: 65ch;
  margin-bottom: 0;
  color: var(--muted);
}

.project-link {
  white-space: nowrap;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.policy {
  display: grid;
  grid-template-columns: minmax(14rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(3rem, 9vw, 9rem);
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(5rem, 10vw, 9rem);
}

.policy-header {
  position: sticky;
  top: 3rem;
  align-self: start;
}

.policy-header h1 {
  font-size: clamp(3rem, 6vw, 5rem);
}

.policy-header p {
  max-width: 34ch;
  color: #364b60;
}

.effective-date {
  font-size: 0.88rem;
  font-weight: 750;
}

.policy-body {
  max-width: 70ch;
}

.policy-body section {
  padding: 0 0 2.5rem;
}

.policy-body section + section {
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.policy-body p {
  color: #364b60;
}

@media (max-width: 48rem) {
  body {
    background: linear-gradient(180deg, var(--accent-soft) 0, var(--accent-soft) 28rem, var(--paper) 28rem);
  }

  .site-header,
  main,
  footer {
    width: min(100% - 2rem, 40rem);
  }

  .intro {
    padding-top: 3.5rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .route {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .route-line {
    width: 1px;
    height: 2rem;
    margin: 0 0 0 1.3rem;
  }

  .route-line::after {
    top: auto;
    right: -0.22rem;
    bottom: 0;
    transform: rotate(135deg);
  }

  .facts,
  .open-source,
  .policy {
    grid-template-columns: 1fr;
  }

  .open-source {
    gap: 1.5rem;
    align-items: start;
  }

  .project-link {
    white-space: normal;
  }

  .policy {
    gap: 3rem;
  }

  .policy-header {
    position: static;
  }

  footer {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .route-stop-final {
    animation: settle 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes settle {
    from {
      box-shadow: 0 1.8rem 4rem rgb(19 36 56 / 8%);
      transform: translateY(0.6rem);
    }
  }
}
