/*
 * 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.
 *
 * TYPE. The two lists below are the machine's own faces, and they are what a
 * phone is shown. A screen 40rem and wider is also sent `fonts.css`, which
 * puts the product's own typeface — the files the app ships, served from this
 * origin — at the head of each list. 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;

  /* What a picture's box shows before the picture arrives: the build gives
     each one the tone nearest its own colour. See site/placeholder.mjs. */
  --ph-dark: #1e2026;
  --ph-dusk: #3a3e42;
  --ph-stone: #8f8a80;
  --ph-floor: #c4bdae;

  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --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 */

/* The whole point of the first screen is that the loop is on it: the
   headline, one sentence, the command, and the walk, before any scrolling. So
   the type is a step under the display size and the gaps are short. */
.hero {
  padding-top: clamp(1.25rem, 0.5rem + 1.8vw, 2.25rem);
  padding-bottom: var(--s-5);
}

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

/* The one line DeckHQ is described by, over the headline. Not a label style:
   it is a sentence, set small. */
.eyebrow {
  color: var(--accent);
  font: 500 var(--t-small) / 1.4 var(--mono);
}

.hero h1 {
  max-width: 30ch;
  font-size: clamp(2rem, 1rem + 3.9vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

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

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

.hero-shot {
  margin-top: clamp(1.25rem, 0.9rem + 1vw, 1.75rem);
}

/* The walk is a strip: an office, a corridor and a desk. Narrower than a desk
   monitor it is cut to its left end, where the walk arrives, so a robot stays
   a size it can be read at. */
@media (max-width: 55.99rem) {
  .hero-loop img {
    aspect-ratio: 2 / 1;
    object-fit: cover;
    object-position: 0 100%;
  }
}

@media (max-width: 39.99rem) {
  .hero-loop img {
    aspect-ratio: 3 / 2;
  }
}

/* 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);
  }

  .eyebrow,
  .hero h1 {
    grid-column: 1 / -1;
  }

  .hero h1 {
    margin-bottom: var(--s-1);
  }

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

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

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

/* 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;
  }
}

/* A loop: the video lies over its own first frame, inside its line. */
.loop {
  position: relative;
  display: block;
}

.loop video {
  position: absolute;
  inset: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  border-radius: calc(var(--radius) - 1px);
  object-fit: cover;
  object-position: 0 0;
}

.hero-loop video {
  object-position: 0 100%;
}

.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);
  overflow-wrap: anywhere;
  white-space: normal;
}

/* A row of a report is a line of its own, and a value too long for the box
   goes on under the value, not under the eighteen characters of its label. */

.term > i,
.term > span {
  display: block;
  white-space: pre-wrap;
}

.term > span {
  padding-left: 18ch;
  text-indent: -18ch;
}

/* A step smaller on a phone, where a path would not fit the value column. */
@media (max-width: 39.99rem) {
  .term {
    padding: var(--s-2);
    font-size: var(--t-micro);
  }
}

.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 longest lines are set a step smaller, to fit their column. */
.way--wide .cmd code,
.cols .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);
}

/* --------------------------------------------- the home page's own blocks */

/* A picture's box before the picture: the tone the build measured for it. */
img.ph-dark {
  background: var(--ph-dark);
}

img.ph-dusk {
  background: var(--ph-dusk);
}

img.ph-stone {
  background: var(--ph-stone);
}

img.ph-floor {
  background: var(--ph-floor);
}

/* Two tools, side by side. The row heads are words, not labels. */
.versus,
.os {
  table-layout: fixed;
}

.versus {
  min-width: 42rem;
  font-size: var(--t-body);
}

/* The corner cell sets the first column; the others share what is left. */
:is(.versus, .os) thead td {
  background: var(--surface);
}

.versus thead td {
  width: 16%;
}

.os thead td {
  width: 28%;
}

tbody th {
  color: var(--ink);
  font: 600 var(--t-small) / 1.5 var(--sans);
  background: none;
}

.versus tbody th {
  font-size: var(--t-body);
}

/* What has been run where: one row a capability, one column a system. */
.os {
  min-width: 40rem;
}

:is(.versus, .os) tbody td {
  color: var(--ink-2);
  font-weight: 400;
  white-space: normal;
}

/* On a phone neither table scrolls sideways, because the column that would
   be off the screen is the one being compared. Each row's head runs the full
   width, and its cells sit under it, side by side. */
