/* ==========================================================================
   Ranger — the front page
   --------------------------------------------------------------------------
   One stylesheet, no framework, no build step.

   The palette is the language's own: the gold and the near-black of
   ranger-vscode-extension/icons/ranger-file-icon.svg. The layout is a column
   grid with hairline rules, small monospaced labels over every block, and one
   section that turns the gold into the whole field rather than an accent.

   The mark is landing/assets/ranger-mark.svg: the project's shield, traced
   out of its own bitmap by lib/evg's tracer. The same file is the tab
   icon, the mark in the navigation bar and the footer, and the letter
   inside the rippling backdrop.
   ========================================================================== */

:root {
  --gold:      #fbc802;
  --gold-dk:   #dcaf03;
  --ink:       #07070a;
  --ink-2:     #0c0d11;
  --ink-3:     #12131a;
  --paper:     #eeece6;
  --dim:       #8d919c;
  --dimmer:    #666a75;
  --line:      rgba(255, 255, 255, .10);
  --line-2:    rgba(255, 255, 255, .20);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 60px);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
code, pre { font-family: var(--mono); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/*
 * Every grid on this page is `repeat(auto-fit, minmax(N, 1fr))`, and that
 * track does not shrink below N — on a narrow phone it pushes the page wider
 * than the window instead, which reads as a broken layout rather than as a
 * scrollbar. `min(N, 100%)` keeps the intent (wrap at N) and lets the single
 * remaining column be as wide as the window and no wider.
 *
 * The other half of the same problem: a grid or flex child is `min-width:
 * auto`, which is its content's minimum — so one <pre> of shell commands
 * widens its whole column past the window however narrow the track is allowed
 * to get. Zero lets the column be the window's width and the <pre> scroll
 * inside it.
 */
.cols > *, .tiers > *, .steps > *,
.starts > *, .figures > *, .shots > *,
.hero__cols > *, .native-calls > *, .matrix-wrap,
.quality > * { min-width: 0; }

.dim { color: var(--dim); }
.mono { font-family: var(--mono); }
.small { font-size: 13px; line-height: 1.85; }
.gold { color: var(--gold); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100;
        background: var(--gold); color: var(--ink); padding: 10px 16px; }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* -------------------------------------------------------------- type ---- */

/* The label: a small monospaced tag above a block, with the hairline that
   starts the column. Everything on the page is introduced by one. */
.label {
  font: 400 11.5px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}

.display {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .96;
  margin: 0 0 32px;
  text-wrap: balance;
}
.display--xl { font-size: clamp(44px, 8.2vw, 116px); }
.display--lg { font-size: clamp(32px, 5.4vw, 72px); }
.display--md { font-size: clamp(27px, 3.6vw, 44px); }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.lead { color: var(--dim); font-size: clamp(16px, 1.5vw, 19px); }
.lead--wide { max-width: 72ch; margin-bottom: 8px; }
strong { font-weight: 650; color: var(--paper); }
em { font-style: italic; }

.u { color: var(--gold); text-decoration: underline; text-decoration-thickness: 1px;
     text-underline-offset: 3px; text-decoration-color: rgba(251,200,2,.45); }
.u:hover { text-decoration-color: var(--gold); }

code:not(pre code) {
  font-size: .87em;
  /* A chip like `evg-surface-effect: ripple` is one unbreakable run wider than
     a narrow phone, and an inline box cannot scroll. Break it when it has to. */
  overflow-wrap: anywhere;
  color: #d9d5cc;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .08em .36em;
}

.footnote {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--dimmer);
  font-size: 14.5px;
  max-width: 86ch;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.rank {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
  counter-reset: rank;
}
.rank li {
  counter-increment: rank;
  font: 400 12.5px/1 var(--mono);
  border: 1px solid var(--line-2);
  padding: 6px 9px;
  color: var(--paper);
}
.rank li::before {
  content: counter(rank) " ";
  color: var(--gold);
  font-weight: 650;
}
.rank a { color: inherit; text-decoration: none; }
.rank a:hover { color: var(--gold); }
.rank li:last-child::before { content: none; }

.quality { margin-top: 56px; }
.quality__card {
  padding: 36px 0 40px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 72px;
}
.quality__card:first-child { border-top-color: var(--line-2); }
.quality__card h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -.03em;
  line-height: 1.2;
  margin: 0;
}
.quality__card p { max-width: 78ch; color: var(--dim); font-size: 15.5px; }
/* the one-line caveat or headline under a target's score */
.quality__note {
  margin-top: 6px !important;
  font-size: 14px !important;
  color: var(--gold);
  letter-spacing: .01em;
}
.quality__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 48px;
  margin-top: 22px;
}
.quality__cols > * { min-width: 0; }
.quality__cols .label { margin-bottom: 10px; }
.quality__list {
  margin: 0;
  padding: 0 0 0 1.15em;
  max-width: 62ch;
  color: var(--dim);
  font-size: 15.5px;
}
.quality__list li + li { margin-top: 8px; }
.quality__list li::marker { color: var(--gold); }
.quality__card--summary .quality__list { margin-top: 4px; }
.quality__card--summary .label { margin-top: 22px; }
.quality__card--summary h3 + p { margin-top: 16px; }
@media (max-width: 800px) {
  .quality__cols { grid-template-columns: 1fr; gap: 26px; }
}

