/* Geist and Geist Mono, served from this site (SIL Open Font License 1.1; the licences are at
   /fonts/). Each file is variable, every weight in one file, in a latin and a latin-ext subset. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/geist-latin-ext.58a6b173d5.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/geist-latin.9b6f5ff45b.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/geist-mono-latin-ext.745994b5cd.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/geist-mono-latin.5f3d6ad60f.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The site's own tokens: the one place a literal size, colour, time or curve is written.
   site.css and fonts.css draw with these alone (tests/check-sources.ts). The site is dark only:
   a near-black ground, surfaces a clear step apart, off-white text, one indigo accent kept for the
   action and for citations, and quiet colour fields (stages) that hold the example UI. */

:root {
  color-scheme: dark;

  /* Ground and surfaces, each a step up from the one below. */
  --ground: #0B0D10;
  --surface-1: #111419;
  --surface-2: #161A20;
  --surface-3: #1C2128;
  --surface-4: #232934;
  --ground-veil: rgba(11, 13, 16, 0.78);

  /* Lines. */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --line-on-stage: rgba(11, 13, 16, 0.14);

  /* Text: every pair with the ground and the surfaces is at least 4.5:1 (text-3 on surface-4: 4.65). */
  --text: #F5F6F7;
  --text-2: #A1A7B1;
  --text-3: #8B929C;

  /* The accent: the action and the citations, nothing else. */
  --accent: #7C8CFF;
  --accent-hover: #97A3FF;
  --accent-pressed: #6A7BF5;
  --on-accent: #0B0D10;
  --accent-tint: rgba(124, 140, 255, 0.14);
  --accent-tint-strong: rgba(124, 140, 255, 0.22);
  --accent-line: rgba(124, 140, 255, 0.42);
  --selection: rgba(124, 140, 255, 0.34);

  /* Two voices in the example transcript: quiet, not the accent. */
  --voice-1: #C9B59A;
  --voice-2: #9FB8C9;

  /* Stages: muted colour fields that each own a whole panel, never an accent. Text on a stage is
     --stage-ink (10:1 and more) or --stage-ink-2 (4.7:1 and more). */
  --stage-iris: #B3B8E6;
  --stage-dusk: #9FB0D0;
  --stage-mist: #C3C7DD;
  --stage-sand: #DCC1A8;
  --stage-ink: #0B0D10;
  --stage-ink-2: #3A404C;

  /* The softly lit floor under the hero's window: grey, wide and low. */
  --floor-light: rgba(196, 204, 222, 0.15);
  --floor-light-far: rgba(196, 204, 222, 0.05);
  --floor-height: 760px;

  /* Meaning: an error. */
  --danger: #FF9B94;

  /* The lines of the team diagram, drawn on its stage. */
  --diagram-stroke: rgba(11, 13, 16, 0.32);

  /* Type: Geist for text and display, Geist Mono for times, file names, tool names and code. */
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  --type-display-size: clamp(2.625rem, 1.1rem + 4.4vw, 4.625rem);
  --type-display-line: 1.02;
  --type-display-tracking: -0.03em;
  --type-lead-size: clamp(1.625rem, 1.15rem + 1.35vw, 2.375rem);
  --type-lead-line: 1.28;
  --type-lead-tracking: -0.022em;
  /* A plain section heading, in two sizes, for the sections that are not a lead statement. */
  --type-heading-size: clamp(2rem, 1.25rem + 2.2vw, 3.25rem);
  --type-heading-line: 1.08;
  --type-heading-tracking: -0.028em;
  --type-subheading-size: clamp(1.625rem, 1.3rem + 0.9vw, 2.125rem);
  --type-subheading-line: 1.15;
  --type-subheading-tracking: -0.02em;
  --type-title-size: 1.375rem;
  --type-title-tracking: -0.015em;
  --type-intro-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);
  --type-intro-line: 1.55;
  --type-body-size: 1.0625rem;
  --type-body-line: 1.6;
  --type-body-tracking: -0.006em;
  --type-small-size: 0.875rem;
  --type-small-line: 1.5;
  --type-xs-size: 0.8125rem;
  --type-xs-line: 1.45;
  --type-ui-size: 0.8125rem;
  --type-ui-line: 1.5;
  --type-ui-title-size: 1.25rem;
  --type-mono-size: 0.75rem;
  --type-mono-line: 1.5;
  /* The team diagram on a desktop stage, read at a reading size. */
  --type-stage-ui-size: 1rem;
  --type-stage-xs-size: 0.9375rem;
  --tracking-none: 0;
  --tracking-tight: -0.01em;

  /* Space. */
  --space-px: 1px;
  --space-0-5: 2px;
  --space-1: 4px;
  --space-1-5: 6px;
  --space-2: 8px;
  --space-2-5: 10px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout. */
  --content-width: 1200px;
  --measure: 68ch;
  --measure-lead: 30ch;
  --measure-narrow: 44ch;
  --gutter: 20px;
  --section-gap: 112px;
  --nav-height: 60px;
  --lead-width: 820px;
  --join-lead-width: 640px;
  --notice-width: 600px;
  --hero-title-width: 11.5em;
  --hero-sub-width: 660px;
  --head-text-width: 460px;
  --head-title-width: 640px;
  --head-stack-width: 520px;
  --stage-min-height: 340px;
  --recorder-image-width: 680px;
  --fact-label-width: 140px;
  --time-column: 40px;
  --transcript-width-narrow: 340px;
  --icon-size-small: 16px;
  --arrow-width: 18px;
  --arrow-height: 9px;
  --arrow-dash: 24;
  --window-height: 436px;
  --sidebar-width: 212px;
  --transcript-width: 420px;
  --card-width: 372px;
  --field-width: 460px;
  --control-height: 44px;
  --control-height-small: 34px;
  --icon-size: 20px;
  --mark-size: 20px;
  --dot-size: 10px;
  --dot-size-small: 6px;
  --diagram-line: 1px;
  --diagram-drop: 32px;
  --diagram-drop-wide: 56px;
  --hairline: 1px;
  --focus-width: 2px;
  --focus-offset: 2px;
  --underline-offset: 0.2em;
  --scrollbar-size: 12px;
  --settle-distance: 24px;
  --nudge: 2px;
  --target-margin: 40vh;
  --nav-blur: 14px;
  --scroll-edge: 96px;
  --stage-pad: 40px;
  --recorder-stage-height: 560px;

  /* Corners: panels 12 to 16, pills only for small controls. */
  --radius-xs: 4px;
  --radius-s: 6px;
  --radius-m: 8px;
  --radius-control: 10px;
  --radius-panel: 12px;
  --radius-stage: 16px;
  --radius-pill: 999px;

  /* Elevation: declared once each, a shadow or a line, never both. */
  --shadow-window: 0 40px 100px -20px rgba(0, 0, 0, 0.7), 0 12px 32px -8px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 24px 48px -12px rgba(0, 0, 0, 0.6), 0 8px 16px -6px rgba(0, 0, 0, 0.4);
  --shadow-on-stage: 0 24px 48px -16px rgba(20, 24, 40, 0.45), 0 6px 14px -6px rgba(20, 24, 40, 0.3);

  /* Fades. */
  --opacity-disabled: 0.5;
  --opacity-start: 0.35;

  /* Motion: one load moment, the film, and quick hover and focus; nothing else moves. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --duration-quick: 160ms;
  --duration-settle: 700ms;
  --duration-draw: 600ms;
  --delay-draw: 420ms;
  --delay-card: 160ms;
  --delay-arrow: 620ms;

  /* Layers. */
  --layer-raised: 2;
  --layer-nav: 10;
  --layer-skip: 20;
}

