@font-face {
  font-family: "Syne";
  src: url("fonts/syne-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Martian Mono";
  src: url("fonts/martian-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --webview: #d7e3ea;
  --record: #ffffff;
  --ink: #17242c;
  --seam: #0e4c60;
  --mark: #8a3a44;
  --quiet: #3d5160;
  --wrap: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--webview);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

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

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2;
  background: var(--ink);
  color: var(--record);
  padding: 0.45rem 0.7rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.6rem;
}

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

a {
  color: var(--seam);
  text-underline-offset: 0.18em;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.15rem 0 0.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: 36px;
  height: 36px;
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem 3rem;
  align-items: start;
  padding-top: 2.4rem;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0;
  color: var(--quiet);
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  line-height: 1.4;
}

.kicker span + span::before {
  content: "/";
  margin-right: 0.85rem;
  color: var(--seam);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0.55rem 0 0.9rem;
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 2.65rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.deck {
  margin: 0;
  max-width: 36rem;
  font-size: 1.14rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
  margin: 1rem 0 0;
}

.map-kind {
  margin: 0 0 0.7rem;
  color: var(--seam);
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.75rem;
}

.map {
  --gutter: 1.9rem;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0.15rem var(--gutter);
  display: grid;
  gap: 0.7rem;
}

.map::before {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 2px;
  background: var(--seam);
  transform-origin: top center;
}

.map li {
  position: relative;
}

.pin {
  position: absolute;
  width: 11px;
  height: 11px;
  left: calc(0.42rem + 1px - var(--gutter) - 5.5px);
  top: 1.15rem;
  box-sizing: border-box;
  border: 2px solid var(--seam);
  border-radius: 50%;
  background: var(--webview);
}

.is-endpoint .pin {
  width: 15px;
  height: 15px;
  left: calc(0.42rem + 1px - var(--gutter) - 7.5px);
  top: 1.05rem;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(var(--mark), var(--mark)) center / 2px 15px no-repeat,
    linear-gradient(var(--mark), var(--mark)) center / 15px 2px no-repeat;
}

.frame {
  background: var(--record);
  border-radius: 4px;
  padding: 0.8rem 0.95rem 0.85rem;
}

.kind,
.path,
.cmd pre,
.files dt,
.edge,
.kicker,
.map-kind,
.bottle code,
.flag {
  font-family: "Martian Mono", ui-monospace, monospace;
}

.kind {
  margin: 0;
  color: var(--seam);
  font-size: 0.72rem;
  line-height: 1.35;
}

.symbol {
  margin: 0.28rem 0 0;
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.is-endpoint .symbol {
  color: var(--mark);
}

.path {
  margin: 0.4rem 0 0;
  color: var(--quiet);
  font-size: 0.72rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.map-wrap {
  margin: 0;
}

figcaption {
  margin: 0.8rem 0 0;
  color: var(--quiet);
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
}

.cmd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem 1.1rem;
  background: var(--record);
  border-radius: 4px;
  padding: 0.85rem 0.95rem;
}

.hero-install {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
}

.cmd pre {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink);
}

.cmd-note {
  grid-column: 1 / -1;
  margin: -0.6rem 0 0;
  color: var(--quiet);
  font-size: 0.95rem;
}

button {
  flex: 0 0 auto;
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--record);
  background: var(--seam);
  border: 0;
  border-radius: 4px;
  padding: 0.62rem 0.8rem;
  cursor: pointer;
  transition: background-color 150ms ease;
}

button:hover {
  background: #0b3e4e;
}

button[data-state="copied"] {
  background: var(--ink);
}

.page-section {
  margin-top: 4.2rem;
  scroll-margin-top: 1rem;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  line-height: 1.25;
}

.lede {
  margin: 0 0 1.1rem;
  max-width: 68ch;
}

.files {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.files div {
  display: grid;
  grid-template-columns: minmax(13.5rem, 17rem) minmax(0, 1fr);
  gap: 0.35rem 1.25rem;
  align-items: baseline;
}

.files dt {
  margin: 0;
  color: var(--seam);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.files dd {
  margin: 0;
}

.edges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.edge {
  display: inline-block;
  font-size: 0.9rem;
  line-height: 1.45;
}

.to {
  color: var(--seam);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1.7rem;
}

.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  column-gap: 0.85rem;
  row-gap: 0.45rem;
}

.steps > li::before {
  content: counter(step);
  grid-row: 1 / span 4;
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--seam);
  letter-spacing: -0.04em;
}

.steps h3,
.steps p {
  grid-column: 2;
  margin: 0;
}

.steps .cmd {
  grid-column: 2;
  margin-top: 0.2rem;
}

.steps p {
  max-width: 68ch;
}

.install-block {
  margin-top: 1.5rem;
}

.install-block .cmd + .lede {
  margin-top: 0.7rem;
}

.install-block h3 {
  margin-bottom: 0.4rem;
}

.bottles {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.bottles a {
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.flag {
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.limits {
  margin: 0;
  padding-left: 1.15rem;
  max-width: 68ch;
}

.limits li + li {
  margin-top: 0.4rem;
}

.faq {
  display: grid;
  gap: 1.35rem;
}

.faq h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.faq p {
  margin: 0;
  max-width: 70ch;
}

.site-footer {
  margin-top: 4.4rem;
  padding-bottom: 2.8rem;
  color: var(--quiet);
}

.site-footer p {
  margin: 0.35rem 0;
  max-width: 68ch;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 0.8rem;
}

@media (max-width: 840px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 1.6rem;
  }

  .files div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 1.7rem));
  }

  .cmd {
    flex-direction: column;
  }

  .steps > li {
    grid-template-columns: 1.8rem minmax(0, 1fr);
  }

  h1 {
    font-size: 2.05rem;
  }
}

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

  button {
    transition: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .map::before {
    animation: draw-seam 700ms ease both;
  }

  .map li {
    animation: rise-frame 480ms ease both;
  }

  .map li:nth-child(1) {
    animation-delay: 80ms;
  }

  .map li:nth-child(2) {
    animation-delay: 150ms;
  }

  .map li:nth-child(3) {
    animation-delay: 220ms;
  }

  .map li:nth-child(4) {
    animation-delay: 290ms;
  }
}

@keyframes draw-seam {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

@keyframes rise-frame {
  from {
    transform: translateY(8px);
  }

  to {
    transform: none;
  }
}

@media (forced-colors: active) {
  button {
    border: 1px solid ButtonText;
  }

  .pin,
  .map::before {
    forced-color-adjust: auto;
  }
}