.matrix-wrap {
  margin-top: 28px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--ink-3);
}
.matrix {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  line-height: 1.4;
}
.matrix th, .matrix td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  color: var(--dim);
}
.matrix thead th {
  color: var(--gold);
  font: 400 11px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #101118;
}
.matrix tbody th {
  color: var(--paper);
  font-weight: 650;
  background: #101118;
}
.matrix .matrix__rank {
  color: var(--gold);
  font: 650 13px/1 var(--mono);
  width: 3em;
}
.matrix .matrix__lang {
  width: 10em;
  white-space: nowrap;
}
.matrix .matrix__lang a { color: inherit; text-decoration: none; }
.matrix .matrix__lang a:hover { color: var(--gold); }
.matrix .matrix__score {
  display: flex;
  align-items: center;
  gap: 14px;
}
.matrix .score {
  color: var(--paper);
  font: 650 14px/1 var(--mono);
  min-width: 3.2em;
}
/* The five-kernel benchmark: numbers, so the columns line up and the eye can
   run down one of them. Shares the .matrix chrome; only the alignment and the
   emphasis on the total are its own. */
.matrix .bench__n {
  text-align: right;
  font: 400 13px/1.4 var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  /* a fixed, narrow numeric column so the figures sit together and the eye
     can run down one of them; the target column absorbs the slack */
  width: 5.5em;
}
.matrix thead th.bench__n { text-align: right; }
.matrix .bench__total {
  color: var(--paper);
  font-weight: 650;
  border-left: 1px solid var(--line);
  width: 6em;
}
.matrix thead th.bench__total { color: var(--gold); }
.bench tbody th {
  white-space: nowrap;
  width: auto;
}
@media (max-width: 720px) {
  /* Seven columns do not fit a phone, and the two a reader wants are the
     ends: which target, and what it totalled. Both are pinned, the five
     kernels scroll between them, and nothing is hidden. */
  .matrix.bench th, .matrix.bench td { padding: 7px 7px; }
  .matrix .bench__n { font-size: 11px; width: auto; }
  .bench tbody th, .bench thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    font-size: 12px;
  }
  .matrix .bench__total {
    position: sticky;
    right: 0;
    z-index: 2;
    width: auto;
    background: #101118;
    border-left: 1px solid var(--line);
  }
}