@media (min-width: 700px) {
  :root {
    --gutter: 40px;
    --section-gap: 160px;
    --nav-height: 64px;
  }
}

@media (min-width: 1100px) {
  :root {
    --gutter: 48px;
    --section-gap: 192px;
  }
}

/* The page's rules. Every size, colour, corner, line, fade, layer, time and curve is a token of
   tokens.css, or a calc() of tokens; tests/check-sources.ts fails on a raw value. The build puts
   fonts.css, tokens.css and this file into one stylesheet. */

/* ---------- Base ---------- */

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ground);
  scroll-padding-top: calc(var(--nav-height) + var(--space-6));
  scrollbar-color: var(--surface-4) var(--ground);
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  font-weight: var(--weight-regular);
  line-height: var(--type-body-line);
  letter-spacing: var(--type-body-tracking);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent);
}

::selection {
  background: var(--selection);
  color: var(--text);
}

::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

::-webkit-scrollbar-track {
  background: var(--ground);
}

::-webkit-scrollbar-thumb {
  border: var(--space-0-5) solid var(--ground);
  border-radius: var(--radius-pill);
  background: var(--surface-4);
}

main {
  flex: 1;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

strong {
  font-weight: var(--weight-medium);
}

code,
.file {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: var(--hairline);
  text-underline-offset: var(--underline-offset);
  transition: color var(--duration-quick) var(--ease-standard), text-decoration-color var(--duration-quick) var(--ease-standard);
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: var(--focus-width) solid var(--accent);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-xs);
}

.visually-hidden {
  position: absolute;
  width: var(--space-px);
  height: var(--space-px);
  margin: calc(var(--space-px) * -1);
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: var(--layer-skip);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--type-small-size);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transform: translateY(calc(-100% - var(--space-4)));
}

.skip:focus-visible {
  transform: none;
}

.wrap,
.top-inner,
.bottom-inner,
.hero,
.section {
  width: min(calc(100% - var(--gutter) * 2), var(--content-width));
  margin-inline: auto;
}

