/*
 * DeckHQ, the site.
 *
 * One look: the product's own. The page is the dark studio the app's chrome is
 * drawn in, and the pictures are the lit floor on the table in the middle of
 * it. There is no light scheme here, because a second one would be the same
 * pictures on a ground they were never drawn for.
 *
 * NO WEB FONT. The two families below are named and never fetched: a machine
 * that has them shows them, every other machine shows its own system face,
 * and the fallback is the design. Nothing in this file loads anything.
 *
 * Colour: the neutrals, amber and crimson are the app's and the mark's. Amber
 * is the accent. Crimson means a session is waiting on you and is used for
 * nothing else; it is a fill and a dot and never sets a word. The state
 * colours appear once, in the key that explains them.
 */

:root {
  --bg: #131419;
  --bg-2: #0e0f13;
  --surface: #1a1c23;
  --surface-2: #23262f;
  --line: #333846;
  --line-2: #464c5e;
  --ink: #eceef3;
  --ink-2: #b8bdc9;
  --muted: #8a92a3;
  --accent: #e4a44e;
  --on-accent: #131419;
  --crimson: #c0392b;
  --on-crimson: #eceef3;
  --head-solid: #131419;

  --state-working: #2e7d63;
  --state-needs-input: #b87333;
  --state-stalled: #9a7b4f;
  --state-benched: #7b8794;
  --state-let-go: #bdb7aa;

  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --t-display: clamp(2.5rem, 1.1rem + 5.4vw, 4.75rem);
  --t-title: clamp(2.125rem, 1.4rem + 3vw, 3.5rem);
  --t-head: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  --t-sub: clamp(1.1875rem, 1.1rem + 0.4vw, 1.4375rem);
  --t-lede: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --t-body: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --t-small: 0.9375rem;
  --t-micro: 0.8125rem;

  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --band: clamp(4.5rem, 3rem + 7vw, 9rem);

  --wrap: 76rem;
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 var(--t-body) / 1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--ink);
  text-decoration-color: var(--line-2);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 160ms var(--ease);
}

a:hover {
  text-decoration-color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: var(--t-title);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--t-head);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h3 {
  font-size: var(--t-sub);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p,
ul,
ol,
dl,
figure,
pre {
  margin: 0;
}

p {
  max-width: 62ch;
  text-wrap: pretty;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

code,
kbd,
pre {
  font-family: var(--mono);
  font-size: 0.9em;
}

code {
  color: var(--ink);
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.4em;
  color: var(--ink);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 5px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* A grid or flex child is as narrow as its column, never as wide as the
   longest command inside it. */
:where(.split, .split-copy, .split-media, .wide, .ways, .way, .cols, .cols > *) > *,
:where(.mosaic, .mosaic > *, .hero-copy, .page-head, .section-head, .switcher) > *,
:where(.switch-stage, .compare, .actions, .faq details > div) > * {
  min-width: 0;
}

.lede {
  color: var(--ink-2);
  font-size: var(--t-lede);
  line-height: 1.5;
  letter-spacing: -0.01em;
  max-width: 44ch;
}

.quiet {
  color: var(--muted);
  font-size: var(--t-small);
}

.skip-link {
  position: absolute;
  left: var(--s-2);
  top: -4rem;
  z-index: 30;
  padding: var(--s-1) var(--s-2);
  color: var(--on-accent);
  background: var(--accent);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--s-2);
}

/* ------------------------------------------------------------- the bar */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--head-solid);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 3.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: var(--s-3);
  margin-left: auto;
}