.matrix .score__bar {
  display: block;
  flex: 1;
  max-width: 16rem;
  height: 5px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.matrix .score__bar i {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: inherit;
}
.matrix tbody tr:last-child th,
.matrix tbody tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------- nav ---- */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 26px;
  padding: 13px var(--pad);
  background: rgba(7, 7, 10, .82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(7, 7, 10, .94); }

.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__name { font: 600 16px/1 var(--sans); letter-spacing: -.01em; }

/* The traced shield, at 20px. Same file as the backdrop's letter and the tab
   icon, so the three cannot drift apart. */
.nav__mark {
  width: 20px; height: 20px; display: block; flex: none;
  background: url("assets/ranger-mark.svg") center / contain no-repeat;
}

.nav__links { display: flex; gap: 20px; margin-left: 8px; }
.nav__links a { color: var(--dim); text-decoration: none; font-size: 14px; transition: color .18s; }
.nav__links a:hover { color: var(--paper); }

.nav__cta { margin-left: auto; display: flex; align-items: center; gap: 9px; }

@media (max-width: 1000px) { .nav__links { display: none; } }
@media (max-width: 600px) { .nav__cta .btn--ghost { display: none; } }
/* On the narrowest phones the brand and the two remaining controls are wider
   than the window between them; the gaps and the padding give it back. */
@media (max-width: 380px) {
  .nav { gap: 10px; padding-inline: 14px; }
  .btn { padding: 0 13px; font-size: 13.5px; }
  .btn--icon { width: 34px; }
}

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 17px;
  font: 500 14px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--line-2); color: var(--paper);
  transition: background .18s, border-color .18s, color .18s;
}
.btn--ghost:hover { border-color: var(--paper); }
.btn--solid { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 650; }
.btn--solid:hover { background: #ffd83c; border-color: #ffd83c; }
.btn--line:hover { border-color: var(--gold); color: var(--gold); }
.btn--icon { width: 38px; padding: 0; color: var(--dim); }
.btn--icon:hover { color: var(--paper); border-color: var(--paper); }
.btn--lg { height: 50px; padding: 0 26px; font-size: 15.5px; }

/* -------------------------------------------------------------- hero ---- */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(48px, 7vw, 92px) 0 0;
  border-bottom: 1px solid var(--line);
}

/* The backdrop: an EVG display list drawn on the GPU (assets/hero/hero.js).
   Its own stylesheet declares the ripple; this one only places the canvas. */
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; z-index: -2;
  opacity: 0; transition: opacity 1.1s ease .15s;
}
.hero__bg[data-ready] { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(7,7,10,.97) 0%, rgba(7,7,10,.94) 44%, rgba(7,7,10,.55) 64%, rgba(7,7,10,.3) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(7,7,10,0) 26%);
}

.hero__in { position: relative; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.hero__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: clamp(36px, 5vw, 64px) 0 0;
  max-width: 790px;
}
.hero__cols .col { padding: 0 26px; border-left: 1px solid var(--line-2); }
.hero__cols .col:first-child { padding-left: 0; border-left: 0; }
.hero__cols p:not(.label) { color: var(--dim); font-size: 15px; }
@media (max-width: 860px) {
  .hero__cols { grid-template-columns: 1fr; gap: 28px; }
  .hero__cols .col { padding: 0 0 0 18px; border-left: 1px solid var(--line-2); }
  .hero__cols .col:first-child { padding-left: 18px; border-left: 1px solid var(--line-2); }
}

.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin: clamp(34px, 4vw, 52px) 0 0;
}
.hero__cmd {
  font-size: 13px; color: var(--dim);
  border: 1px dashed var(--line-2); padding: 12px 14px;
  white-space: nowrap; overflow-x: auto; max-width: 100%;
}

/* ------------------------------------------------------------- marks ---- */
/*
 * The strip that closes the first screen: the languages and the platforms
 * Ranger compiles for, scrolling past. Each mark is landing/assets/logos/*.svg
 * — a path this repository traced out of a bitmap, see landing/tools/logos.mjs
 * — used as a MASK rather than as an image, so one colour rule tints the whole
 * strip and a mark can light up on its own when the pointer is over it.
 */