/* ---------- The bar at the top ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: var(--layer-nav);
  border-bottom: var(--hairline) solid var(--line);
  background: var(--ground-veil);
  -webkit-backdrop-filter: blur(var(--nav-blur));
  backdrop-filter: blur(var(--nav-blur));
}

/* The edge under the bar comes in as the page scrolls under it, where the browser can tie it to
   the scroll and motion is welcome; elsewhere it is simply there. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .top {
      animation: nav-edge linear both;
      animation-timeline: scroll();
      animation-range: 0 var(--scroll-edge);
    }
  }
}

@keyframes nav-edge {
  from {
    border-bottom-color: transparent;
  }
  to {
    border-bottom-color: var(--line);
  }
}

.top-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  height: var(--nav-height);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2-5);
  justify-self: start;
  color: var(--text);
  font-size: var(--type-small-size);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  text-decoration: none;
}

.mark {
  width: var(--mark-size);
  height: var(--mark-size);
  flex: none;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.top-link {
  padding: var(--space-1-5) var(--space-3);
  border-radius: var(--radius-control);
  color: var(--text-2);
  font-size: var(--type-small-size);
  text-decoration: none;
}

.top-link:hover {
  color: var(--text);
}

.top-action {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: var(--space-1-5);
  padding: var(--space-1-5) var(--space-1) var(--space-1-5) var(--space-3);
  border-radius: var(--radius-control);
  color: var(--text);
  font-size: var(--type-small-size);
  font-weight: var(--weight-medium);
  text-decoration: none;
  white-space: nowrap;
}

.top-action .arrow {
  color: var(--text-2);
  transition: transform var(--duration-quick) var(--ease-standard), color var(--duration-quick) var(--ease-standard);
}

.top-action:hover .arrow {
  color: var(--text);
  transform: translateX(var(--nudge));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--control-height-small);
  padding: 0 var(--space-3);
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--type-small-size);
  font-weight: var(--weight-medium);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--duration-quick) var(--ease-standard);
}

.button:hover {
  background: var(--accent-hover);
}

.button:active {
  background: var(--accent-pressed);
}

@media (max-width: 1099px) {
  .top-section {
    display: none;
  }
}

.when-narrow {
  display: none;
}

@media (max-width: 699px) {
  .when-wide {
    display: none;
  }

  .when-narrow {
    display: inline;
  }

  .top-inner {
    grid-template-columns: 1fr auto auto;
    gap: var(--space-1);
  }
}

/* ---------- The lead statements: a heading run on into its continuation ---------- */

.lead {
  max-width: var(--lead-width);
  font-size: var(--type-lead-size);
  font-weight: var(--weight-medium);
  line-height: var(--type-lead-line);
  letter-spacing: var(--type-lead-tracking);
  text-wrap: pretty;
}

.lead h2,
.lead p {
  display: inline;
  font: inherit;
  letter-spacing: inherit;
}

.lead h2 {
  color: var(--text);
}

.lead p {
  color: var(--text-2);
}

/* ---------- Plain section headings: a heading and a paragraph ---------- */

.section-head h2 {
  color: var(--text);
  font-weight: var(--weight-semibold);
  text-wrap: balance;
}

.section-head p {
  color: var(--text-2);
  font-size: var(--type-intro-size);
  line-height: var(--type-intro-line);
  text-wrap: pretty;
}

/* For teams: a large heading, its paragraph beside it on a wide screen, on the heading's last line. */
.section-head-split {
  display: grid;
  gap: var(--space-5);
}

.section-head-split h2 {
  max-width: var(--head-title-width);
  font-size: var(--type-heading-size);
  line-height: var(--type-heading-line);
  letter-spacing: var(--type-heading-tracking);
}

.section-head-split p {
  max-width: var(--head-text-width);
}

@media (min-width: 1100px) {
  .section-head-split {
    grid-template-columns: minmax(0, 1fr) var(--head-text-width);
    align-items: end;
    gap: var(--space-16);
  }
}

/* Yours to keep: a smaller heading over a short paragraph, in its own column. */
.section-head-stack {
  display: grid;
  gap: var(--space-4);
  max-width: var(--head-stack-width);
}

.section-head-stack h2 {
  font-size: var(--type-subheading-size);
  line-height: var(--type-subheading-line);
  letter-spacing: var(--type-subheading-tracking);
}

/* ---------- The first screen ---------- */

.hero {
  padding-top: var(--space-8);
  text-align: center;
}

.hero h1 {
  max-width: var(--hero-title-width);
  margin-inline: auto;
  font-size: var(--type-display-size);
  font-weight: var(--weight-semibold);
  line-height: var(--type-display-line);
  letter-spacing: var(--type-display-tracking);
  text-wrap: balance;
}

.hero-sub {
  max-width: var(--hero-sub-width);
  margin: var(--space-5) auto 0;
  color: var(--text-2);
  font-size: var(--type-intro-size);
  line-height: var(--type-intro-line);
  text-wrap: pretty;
}

.hero-join {
  width: min(100%, var(--field-width));
  margin: var(--space-7) auto 0;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: var(--space-1) var(--space-4);
  margin-top: var(--space-3);
  color: var(--text-3);
  font-size: var(--type-xs-size);
  line-height: var(--type-xs-line);
}

.use-details summary {
  color: var(--text-2);
  cursor: pointer;
  list-style: none;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--text-3);
  text-underline-offset: var(--underline-offset);
}

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

.use-details summary:hover {
  color: var(--text);
}

.use-details[open] {
  flex-basis: 100%;
}

.use-details .use {
  margin-top: var(--space-3);
  text-align: left;
}

.works-with {
  margin-top: var(--space-4);
  color: var(--text-3);
  font-size: var(--type-small-size);
}

/* ---------- The form ---------- */

.field-row {
  display: flex;
  gap: var(--space-1);
  padding: var(--space-1);
  border: var(--hairline) solid var(--line-strong);
  border-radius: var(--radius-panel);
  background: var(--surface-2);
  transition: border-color var(--duration-quick) var(--ease-standard);
}

.field-row:focus-within {
  border-color: var(--accent-line);
}

.field-row input {
  flex: 1;
  min-width: 0;
  height: var(--control-height);
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-m);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: var(--type-body-size);
  letter-spacing: inherit;
}

.field-row input::placeholder {
  color: var(--text-3);
}

.field-row input:focus-visible {
  outline: none;
}