.site-nav a,
.head-out,
.nav-drawer a {
  color: var(--ink-2);
  font-size: var(--t-small);
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.site-nav a {
  padding-block: 1.15rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.site-nav a:hover,
.head-out:hover,
.nav-drawer a:hover {
  color: var(--ink);
}

.site-nav a[aria-current='page'] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.head-out {
  padding: 0.4rem 0.85rem;
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 999px;
}

.head-out:hover {
  border-color: var(--ink-2);
}

.nav-toggle {
  display: none;
  margin-left: auto;
}

.nav-toggle summary {
  padding: 0.4rem 0.85rem;
  color: var(--ink);
  font-size: var(--t-small);
  list-style: none;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle summary::-webkit-details-marker {
  display: none;
}

.nav-drawer {
  position: absolute;
  inset: 100% 0 auto 0;
  display: grid;
  padding: var(--s-1) var(--gutter) var(--s-3);
  background: var(--head-solid);
  border-bottom: 1px solid var(--line);
}

.nav-drawer a {
  padding-block: 0.8rem;
  font-size: var(--t-body);
  border-bottom: 1px solid var(--line);
}

.nav-drawer a[aria-current='page'] {
  color: var(--ink);
}

@media (max-width: 47.99rem) {
  .site-nav,
  .head-out {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

/* ---------------------------------------------------- buttons, commands */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  color: var(--on-accent);
  font-weight: 600;
  font-size: var(--t-small);
  text-decoration: none;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  transition:
    transform 160ms var(--ease),
    background 160ms var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-2);
}

.btn--ghost:hover {
  border-color: var(--ink-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
}

/* A command on a line of its own. The text is selectable with or without the
   button, which the script adds only where it can copy. */
.cmd {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  max-width: 100%;
  padding: 0.35rem 0.4rem 0.35rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cmd code {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.5rem 0;
  color: var(--ink);
  font-size: var(--t-body);
  white-space: nowrap;
  overflow-x: auto;
  background: none;
  scrollbar-width: none;
}

.cmd code::before {
  content: '$ ';
  color: var(--muted);
}

.cmd--ps code::before {
  content: '> ';
}

.cmd button {
  flex: none;
  padding: 0.45rem 0.8rem;
  color: var(--ink);
  font: 500 var(--t-micro) / 1.2 var(--mono);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 160ms var(--ease);
}

.cmd button:hover {
  border-color: var(--ink-2);
}

.cmd button[data-done] {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

/* Its own width, or the window's less the gutters, whichever is the smaller:
   a percentage would be measured against a parent that is sized by it. */
.cmd--hero {
  width: min(22rem, calc(100vw - 2 * var(--gutter)));
}

.cmd--hero code {
  font-size: var(--t-lede);
}

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

.hero {
  padding-top: clamp(3rem, 2rem + 5vw, 6.5rem);
}

.hero-copy {
  display: grid;
  gap: var(--s-3);
  justify-items: start;
}

.hero h1 {
  max-width: 21ch;
  font-size: var(--t-display);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero .lede {
  max-width: 36ch;
}

.hero-note {
  color: var(--muted);
  font-size: var(--t-small);
  max-width: 34ch;
}

.hero-shot {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

/* On a wide window the headline runs the width of the page, with the sentence
   under its left edge and the command under its right. */
@media (min-width: 56rem) {
  .hero-copy {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--s-5);
    row-gap: var(--s-2);
  }

  .hero h1 {
    grid-column: 1 / -1;
    margin-bottom: var(--s-3);
  }

  .hero .lede {
    grid-row: 2 / span 2;
  }

  .hero .actions,
  .hero-note {
    grid-column: 2;
    justify-self: end;
  }

  .hero-note {
    text-align: right;
    max-width: 46ch;
  }
}

/* The window rises into place once, on load. It is never hidden: the picture
   is there from the first frame, and only its position moves. */
@media (prefers-reduced-motion: no-preference) {
  .hero-shot {
    animation: rise 900ms var(--ease) both;
  }
}

@keyframes rise {
  from {
    transform: translateY(28px);
  }
}

/* ------------------------------------------------------------ pictures */

.shot {
  position: relative;
}

.shot img {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.shot--window img {
  box-shadow: var(--shadow);
}

.shot--ui img {
  width: auto;
  margin-inline: auto;
  box-shadow: var(--shadow);
}

/* A whole floor on a phone is a thumbnail. Under 40rem a picture marked this
   way shows its top left corner at a size a robot can be read at: Your Office
   and the first room beside it. */
@media (max-width: 39.99rem) {
  .shot--crop img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 0 0;
  }
}

.shot figcaption {
  margin-top: var(--s-2);
  color: var(--muted);
  font-size: var(--t-small);
  line-height: 1.5;
  max-width: 60ch;
}

.tag {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.1rem 0.55rem;
  color: var(--ink);
  font: 500 var(--t-micro) / 1.5 var(--mono);
  letter-spacing: 0.02em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}

.tag--coming {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

/* --------------------------------------------------- bands and sections */

.band {
  padding-block: var(--band);
}

.band--deep {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.band--tight {
  padding-block: calc(var(--band) * 0.6);
}

.section-head {
  display: grid;
  gap: var(--s-3);
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

.section-head h2 {
  max-width: 20ch;
}

.section-head .lede {
  max-width: 52ch;
}

.page-head {
  display: grid;
  gap: var(--s-3);
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2rem, 1rem + 3vw, 3.5rem);
}

.page-head h1 {
  max-width: 18ch;
}

/* Words beside a picture. Twelve columns; the picture takes seven. */
.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s-4);
  row-gap: var(--s-4);
  align-items: center;
}

.split > .split-copy {
  grid-column: 1 / span 5;
  display: grid;
  gap: var(--s-3);
  align-content: center;
}

/* Beside a picture, a third-level heading carries a whole idea and is set
   between the two steps of the scale. */
.split-copy > h3 {
  font-size: clamp(1.4375rem, 1.2rem + 1vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.split > .split-media {
  grid-column: 7 / span 6;
}

.split--wide > .split-media {
  grid-column: 6 / span 7;
}

.split--flip > .split-copy {
  grid-column: 8 / span 5;
  grid-row: 1;
}

.split--flip > .split-media {
  grid-column: 1 / span 6;
  grid-row: 1;
}

.split--flip.split--wide > .split-media {
  grid-column: 1 / span 7;
}

.split + .split,
.split + .wide,
.wide + .split {
  margin-top: var(--band);
}

.wide {
  display: grid;
  gap: var(--s-4);
}

.wide > .split-copy {
  display: grid;
  gap: var(--s-3);
  max-width: 44rem;
}

@media (max-width: 55.99rem) {
  /* Eleven gaps are wider than a phone. One column, and nothing to span. */
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split > .split-copy,
  .split > .split-media,
  .split--wide > .split-media,
  .split--flip > .split-copy,
  .split--flip > .split-media,
  .split--flip.split--wide > .split-media {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* Short facts under a paragraph: a rule above each, no boxes. */
.facts {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
}

.facts > li {
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
  max-width: 62ch;
}

.facts > li:last-child {
  border-bottom: 1px solid var(--line);
}

/* The states, as the floor colours them. The one place a state colour is
   used on this site, and it is a dot beside a neutral word. */
.states {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--s-3) var(--s-4);
  padding: 0;
  list-style: none;
}

.states li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.75rem;
  align-items: baseline;
  align-content: start;
}

.states b {
  color: var(--ink);
  font-weight: 600;
}

.states span {
  grid-column: 2;
  color: var(--ink-2);
  font-size: var(--t-small);
}

.dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--muted);
}

.dot--working {
  background: var(--state-working);
}

.dot--needs-input {
  background: var(--state-needs-input);
}

.dot--for-review {
  background: var(--crimson);
}

.dot--stalled {
  background: var(--state-stalled);
}

.dot--benched {
  background: var(--state-benched);
}

.dot--let-go {
  background: var(--state-let-go);
}

/*
 * DeckHQ, the site: the pieces a page is made of.
 *
 * The second half of the stylesheet. `site/style.css` is the tokens, the type,
 * the bar and the layout; this is the mosaic, the styles switcher, the
 * comparison, the terminal, install, tables, questions, the changelog and the
 * footer. `site/build.mjs` joins the two into the one `style.css` a page
 * loads, so a reader makes one request and neither file is long.
 *
 * Every colour here is a token from the first half. Nothing is fetched.
 */

/* ------------------------------------------------- the details mosaic */

/* Close crops of the things people notice. The cells differ in size on
   purpose: each one is the shape of the picture it holds. */
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-5) var(--s-4);
}

.mosaic > * {
  grid-column: span 4;
  display: grid;
  gap: var(--s-2);
  align-content: start;
}

.mosaic > .c5 {
  grid-column: span 5;
}

.mosaic > .c6 {
  grid-column: span 6;
}

.mosaic > .c7 {
  grid-column: span 7;
}

.mosaic > .c8 {
  grid-column: span 8;
}

.mosaic > .c12 {
  grid-column: 1 / -1;
}

.mosaic h3 {
  margin-top: var(--s-1);
}

.mosaic p {
  font-size: var(--t-small);
  line-height: 1.6;
}

@media (max-width: 55.99rem) {
  .mosaic {
    grid-template-columns: minmax(0, 1fr);
  }

  .mosaic > *,
  .mosaic > .c5,
  .mosaic > .c6,
  .mosaic > .c7,
  .mosaic > .c8 {
    grid-column: 1 / -1;
  }
}

/* Space after a full-width picture or a block, before what follows it. */
.after-figure {
  margin-top: var(--band);
}

.after-block {
  margin-top: var(--s-5);
}

.after-small {
  margin-top: var(--s-2);
}

/* ------------------------------------------------- the styles switcher */

/* Without the script this is a gallery: every style, one under another, each
   with its name. With it, the same figures become one stage and a row of
   names, and a picture is fetched the first time it is shown. */
.switcher {
  display: grid;
  gap: var(--s-5);
}

.switcher figure {
  display: grid;
  gap: var(--s-2);
}

.switch-names {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
}

.switch-names button {
  padding: 0.4rem 0.8rem;
  color: var(--ink-2);
  font: 500 0.875rem / 1.3 var(--sans);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 160ms var(--ease),
    border-color 160ms var(--ease);
}

.switch-names button:hover {
  color: var(--ink);
  border-color: var(--line-2);
}

.switch-names button[aria-pressed='true'] {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

.switcher.is-live {
  gap: var(--s-3);
}

.switcher.is-live figure:not(.is-on) {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .switcher.is-live figure.is-on img {
    animation: settle 420ms var(--ease);
  }
}

@keyframes settle {
  from {
    filter: brightness(1.25) blur(3px);
  }
}

/* No wider than the plain file of a style, so an ordinary screen is never
   shown one enlarged. */
.switch-stage {
  display: grid;
  gap: var(--s-5);
  max-width: 60rem;
}

/* ------------------------------------------------------- the comparison */

/* Two pictures of the same rooms. Without the script they sit side by side;
   with it, one lies over the other and a slider draws the line between. */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  max-width: 56.25rem;
}

.compare.is-live {
  position: relative;
  display: block;
  --at: 50%;
}

.compare.is-live figure + figure {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--at));
}

.compare.is-live figcaption {
  position: absolute;
  left: var(--s-2);
  bottom: var(--s-2);
  margin: 0;
  padding: 0.2rem 0.6rem;
  color: var(--ink);
  background: var(--bg);
  border-radius: 999px;
}

.compare.is-live figure + figure figcaption {
  left: auto;
  right: var(--s-2);
}

.compare input[type='range'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0.001;
  cursor: ew-resize;
}

.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--at);
  width: 2px;
  margin-left: -1px;
  background: var(--ink);
  pointer-events: none;
}

.compare-line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.25rem;
  height: 2.25rem;
  margin: -1.125rem 0 0 -1.125rem;
  background: var(--ink);
  border: 3px solid var(--bg);
  border-radius: 50%;
}