.marks {
  position: relative;
  max-width: var(--wrap);
  margin: clamp(48px, 6vw, 84px) auto 0;
  padding-inline: var(--pad);
  padding-bottom: 28px;
}

/* The track is `width: max-content` — wider than the window by design — so
   the strip has to clip it, or the whole page ends up that wide. The mask
   fades the marks out at both ends instead of cutting them. */
.marks__clip {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.marks__track {
  display: flex;
  width: max-content;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line);
  animation: marks-slide 110s linear infinite;
}
/* Two identical runs, so the second is already in place when the first has
   travelled its own width and the translation resets. */
.marks__run { display: flex; align-items: center; gap: clamp(46px, 5vw, 74px); padding: 30px clamp(23px, 2.5vw, 37px); }

.marks i {
  display: block;
  width: 48px; height: 48px; flex: none;
  background: #adb1ba;
  -webkit-mask: var(--mark) center / contain no-repeat;
  mask: var(--mark) center / contain no-repeat;
  transition: background .2s, transform .2s;
}
.marks i:hover { background: var(--gold); transform: translateY(-2px); }

/* The script takes the animation over so that a drag and the drift share one
   offset. Until then the CSS keyframes run it, which is what a page with no
   JavaScript keeps. */
.marks__clip.is-live { cursor: grab; touch-action: pan-y; }
.marks__clip.is-live.is-dragging { cursor: grabbing; }
.marks__clip.is-live.is-dragging i { transform: none; }

@keyframes marks-slide { to { transform: translateX(-50%); } }

/* The strip is decoration in motion; still it must not be. Reduced motion
   gets the same marks standing still, wrapped onto as many lines as they
   need, and the second run goes away so nothing repeats. */
@media (prefers-reduced-motion: reduce) {
  .marks__track { animation: none; width: auto; }
  .marks__run:last-child { display: none; }
  .marks__run { flex-wrap: wrap; row-gap: 22px; }
}

.m-swift { --mark: url("assets/logos/swift.svg"); }
.m-apple { --mark: url("assets/logos/apple.svg"); }
.m-kotlin { --mark: url("assets/logos/kotlin.svg"); }
.m-android { --mark: url("assets/logos/android.svg"); }
.m-javascript { --mark: url("assets/logos/javascript.svg"); }
.m-typescript { --mark: url("assets/logos/typescript.svg"); }
.m-nodedotjs { --mark: url("assets/logos/nodedotjs.svg"); }
.m-dotnet { --mark: url("assets/logos/dotnet.svg"); }
.m-cplusplus { --mark: url("assets/logos/cplusplus.svg"); }
.m-rust { --mark: url("assets/logos/rust.svg"); }
.m-go { --mark: url("assets/logos/go.svg"); }
.m-python { --mark: url("assets/logos/python.svg"); }
.m-dart { --mark: url("assets/logos/dart.svg"); }
.m-flutter { --mark: url("assets/logos/flutter.svg"); }
.m-php { --mark: url("assets/logos/php.svg"); }
.m-openjdk { --mark: url("assets/logos/openjdk.svg"); }
.m-webassembly { --mark: url("assets/logos/webassembly.svg"); }
.m-llvm { --mark: url("assets/logos/llvm.svg"); }
.m-raspberrypi { --mark: url("assets/logos/raspberrypi.svg"); }

/* ----------------------------------------------------------- sections --- */

.section { padding: clamp(72px, 9vw, 130px) 0; }
.section--dark { background: var(--ink-2); border-block: 1px solid var(--line); }

/* THE GOLD FIELD. One section is the brand colour rather than wearing it. */
.section--gold {
  background: var(--gold);
  color: var(--ink);
}
.section--gold .label { color: rgba(7,7,10,.62); }
/* These have to out-specify the column rules further down, which set a cool
   grey that is right on the dark sections and wrong on this one. */