.field-row:has(input:focus-visible) {
  outline: var(--focus-width) solid var(--accent);
  outline-offset: var(--focus-offset);
}

.field-row input[aria-invalid="true"] {
  color: var(--danger);
}

.submit {
  height: var(--control-height);
  padding: 0 var(--space-5);
  border: 0;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--on-accent);
  font-family: inherit;
  font-size: var(--type-small-size);
  font-weight: var(--weight-semibold);
  letter-spacing: inherit;
  cursor: pointer;
  transition: background-color var(--duration-quick) var(--ease-standard);
}

.submit:hover {
  background: var(--accent-hover);
}

.submit:active {
  background: var(--accent-pressed);
}

.submit[aria-busy="true"] {
  cursor: progress;
}

.submit:disabled,
.field-row input:disabled {
  cursor: not-allowed;
}

.signup.is-closed .field-row,
.signup.is-done .field-row {
  opacity: var(--opacity-disabled);
}

.turnstile:not(:empty) {
  display: flex;
  justify-content: center;
  margin-top: var(--space-3);
}

.status {
  min-height: 0;
  color: var(--text-2);
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
}

.status:not(:empty) {
  margin-top: var(--space-3);
}

.status[data-tone="done"] {
  color: var(--text);
}

.status[data-tone="error"] {
  color: var(--danger);
}

.noscript,
.use {
  color: var(--text-3);
  font-size: var(--type-xs-size);
  line-height: var(--type-xs-line);
}

.noscript {
  color: var(--text-2);
  font-size: var(--type-small-size);
}

.use a,
.noscript a {
  color: var(--text-2);
}

/* ---------- The software's window, the hero's object ---------- */

.showcase {
  position: relative;
  isolation: isolate;
  margin-top: var(--space-10);
  text-align: left;
}

/* A softly lit floor: grey light, wide and low, under and behind the window. */
.showcase::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: calc(var(--space-24) * -1) calc(var(--gutter) * -1) auto;
  height: var(--floor-height);
  background: radial-gradient(closest-side, var(--floor-light), var(--floor-light-far) 60%, transparent);
  pointer-events: none;
}

.window {
  overflow: hidden;
  border: var(--hairline) solid var(--line-strong);
  border-radius: var(--radius-stage);
  background: var(--surface-1);
}

.window-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  line-height: var(--type-xs-line);
  border-bottom: var(--hairline) solid var(--line);
  background: var(--surface-2);
  color: var(--text-3);
  font-size: var(--type-xs-size);
}

.window-lights {
  display: flex;
  gap: var(--space-2);
}

.window-lights i {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: var(--radius-pill);
  background: var(--surface-4);
}

.window-body {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--transcript-width);
  height: var(--window-height);
}

/* The caption sits in the bar, set exactly as the title is (the same padding, size and line under
   the window's border), so the two share a baseline. */
.showcase-caption {
  position: absolute;
  top: var(--hairline);
  right: 0;
  z-index: var(--layer-raised);
  padding: var(--space-3) var(--space-4);
  color: var(--text-3);
  font-size: var(--type-xs-size);
  line-height: var(--type-xs-line);
}

/* The wiki's tree. */
.tree {
  padding: var(--space-4) var(--space-3);
  border-right: var(--hairline) solid var(--line);
  font-size: var(--type-xs-size);
}

.tree-heading {
  padding: 0 var(--space-2);
  color: var(--text-3);
  font-weight: var(--weight-medium);
}

.tree-list {
  margin-top: var(--space-2);
}

.tree-list > li + li {
  margin-top: var(--space-2);
}

.tree-folder,
.tree-page {
  display: block;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-s);
  font-family: var(--font-mono);
  font-size: var(--type-mono-size);
  line-height: var(--type-mono-line);
}

.tree-folder {
  color: var(--text-2);
}

.tree-page {
  padding-left: var(--space-5);
  color: var(--text-3);
}

.tree-page.is-open {
  background: var(--surface-3);
  color: var(--text);
}

/* A wiki page. */
.doc {
  padding: var(--space-8) var(--space-10);
  font-size: var(--type-ui-size);
  line-height: var(--type-ui-line);
}

.doc-path {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--type-mono-size);
}

.doc-title {
  margin-top: var(--space-3);
  font-size: var(--type-ui-title-size);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--type-title-tracking);
}

.doc-heading {
  margin-top: var(--space-6);
  color: var(--text-3);
  font-weight: var(--weight-medium);
}

.doc-list {
  margin-top: var(--space-2);
}

.doc-list li {
  position: relative;
  margin-inline: calc(var(--space-2) * -1);
  padding: var(--space-1) var(--space-2) var(--space-1) var(--space-6);
  border-radius: var(--radius-m);
  color: var(--text-2);
  transition: color var(--duration-quick) var(--ease-standard), background-color var(--duration-quick) var(--ease-standard);
}

.doc-list li::before {
  content: "";
  position: absolute;
  top: calc(var(--space-1) + var(--type-ui-size) * 0.75 - var(--dot-size-small) / 2);
  left: var(--space-2-5);
  width: var(--dot-size-small);
  height: var(--dot-size-small);
  border-radius: var(--radius-pill);
  background: var(--text-3);
}