.compare input:focus-visible ~ .compare-line::after {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 39.99rem) {
  .compare {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------- the terminal */

.term {
  padding: var(--s-3);
  color: var(--ink-2);
  font-size: var(--t-small);
  line-height: 1.7;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.band--deep .term {
  background: var(--bg);
}

.term b {
  color: var(--ink);
  font-weight: 500;
}

.term i {
  color: var(--muted);
  font-style: normal;
}

/* ------------------------------------------------------------- install */

.ways {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-5) var(--s-4);
}

/* Two to a row: a command is shown whole, and a third of a page is not wide
   enough for most of them. */
.way {
  grid-column: span 6;
  display: grid;
  gap: var(--s-2);
  align-content: start;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-2);
}

.way .cmd code {
  font-size: var(--t-small);
}

/* The way with the two longest lines sets them a step smaller, to fit. */
.way--wide .cmd code {
  font-size: var(--t-micro);
}

.way--first {
  grid-column: 1 / -1;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s-4);
  padding-top: 0;
  border-top: 0;
}

.way--first > * {
  grid-column: 1 / span 7;
}

.way p {
  font-size: var(--t-small);
}

.way .cmd + .cmd {
  margin-top: calc(var(--s-1) * -1);
}

@media (max-width: 55.99rem) {
  .ways,
  .way--first {
    grid-template-columns: minmax(0, 1fr);
  }

  .way,
  .way--first > * {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------- tables */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: var(--t-small);
}

th,
td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font: 500 var(--t-micro) / 1.4 var(--mono);
  background: var(--surface);
}