.section--gold p,
.section--gold .lead,
.section--gold .cols p:not(.label):not(.lead) { color: rgba(7,7,10,.8); }
.section--gold strong { color: var(--ink); }
.section--gold .u { color: var(--ink); text-decoration-color: rgba(7,7,10,.45); }
.section--gold .u:hover { text-decoration-color: var(--ink); }
.section--gold code:not(pre code) {
  color: rgba(7,7,10,.85); background: rgba(7,7,10,.07); border-color: rgba(7,7,10,.18);
}
.section--gold .rules .col { border-left-color: rgba(7,7,10,.24); }
.section--gold .footnote { border-top-color: rgba(7,7,10,.24); color: rgba(7,7,10,.66); }
.section--gold .wrap > .lead { font-size: clamp(18px, 1.9vw, 23px); line-height: 1.4; color: var(--ink); }
.section--gold .chips { margin: 18px 0 20px; }
.section--gold .chips li { border-color: rgba(7,7,10,.24); color: var(--ink); }
.section--gold .code--plain {
  background: var(--ink);
  border-color: rgba(7,7,10,.18);
  max-width: 100%;
}
.section--gold .code--diagram {
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0;
}
.section--gold .native-close {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.25;
  font-weight: 650;
  color: var(--ink);
  margin: 0;
}
.native-calls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 16px;
}
.native-calls .code--plain { margin-top: 0; }
@media (max-width: 560px) {
  .native-calls { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ columns --- */

.cols { display: grid; gap: 0; margin-top: 44px; }
.cols--2 { grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); }
.cols--3 { grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); }
.cols + .cols { margin-top: 40px; }

.rules .col { padding: 0 28px; border-left: 1px solid var(--line-2); }
.rules .col:first-child { padding-left: 0; border-left: 0; }
.cols p:not(.label):not(.lead) { color: var(--dim); font-size: 15.5px; }

@media (max-width: 760px) {
  .rules .col { padding: 0 0 0 18px; border-left: 1px solid var(--line-2); margin-bottom: 28px; }
  .rules .col:first-child { padding-left: 18px; border-left: 1px solid var(--line-2); }
  .cols { gap: 0; }
}

/* ----------------------------------------------------------- codeswap --- */

.codeswap {
  display: grid; grid-template-columns: 1fr auto 1.12fr;
  align-items: stretch; gap: 14px; margin-top: 44px;
}
@media (max-width: 960px) {
  .codeswap { grid-template-columns: 1fr; }
  .codeswap__arrow { transform: rotate(90deg); justify-self: center; }
}

.codeswap__pane {
  background: var(--ink-3); border: 1px solid var(--line);
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
}
.codeswap__pane--src { border-color: rgba(251,200,2,.28); }

.codeswap__head {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px; border-bottom: 1px solid var(--line);
  min-height: 46px; background: rgba(255,255,255,.02);
}
.codeswap__head .dot { width: 7px; height: 7px; background: var(--gold); flex: none; }
.codeswap__head .filename { font: 400 13px/1 var(--mono); }
.codeswap__head .badge {
  margin-left: auto; font: 400 10.5px/1 var(--mono); letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(251,200,2,.32); padding: 4px 8px;
}

.codeswap__arrow { align-self: center; color: var(--dimmer); }

