:root {
  --booth: #d9e0e2;
  --sheet: #f4f6f5;
  --carbon: #1a1f1e;
  --stamp: #9c2f2f;
  --teal: #1e4e49;
  --groove: #c3cbce;
  --display: "Libre Franklin", "Liberation Sans", "Arial Narrow", sans-serif;
  --body: "Literata", "Liberation Serif", Palatino, "Palatino Linotype", serif;
  --mono: "Fragment Mono", "Liberation Mono", "Courier New", monospace;
  --wrap: min(1120px, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--booth);
  color: var(--carbon);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--teal);
  color: var(--sheet);
}

:focus {
  outline: none;
}

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

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--carbon);
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--carbon);
  color: var(--sheet);
  padding: 0.55rem 0.8rem;
  z-index: 5;
}

.skip:focus {
  top: 0.8rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem 2rem;
  padding: 1.35rem 0 0.9rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand > span {
  display: flex;
  flex-direction: column;
}

.brand:hover {
  color: inherit;
}

.mark {
  width: 2rem;
  height: 2rem;
  display: block;
  flex: 0 0 auto;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand-sub {
  margin-top: 0.22rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--teal);
}

.release {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-align: right;
}

.release a {
  margin-left: 0.85rem;
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  padding: 0.35rem 0 1.15rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-nav a {
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem 3.25rem;
  align-items: start;
  padding: 1.25rem 0 4.25rem;
}

.kicker {
  margin: 0 0 0.9rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--teal);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.55rem, 4.7vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  max-width: 11em;
  text-wrap: balance;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  font-size: 1.125rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.lede + .lede {
  margin-top: 0.75rem;
}

.commands {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--sheet);
  border: 2px solid var(--carbon);
  padding: 0.45rem 0.45rem 0.45rem 0.9rem;
}

.command code {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.copy-btn {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  background: var(--carbon);
  color: var(--sheet);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0.7rem 0.85rem;
  min-height: 2.75rem;
  cursor: pointer;
}

.copy-btn:hover,
.copy-btn.is-copied {
  background: var(--teal);
}

.more-install {
  margin: 0.85rem 0 0;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.specimen {
  margin: 0;
}

.specimen-label {
  margin: 0 0 0.65rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--teal);
}

.frame {
  position: relative;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 0;
  background: var(--carbon);
  border: 3px solid var(--carbon);
  aspect-ratio: 4 / 3;
}

.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sheet);
  min-width: 0;
}

.tile-id {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.8vw, 1.45rem);
  letter-spacing: -0.04em;
  color: var(--carbon);
}

.crop {
  position: absolute;
  z-index: 2;
  left: -10px;
  top: -10px;
  width: calc(25% + 14px);
  height: calc(33.333% + 14px);
  background:
    linear-gradient(var(--stamp), var(--stamp)) left top / 22px 3px no-repeat,
    linear-gradient(var(--stamp), var(--stamp)) left top / 3px 22px no-repeat,
    linear-gradient(var(--stamp), var(--stamp)) right top / 22px 3px no-repeat,
    linear-gradient(var(--stamp), var(--stamp)) right top / 3px 22px no-repeat,
    linear-gradient(var(--stamp), var(--stamp)) left bottom / 22px 3px no-repeat,
    linear-gradient(var(--stamp), var(--stamp)) left bottom / 3px 22px no-repeat,
    linear-gradient(var(--stamp), var(--stamp)) right bottom / 22px 3px no-repeat,
    linear-gradient(var(--stamp), var(--stamp)) right bottom / 3px 22px no-repeat;
  cursor: grab;
  touch-action: none;
}

.crop.is-dragging {
  cursor: grabbing;
}

.crop.is-animating {
  transition:
    left 780ms cubic-bezier(0.16, 0.84, 0.32, 1),
    top 780ms cubic-bezier(0.16, 0.84, 0.32, 1);
}

@media (prefers-reduced-motion: reduce) {
  .crop.is-animating {
    transition: none;
  }
}

.crop-chip {
  position: absolute;
  left: 50%;
  top: 1.15rem;
  transform: translateX(-50%);
  background: var(--stamp);
  color: var(--sheet);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.45rem;
  white-space: nowrap;
  pointer-events: none;
}

.readout {
  margin: 1.35rem 0 0;
  font-family: var(--mono);
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: -0.03em;
}

.readout strong {
  font-weight: 400;
  color: var(--teal);
}

.specimen figcaption {
  margin-top: 0.7rem;
  max-width: 40rem;
  font-size: 0.95rem;
  color: var(--carbon);
}

.hero > *,
.spec > * {
  min-width: 0;
}

.spec {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 1rem 2rem;
  padding: 2.75rem 0;
}

.spec h2 {
  margin: 0.35rem 0 0;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

@media (min-width: 861px) {
  .spec h2 {
    position: sticky;
    top: 1.25rem;
    align-self: start;
  }
}

.spec-body > :first-child {
  margin-top: 0;
}

.spec-body p {
  margin: 0 0 0.9rem;
  max-width: 68ch;
  text-wrap: pretty;
}

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

.signatures li {
  background: var(--sheet);
  border: 2px solid var(--carbon);
  padding: 0.7rem 0.85rem;
}

.signatures code {
  display: block;
  font-size: 0.78rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin-top: 0.4rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.7rem 0.65rem 0;
  border-bottom: 2px solid var(--groove);
}

td:last-child {
  overflow-wrap: break-word;
}

th {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
}

td:first-child {
  white-space: nowrap;
}

td {
  font-size: 0.98rem;
}

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

.steps > li {
  counter-increment: step;
}

.steps h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.steps h3::before {
  content: counter(step) ".";
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0;
  color: var(--teal);
  margin-right: 0.55rem;
}

.steps .commands {
  margin-top: 0.8rem;
}

.source-build {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
}

.source-build h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.pre-block {
  margin: 0.8rem 0 0;
  max-width: 100%;
  background: var(--sheet);
  border: 2px solid var(--carbon);
  padding: 0.9rem 1rem;
  overflow-x: auto;
}

.pre-block code {
  font-size: 0.8rem;
  line-height: 1.55;
  white-space: pre;
}

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

.faq h3 {
  margin: 0 0 0.3rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  margin-top: 1rem;
  padding: 1.4rem 0 2.8rem;
  border-top: 2px solid var(--carbon);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.missing {
  padding: 4rem 0 5rem;
  max-width: 36rem;
}

.missing h1 {
  margin: 0.4rem 0 0.8rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

@media (max-width: 860px) {
  .hero,
  .spec {
    grid-template-columns: 1fr;
  }

  .release {
    text-align: left;
  }

  .spec h2 {
    margin-top: 0;
  }

  .hero {
    padding-bottom: 2.5rem;
  }
}

@media (max-width: 560px) {
  :root {
    --wrap: min(1120px, calc(100% - 1.5rem));
  }

  .command {
    align-items: stretch;
    flex-direction: column;
    padding: 0.75rem;
  }

  .copy-btn {
    width: 100%;
  }

  .tile-id {
    font-size: 0.95rem;
  }
}
