
@font-face {
  font-family: 'Redacted';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/assets/fonts/Redacted/Redacted-Regular.woff2') format('woff2');
}

/**
 * Shared skeleton tokens for the landing page blocks.
 *
 * Every block concatenates this with its own `style.css` into
 * `makeElement({ style })` — via `./skeleton.ts`, which also prepends the
 * Redacted @font-face — so a block carries everything `[skeleton]` needs and
 * nothing has to be linked globally for the mode to work.
 *
 * The values are the wireframe's grey ramp expressed against `--text` /
 * `--background` rather than the flat hexes it was drawn with, so a skeleton
 * follows the site into dark mode instead of staying a light-mode artifact.
 */
:root {
  /* Redacted has no italic or bold cut — the fallback keeps metrics sane if the
     woff2 is missing, in which case a skeleton degrades to plain grey text. */
  --landing-skeleton-font: 'Redacted', var(--font-primary, sans-serif);

  --landing-skeleton-heading: color-mix(in srgb, var(--background), var(--text) 70%);
  --landing-skeleton-copy: color-mix(in srgb, var(--background), var(--text) 30%);
  --landing-skeleton-kicker: color-mix(in srgb, var(--background), var(--text) 24%);
  --landing-skeleton-media: color-mix(in srgb, var(--background), var(--text) 38%);
  --landing-skeleton-rule: color-mix(in srgb, var(--background), var(--text) 12%);
  --landing-skeleton-surface: color-mix(in srgb, var(--background), var(--text) 2%);
}

/**
 * Numbered cards. Two shapes, one block:
 *
 *   - plain — a bordered panel with the number, a title and a line of copy;
 *   - `[commanded]` — the same panel with the number and the command it names
 *     ruled off in a header strip, which is how the quickstart reads as three
 *     things you type rather than three things you read.
 *
 * The old connector rule between steps is gone. It drew a sequence across a row
 * of borderless cells; these are discrete panels, and a line leaving one panel
 * to point at the next is a diagram the design does not make.
 */
landing-steps {
  --steps-columns: 4;
  --steps-muted: color-mix(in srgb, var(--background), var(--text) 65%);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: clamp(28px, 4vh, 44px) 28px 0;
  box-sizing: border-box;
}

landing-steps [lead] {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: var(--max-page-width, 1400px);
}

landing-steps [lead]:empty {
  display: none;
}

/* The fan-out: the whole thing a module is, on one line, in the same mono the
   kickers are set in. */
landing-steps [bar] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  border: 1px solid var(--light);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text2);
}

landing-steps [bar] [label] {
  color: var(--text);
}

landing-steps [stem] {
  display: flex;
  justify-content: center;
  height: 34px;
}

landing-steps [stem] span {
  width: 1px;
  background: var(--light);
}

landing-steps [steps] {
  display: grid;
  grid-template-columns: repeat(var(--steps-columns), minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
  width: 100%;
  max-width: var(--max-page-width, 1400px);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1024px) {
  landing-steps [steps] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  landing-steps {
    padding: 24px 20px 0;
  }

  landing-steps [steps] {
    grid-template-columns: minmax(0, 1fr);
  }
}

landing-steps [step] {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--light);
  background: var(--light0);
}

landing-steps [marker] {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 22px 20px 0;
}

landing-steps [step][commanded] [marker] {
  border-bottom: 1px solid var(--light);
  padding: 14px 16px;
}

landing-steps [number] {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--text2);
}

landing-steps [command] {
  min-width: 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  white-space: nowrap;
  color: var(--text);
}

landing-steps [body] {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 20px 24px;
}

landing-steps [step][commanded] [body] {
  padding: 20px 16px 22px;
}

landing-steps [title-text] {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

landing-steps [step][commanded] [title-text] {
  font-size: 1.0625rem;
}

landing-steps [copy] {
  margin: 0;
  font-size: 0.90625rem;
  line-height: 1.55;
  text-wrap: pretty;
  color: var(--steps-muted);
}

landing-steps :is([title-text], [copy]):empty {
  display: none;
}

/* ---------------- SKELETON ---------------- */

landing-steps[skeleton],
landing-steps[skeleton] * {
  font-family: var(--landing-skeleton-font);
  font-weight: 400;
  letter-spacing: normal;
}

landing-steps[skeleton] {
  background: var(--landing-skeleton-surface);
  pointer-events: none;
  user-select: none;
}

landing-steps[skeleton] :is([title-text], [copy]):empty {
  display: revert;
}

/* The number goes with the rest of the copy: a wireframe that still counted
   01-02-03 in the site's own face would be the one legible thing on the page. */
landing-steps[skeleton] [number] {
  color: var(--landing-skeleton-kicker);
}

landing-steps[skeleton] [title-text] {
  color: var(--landing-skeleton-heading);
}

landing-steps[skeleton] [copy] {
  color: var(--landing-skeleton-copy);
}

landing-steps[skeleton] [step]:nth-child(2n + 1) [title-text]:empty::before {
  content: 'Step title';
}

landing-steps[skeleton] [step]:nth-child(2n + 2) [title-text]:empty::before {
  content: 'A longer step title';
}

landing-steps[skeleton] [step]:nth-child(2n + 1) [copy]:empty::before {
  content: 'Two lines saying what happens at this step.';
}

landing-steps[skeleton] [step]:nth-child(2n + 2) [copy]:empty::before {
  content: 'Two lines about this step, a little shorter.';
}