tr:last-child td {
  border-bottom: 0;
}

td:first-child {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

/* ------------------------------------------------------------ questions */

.faq {
  max-width: 50rem;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: 1.25rem;
  color: var(--ink);
  font-size: var(--t-sub);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  color: var(--muted);
  font: 400 1.5rem / 1 var(--mono);
  transition: transform 200ms var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details > div {
  display: grid;
  gap: var(--s-2);
  padding-bottom: var(--s-4);
}

/* ----------------------------------------------------- changelog, prose */

.prose {
  display: grid;
  gap: var(--s-3);
  max-width: 46rem;
  padding-bottom: var(--band);
}

.release {
  display: grid;
  gap: var(--s-2);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}

.release h2 {
  font-size: var(--t-sub);
  font-family: var(--mono);
  letter-spacing: 0;
}

.release-date {
  margin-left: 0.75rem;
  color: var(--muted);
  font-size: var(--t-small);
  font-weight: 400;
}

/* ---------------------------------------------------------------- lists */

.plain {
  display: grid;
  gap: var(--s-2);
  padding-left: 1.2rem;
  max-width: 62ch;
}

.plain li::marker {
  color: var(--muted);
}

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--s-5) var(--s-4);
}

/* Six things, three to a row, rather than four and two. */
.cols--three {
  grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
}