.cite {
  display: inline-block;
  padding: 0 var(--space-1-5);
  border-radius: var(--radius-xs);
  background: var(--accent-tint);
  color: var(--accent-hover);
  font-family: var(--font-mono);
  font-size: var(--type-mono-size);
  font-weight: var(--weight-medium);
  line-height: var(--type-mono-line);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--duration-quick) var(--ease-standard), color var(--duration-quick) var(--ease-standard);
}

a.cite:hover {
  color: var(--text);
}

/* A transcript. */
.pane {
  padding: var(--space-4) var(--space-5);
  border-left: var(--hairline) solid var(--line);
  background: var(--surface-1);
}

.pane-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--text-3);
  font-size: var(--type-xs-size);
}

.pane-title {
  color: var(--text);
  font-weight: var(--weight-medium);
}

.lines {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.line {
  position: relative;
  display: grid;
  grid-template-columns: var(--time-column) minmax(0, 1fr);
  column-gap: var(--space-2);
  padding: var(--space-2) var(--space-2-5);
  border-radius: var(--radius-m);
  font-size: var(--type-ui-size);
  line-height: var(--type-ui-line);
  transition: background-color var(--duration-quick) var(--ease-standard);
}

.line::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: var(--accent-tint);
  transform: scaleX(0);
  transform-origin: left;
}

.line-time {
  grid-row: span 2;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--type-mono-size);
  line-height: var(--type-ui-line);
  transition: color var(--duration-quick) var(--ease-standard);
}

.line-speaker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1-5);
  color: var(--text-3);
  font-size: var(--type-xs-size);
}

.line-speaker::before {
  content: "";
  width: var(--dot-size-small);
  height: var(--dot-size-small);
  border-radius: var(--radius-pill);
  background: currentColor;
}

.voice-1::before {
  background: var(--voice-1);
}

.voice-2::before {
  background: var(--voice-2);
}

.line-words {
  color: var(--text-2);
  transition: color var(--duration-quick) var(--ease-standard);
}

.lines {
  isolation: isolate;
}

/* The agent's card. */
.agent-card {
  display: block;
  width: min(100%, var(--card-width));
  padding: var(--space-4) var(--space-5) var(--space-5);
  border-radius: var(--radius-panel);
  background: var(--surface-3);
  box-shadow: var(--shadow-card);
  font-size: var(--type-ui-size);
  line-height: var(--type-ui-line);
}

.showcase .agent-card {
  position: absolute;
  right: calc(var(--space-8) * -1);
  bottom: var(--space-4);
  z-index: var(--layer-raised);
}

.agent-who {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-3);
  font-size: var(--type-xs-size);
  font-weight: var(--weight-medium);
}

.agent-icon {
  width: var(--icon-size-small);
  height: var(--icon-size-small);
  flex: none;
}

.agent-q {
  position: relative;
  margin-top: var(--space-3);
  padding-left: var(--space-4);
  color: var(--text);
}

.agent-q::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.agent-a {
  margin-top: var(--space-2);
  padding-left: var(--space-4);
  color: var(--text-2);
}

.agent-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1-5);
  margin-top: var(--space-3);
  padding-left: var(--space-4);
  color: var(--text-3);
  font-size: var(--type-mono-size);
}

.arrow {
  width: var(--arrow-width);
  height: var(--arrow-height);
  flex: none;
}

@media (max-width: 1099px) {
  .window-body {
    grid-template-columns: minmax(0, 1fr) var(--transcript-width-narrow);
  }

  .window-body .tree {
    display: none;
  }

  .showcase .agent-card {
    right: calc(var(--space-4) * -1);
    bottom: calc(var(--space-6) * -1);
  }
}

@media (max-width: 699px) {
  .showcase {
    margin-top: var(--space-12);
  }

  .showcase::before {
    inset: calc(var(--space-16) * -1) calc(var(--gutter) * -1) auto;
  }

  .window-bar {
    grid-template-columns: auto 1fr;
    gap: var(--space-3);
  }

  .window-title,
  .window-spacer {
    display: none;
  }

  .showcase-caption {
    left: calc(var(--dot-size) * 3 + var(--space-2) * 2 + var(--space-4) * 2);
    right: auto;
  }

  .window-body {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  .doc {
    padding: var(--space-5) var(--space-4);
  }

  .pane {
    border-top: var(--hairline) solid var(--line);
    border-left: 0;
    padding: var(--space-4) var(--space-3) var(--space-10);
  }

  .showcase .agent-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: calc(var(--space-6) * -1) var(--space-3) 0;
  }
}

/* The load moment: the window settles up from a little lower, the card with it, and the cited
   line's light draws across. Everything is visible without it; nothing moves under reduced
   motion. */
@media (prefers-reduced-motion: no-preference) {
  .window,
  .showcase-caption,
  .showcase .agent-card {
    animation: settle var(--duration-settle) var(--ease-out) both;
  }

  .showcase .agent-card {
    animation-delay: var(--delay-card);
  }

  /* Backwards only: once drawn, the line is the citations' to light and unlight. */
  .window [data-line="1042"]::before {
    animation: draw var(--duration-draw) var(--ease-out) var(--delay-draw) backwards;
  }

  .showcase .arrow-line {
    stroke-dasharray: var(--arrow-dash);
    animation: stroke var(--duration-draw) var(--ease-out) var(--delay-arrow) both;
  }
}

@keyframes settle {
  from {
    opacity: var(--opacity-start);
    transform: translateY(var(--settle-distance));
  }
}

@keyframes draw {
  from {
    transform: scaleX(0);
  }
}

