@font-face {
  font-family: "Recursive";
  src: url("/fonts/recursive-mono.woff2") format("woff2-variations");
  font-weight: 300 1000;
  font-display: swap;
}

:root {
  --paper: #eef2f4;
  --sheet: #f8fafb;
  --ink: #16202a;
  --muted: #55636f;
  --rule: #c5cfd6;
  --link: #2336d6;
  --link-hover: #1626a8;
  --visited: #6a3fb0;
  --mark: #f3e07a;
  --danger: #b3261e;
  --ok: #1d6b3f;
  --measure: 68ch;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.1rem, 1.3rem + 3.4vw, 3.4rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1620;
    --sheet: #151e2a;
    --ink: #e4eaef;
    --muted: #9aa8b4;
    --rule: #2c3947;
    --link: #93a4ff;
    --link-hover: #b9c4ff;
    --visited: #c3a6f0;
    --mark: #6b5a12;
    --danger: #ff8a80;
    --ok: #7fd4a0;
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Recursive", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variation-settings: "MONO" 0, "CASL" 0;
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:visited {
  color: var(--visited);
}
a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 2px;
}

code,
pre,
kbd,
.mono {
  font-family: "Recursive", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variation-settings: "MONO" 1, "CASL" 0;
  font-size: 0.92em;
}

/* Masthead */
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-weight: 800;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:visited {
  color: var(--ink);
}
.wordmark span {
  font-weight: 400;
  color: var(--muted);
}
.masthead nav a {
  font-size: var(--step--1);
}

/* Hero */
.hero {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }
}
h1 {
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 850;
  margin: 0 0 1.25rem;
  max-width: 16ch;
}
.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 34ch;
  margin: 0 0 2rem;
  color: var(--ink);
}
.buy {
  display: inline-block;
  background: var(--link);
  color: #fff;
  font-weight: 700;
  font-size: var(--step-1);
  text-decoration: none;
  padding: 0.7rem 1.4rem 0.75rem;
  border-radius: 0.35rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.buy:visited {
  color: #fff;
}
.buy:hover {
  background: var(--link-hover);
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  .buy,
  .buy:visited,
  .buy:hover {
    color: #0f1620;
  }
}
.fine {
  color: var(--muted);
  font-size: var(--step--1);
  margin: 0.75rem 0 0;
  max-width: 40ch;
}

/* The specimen: a real crawl, shown as the files it wrote */
.specimen {
  margin: 0;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  overflow: hidden;
}
.specimen .cmd {
  margin: 0;
  padding: 0.9rem 1.1rem 0.9rem 2.2rem;
  text-indent: -1.1rem;
  border-bottom: 1px solid var(--rule);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.specimen .cmd::before {
  content: "$ ";
  color: var(--muted);
}
.file {
  border-bottom: 1px solid var(--rule);
}
.file:last-of-type {
  border-bottom: 0;
}
.file h3 {
  margin: 0;
  padding: 0.55rem 1.1rem 0;
  font-size: var(--step--1);
  font-weight: 700;
  font-family: "Recursive", ui-monospace, monospace;
  font-variation-settings: "MONO" 1;
  color: var(--muted);
}
.file pre {
  margin: 0;
  padding: 0.35rem 1.1rem 0.9rem;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.55;
}
.file pre.wrap-lines {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chunk {
  display: block;
}
.chunk + .chunk {
  margin-top: 0.6rem;
}
.file mark {
  background: var(--mark);
  color: inherit;
  padding: 0 0.1em;
}
.specimen figcaption {
  padding: 0.7rem 1.1rem;
  font-size: var(--step--1);
  color: var(--muted);
  border-top: 1px solid var(--rule);
}

/* Body sections */
section {
  padding-block: clamp(2rem, 5vw, 3.25rem);
  border-top: 1px solid var(--rule);
}
@media (min-width: 60rem) {
  section.split {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 2.5rem;
  }
}
h2 {
  font-size: var(--step-2);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin: 0 0 1rem;
}
p,
li,
dd {
  max-width: var(--measure);
}

.features {
  margin: 0;
  display: grid;
  gap: 1.35rem;
}
.features div {
  display: grid;
  gap: 0.2rem;
}
@media (min-width: 44rem) {
  .features div {
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 1.5rem;
  }
}
.features dt {
  font-weight: 750;
}
.features dd {
  margin: 0;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.75rem;
}
.steps li::before {
  content: counter(step);
  font-weight: 800;
  font-size: var(--step-1);
  line-height: 1.3;
  color: var(--link);
}

.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--step--1);
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 1rem 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}
th {
  font-weight: 700;
}
td:first-child {
  white-space: nowrap;
}

pre.block {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 0.35rem;
  padding: 0.8rem 1rem;
  overflow-x: auto;
  max-width: var(--measure);
}

/* Forms and flow pages */
.flow {
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
  max-width: 40rem;
}
.flow h1 {
  font-size: var(--step-2);
  max-width: none;
}
label {
  display: block;
  font-weight: 700;
  margin: 1.5rem 0 0.4rem;
}
input[type="text"] {
  font: inherit;
  width: 100%;
  max-width: 24rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--muted);
  border-radius: 0.35rem;
  background: var(--sheet);
  color: var(--ink);
}
.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400;
  margin: 1.5rem 0;
}
.check input {
  margin-top: 0.35rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--link);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
}
.error {
  color: var(--danger);
  font-weight: 600;
  margin: 0.6rem 0 0;
}
.account {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0;
}
.account img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 1px solid var(--rule);
}
.account strong {
  display: block;
  font-size: var(--step-1);
}
.status-ok {
  color: var(--ok);
  font-weight: 700;
}

/* Legal pages */
.legal {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.legal h1 {
  font-size: var(--step-2);
  max-width: none;
}
.legal h2 {
  font-size: var(--step-1);
  margin-top: 2rem;
}
.legal pre.license {
  white-space: pre-wrap;
  max-width: 80ch;
  font-size: 0.85rem;
}

footer {
  border-top: 1px solid var(--rule);
  padding-block: 1.75rem 2.5rem;
  color: var(--muted);
  font-size: var(--step--1);
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}
footer p {
  margin: 0;
}

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