@media (max-width: 39.99rem) {
  :is(.versus, .os) {
    display: block;
    min-width: 0;
  }

  :is(.versus, .os) :is(thead, tbody) {
    display: block;
  }

  :is(.versus, .os) tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .os tr {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  :is(.versus, .os) :is(thead td, tbody th) {
    grid-column: 1 / -1;
    width: auto;
    padding-bottom: 0;
    border-bottom: 0;
  }

  :is(.versus, .os) thead td {
    padding: 0;
  }

  :is(.versus, .os) :is(thead th, tbody td) {
    padding: 0.6rem 0.75rem;
    font-size: var(--t-micro);
    line-height: 1.5;
  }

  .versus tbody td {
    font-size: var(--t-small);
  }

  /* A name and a status share a line; the sentence runs under them. */
  .runtimes {
    display: block;
    min-width: 0;
  }

  .runtimes :is(thead, tbody) {
    display: block;
  }

  .runtimes tr {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }

  .runtimes :is(th, td):nth-child(-n + 2) {
    border-bottom: 0;
  }

  .runtimes :is(th, td):nth-child(3) {
    grid-column: 1 / -1;
    padding-top: 0;
  }

  .runtimes tr:not(:last-child) td:nth-child(3) {
    border-bottom: 1px solid var(--line);
  }
}

/* A real sequence, so it is numbered: six steps, three to a row. */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--s-4) var(--s-5);
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  counter-increment: step;
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
}

.steps h3 {
  margin-bottom: var(--s-1);
  font-size: var(--t-sub);
}

.steps h3::before {
  content: counter(step) '  ';
  color: var(--accent);
  font: 500 var(--t-small) / 1 var(--mono);
}

.follow {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-4) var(--s-5);
}

.follow h2 {
  margin-bottom: var(--s-2);
  font-size: var(--t-sub);
}

.follow-ways {
  display: grid;
  gap: var(--s-2);
  padding: 0;
  list-style: none;
}

.follow-ways > li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem var(--s-2);
  align-items: baseline;
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--line);
}

.follow-ways span {
  color: var(--muted);
  font-size: var(--t-small);
}

.follow-ways > .follow-mail {
  align-items: center;
  justify-content: space-between;
  border-bottom: 0;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-4);
}

.quote blockquote {
  margin: 0 0 var(--s-2);
  color: var(--ink);
  font-size: var(--t-lede);
  line-height: 1.45;
}

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

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

/* --------------------------------------------------------------- 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(4, 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);
}

/* The footer's last row starts where its columns do. */
.foot-note {
  margin-top: var(--s-6);
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  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;
  }
}

/*
 * DeckHQ, the site: what it says about the office in 3D.
 *
 * The third part of the stylesheet. The office in 3D is not released, and
 * three things on the site say so: the line across the top of every page, the
 * strip under the home page's first screen, and the 3D page. Their pieces are
 * here; `site/build.mjs` joins this file to the other two.
 *
 * Every colour here is a token from `site/style.css`. Nothing is fetched.
 */

/* ------------------------------------------------ the line over the bar */

/* One line, the accent as a ground with the page's dark as its ink: 8.51:1,
   measured in `test/unit/site.test.mjs`. It is not fixed and cannot be closed:
   it scrolls away with the page, so it takes one line of a phone, once. */
.announce {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0.5rem var(--gutter);
  color: var(--on-accent);
  font: 600 var(--t-small) / 1.4 var(--sans);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  background: var(--accent);
}

/* The words sit over the light that crosses the line, never under it. */
.announce > span {
  position: relative;
  z-index: 1;
}

.announce-go {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.announce-go::after {
  content: ' \2192';
}

.announce:focus-visible {
  outline-color: var(--on-accent);
  outline-offset: -4px;
}

/* A phone gets the shorter sentence. Both are in the page; one is shown. */
.announce-short {
  display: none;
}

@media (max-width: 39.99rem) {
  .announce {
    font-size: var(--t-micro);
  }

  .announce-long {
    display: none;
  }

  .announce-short {
    display: inline;
  }
}

/* A light crosses the line once, on load, and is gone. It is parked off the
   left edge, so a reader who asked for less motion never sees it at all. */
.announce::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  background: linear-gradient(100deg, transparent, var(--ink), transparent);
  opacity: 0.5;
  transform: translateX(-120%);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .announce::after {
    animation: sweep 1500ms 600ms var(--ease) both;
  }
}

@keyframes sweep {
  to {
    transform: translateX(460%);
  }
}

/* The tag beside a name on the bar: a size under the one in a caption. */
:is(.site-nav, .nav-drawer) .tag {
  margin: 0 0 0 0.3rem;
  padding: 0 0.4rem;
  font-size: 0.6875rem;
}

/* ----------------------------------------------- the window at the top */

/* The first thing on the home page, straight under the menu: a band in the
   one bright colour the site has, cut into the dark page like a window, with
   the office in 3D behind it. A reader who came from a picture of the 3D
   office sees it before anything else. Nothing else on the page is this
   colour, which is the whole of its loudness; the home page carries no
   announcement line because this is one. */
.strip3d {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--s-4) var(--s-5);
  color: var(--on-accent);
  background:
    radial-gradient(
      90% 130% at 10% -30%,
      color-mix(in srgb, var(--ink) 38%, var(--accent)),
      transparent 62%
    ),
    linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 84%, var(--crimson)));
  /* The dark page above and below falls into the opening: that is the depth. */
  box-shadow:
    inset 0 20px 26px -18px color-mix(in srgb, var(--on-accent) 78%, transparent),
    inset 0 -26px 30px -20px color-mix(in srgb, var(--on-accent) 82%, transparent);
}