@keyframes stroke {
  from {
    stroke-dashoffset: var(--arrow-dash);
  }
}

/* ---------- Sections ---------- */

.section {
  margin-top: var(--section-gap);
}

.hero + .section {
  margin-top: calc(var(--section-gap) + var(--space-12));
}

/* ---------- How it works: the film and four steps ---------- */

/* The film sits in a frame like the window's: 16:9 from its width and height, so nothing shifts as
   it loads. Its button stays over the lower right corner. */
.film {
  position: relative;
  display: block;
  margin-top: var(--space-12);
  overflow: hidden;
  border: var(--hairline) solid var(--line-strong);
  border-radius: var(--radius-stage);
  background: var(--surface-1);
}

.film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.film-toggle {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: var(--layer-raised);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1-5);
  height: var(--control-height-small);
  padding: 0 var(--space-3) 0 var(--space-2-5);
  border: var(--hairline) solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--ground-veil);
  -webkit-backdrop-filter: blur(var(--nav-blur));
  backdrop-filter: blur(var(--nav-blur));
  color: var(--text);
  font-family: inherit;
  font-size: var(--type-small-size);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: background-color var(--duration-quick) var(--ease-standard);
}

.film-toggle:hover {
  background: var(--surface-3);
}

.film-toggle:focus-visible {
  border-radius: var(--radius-control);
}

.film-toggle[hidden] {
  display: none;
}

.film-icon {
  width: var(--icon-size-small);
  height: var(--icon-size-small);
  flex: none;
}

.film .film-icon-pause,
.film[data-playing] .film-icon-play {
  display: none;
}

.film[data-playing] .film-icon-pause {
  display: block;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6) var(--space-5);
  margin-top: var(--space-8);
}

.steps li {
  padding-top: var(--space-4);
  border-top: var(--hairline) solid var(--line);
  color: var(--text-2);
  text-wrap: pretty;
}

.steps strong {
  display: block;
  color: var(--text);
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-8);
  }
}