.tabs { display: flex; flex-wrap: wrap; gap: 3px; }
.tab {
  appearance: none; background: transparent; border: 1px solid transparent;
  color: var(--dim); font: 500 12.5px/1 var(--sans);
  padding: 7px 10px; cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
.tab:hover { color: var(--paper); background: rgba(255,255,255,.05); }
.tab[aria-selected="true"] { color: var(--ink); background: var(--gold); border-color: var(--gold); font-weight: 650; }

.code {
  margin: 0; padding: 17px;
  font-size: 12.6px; line-height: 1.62; color: #c7cad2;
  overflow: auto; flex: 1; tab-size: 2;
}
.code--out, .codeswap__pane--src .code { max-height: 470px; }
.code--plain { background: var(--ink-3); border: 1px solid var(--line); margin-top: 24px; max-width: 46rem; }

.code .c { color: #5d6270; font-style: italic; }
.code .k { color: var(--gold); }
.code .t { color: #7fd8c6; }
.code .s { color: #b9d47f; }
.code .n { color: #d7a9ff; }
.code .f { color: #8ec5ff; }

.codeswap__foot {
  margin: 0; padding: 10px 13px; border-top: 1px solid var(--line);
  font-size: 12.4px; color: var(--dim);
  display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap;
}
.codeswap__foot code { color: var(--gold-dk); }

/* -------------------------------------------------------------- tiers --- */

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 24px; margin-top: 44px; }
.tier { border-top: 2px solid var(--line-2); padding-top: 18px; }
.tier--a { border-top-color: var(--gold); }
.tier__note { color: var(--dim); font-size: 14.5px; margin: 0 0 16px; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font: 400 12.5px/1 var(--mono); border: 1px solid var(--line-2); padding: 6px 9px; }
.chips--dim li { color: var(--dim); border-color: var(--line); }

/* --------------------------------------------------------------- seam --- */

.seam { margin-top: 40px; border: 1px solid var(--line); padding: 24px; background: var(--ink-3); }
.seam__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
            font: 400 13.5px/1 var(--mono); color: var(--dim); }
.seam__in b { color: var(--gold); font-weight: 400; }
.seam__a { color: var(--dimmer); }
.seam__out { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.seam__out li { font: 400 12.5px/1 var(--mono); border: 1px solid var(--line-2); padding: 7px 10px; }

/* -------------------------------------------------------------- shots --- */

.shot { margin: 40px 0 0; border: 1px solid var(--line); background: var(--ink-3); overflow: hidden; }
.shot img { width: 100%; height: auto; }
.shot figcaption { padding: 12px 14px; font-size: 13.5px; color: var(--dim); border-top: 1px solid var(--line); }

/* ------------------------------------------------------------- start ---- */

/* The numbered path in: a rule over each step, the number in the label
   slot, and room for a command block. */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 0; margin-top: 44px; }
.step { padding: 28px 30px 32px; border-top: 1px solid var(--line-2); border-right: 1px solid var(--line); }
.step:first-child { padding-left: 0; }
.step h3 { font: 650 20px/1.25 var(--sans); letter-spacing: -.015em; margin: 0 0 12px; }
.step p:not(.label) { color: var(--dim); font-size: 15.5px; margin: 0; }
.step .code--plain { margin-top: 18px; font-size: 12.2px; }
.step .code--plain + p { margin-top: 18px; }
@media (max-width: 800px) { .step { padding-inline: 0; border-right: 0; } }

.warning { margin-top: 44px; border: 1px solid var(--line-2); border-left: 3px solid var(--gold); padding: 24px 26px; }
.warning p:not(.label) { color: var(--dim); font-size: 15.5px; max-width: 84ch; margin: 0; }

/* ------------------------------------------------------------- history -- */

#history { scroll-margin-top: 64px; }
.history .display { margin-bottom: 28px; }
.history p:not(.label) {
  max-width: 72ch;
  color: var(--dim);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
}
.history .lead {
  color: var(--paper);
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.55;
  margin-bottom: 22px;
}


/* -------------------------------------------------------------- foot ---- */

.foot { border-top: 1px solid var(--line); padding: 44px 0 56px; }
.foot__in { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.foot__brand { display: flex; gap: 14px; max-width: 52ch; }
.foot__brand p { margin: 0; font-size: 14px; line-height: 1.6; }
.foot__brand .nav__mark { margin-top: 3px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: flex-start; }
.foot__links a { color: var(--dim); text-decoration: none; font-size: 14px; }
.foot__links a:hover { color: var(--paper); }

/* ------------------------------------------------------------ reveal ---- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px);
            transition: opacity .55s cubic-bezier(.2,.7,.3,1), transform .55s cubic-bezier(.2,.7,.3,1); }
  .reveal.is-in { opacity: 1; transform: none; }
}
