@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0b0c0e;
  --bg-raised: #111317;
  --bg-sunk: #08090b;
  --line: #1e2228;
  --line-strong: #2b3038;
  --text: #e9ebee;
  --muted: #a0a7b2;
  --faint: #7d8591;
  --accent: #6cb6ee;
  --accent-strong: #8fc8f3;
  --accent-ink: #06121c;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  scrollbar-color: var(--line-strong) var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent);
}

::selection {
  background: rgb(108 182 238 / 0.32);
  color: #fff;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgb(108 182 238 / 0.45);
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

a:hover {
  color: var(--accent-strong);
  text-decoration-color: currentColor;
}

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

code,
pre {
  font-family: var(--mono);
  font-size: 0.875em;
  font-variant-ligatures: none;
}

:not(pre) > code {
  padding: 0.1em 0.35em;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg-raised);
  color: var(--text);
  white-space: nowrap;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.sprite {
  position: absolute;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.skip:hover {
  color: var(--accent-ink);
}

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgb(11 12 14 / 0.86);
  backdrop-filter: saturate(140%) blur(12px);
}

.nav__row {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 3.75rem;
}

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

.brand:hover {
  color: var(--text);
}

.brand__mark {
  width: 1.375rem;
  height: 1.375rem;
}

.nav nav {
  margin-right: auto;
}

.nav__links {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.nav__links a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--faint);
  background: var(--bg-raised);
  color: var(--text);
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 46rem;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.hero__title {
  max-width: 21ch;
  font-size: clamp(2.35rem, 5.6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero__lede {
  max-width: 40rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem;
}

.cmd {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
  padding: 0.4rem 0.4rem 0.4rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 12px 32px -16px rgb(0 0 0 / 0.8);
}

.cmd__prompt {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.9rem;
}

.cmd__text {
  overflow-x: auto;
  color: var(--text);
  font-size: 0.85rem;
  white-space: nowrap;
  scrollbar-width: none;
}

.cmd__copy,
.term__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 7px;
  font: inherit;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.cmd__copy {
  flex: none;
  padding: 0.55rem 0.9rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.cmd__copy:hover {
  background: var(--accent-strong);
}

.cmd__copy:active,
.term__copy:active {
  transform: scale(0.96);
}

.icon--check,
[data-copied] .icon--copy {
  display: none;
}

[data-copied] .icon--check {
  display: block;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.link-arrow .icon {
  transition: transform 0.25s var(--ease);
}

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

.link-arrow:hover .icon {
  transform: translateX(3px);
}

.hero__meta {
  margin-top: 1.1rem;
  color: var(--faint);
  font-size: 0.85rem;
}

.tag {
  color: var(--accent);
}

/* Windows around real captures */

.window {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-sunk);
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 2.4rem;
  padding: 0 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
}

.window__dots {
  display: inline-flex;
  gap: 0.4rem;
}

.window__dots i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--line-strong);
}

.window__title {
  color: var(--faint);
  font-size: 0.8rem;
}

.window__pause {
  margin-left: auto;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.window__pause:hover {
  border-color: var(--faint);
  color: var(--text);
}

.window--hero {
  position: relative;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  box-shadow:
    0 2px 4px rgb(0 0 0 / 0.4),
    0 40px 80px -32px rgb(0 0 0 / 0.9);
  animation: rise 1.1s var(--ease) both;
}

.window--hero img {
  width: 100%;
}

.window--hero figcaption {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--faint);
  font-size: 0.8rem;
}

@keyframes rise {
  from {
    transform: translateY(24px);
    filter: blur(6px);
  }
}

/* Sections */

.section {
  padding: clamp(5rem, 10vw, 8rem) 0 0;
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section__head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section__head p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.075rem;
}

/* The loop */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: linear-gradient(to right, var(--accent), var(--line-strong) 70%);
}

.step {
  position: relative;
}

.step__n {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.step h3 {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

.step p {
  max-width: 34ch;
  margin-top: 0.5rem;
  color: var(--muted);
}

.step q {
  color: var(--text);
}

.loop-detail {
  margin-top: 4rem;
}

.window--flat {
  border-color: var(--line);
}

.send {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.send__title {
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

.send__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.send__table th {
  padding: 0 0 0.75rem;
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
}

.send__table td {
  padding: 0.85rem 1.5rem 0.85rem 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.send__table td:first-child {
  color: var(--muted);
}

/* Workshops */

.ws {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.ws__list {
  display: grid;
  gap: 0.25rem;
}

.ws__item {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.ws__item:hover {
  background: var(--bg-raised);
  color: var(--text);
}

.ws__item[aria-selected="true"] {
  border-color: var(--line-strong);
  background: var(--bg-raised);
  color: var(--text);
}

.ws__name {
  font-weight: 500;
}

.ws__item[aria-selected="true"] .ws__name {
  color: var(--accent);
}

.ws__q {
  color: var(--faint);
  font-size: 0.875rem;
  line-height: 1.45;
}

.ws__item[aria-selected="true"] .ws__q {
  color: var(--muted);
}

.ws__more {
  margin-top: 1.5rem;
  color: var(--faint);
  font-size: 0.875rem;
}

.ws__more strong {
  color: var(--muted);
  font-weight: 500;
}

.ws__stage {
  position: sticky;
  top: 5.5rem;
}

.ws__frame {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 1.08;
  padding: clamp(0.75rem, 2vw, 1.5rem);
}

.ws__frame img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  transition: opacity 0.35s var(--ease), filter 0.35s var(--ease), transform 0.35s var(--ease);
}

[data-swapping] .ws__frame img {
  opacity: 0;
  filter: blur(8px);
  transform: scale(0.985);
}

.ws__caption {
  display: none;
  padding: 0.75rem 1rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.note {
  max-width: 44rem;
  margin-top: 2.5rem;
  color: var(--muted);
}

/* On your machine */

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
}

.fact {
  padding: 2rem 2.5rem 2rem 0;
  border-bottom: 1px solid var(--line);
}

.fact:nth-child(even) {
  padding-left: 2.5rem;
  padding-right: 0;
  border-left: 1px solid var(--line);
}

.fact dt {
  font-weight: 600;
  font-size: 1.05rem;
}

.fact dd {
  max-width: 34rem;
  margin: 0.5rem 0 0;
  color: var(--muted);
}

/* Install */

.section--install {
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.install {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.5rem 4rem;
}

.install .section__head {
  grid-column: 1 / -1;
}

.tabs__list {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.tabs__list button {
  position: relative;
  margin-bottom: -1px;
  padding: 0.7rem 0.9rem;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--faint);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.tabs__list button:hover {
  color: var(--text);
}

.tabs__list button[aria-selected="true"] {
  border-bottom-color: var(--accent);
  color: var(--text);
}

.tabs__panel > p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.925rem;
}

.term {
  display: flex;
  align-items: flex-start;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-sunk);
}

.term pre {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 1.1rem 0.5rem 1.1rem 1.1rem;
  overflow-x: auto;
  color: var(--text);
  font-size: 0.825rem;
  line-height: 1.8;
}

.c-p {
  color: var(--accent);
  user-select: none;
}

.term__copy {
  flex: none;
  margin: 0.6rem 0.6rem 0 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--muted);
}

.term__copy:hover {
  color: var(--text);
}

.term__copy[data-copied] {
  color: var(--accent);
}

.first {
  align-self: start;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raised);
}

.first h3 {
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

.first p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.925rem;
}

.prompt {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg-sunk);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.prompt__caret {
  color: var(--accent);
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.footer__meta {
  margin-right: auto;
  color: var(--faint);
  font-size: 0.85rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links a {
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--text);
}

/* Smaller screens */

@media (max-width: 60rem) {
  .nav__links {
    display: none;
  }

  .nav nav {
    margin-right: auto;
  }

  .ws,
  .install,
  .send {
    grid-template-columns: minmax(0, 1fr);
  }

  .ws__list {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .ws__item {
    flex: none;
    padding: 0.5rem 0.85rem;
    border-color: var(--line);
  }

  .ws__q {
    display: none;
  }

  .ws__caption {
    display: block;
  }

  .ws__stage {
    position: static;
  }
}

@media (max-width: 40rem) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .steps::before {
    top: 1rem;
    bottom: 1rem;
    left: 1rem;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(to bottom, var(--accent), var(--line-strong) 70%);
  }

  .step {
    padding-left: 3rem;
  }

  .step__n {
    position: absolute;
    left: 0;
    top: 0;
  }

  .step h3 {
    margin-top: 0.2rem;
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .fact,
  .fact:nth-child(even) {
    padding: 1.5rem 0;
    border-left: 0;
  }

  .cmd {
    width: 100%;
  }

  .window--hero {
    margin-inline: calc(-1 * var(--gutter));
    border-inline: 0;
    border-radius: 0;
  }

  .marks-strip {
    overflow-x: auto;
  }

  .marks-strip img {
    min-width: 52rem;
  }

  .cmd__label {
    display: none;
  }

  .cmd__copy {
    padding: 0.55rem 0.7rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