@media (max-width: 699px) {
  .film {
    margin-top: var(--space-8);
  }

  /* On a phone the film is small: the button is its icon alone, and its words are read, not shown. */
  .film-toggle {
    right: var(--space-2);
    bottom: var(--space-2);
    justify-content: center;
    width: var(--control-height-small);
    padding: 0;
  }

  .film-toggle [data-label] {
    position: absolute;
    width: var(--space-px);
    height: var(--space-px);
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ---------- The stages: muted colour fields that hold a diagram or a picture ---------- */

.stage {
  display: grid;
  place-items: center;
  min-height: var(--stage-min-height);
  margin-top: var(--space-6);
  padding: var(--stage-pad);
  border-radius: var(--radius-stage);
  color: var(--stage-ink);
}

.stage-iris {
  background: var(--stage-iris);
}

.stage-dusk {
  background: var(--stage-dusk);
}

.stage-mist {
  background: var(--stage-mist);
}

.stage-sand {
  background: var(--stage-sand);
}

@media (max-width: 699px) {
  .stage {
    --stage-pad: var(--space-4);
    min-height: 0;
  }
}

/* ---------- The citations in the hero's window ---------- */

/* <cite-links> wraps the window and the agent's card; it changes nothing of the layout. */
.cites {
  display: contents;
}

.showcase [data-cite],
.showcase [data-line] {
  cursor: default;
}

/* A line followed from a time scrolls to the middle of the screen, not under the bar. */
[data-line] {
  scroll-margin-top: var(--target-margin);
}

[data-line]:focus {
  outline: none;
}

[data-line]:focus-visible {
  outline: var(--focus-width) solid var(--accent);
  outline-offset: var(--focus-offset);
}

/* The citations link both ways: point at, tap or focus a wiki line or its time and the
   transcript line lights; point at, tap or focus a transcript line and the wiki lines that cite
   it light; follow a time and the line it names stays lit (:target). With nothing pointed at,
   10:42 is lit. CSS alone (:has), so it works without JavaScript; the times are links and the
   lines take focus, so it works by keyboard and by touch. */
.showcase .line::before {
  transition: transform var(--duration-quick) var(--ease-out);
}

.showcase:not(:has([data-cite]:hover, [data-line]:hover, [data-cite]:focus-visible, [data-cite] :focus-visible, [data-line]:focus, [data-line]:target)) [data-line="1042"]::before,
.showcase:has([data-line="1041"]:hover, [data-line="1041"]:focus, [data-line="1041"]:target) [data-line="1041"]::before,
.showcase:has([data-cite="1042"]:hover, [data-line="1042"]:hover, [data-cite="1042"]:focus-visible, [data-cite="1042"] :focus-visible, [data-line="1042"]:focus, [data-line="1042"]:target) [data-line="1042"]::before,
.showcase:has([data-cite="1043"]:hover, [data-line="1043"]:hover, [data-cite="1043"]:focus-visible, [data-cite="1043"] :focus-visible, [data-line="1043"]:focus, [data-line="1043"]:target) [data-line="1043"]::before {
  transform: none;
}

.showcase:not(:has([data-cite]:hover, [data-line]:hover, [data-cite]:focus-visible, [data-cite] :focus-visible, [data-line]:focus, [data-line]:target)) [data-line="1042"] .line-time,
.showcase:has([data-line="1041"]:hover, [data-line="1041"]:focus, [data-line="1041"]:target) [data-line="1041"] .line-time,
.showcase:has([data-cite="1042"]:hover, [data-line="1042"]:hover, [data-cite="1042"]:focus-visible, [data-cite="1042"] :focus-visible, [data-line="1042"]:focus, [data-line="1042"]:target) [data-line="1042"] .line-time,
.showcase:has([data-cite="1043"]:hover, [data-line="1043"]:hover, [data-cite="1043"]:focus-visible, [data-cite="1043"] :focus-visible, [data-line="1043"]:focus, [data-line="1043"]:target) [data-line="1043"] .line-time {
  color: var(--accent);
}

.showcase:not(:has([data-cite]:hover, [data-line]:hover, [data-cite]:focus-visible, [data-cite] :focus-visible, [data-line]:focus, [data-line]:target)) [data-line="1042"] .line-words,
.showcase:has([data-line="1041"]:hover, [data-line="1041"]:focus, [data-line="1041"]:target) [data-line="1041"] .line-words,
.showcase:has([data-cite="1042"]:hover, [data-line="1042"]:hover, [data-cite="1042"]:focus-visible, [data-cite="1042"] :focus-visible, [data-line="1042"]:focus, [data-line="1042"]:target) [data-line="1042"] .line-words,
.showcase:has([data-cite="1043"]:hover, [data-line="1043"]:hover, [data-cite="1043"]:focus-visible, [data-cite="1043"] :focus-visible, [data-line="1043"]:focus, [data-line="1043"]:target) [data-line="1043"] .line-words {
  color: var(--text);
}

.showcase:not(:has([data-cite]:hover, [data-line]:hover, [data-cite]:focus-visible, [data-cite] :focus-visible, [data-line]:focus, [data-line]:target)) li[data-cite="1042"],
.showcase:has([data-cite="1042"]:hover, [data-line="1042"]:hover, [data-cite="1042"]:focus-visible, [data-cite="1042"] :focus-visible, [data-line="1042"]:focus, [data-line="1042"]:target) li[data-cite="1042"],
.showcase:has([data-cite="1043"]:hover, [data-line="1043"]:hover, [data-cite="1043"]:focus-visible, [data-cite="1043"] :focus-visible, [data-line="1043"]:focus, [data-line="1043"]:target) li[data-cite="1043"] {
  background: var(--surface-3);
  color: var(--text);
}

.showcase:not(:has([data-cite]:hover, [data-line]:hover, [data-cite]:focus-visible, [data-cite] :focus-visible, [data-line]:focus, [data-line]:target)) :is([data-cite="1042"] .cite, .cite[data-cite="1042"]),
.showcase:has([data-cite="1042"]:hover, [data-line="1042"]:hover, [data-cite="1042"]:focus-visible, [data-cite="1042"] :focus-visible, [data-line="1042"]:focus, [data-line="1042"]:target) :is([data-cite="1042"] .cite, .cite[data-cite="1042"]),
.showcase:has([data-cite="1043"]:hover, [data-line="1043"]:hover, [data-cite="1043"]:focus-visible, [data-cite="1043"] :focus-visible, [data-line="1043"]:focus, [data-line="1043"]:target) :is([data-cite="1043"] .cite, .cite[data-cite="1043"]) {
  background: var(--accent-tint-strong);
  color: var(--text);
}

/* ---------- For teams ---------- */

.teams-grid {
  display: grid;
  gap: var(--space-12);
  margin-top: var(--space-16);
}

@media (min-width: 1100px) {
  .teams-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: var(--space-16);
  }
}

.diagram {
  margin-top: 0;
  align-content: center;
  text-align: center;
}

.node {
  display: grid;
  gap: var(--space-0-5);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-panel);
  background: var(--surface-1);
  box-shadow: var(--shadow-on-stage);
  color: var(--text);
  font-size: var(--type-ui-size);
  line-height: var(--type-ui-line);
}

.node strong {
  font-weight: var(--weight-medium);
}

.node span {
  color: var(--text-3);
  font-size: var(--type-xs-size);
}

.node-memory {
  position: relative;
  justify-self: center;
  padding: var(--space-4) var(--space-6);
}

.node-memory::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: var(--diagram-line);
  height: var(--diagram-drop);
  background: var(--diagram-stroke);
}

.node-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  width: 100%;
  margin-top: calc(var(--diagram-drop) * 2);
}

.node-row::before {
  content: "";
  position: absolute;
  top: calc(var(--diagram-drop) * -1);
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: var(--diagram-line);
  background: var(--diagram-stroke);
}

.node-row .node {
  position: relative;
  align-content: start;
}

.node-row .node::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: var(--diagram-line);
  height: var(--diagram-drop);
  background: var(--diagram-stroke);
}

.ruled li {
  padding: var(--space-4) 0;
  border-top: var(--hairline) solid var(--line);
  color: var(--text-2);
  text-wrap: pretty;
}

.ruled li:last-child {
  border-bottom: var(--hairline) solid var(--line);
}

.ruled strong {
  color: var(--text);
}

.tools {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-12);
}

.tools-label {
  color: var(--text-3);
  font-size: var(--type-small-size);
}

.tool-names {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tool-names code {
  display: block;
  padding: var(--space-0-5) var(--space-2);
  border-radius: var(--radius-s);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: var(--type-mono-size);
  line-height: var(--type-mono-line);
}

.server-steps {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.server-steps > li {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: var(--hairline) solid var(--line);
  color: var(--text-2);
  text-wrap: pretty;
}

.server-steps strong {
  color: var(--text);
}

.server-command {
  display: grid;
  gap: var(--space-3);
}

.server-steps pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-m);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--type-mono-size);
  line-height: var(--type-mono-line);
}

