@font-face { font-family: "Fira Code"; src: url("/fonts/fira-code-300-700.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

/* Black and white. The only color is a verdict: green passes, red blocks. */
:root {
  --bg: #000;
  --panel: #0b0b0b;
  --text: #f2f2f2;
  --dim: #8c8c8c;
  --faint: #4a4a4a;
  --rail: #2e2e2e;
  --border: #222;
  --green: #9bd8a8;
  --red: #ff8a80;
  --mono: "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: 28px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.7 var(--mono); -webkit-font-smoothing: antialiased; }
code, pre, q, .session { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
::selection { background: #333; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--rail); text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--dim); }
code { font: inherit; }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.green { color: var(--green); }
.red { color: var(--red); }
/* The CLI paints file paths cyan and spinners magenta; here they stay in the grays. */
.cyan { color: var(--text); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.magenta { color: var(--dim); }

.masthead, .rail, .colophon { max-width: 960px; margin: 0; padding-left: 32px; padding-right: 32px; }
.masthead { max-width: none; display: flex; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 8px; }
.wordmark { display: block; color: var(--text); line-height: 0; }
.wordmark svg { height: 24px; width: auto; }
.masthead nav, .colophon nav { display: flex; gap: 24px; }
.masthead nav a, .colophon nav a { color: var(--dim); text-decoration: none; }
.masthead nav a:hover, .colophon nav a:hover, nav a[aria-current] { color: var(--text); }

/* The rail: one line down the page, a step marker per section, like the CLI's gutter. */
.rail { position: relative; max-width: none; padding-top: 8px; }
.rail > .step { max-width: 896px; }
.step { position: relative; display: grid; grid-template-columns: var(--gutter) minmax(0, 1fr); padding-bottom: 72px; }
.step::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; border-left: 1px solid var(--rail); }
.step.last::before { bottom: auto; height: 12px; }
.marker { position: relative; z-index: 1; width: 13px; height: 22px; background: var(--bg); display: flex; align-items: center; justify-content: center; margin-top: 4px; }
.marker::after { content: "◇"; color: var(--faint); line-height: 1; transition: color .2s; }
.step[data-state="done"] .marker::after { color: var(--dim); }
.step[data-state="active"] .marker::after { content: "◆"; color: var(--text); }
.step.last .marker::after { content: "└"; color: var(--rail); }
.step.last[data-state="active"] .marker::after { content: "└"; color: var(--text); }
.body { min-width: 0; padding-left: 8px; }

h1, h2 { margin: 0; font-weight: 700; }
h2 { font-size: 15px; line-height: 1.7; margin-bottom: 8px; }
.body > p { max-width: 62ch; margin: 0 0 18px; }
.body > p.small { max-width: 90ch; }
.hero { padding-top: 48px; padding-bottom: 88px; }
.hero .lede { font-size: 16px; }

.install { display: inline-flex; align-items: center; gap: 16px; max-width: 100%; margin: 6px 0 14px; padding: 12px 12px 12px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; }
.install code { white-space: nowrap; }
.install button { font: inherit; font-size: 13px; color: var(--bg); background: var(--text); border: 0; border-radius: 5px; padding: 4px 10px; cursor: pointer; }
.install button:hover { background: #fff; }

/* The replay sits on the rail under the opening steps. When there's room, it sits beside them and
   stays in view while the page scrolls; when wider content passes, it slides into the right edge. */
.demo { position: relative; max-width: 896px; padding: 0 0 72px calc(var(--gutter) + 8px); }
.demo::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; border-left: 1px solid var(--rail); }
.demo .terminal { margin: 0; }
@media (min-width: 1280px) {
  /* Clips the terminal where it slides past the edge, without a horizontal scrollbar. */
  .rail { overflow-x: clip; }
  .demo { position: absolute; top: 0; bottom: 0; left: calc(32px + 680px + 56px); right: 32px; max-width: 760px; padding: 56px 0 0; pointer-events: none; }
  .demo::before { display: none; }
  .demo .terminal { position: sticky; top: 24px; pointer-events: auto; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
  .demo .terminal.tucked { transform: translateX(var(--tuck, 0px)); }
  .demo .session { height: min(470px, calc(100vh - 106px)); }
}

/* The replay: a fixed-height terminal viewport, so the page never jumps while it plays. */
/* A terminal window: a title bar with its three buttons, then the screen. */
.terminal {
  margin: 8px 0 14px; overflow: hidden;
  background: var(--panel); border: 1px solid #262626; border-radius: 10px;
  box-shadow: 0 1px 0 #1a1a1a inset, 0 40px 80px -40px rgba(255, 255, 255, .07);
}
.titlebar { position: relative; display: flex; align-items: center; height: 34px; padding: 0 13px; background: #121212; border-bottom: 1px solid #1f1f1f; }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #2c2c2c; box-shadow: 0 0 0 .5px #3a3a3a inset; }
.title { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--dim); pointer-events: none; }
.prompt .path { color: var(--text); font-weight: 600; }
.prompt .branch { color: var(--dim); }
.prompt .caret { color: var(--text); }
/* Lines fade as they scroll off the top; the fade is on the screen inside, so the box keeps its border. */
.session {
  height: 470px; overflow-y: auto; padding: 14px 18px 16px;
  scrollbar-width: thin; scrollbar-color: #333 transparent;
  font-size: 13.5px; line-height: 1.6;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14px);
}
.session .line { white-space: pre-wrap; overflow-wrap: anywhere; }
.session b { font-weight: 700; }
.cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--text); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.output { margin: 8px 0 14px; }
.output > p { margin: 0 0 10px; }
.pairs { list-style: none; margin: 0; padding: 0; }
.pairs li { display: grid; grid-template-columns: minmax(0, 1fr) 2ch minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.pairs q { color: var(--dim); font-style: italic; }
.pairs q::before { content: "“"; }
.pairs q::after { content: "”"; }
.pairs .to { color: var(--faint); }
.pairs .rule .green { color: var(--text); }

.help { margin: 8px 0 0; display: grid; gap: 14px; }
.help div { display: grid; grid-template-columns: 24ch minmax(0, 1fr); gap: 24px; }
.help dt { color: var(--text); font-weight: 600; }
.help dd { margin: 0; color: var(--dim); }
.help dd a { color: var(--text); }

.tip { position: relative; cursor: help; }
.tip::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  font-size: 12px; white-space: nowrap; padding: 4px 8px; border-radius: 5px; background: var(--text); color: var(--bg);
  opacity: 0; pointer-events: none; transition: opacity .12s; text-decoration: none;
}
.tip:hover::after, .tip:focus::after { opacity: 1; }
s.tip { color: var(--dim); text-decoration-color: var(--dim); }

.colophon { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 8px; padding-bottom: 48px; }
.colophon nav { padding-left: var(--gutter); }
.credit { margin: 0; color: var(--dim); }
.credit a { color: var(--dim); text-decoration-color: var(--faint); }
.credit a:hover { color: var(--text); }

@media (max-width: 720px) {
  body { font-size: 14px; }
  .masthead, .rail, .colophon { padding-left: 18px; padding-right: 18px; }
  .masthead nav { gap: 14px; }
  .step { padding-bottom: 56px; }
  .hero { padding-top: 28px; }
  .install { display: flex; align-items: flex-start; }
  .install code { white-space: normal; }
  .session { height: 430px; padding: 12px; font-size: 12px; }
  .pairs li { grid-template-columns: 1fr; gap: 4px; }
  .pairs .to { display: none; }
  .help div { grid-template-columns: 1fr; gap: 2px; }
  .credit { padding-left: var(--gutter); }
}

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

/* Docs: the guide, set in the same terminal type. */
.doc { max-width: 960px; margin: 0; padding: 32px 32px 96px 60px; }
.doc > * { max-width: 760px; }
.doc h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.01em; max-width: none; margin: 0 0 20px; }
.doc h2 { font-size: 18px; margin: 48px 0 10px; }
.doc h3 { font-size: 15px; margin: 28px 0 6px; }
.doc h4 { font-size: 15px; margin: 20px 0 6px; }
.doc p, .doc li { color: #c8c8c8; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 14px; }
.doc code { color: var(--text); }
.doc strong { color: var(--text); }
.doc pre { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; overflow-x: auto; }
.doc hr { border: 0; border-top: 1px solid var(--rail); margin: 56px 0; }
.doc .args { list-style: none; padding: 0; color: var(--dim); }
@media (max-width: 720px) { .doc { padding: 24px 18px 72px; } }
