/* ---------------------------------------------------------------
   Adeia — the quickstart section on the landing page

   Not to be confused with styles/page-quickstart.css, which styles the
   standalone /quickstart document. This is the section between the
   policy figures and the closing.

   Contrast on --ink:
     --on-ink       11.90:1   headings, commands, code
     --on-ink-quiet  5.77:1   glosses and labels
     --orchid        6.40:1   ordinals, keys, the CTA
     --clay          7.86:1   strings
   All clear WCAG AA at the sizes used.
   --------------------------------------------------------------- */

.quickstart__head {
  display: grid;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.quickstart__head > * {
  margin: 0;
}

.quickstart__title {
  max-width: 20ch;
}

.quickstart__intro {
  max-width: 56ch;
  color: var(--quiet);
}

/* ---------- the three commands ----------
   A real sequence: seed cannot run before install, dev cannot run
   before seed. That is what earns the ordinals. */

.quickstart__steps {
  list-style: none;
  margin: 0 0 clamp(3rem, 6vw, 4.5rem);
  padding: 0;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 60rem) {
  .quickstart__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 2.5vw, 2.25rem);
  }
}

.quickstart__step {
  display: grid;
  gap: 0.875rem;
  padding-top: clamp(1rem, 2vw, 1.25rem);
  border-top: 1px solid var(--rule-on-ink);
}

.quickstart__ordinal {
  margin: 0;
  color: var(--orchid);
}

.quickstart__stepbody {
  display: grid;
  gap: 0.75rem;
}

/* The command itself. Selectable, wraps rather than scrolls — these are
   short enough that a scrollbar would be worse than a second line. */
.quickstart__cmd {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(0.75rem, 0.68rem + 0.28vw, 0.875rem);
  line-height: 1.7;
  color: var(--on-ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.quickstart__gloss {
  margin: 0;
  font-size: var(--t-body);
  line-height: var(--lh-body);
  max-width: 40ch;
}

/* ---------- the call ---------- */

.quickstart__call {
  display: grid;
  gap: clamp(0.75rem, 1.5vw, 1.125rem);
}

.quickstart__calllabel {
  margin: 0;
  color: var(--quiet);
}

/* Wide code scrolls inside its own box, never the page, and is
   focusable so a keyboard can reach the overflow. */
.quickstart__code {
  overflow-x: auto;
  padding: clamp(1.125rem, 2.5vw, 1.75rem);
  border: 1px solid var(--rule-on-ink);
  background-color: rgba(237, 223, 238, 0.04);
}

.quickstart__code:focus-visible {
  outline: 2px solid var(--orchid);
  outline-offset: -2px;
}

.quickstart__pre {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(0.75rem, 0.68rem + 0.3vw, 0.9375rem);
  line-height: 1.75;
  white-space: pre;
  color: var(--on-ink);
}

/* Syntax inks, from the palette — no colour outside it, and never the
   only thing carrying meaning. */
.quickstart__pre .t-dim {
  color: var(--on-ink-quiet);
}

.quickstart__pre .t-key {
  color: var(--orchid);
}

.quickstart__pre .t-str {
  color: var(--clay);
}

.quickstart__pre .t-num {
  color: var(--mist);
}

.quickstart__note {
  margin: 0;
  max-width: 58ch;
  font-size: var(--t-body);
  line-height: var(--lh-body);
}

.quickstart__cta {
  margin: clamp(0.5rem, 1.5vw, 1rem) 0 0;
}