@media (min-width: 1100px) {
  .server-steps > li {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
    gap: var(--space-3) var(--space-8);
  }
}

/* On a wide screen the diagram fills the panel the list beside it stretches: larger nodes, labels at
   a reading size, longer lines between them. */
@media (min-width: 1100px) {
  .diagram {
    --type-ui-size: var(--type-stage-ui-size);
    --type-xs-size: var(--type-stage-xs-size);
    --diagram-drop: var(--diagram-drop-wide);
    --stage-pad: var(--space-6);
  }

  .diagram .node {
    gap: var(--space-1);
    padding: var(--space-5) var(--space-2-5);
  }

  .diagram .node-memory {
    padding: var(--space-6) var(--space-10);
  }

  .diagram .node-row {
    gap: var(--space-4);
  }
}

@media (max-width: 699px) {
  .node {
    padding: var(--space-2-5) var(--space-2);
  }

  .node-row {
    gap: var(--space-2);
  }
}

/* ---------- Yours to keep ---------- */

.yours {
  display: grid;
  gap: var(--space-12);
}

@media (min-width: 1100px) {
  .yours {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--space-20);
    align-items: start;
  }
}

.ruled-icons li {
  display: grid;
  grid-template-columns: var(--icon-size) minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-5) 0;
}

.claim-icon {
  width: var(--icon-size);
  height: var(--icon-size);
  margin-top: var(--space-0-5);
  color: var(--text-2);
}

/* ---------- The Recorder ---------- */

.recorder-grid {
  display: grid;
  gap: var(--space-10);
  margin-top: var(--space-16);
}

@media (min-width: 1100px) {
  .recorder-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: var(--space-16);
    align-items: center;
  }
}

.recorder-stage {
  margin-top: 0;
  min-height: var(--recorder-stage-height);
  padding: var(--space-6);
}

.recorder-stage img {
  width: min(100%, var(--recorder-image-width));
}

.facts > div {
  display: grid;
  grid-template-columns: var(--fact-label-width) minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: var(--hairline) solid var(--line);
}

.facts > div:last-child {
  border-bottom: var(--hairline) solid var(--line);
}

.facts dt {
  color: var(--text-3);
  font-size: var(--type-small-size);
  line-height: var(--type-body-line);
}

.facts dd {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.recorder-more {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

@media (min-width: 700px) {
  .recorder-more {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.recorder-figure .stage {
  position: relative;
  display: block;
  margin-top: 0;
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.recorder-figure img {
  position: absolute;
  inset: var(--space-4);
  width: calc(100% - var(--space-4) * 2);
  height: calc(100% - var(--space-4) * 2);
  object-fit: contain;
}

@media (min-width: 700px) {
  .recorder-scale {
    grid-column: 1 / -1;
  }

  .recorder-scale .stage {
    aspect-ratio: 2 / 1;
  }
}

.recorder-figure figcaption,
.rendered {
  margin-top: var(--space-3);
  color: var(--text-3);
  font-size: var(--type-small-size);
}

.rendered {
  margin-top: var(--space-6);
}

@media (max-width: 699px) {
  .recorder-stage {
    min-height: 0;
    padding: var(--space-4);
  }

  .facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-0-5);
  }
}

/* ---------- The closing waiting list ---------- */

.join {
  display: grid;
  justify-items: center;
  padding-bottom: var(--space-32);
  text-align: center;
}

.join .lead {
  max-width: var(--join-lead-width);
}

.join-form {
  width: min(100%, var(--field-width));
  margin-top: var(--space-10);
  text-align: left;
}

.join-form .use {
  margin-top: var(--space-4);
}

/* ---------- The waiting list's own pages ---------- */

.notice {
  width: min(calc(100% - var(--gutter) * 2), var(--notice-width));
  margin: var(--space-32) auto var(--section-gap);
}

.notice h1,
.notice-heading {
  font-size: var(--type-lead-size);
  font-weight: var(--weight-medium);
  line-height: var(--type-lead-line);
  letter-spacing: var(--type-lead-tracking);
  text-wrap: balance;
}

.notice p {
  margin-top: var(--space-4);
  color: var(--text-2);
}

.notice .notice-action {
  margin-top: var(--space-8);
}

.notice-action a {
  color: var(--text);
}

.notice-action .submit {
  height: var(--control-height);
}

.notice-action .status:not(:empty) {
  margin-top: var(--space-4);
}

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

.bottom {
  border-top: var(--hairline) solid var(--line);
}

.bottom-inner {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-10) 0 var(--space-12);
  color: var(--text-3);
  font-size: var(--type-xs-size);
  line-height: var(--type-xs-line);
}

@media (min-width: 700px) {
  .bottom-inner {
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: var(--space-8);
  }

  .bottom-note {
    justify-self: end;
    max-width: var(--measure-narrow);
    text-align: right;
  }
}

.wordmark-quiet {
  color: var(--text-2);
}

.bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
}

.bottom-links a {
  color: var(--text-2);
  text-decoration: none;
}

.bottom-links a:hover {
  color: var(--text);
}

/* Under reduced motion nothing moves, the hover and focus changes included: they are instant. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