/* One slow sweep of light across the glass when the page arrives. */
.strip3d::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    105deg,
    transparent 35%,
    color-mix(in srgb, var(--ink) 30%, transparent) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
}

@media (prefers-reduced-motion: no-preference) {
  .strip3d::before {
    animation: sweep 1600ms var(--ease) 400ms both;
  }
}

.strip3d-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  margin-bottom: var(--s-3);
}

.strip3d-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.35rem;
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strip3d h2 {
  color: var(--on-accent);
  font-size: var(--t-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* On the bright ground the two buttons and the tag turn over: dark on it. */
.strip3d .btn {
  color: var(--accent);
  background: var(--on-accent);
  border-color: var(--on-accent);
  box-shadow: 0 10px 18px -10px color-mix(in srgb, var(--on-accent) 80%, transparent);
}

.strip3d .btn--ghost {
  color: var(--on-accent);
  background: transparent;
  border-color: color-mix(in srgb, var(--on-accent) 70%, transparent);
  box-shadow: none;
}

.strip3d .btn--ghost:hover {
  border-color: var(--on-accent);
}

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

.strip3d-shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
}

/* Each picture is a pane set into the band: a dark frame, and a shadow that
   lifts it off the colour. */
.strip3d-shots a {
  display: block;
  overflow: hidden;
  background: var(--bg-2);
  border: 2px solid var(--on-accent);
  border-radius: var(--radius);
  box-shadow:
    0 26px 36px -20px color-mix(in srgb, var(--on-accent) 90%, transparent),
    0 4px 10px -4px color-mix(in srgb, var(--on-accent) 55%, transparent);
  transition:
    transform 320ms var(--ease),
    box-shadow 320ms var(--ease);
}

.strip3d-shots a:hover,
.strip3d-shots a:focus-visible {
  transform: translateY(-5px) scale(1.012);
  box-shadow:
    0 34px 44px -22px color-mix(in srgb, var(--on-accent) 95%, transparent),
    0 6px 14px -6px color-mix(in srgb, var(--on-accent) 60%, transparent);
}

.strip3d-shots a:focus-visible {
  outline: 3px solid var(--on-accent);
  outline-offset: 3px;
}

.strip3d .shot img {
  display: block;
  border: 0;
  border-radius: 0;
}

.strip3d figcaption {
  margin-top: 0.7rem;
  color: var(--on-accent);
  font-size: var(--t-micro);
  font-weight: 600;
  white-space: nowrap;
}

/* Narrower than a desk monitor the row runs off the right edge and is pulled
   along by hand: four pictures a thumb wide would show nothing. */
@media (max-width: 55.99rem) {
  .strip3d {
    padding-block: var(--s-3) var(--s-4);
  }

  .strip3d-shots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(62%, 20rem);
    gap: var(--s-2);
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) var(--s-3);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .strip3d-shots > * {
    scroll-snap-align: start;
  }
}

/* ------------------------------------------------------------ the 3D page */

/* The page is the pictures. Its first screen is centred, which no other page
   is, and its headline is the one place the display step is used. */
.hero3d {
  padding-top: clamp(1.5rem, 0.6rem + 2.4vw, 3rem);
  padding-bottom: var(--s-6);
}

.hero3d-copy {
  display: grid;
  gap: var(--s-2);
  justify-items: center;
  text-align: center;
}

.hero3d h1 {
  font-size: var(--t-display);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero3d .actions {
  justify-content: center;
  margin-top: var(--s-1);
}

.btn--large {
  padding: 0.95rem 1.6rem;
  font-size: var(--t-body);
}

/* THE WIDE STAGE (site/hq.mjs): on a wide window a clip leaves the column, up
   to 120rem and never taller than the window. Margins, not a transform, so
   the page gains no sideways scroll. */
@media (min-width: 88rem) {
  .shot--cinema {
    --stage: max(100%, min(calc(100vw - 6rem), 120rem, calc((100vh - 9rem) * 16 / 9)));
    width: var(--stage);
    max-width: none;
    margin-inline: calc((100% - var(--stage)) / 2);
  }
}

/* A clip of the 3D office is the shape of its first frame, corner to corner. */
.shot3d video {
  object-position: 50% 50%;
}

/* The states beside one of them, close: sixteen to nine is as tall as a
   square when their widths are sixteen to nine. */
.pair3d {
  display: grid;
  grid-template-columns: minmax(0, 16fr) minmax(0, 9fr);
  gap: var(--s-4);
  align-items: start;
}

.stack3d {
  display: grid;
  gap: var(--s-5);
}

.stack3d h3 {
  margin-bottom: calc(var(--s-3) * -1);
}

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