.cols > * {
  display: grid;
  gap: var(--s-2);
  align-content: start;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-2);
}

.cols p {
  font-size: var(--t-small);
}

.cols h2,
.way h2 {
  font-size: var(--t-sub);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

/* A row of links to the sections of a long page. */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
  padding: 0;
  list-style: none;
  font-size: var(--t-small);
}

.jump a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
}

.jump a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* --------------------------------------------------------------- footer */

.site-foot {
  padding-block: var(--s-6) var(--s-4);
  font-size: var(--t-small);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.foot-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-5) var(--s-4);
}

.foot-brand {
  display: grid;
  gap: var(--s-2);
  align-content: start;
  max-width: 24rem;
}

.foot-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 600;
}

.foot-col h2 {
  margin-bottom: var(--s-2);
  color: var(--muted);
  font: 500 var(--t-micro) / 1.4 var(--mono);
  letter-spacing: 0;
}

.foot-col ul {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  list-style: none;
}

.foot-col a {
  color: var(--ink-2);
  text-decoration: none;
}

.foot-col a:hover {
  color: var(--ink);
}

.foot-note {
  margin-top: var(--s-6);
  max-width: none;
  color: var(--muted);
}

@media (max-width: 47.99rem) {
  .foot-inner {
    grid-template-columns: 1fr 1fr;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

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

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
