/* SnipStack — the site's whole stylesheet.
 *
 * Editorial and technical: warm paper and ink, a serif for display, the keyboard's own monospace
 * for labels, and hairline rules doing the work that boxes and shadows usually do. The one accent
 * is the blue the program itself uses.
 *
 * Not one byte is loaded from anywhere else. The privacy page promises no external fonts and no
 * external scripts, so the type is what Windows already ships — Constantia for display, Segoe for
 * running text, Cascadia for anything that stands for a key or a value — and the grain is an inline
 * SVG.
 *
 * Light and dark: the tokens below are light. The visitor's system setting wins unless they picked
 * a side in the header, which stamps `data-theme` on <html>.
 */

/* ---------------------------------------------------------------- Tokens */

:root {
  color-scheme: light;

  /* Light paper close to neutral: the warmer #f7f5f0 before turned yellowish under the blue light.
     Benny asked for it on 2026-10-24. */
  --paper: #f6f6f4;
  --paper-raised: #ffffff;
  --paper-sunk: #ededeb;
  --ink: #191814;
  --ink-2: #57544c;
  --ink-3: #6b685f;
  --rule: rgba(25, 24, 20, 0.14);
  --rule-soft: rgba(25, 24, 20, 0.07);
  --accent: #1f5fe0;
  --accent-ink: #ffffff;
  --accent-soft: rgba(31, 95, 224, 0.09);
  /* Small link text in the accent, a touch nearer the ink: the plain accent falls just under 4.5:1
     where the site's glow lies behind it. One declaration serves both themes, as it is mixed from
     the two tokens each theme sets. */
  --accent-text: color-mix(in srgb, var(--accent) 85%, var(--ink));
  --danger: #c4372b;
  --shadow: 0 1px 1px rgba(25, 24, 20, 0.04), 0 8px 24px -12px rgba(25, 24, 20, 0.22);
  --grain-opacity: 0.4;
  --glow: color-mix(in srgb, var(--accent) 30%, transparent);
  --glow-2: color-mix(in srgb, var(--accent) 20%, transparent);
  --masthead-paper: 58%;

  --display: Constantia, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, "SFMono-Regular", Menlo, monospace;

  --measure: 34rem;
  --page: 70rem;

  /* One set of motion tokens for the whole sheet. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --hover: 0.15s;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #121316;
    --paper-raised: #1a1c21;
    --paper-sunk: #0d0e11;
    --ink: #ece9e2;
    --ink-2: #a6a29a;
    --ink-3: #8d8a83;
    --rule: rgba(236, 233, 226, 0.15);
    --rule-soft: rgba(236, 233, 226, 0.07);
    --accent: #78a8ff;
    --accent-ink: #0b1220;
    --accent-soft: rgba(120, 168, 255, 0.12);
    --danger: #ff8a7a;
    --shadow: 0 1px 1px rgba(0, 0, 0, 0.4), 0 10px 30px -14px rgba(0, 0, 0, 0.8);
    --grain-opacity: 0.55;
    --glow: color-mix(in srgb, var(--accent) 16%, transparent);
    --glow-2: color-mix(in srgb, var(--accent) 9%, transparent);
    --masthead-paper: 70%;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121316;
  --paper-raised: #1a1c21;
  --paper-sunk: #0d0e11;
  --ink: #ece9e2;
  --ink-2: #a6a29a;
  --ink-3: #8d8a83;
  --rule: rgba(236, 233, 226, 0.15);
  --rule-soft: rgba(236, 233, 226, 0.07);
  --accent: #78a8ff;
  --accent-ink: #0b1220;
  --accent-soft: rgba(120, 168, 255, 0.12);
  --danger: #ff8a7a;
  --shadow: 0 1px 1px rgba(0, 0, 0, 0.4), 0 10px 30px -14px rgba(0, 0, 0, 0.8);
  --grain-opacity: 0.55;
  --glow: color-mix(in srgb, var(--accent) 16%, transparent);
  --glow-2: color-mix(in srgb, var(--accent) 9%, transparent);
  --masthead-paper: 70%;
}

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

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

/* theme.js sets this on <html> for the moment the appearance changes, so every element flips in
   one step instead of fading from the old colours. */
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
  transition: none !important;
}

html {
  scroll-padding-top: 5rem;
}

/* A jump within the page glides, except for a visitor who asked for less motion: it lands at once. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Figures as tall as capitals and on one line. Constantia, the display face, sets old-style
     figures by default, whose 3 and 5 hang below the line like lowercase letters; in "35 Arten" the
     number looked set off. The other faces have lining figures already. Benny asked on 2026-10-24. */
  font-variant-numeric: lining-nums;
}

/* Paper has a surface. One inline SVG, no request, and faint enough never to touch legibility. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* A soft glow of the accent over the site, like the store images, sized to the window. A large
   light from the top right corner at the head of each page; then, on a page of sections, a light on
   the top edge of each further section, from the right and the left in turn. Each section's light is
   centred on its rule and runs out both ways, into the section above and the one below, so no rule
   cuts it off. Their sizes follow the window's width, within limits for a phone and a wide screen.
   A wiki page and the changelog (.prose) count as one page, even with sections in their column.
   Only gradients, nothing loaded; fainter on light paper, where a tint shows more. Benny chose it on
   2026-10-24. */
body:not(:has(main:not(.prose) > section))::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(clamp(560px, 85vw, 1700px) clamp(380px, 55vw, 1050px) at 100% 0%, var(--glow), transparent 70%)
    no-repeat;
}

/* Nothing clips the lights, so the first one shows through the masthead from the top of the
   window. They run sideways no further than the page, and the last section and the colophon below
   it are taller than half a light, so none runs past the page's end. */
body {
  position: relative;
}

main > section {
  position: relative;
}

main:not(.prose) > section::before {
  --rx: clamp(420px, 60vw, 1150px);
  --ry: clamp(260px, 32vw, 620px);
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: calc(var(--ry) * -0.7);
  height: calc(var(--ry) * 1.4);
  pointer-events: none;
  background: radial-gradient(var(--rx) var(--ry) at 100% 50%, var(--glow), transparent 70%);
}

main:not(.prose) > section:nth-of-type(even)::before {
  background: radial-gradient(var(--rx) var(--ry) at 0% 50%, var(--glow-2), transparent 70%);
}

main:not(.prose) > section:first-of-type::before {
  --rx: clamp(560px, 85vw, 1700px);
  --ry: clamp(380px, 55vw, 1050px);
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: from-font;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Only for the keyboard. A tap on the way back up lands focus here too, and on a phone the box would
   then stand in the corner for no reason. Safari counts that focus as :focus-visible anyway, so
   theme.js marks a jump by finger or mouse `data-quiet` until a key press or until focus leaves. */
.skip:focus-visible:not([data-quiet]) {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper-raised);
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--ink-3);
  flex: none;
}

/* ---------------------------------------------------------------- Header */

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) var(--masthead-paper), transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--rule);
}

/* One typeface for the whole bar, the keyboard's monospace the brand was already set in. The page
   links run the bar's full height, so the current one can claim its segment of the rule underneath:
   the same marker the wiki sidebar uses for the open page. */
.masthead__inner {
  display: flex;
  align-items: stretch;
  gap: clamp(0.75rem, 3vw, 2rem);
  min-height: 4rem;
  font-family: var(--mono);
}

.brand {
  align-self: center;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

/* The product's own mark, the same file the browser tab loads, so the header and the tab agree.
   It replaced an abstract rotated square: the app has a mark of its own now, and showing two would
   be one too many.

   Sized and placed against the capitals, not against the line box. It inherits the brand's
   `align-items: baseline`, so its lower edge sits on the wordmark's baseline, and `top` then pushes
   it down by a tenth of the type size. That lands the middle of the drawing on the middle of the
   capitals: cap height here is 0.79em, so their middle is 0.395em above the baseline. Centring it
   on the line box instead puts it about a pixel low, because "SnipStack" has a descender in the p
   and nothing balancing it above.

   One em square, and the drawing fills 90 % of that, so it stands a touch taller than the capitals
   and reads as a mark rather than as another letter. */
.brand__mark {
  width: 1em;
  height: 1em;
  position: relative;
  top: 0.1em;
}

.masthead__pages {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  margin-left: auto;
}

.masthead__pages a {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}

.masthead__pages a:hover,
.masthead__pages a:focus-visible,
.masthead__pages a[aria-current] {
  color: var(--ink);
}

/* The link is as tall as the bar, so its ring would stand taller than the bar and leave the window at
   the top. It goes round the label instead, the same 2 px at the same 3 px distance. */
.masthead__pages a:focus-visible {
  outline: none;
}

.masthead__pages a:focus-visible > span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* The page links are counted like the feature list on the start page, which makes the bar read as a
   contents line rather than two loose words. Muted, and hidden from screen readers in the markup. */

/* Drawn over the bar's own rule, exactly as wide as the word above it. */
.masthead__pages a[aria-current]::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--accent);
}

/* The language and the appearance set up the page rather than lead anywhere, so they sit apart
   from the page links, past a hairline that only runs as tall as the switches. */
.masthead__tools {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: clamp(0.75rem, 2.5vw, 1.5rem);
  border-left: 1px solid var(--rule);
}

/* The switches are one family: a round button of raised paper in a rule, the language as its
   short code and the appearance as the icon of its current state. Both codes are two letters, so
   the bar does not shift when the page changes language. Whole pixels throughout, 30 px with a
   16 px icon, so the icon lands on the pixel grid and sits in the middle rather than half a pixel
   off. The pause control of a page whose pictures loop is not one of them: it stands in the window's
   corner, see `.motion-toggle`. */
.lang a,
.theme {
  display: grid;
  place-items: center;
  height: 30px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  /* Half see-through, like the masthead, so the light shows through them too. */
  background: color-mix(in srgb, var(--paper-raised) 45%, transparent);
  color: var(--ink-2);
}

/* The code is a block trimmed to its capitals, so the button centres the letters themselves rather
   than a line with room for descenders under them; text-box only trims a block, which is why the
   code has an element of its own. A browser without text-box gets a pixel of padding on top, about
   what the trim would have moved. The extra start padding balances the tracking after the last
   letter. */
.lang a {
  min-width: 2.4rem;
  padding: 0 0.55rem 0 calc(0.55rem + 0.1em);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.lang__code {
  display: block;
  text-box: trim-both cap alphabetic;
}

@supports not (text-box: trim-both cap alphabetic) {
  .lang a {
    padding-top: 1px;
  }
}

.theme {
  width: 30px;
  padding: 0;
  cursor: pointer;
}

/* The pause control stands fixed in the window's bottom corner, the same size and look as the way
   back up (`.to-top`, Back to the top), which stands above it once the page has been scrolled. At the
   top of a page that corner is free. theme.js marks the root `has-motion-toggle` when it shows the
   control, and the rules after the way back up (`.to-top`) make room for it. */
.motion-toggle {
  position: fixed;
  z-index: 4;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-raised);
  color: var(--ink-2);
  cursor: pointer;
}

/* Shipped hidden: theme.js shows it, as without the script it would do nothing. */
.motion-toggle[hidden] {
  display: none;
}

/* A visitor who asked for less motion sees the pictures stand still, so there is nothing to pause. */
@media (prefers-reduced-motion: reduce) {
  .motion-toggle {
    display: none;
  }
}

.lang a:hover,
.theme:hover,
.motion-toggle:hover,
.motion-toggle[aria-pressed="true"] {
  border-color: var(--ink-3);
  background: var(--paper-raised);
  color: var(--ink);
}

/* On a phone the buttons stay 30 px to the eye, but a finger gets 44: an invisible layer reaches
   8 px past the inside of the 1 px rule on every side, 30 - 2 + 16 = 44. The pause control is 44 px
   already. */
@media (max-width: 40rem) {
  .lang a,
  .theme {
    position: relative;
  }

  .lang a::before,
  .theme::before {
    content: "";
    position: absolute;
    inset: -8px;
  }
}

.theme svg {
  width: 16px;
  height: 16px;
  display: none;
}

.motion-toggle svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* The icon shows what a click does not: while the pictures play it is the pause, while they are
   paused it is the play (the label stays the same, aria-pressed carries the state). */
.motion-toggle [data-icon="play"],
.motion-toggle[aria-pressed="true"] [data-icon="pause"] {
  display: none;
}

.motion-toggle[aria-pressed="true"] [data-icon="play"] {
  display: block;
}

.theme[data-choice="system"] [data-icon="system"],
.theme[data-choice="light"] [data-icon="light"],
.theme[data-choice="dark"] [data-icon="dark"] {
  display: block;
}

/* ---------------------------------------------------------------- Hero */

.hero {
  padding-block: clamp(3rem, 7vw, 4.5rem) clamp(3.5rem, 7vw, 5.5rem);
}

/* After the design's start page: everything on one centred axis, the demo below the words. */
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero__lead {
  max-width: 36rem;
  margin: 1.5rem 0 0;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 2rem 0 0;
}

.hero__facts {
  margin: 1.25rem 0 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* Under the facts near the download, on the start page: what a visitor coming from Windows' own
   history wants to know first, as a quiet link into the help. */
.hero__note {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
}

/* The drawings that play themselves, the hero's popup and the scenes, behave like a video: nothing
   in them can be selected, hovered or clicked. Benny asked for this on 2026-10-23. Each is one
   picture to a screen reader anyway (role="img" or aria-hidden). */
.finder,
.scene {
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}

.finder *,
.scene * {
  pointer-events: none;
}

/* The demo under the words: the popup as the program draws it, its own tokens and sizes taken from
   the app (styles/tokens.css, popup/popup.css), only wider, on a dotted stage of the site's own, so
   the program's cooler colours read as a picture of the program rather than a part of the page.
   Benny chose the stage over the popup in the site's colours on 2026-10-23. finder.js plays someone
   searching in it; without the script, or with less motion, it stands still as it opens. */
.finder {
  --pop-bg: #f6f6f8;
  --pop-layer: #ffffff;
  --pop-layer-alt: #f6f6f8;
  --pop-stroke: rgba(0, 0, 0, 0.0578);
  --pop-stroke-strong: rgba(0, 0, 0, 0.4458);
  --pop-divider: rgba(0, 0, 0, 0.06);
  --pop-text: rgba(0, 0, 0, 0.8956);
  --pop-text-2: rgba(0, 0, 0, 0.6063);
  --pop-text-3: rgba(0, 0, 0, 0.4458);
  --pop-fill: rgba(0, 0, 0, 0.045);
  --pop-accent: #1f5fe0;
  --pop-accent-tint: rgba(31, 95, 224, 0.11);
  --pop-selection: rgba(31, 95, 224, 0.16);
  width: 46rem;
  max-width: 100%;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(0.75rem, 3vw, 2rem);
  border-radius: 16px;
  background-color: var(--paper-sunk);
  background-image: radial-gradient(var(--rule) 1px, transparent 1px);
  background-size: 20px 20px;
  box-shadow: inset 0 0 0 1px var(--rule-soft);
  text-align: left;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .finder {
    --pop-bg: #26262a;
    --pop-layer: #26262a;
    --pop-layer-alt: #2d2d32;
    --pop-stroke: rgba(255, 255, 255, 0.0837);
    --pop-stroke-strong: rgba(255, 255, 255, 0.5442);
    --pop-divider: rgba(255, 255, 255, 0.06);
    --pop-text: #ffffff;
    --pop-text-2: rgba(255, 255, 255, 0.786);
    --pop-text-3: rgba(255, 255, 255, 0.5442);
    --pop-fill: rgba(255, 255, 255, 0.065);
    --pop-accent: #78a8ff;
    --pop-accent-tint: rgba(120, 168, 255, 0.16);
    --pop-selection: rgba(120, 168, 255, 0.22);
  }
}

:root[data-theme="dark"] .finder {
  --pop-bg: #26262a;
  --pop-layer: #26262a;
  --pop-layer-alt: #2d2d32;
  --pop-stroke: rgba(255, 255, 255, 0.0837);
  --pop-stroke-strong: rgba(255, 255, 255, 0.5442);
  --pop-divider: rgba(255, 255, 255, 0.06);
  --pop-text: #ffffff;
  --pop-text-2: rgba(255, 255, 255, 0.786);
  --pop-text-3: rgba(255, 255, 255, 0.5442);
  --pop-fill: rgba(255, 255, 255, 0.065);
  --pop-accent: #78a8ff;
  --pop-accent-tint: rgba(120, 168, 255, 0.16);
  --pop-selection: rgba(120, 168, 255, 0.22);
}

/* The window: 460 px tall, a little under the program's default 530 so the hero leaves room for
   the page; the last row runs under the footer as in a list that scrolls. A 1 px stroke, 12 px
   corners; the shadow stands in for the one Windows draws around it. */
.popup {
  display: flex;
  flex-direction: column;
  height: 460px;
  overflow: hidden;
  border: 1px solid var(--pop-stroke);
  border-radius: 12px;
  background: var(--pop-bg);
  box-shadow: var(--shadow);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--pop-text);
}

.popup svg {
  display: block;
}

.popup__header {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 10px 8px 8px;
}

.popup__search {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  height: 32px;
  margin-right: 6px;
  border-radius: 8px;
  background: var(--pop-fill);
}

/* The field with the focus: the layer colour and the accent ring over the off look. */
.popup__ring {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: var(--pop-layer);
  box-shadow: 0 0 0 1px var(--pop-accent), 0 0 0 4px var(--pop-accent-tint);
  opacity: 0;
}

.finder--focused .popup__ring {
  opacity: 1;
}

.popup__search-icon {
  position: relative;
  margin-left: 10px;
  color: var(--pop-text-2);
}

.popup__field {
  position: relative;
  flex: 1;
  display: grid;
  min-width: 0;
  margin-left: 6px;
}

.popup__field > * {
  grid-area: 1 / 1;
  white-space: nowrap;
}

.popup__placeholder {
  color: var(--pop-text-3);
}

.finder--typed .popup__placeholder {
  visibility: hidden;
}

/* What the play types, and its cursor: before the first letter while the field is empty, so it
   never stands in the placeholder, then after the last one typed. */
.popup__typing {
  display: flex;
  align-items: center;
  justify-self: start;
}

.popup__caret {
  width: 1px;
  height: 16px;
  margin-left: 1px;
  background: var(--pop-text);
  visibility: hidden;
}

.finder--focused:not(.finder--typed) .popup__caret {
  margin-left: -3px;
}

.finder--focused .popup__caret {
  visibility: visible;
}

@media (prefers-reduced-motion: no-preference) {
  .finder--focused .popup__caret {
    animation: popup-caret 1.06s steps(1, end) infinite;
  }
}

/* While keys come the cursor stays lit, as Windows keeps it. */
.finder--keying .popup__caret {
  animation: none;
}

@keyframes popup-caret {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.popup__filter {
  position: relative;
  display: grid;
  place-items: center;
  height: 24px;
  min-width: 28px;
  margin-right: 4px;
  border-radius: 6px;
  color: var(--pop-text-2);
}

.popup__button {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--pop-text-2);
}

.popup__button--small {
  width: 24px;
  height: 24px;
}

.popup__list {
  flex: 1;
  display: block;
  min-height: 0;
  padding: 0 8px 6px;
  overflow: hidden;
}


.popup__divider {
  height: 1px;
  margin: 4px 8px;
  background: var(--pop-divider);
}

.popup__row {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 6px 0 20px;
  border-radius: 8px;
}

.popup__row--selected {
  background: var(--pop-selection);
}

.popup__indicator {
  position: absolute;
  left: 0;
  top: 14px;
  width: 3px;
  height: 16px;
  border-radius: 2px;
}

.popup__row--clipboard .popup__indicator {
  background: var(--pop-accent);
}

.popup__digit {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  display: flex;
  align-items: center;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: var(--pop-text-3);
}

.popup__icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--pop-text-2);
}

.popup__icon--image {
  color: var(--pop-accent);
}

.popup__preview {
  overflow: hidden;
  font-size: 13px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popup__preview--code {
  font-family: "Cascadia Code", "Cascadia Mono", Consolas, ui-monospace, monospace;
}

.popup__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 6px;
  font-size: 12px;
  white-space: nowrap;
  color: var(--pop-text-2);
}

.popup__pinned {
  color: var(--pop-accent);
}

/* A source without its real icon, drawn as the program draws a website without a favicon. */
.popup__tile {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--tile);
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}

.popup__actions {
  display: flex;
  gap: 2px;
}

.popup__action {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--pop-text-2);
}

.popup__action--on {
  color: var(--pop-accent);
}

.popup__footer {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  border-top: 1px solid var(--pop-divider);
  background: var(--pop-layer-alt);
  font-size: 11px;
  color: var(--pop-text-2);
}

.popup__hints {
  display: flex;
  gap: 10px;
}

.popup__hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.popup__kbd {
  padding: 0 4px;
  border: 1px solid var(--pop-stroke-strong);
  border-radius: 3px;
  background: none;
  font-family: inherit;
  font-size: 11px;
  line-height: 16px;
  min-width: 0;
}

.popup__count {
  flex: 1;
  margin-right: 6px;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 40rem) {
  .popup__hint:nth-child(n + 2),
  .popup__count {
    display: none;
  }

  .popup__hints {
    flex: 1;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.35rem;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color var(--hover) ease;
}

.button::after {
  content: "\2192";
  font-family: var(--mono);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* Lifted onto the middle of the letters beside it, as the changelog's badge dot is. */
.tag::before {
  transform: translateY(-0.05em);
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* The product, drawn in the page: there are no screenshots yet, and a picture of the popup is the
   one thing a visitor wants to see. Same parts and the same order as the real window. */
.figure {
  margin: 0;
}

.figure__frame {
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 0.8125rem;
}

.mock__search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-3);
}

.mock__search::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  flex: none;
  opacity: 0.8;
}

.mock__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--rule-soft);
}

.mock__chip {
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.6875rem;
  color: var(--ink-2);
}

.mock__chip--on {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
}

.mock__row {
  display: grid;
  grid-template-columns: 1.1rem 1fr auto;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid var(--rule-soft);
}

.mock__row--on {
  background: var(--accent-soft);
  box-shadow: inset 2px 0 0 var(--accent);
}

.mock__digit {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-3);
}

.mock__row--on .mock__digit {
  color: var(--accent);
  font-weight: 700;
}

.mock__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock__text--code {
  font-family: var(--mono);
  font-size: 0.75rem;
}

.mock__meta {
  font-size: 0.6875rem;
  color: var(--ink-3);
  white-space: nowrap;
}

.mock__foot {
  display: flex;
  gap: 1rem;
  padding: 0.55rem 0.85rem;
  background: var(--paper-sunk);
  font-size: 0.6875rem;
  color: var(--ink-3);
}

.mock__foot span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.figure figcaption {
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

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

.band {
  border-top: 1px solid var(--rule);
  padding-block: clamp(3rem, 7vw, 5rem);
}

.band h2 {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

/* The features read like a contents page, not a deck of cards. */
/* Rules run across, never down: how many columns fit is up to the screen, and a vertical rule
   drawn by nth-child lands in a different place at every width. */
.contents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  column-gap: clamp(1.75rem, 4vw, 3.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule-soft);
}

.contents li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0 0.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

.contents__num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 0.35rem;
}

.contents h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}

.contents p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

.index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.25rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.index a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink);
  text-decoration: none;
}

.index a::after {
  content: "\2192";
  margin-left: auto;
  font-family: var(--mono);
  color: var(--ink-3);
  transition: color var(--hover) ease;
}

.index a:hover {
  color: var(--accent);
}

.index a:hover::after {
  color: var(--accent);
}

.band__lead {
  max-width: var(--measure);
  margin: -1.5rem 0 1.75rem;
  color: var(--ink-2);
}

/* The download page: the icon, the one button and what to know before pressing it, centred like a
   title page; then the newest version's highlights. */
.get {
  padding-block: clamp(3rem, 7vw, 4.5rem) clamp(3rem, 7vw, 5rem);
}

.get__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* The mark gives off the site's light: two soft halos of the accent that follow its shape, a close
   one and a wide one, so the glow seems to come from the icon above the one button. Fainter on light
   paper, where a tint shows more. */
.get__mark {
  --mark-glow: color-mix(in srgb, var(--accent) 30%, transparent);
  --mark-glow-2: color-mix(in srgb, var(--accent) 15%, transparent);
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 0 14px var(--mark-glow)) drop-shadow(0 0 36px var(--mark-glow-2));
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .get__mark {
    --mark-glow: color-mix(in srgb, var(--accent) 34%, transparent);
    --mark-glow-2: color-mix(in srgb, var(--accent) 18%, transparent);
  }
}

:root[data-theme="light"] .get__mark {
  --mark-glow: color-mix(in srgb, var(--accent) 34%, transparent);
  --mark-glow-2: color-mix(in srgb, var(--accent) 18%, transparent);
}

/* As the page opens the mark rises in with the words below it, as the start page's title does
   (.reveal), and its glow grows from nothing to its resting strength and stays: a welcome, not a
   breath, so nothing seems to stop halfway. Benny asked for it on 2026-10-24. */
@media (prefers-reduced-motion: no-preference) {
  .reveal > .get__mark {
    animation:
      rise 0.7s var(--ease-out) both,
      mark-glow-in 1.4s var(--ease-out) 0.2s both;
  }
}

/* Only the reach grows, from none (the halo hidden under the mark) to its resting size; the colour
   stays as it is, because Chrome blends transparent into a mixed colour wrongly mid-way. */
@keyframes mark-glow-in {
  from { filter: drop-shadow(0 0 0 var(--mark-glow)) drop-shadow(0 0 0 var(--mark-glow-2)); }
  to { filter: drop-shadow(0 0 14px var(--mark-glow)) drop-shadow(0 0 36px var(--mark-glow-2)); }
}

.get h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.get__lead {
  max-width: 36rem;
  margin: 1.25rem auto 0;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.get__button {
  margin-top: 2rem;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

/* In place of the button while the download is paused: a quiet note, not a link. */
.get__paused {
  max-width: 32rem;
  margin: 2rem auto 0;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.get__meta {
  margin: 1.25rem 0 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* Under the meta line, the way through Windows' warning on the first start, small and quiet. */
.get__help {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
}

/* The page for an unknown address says it twice, English first, then German under a soft rule, set
   one step smaller so the two do not compete. */
.get__other {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding-top: clamp(2rem, 5vw, 2.75rem);
  border-top: 1px solid var(--rule-soft);
  width: min(100%, 36rem);
}

.get__other h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.get__other .get__lead {
  margin-top: 0.75rem;
  font-size: 1rem;
}

.get__other .get__help {
  margin-top: 1rem;
}

/* The pricing page, after the design: a centred head, three tiers in a row (the middle one raised
   with the accent) and the questions under them. Only ever built for this machine (build.mjs). */
.pricing {
  padding-block: clamp(3rem, 7vw, 4.5rem) clamp(3rem, 7vw, 5rem);
}

.pricing__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.pricing__head h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.pricing__lead {
  max-width: 36rem;
  margin: 1.25rem auto 0;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.pricing__beta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 40rem;
  margin: 1.5rem auto 0;
  padding: 0.6rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper-raised);
  font-size: 0.875rem;
  color: var(--ink-2);
  text-align: left;
}

.hero__dot {
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* One row of tiers. Where three do not fit, the row swipes sideways and each tier snaps into place,
   rather than one tier falling alone onto a second row; the end fades out to say there is more.
   The padding gives the raised tier's shadow room inside the scrolling row. Benny asked for it on
   2026-10-24. */
.tiers {
  display: flex;
  gap: 1rem;
  margin: -1rem -1rem 0;
  padding: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1rem;
  scrollbar-width: thin;
}

/* Like slides: a tier snaps to the middle and a swipe moves exactly one on, however hard. */
.tiers > .tier {
  flex: 1 0 min(19rem, 85%);
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

/* Where the row swipes, it opens on Pro in the middle, and dots under it say which tier is in view
   and take a click (theme.js, `.slide-dots`). */
@media (max-width: 66rem) {
  .tiers {
    scrollbar-width: none;
  }

  /* Each tier as wide as a slide, so the row clearly swipes. Where all three almost fit, the row
     would move only a few pixels, and Chrome then lit the wrong dot while Pro stood in the middle. */
  .tiers > .tier {
    flex-basis: min(24rem, 85%);
  }

  /* The first and the last tier snap into the middle too: an empty spacer at each end, half the
     room beside a tier, lets the row scroll that far (less the gap the spacer brings). */
  .tiers {
    padding-inline: 0;
    scroll-padding-inline: 0;
  }

  .tiers::before,
  .tiers::after {
    content: "";
    flex: 0 0 calc((100% - min(24rem, 85%)) / 2 - 1rem);
  }

}

.tier {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.6rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper-raised);
}

.tier--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.tier__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.tier--featured .tier__name {
  color: var(--accent);
}

.tier__tag {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--accent);
}

.tier__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.tier__price span {
  font-family: var(--display);
  font-size: 2.75rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.tier__sub {
  min-height: 2.6em;
  margin: 0.5rem 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}

.tier__items {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
  padding: 1.1rem 0 0;
  list-style: none;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.9375rem;
}

.tier__items li {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.6rem;
  line-height: 1.45;
}

.tier__items li::before {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
}

.tier__cta {
  justify-content: center;
  margin-top: auto;
}

/* The amount Pro's buyer chooses: a range in the accent under the price, the lowest and highest
   amount at its ends. */
.tier__slider {
  display: grid;
  gap: 0.35rem;
  margin: 0.9rem 0 0;
}

.tier__slider-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.tier__slider input {
  width: 100%;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.tier__range {
  display: flex;
  justify-content: space-between;
  margin: 0.2rem 0 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-3);
}

.tier__note {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-3);
  text-wrap: pretty;
}

/* The wiki overview at /wiki, after the design: a centred title, one line and the search, then every
   page as a numbered entry with what it covers, in columns of at least 24 rem with rules across and
   never down, like the feature list. */
.overview {
  padding-block: clamp(3rem, 7vw, 4.5rem) clamp(3rem, 7vw, 5rem);
}

/* Above the list: the pages rise in with an animation that keeps its end state, which puts each on a
   layer of its own, and the search's results, which open over them, would sit underneath. */
.overview__head {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.overview__head h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.overview__lead {
  max-width: 36rem;
  margin: 1.25rem auto 0;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* On the overview the field is as wide as its results, 30rem, and the results take its width
   exactly. In the wiki's narrow sidebar the results stay wider than the field, or their passages would
   be too cramped to read. */
.overview__head .search {
  width: min(100%, 30rem);
  margin-top: 1.75rem;
  text-align: left;
}

.overview__head .search__panel {
  width: 100%;
}

.overview__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  column-gap: clamp(1.75rem, 4vw, 3.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule-soft);
}

.overview__list li {
  border-bottom: 1px solid var(--rule-soft);
}

.overview__list a {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  gap: 0 0.5rem;
  padding: 1.25rem 0;
  color: var(--ink);
  text-decoration: none;
}

.overview__list a::after {
  content: "\2192";
  padding-top: 0.15rem;
  font-family: var(--mono);
  color: var(--ink-3);
  transition: color var(--hover) ease;
}

.overview__list a:hover {
  color: var(--accent);
}

.overview__list a:hover::after {
  color: var(--accent);
}

.overview__num {
  padding-top: 0.3rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.overview__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.overview__title {
  font-family: var(--display);
  font-size: 1.1875rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.overview__text {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.news h2,
.news__lead {
  text-align: center;
}

.news h2 {
  margin-bottom: 0.9rem;
}

.news__lead {
  max-width: 36rem;
  margin: 0 auto clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--ink-2);
  text-wrap: pretty;
}

.news__list {
  max-width: 46rem;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}

.news__row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 10rem) minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

.news__row dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.news__row dd {
  margin: 0;
}

.news__row dd p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.news__row .news__title {
  margin-bottom: 0.25rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.news__more {
  margin: 2rem 0 0;
  text-align: center;
}

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

/* The second button on a page: an outline that fills on hover, so the first one stays the one. */
.button--quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

/* On hover it fills with the accent like the first button, its edge with it, so no ring of ink is
   left round the blue. */
.button--quiet:hover {
  box-shadow: inset 0 0 0 1px var(--accent);
}

.tag--pro {
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  vertical-align: 0.15em;
}

.tag--pro::before {
  content: none;
}

/* The word sits in the middle of its box: the box is trimmed to the capitals and the baseline, so the
   padding above and below the letters is the same, rather than a line with room for descenders under
   them. The extra start padding balances the tracking after the last letter. A browser without
   text-box keeps the box as above. */
@supports (text-box: trim-both cap alphabetic) {
  .tag--pro {
    display: inline-block;
    padding: 0.5em 0.6em 0.5em calc(0.6em + 0.12em);
    line-height: 1;
    text-box: trim-both cap alphabetic;
  }
}

/* Beside a scene's title the badge sits on the middle of its capitals, measured: at 0.15em it stood
   about 2 px low against the larger display type (Benny, 2026-10-24). */
.demo h3 .tag--pro {
  vertical-align: 0.3em;
}

/* The features as scenes that play themselves: a drawing of the part of the program, moved by these
   rules alone, and the title and sentence under it. The rules for the drawing's parts are its still
   frame, the one a reader who turned motion off sees; the animations live only behind
   prefers-reduced-motion: no-preference. A round takes 5 to 10 s, by how much the scene has to show
   (`--scene-cycle`, set per scene with the motion). Only transform, opacity and colour change, so the
   page never relays out. */
.demos__lead {
  max-width: var(--measure);
  margin: calc(-1 * clamp(1rem, 2vw, 1.75rem)) 0 clamp(2rem, 4vw, 3rem);
  color: var(--ink-2);
  text-wrap: pretty;
}

.demos {
  --scene-cycle: 8s;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: clamp(2.25rem, 4vw, 3rem) clamp(1.75rem, 4vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Where only one scene fits in a row, the scenes swipe sideways like the pricing tiers: each snaps
   into the middle, a swipe moves exactly one on, the next one peeks in at the edge, and dots under
   the row say which is in view and take a click. Without scroll markers there are no dots and the
   swipe works the same. Benny asked for it on 2026-10-24. */
@media (max-width: 44rem) {
  .demos {
    display: flex;
    gap: 1rem;
    margin-inline: -1rem;
    padding: 0 0 0.25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .demos > .demo {
    flex: 0 0 min(19rem, 85%);
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  /* The first and the last scene snap into the middle too, as the tiers do. */
  .demos::before,
  .demos::after {
    content: "";
    flex: 0 0 calc((100% - min(19rem, 85%)) / 2 - 1rem);
  }

}

/* The dots under a row that swipes (theme.js), as OverTrack draws them: a dot of 6 px for each item,
   and as an item comes into the middle its dot grows into a pill of 16 px and takes the accent, in
   step with the swipe; `--t` runs from 0 (away) to 1 (in the middle). The accent is a layer whose
   opacity follows `--t`, so no colour has to be mixed. The button is larger than the dot it draws, so
   a finger finds it: 24 px wide and 26 px high, with the dots 12 px apart so the areas barely overlap.
   The resting dot is `--ink-3`, which stands out from the page by more than 3:1. */
.slide-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 1rem;
}

.slide-dots[hidden] {
  display: none;
}

.slide-dot {
  --t: 0;
  position: relative;
  width: calc(6px + 10px * var(--t));
  height: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--ink-3);
  cursor: pointer;
}

.slide-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  opacity: var(--t);
}

.slide-dot::before {
  content: "";
  position: absolute;
  inset: -10px -9px;
}

.slide-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.demo h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}

.demo p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

/* The way on to where the wiki explains the scene: quiet, in the accent, its arrow stepping on as
   the pointer comes, as the wiki overview's do. */
.demo .demo__more {
  margin-top: 0.6rem;
  font-size: 0.875rem;
}

.demo__more a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-text);
  text-decoration: none;
}

/* The arrow is drawn, not read: the second declaration gives it an empty alternative text where a
   browser knows that form, and the first stays for one that does not. */
.demo__more a::after {
  content: "\2192";
  content: "\2192" / "";
  font-family: var(--mono);
}

/* Only the words are underlined: the arrow steps on beside them, and a line under it would break
   or have to move along. */
.demo__more a:hover span {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* The arrows step on only under a real pointer, so a tap on a phone does not leave one standing
   aside, and not at all for a visitor who asked for less motion. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .button::after,
  .demo__more a::after {
    transition: transform var(--hover) ease;
  }

  .index a::after,
  .overview__list a::after {
    transition: transform var(--hover) ease, color var(--hover) ease;
  }

  .button:hover::after,
  .index a:hover::after,
  .overview__list a:hover::after,
  .demo__more a:hover::after {
    transform: translateX(3px);
  }
}

.scene {
  position: relative;
  height: 13rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper-sunk);
  overflow: hidden;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.scene kbd {
  font-size: 0.6875rem;
}

.scene__doc {
  position: absolute;
  inset: 0.9rem 0.9rem auto;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  background: var(--paper-raised);
}

.scene__doc p {
  margin: 0;
}

.scene__line {
  display: flex;
  align-items: center;
  min-height: 1.4em;
  font-family: var(--mono);
  color: var(--ink);
}

.scene__doc p + .scene__line {
  margin-top: 0.3rem;
}

.scene__caret,
.scene__typed::after {
  display: inline-block;
  width: 1.5px;
  height: 1.1em;
  background: var(--ink);
}

/* The text that arrives in a line. A sentence too long for a narrow scene takes a second line
   rather than running out of its box; a value in an input field never has to. */
.scene__typed {
  min-width: 0;
  overflow-wrap: anywhere;
  opacity: 0;
}

.scene__input .scene__typed {
  white-space: nowrap;
}

.scene__typed::after {
  content: "";
  vertical-align: -0.2em;
  opacity: 0;
}

/* The waiting caret takes no room of its own, so the text that replaces it starts where the line does. */
.scene__line > .scene__caret {
  margin-right: -1.5px;
}

.scene__pop {
  position: absolute;
  top: 5.6rem;
  left: 1.6rem;
  width: min(16rem, calc(100% - 3.2rem));
  padding: 0.25rem 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
  transform-origin: top left;
}

.scene__pop--still {
  inset: 0.9rem 0.9rem auto;
  width: auto;
  padding: 0;
  overflow: hidden;
}

.scene__row {
  position: relative;
  display: block;
  height: 1.9rem;
  padding: 0 0.75rem;
  line-height: 1.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}

/* The selected row's tint, drawn over the row so it can fade without the row repainting. As in the
   program's popup: a rounded tint of the accent and no bar beside it. */
.scene__row--on::before,
.scene__row--entry::before,
.scene__row--newest::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  right: 0.25rem;
  top: 0;
  height: 100%;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.scene__keys {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  display: flex;
  gap: 0.3rem;
  margin: 0;
}

.scene__keys--enter,
.scene__keys--up,
.scene__keys--tab {
  opacity: 0;
}

/* Picture: a folder in Explorer, and Ctrl+V adds the picture as a PNG file. */
.scene__window {
  position: absolute;
  inset: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
}

.scene__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink);
}

.scene__files {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 0.65rem;
}

.scene__file {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 5.25rem;
  padding: 0.4rem 0.25rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  line-height: 1.25;
  text-align: center;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.scene__file > svg {
  color: var(--ink-3);
}

.scene__file--new {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  transform-origin: center;
}

.scene__file--new > svg {
  color: var(--accent);
}

/* The picture being copied: a photo on a page, in front of the folder, until Ctrl+C has taken it.
   It covers the folder's window whole, so nothing of it shows cut off behind the picture. */
.scene__photo {
  position: absolute;
  inset: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.45rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
  font-size: 0.6875rem;
  color: var(--ink-3);
  opacity: 0;
}

.scene__picture {
  flex: 1;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 35%, var(--paper-raised)), color-mix(in srgb, var(--accent) 12%, var(--paper-raised)));
  color: var(--accent);
}

.scene__picture > svg {
  width: 3.5rem;
  height: 3.5rem;
}

.scene__keys--copy {
  opacity: 0;
}

/* Field and trigger: the clip that fits, shown under the line, and the key that takes it. */
.scene__label {
  margin: 0 0 0.3rem;
  font-size: 0.6875rem;
  color: var(--ink-3);
}

.scene__input {
  height: 1.75rem;
  padding: 0 0.5rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Field, trigger and assign: the document and the clip under it stand one under the other in the
   scene's own flow. So the clip keeps its distance when a narrow scene wraps the document's text
   onto another line, where a fixed place put it over that text. */
.scene--field,
.scene--trigger,
.scene--assign {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.9rem;
}

.scene--field .scene__doc,
.scene--trigger .scene__doc,
.scene--assign .scene__doc {
  position: static;
  align-self: stretch;
}

.scene__hint {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 100%;
  margin: 0;
  padding: 0.35rem 0.4rem 0.35rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
  color: var(--ink-2);
}

/* A clip too long for a narrow scene takes a second line rather than losing its end. */
.scene__hint > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.scene__hint > kbd {
  flex: none;
}

/* The word and the text that takes its place share one spot, both starting on its first line; the
   line is sans, as a mail is. */
.scene__swap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  font-family: var(--sans);
}

.scene__swap > * {
  grid-area: 1 / 1;
  justify-self: start;
  align-self: start;
}

/* The word being typed: the caret alone, then the word a letter longer each time, all on the one
   spot. At rest only the whole word shows. */
.scene__words {
  display: grid;
}

.scene__word {
  grid-area: 1 / 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 1.4em;
  opacity: 0;
}

.scene__word--whole {
  opacity: 1;
}

.scene__word::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 1.1em;
  background: var(--ink);
}

/* App: a new message in Outlook, a window that fills the scene, and the popup opened inside it
   right under the window's title, with the window's frame around it. */
.scene__mail {
  position: absolute;
  inset: 0.9rem;
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  background: var(--paper-raised);
}

/* The title leaves the right end of its bar to the key caps and ends in an ellipsis before it
   would run under them, as a window's title does. */
.scene__apptitle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.45rem 3.75rem 0.45rem 0.75rem;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink);
}

.scene__apptitle > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene--app .scene__pop {
  top: 3.05rem;
  left: 1.6rem;
  width: calc(100% - 3.2rem);
}

/* The popup's two views share one spot: the entry "For Outlook" above the history, and the
   entry's own clips once Enter has opened it. At rest the first shows, the entry picked; while
   it plays, the clip picked at first is the newest of the history, as in the program. */
.scene__pop--app {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.scene__view {
  grid-area: 1 / 1;
  display: block;
  min-width: 0;
}

.scene__view--clips,
.scene__row--newest::before {
  opacity: 0;
}

/* The keys stand in the window's title bar, where the popup never reaches. */
.scene--app .scene__keys {
  top: 1.3rem;
  right: 1.5rem;
  bottom: auto;
}

.scene__row--source {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.scene__row--source > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.scene__divider {
  display: block;
  height: 1px;
  margin: 0.2rem 0.75rem;
  background: var(--rule-soft);
}

/* Transform: a clip, the menu Tab opens under it with its first entry picked, the result in the line. */
.scene__row--image {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.scene__row--image > svg {
  flex: none;
  color: var(--ink-2);
}

.scene__row--image > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The clip, and under it the menu Tab opens, hanging from its row. One under the other they fit a
   scene of any width; side by side, a narrow scene cut the clip's name short. */
.scene--transform .scene__pop {
  top: 4.2rem;
  left: 0.9rem;
  right: 0.9rem;
  width: auto;
}

.scene__menu {
  position: absolute;
  top: 6.85rem;
  left: 1.6rem;
  display: flex;
  flex-direction: column;
  min-width: 8.5rem;
  padding: 0.25rem 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
  transform-origin: top left;
}

.scene__menu span {
  position: relative;
  padding: 0.3rem 0.75rem;
  white-space: nowrap;
  color: var(--ink);
}

.scene__pick::before {
  content: "";
  position: absolute;
  inset: 0 0.25rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

/* Privacy: a copy from a password manager arrives in the list, masked. */
.scene__copy {
  position: absolute;
  top: 0.9rem;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
  white-space: nowrap;
  font-size: 0.6875rem;
  color: var(--ink-3);
  opacity: 0;
  transform: translateX(-50%);
}

.scene__copy b {
  font-family: var(--mono);
  letter-spacing: 0.15em;
  color: var(--ink);
}

.scene--privacy .scene__pop {
  top: 4.4rem;
  left: 0.9rem;
  right: 0.9rem;
  width: auto;
  padding: 0;
  overflow: hidden;
}

.scene__list {
  display: block;
}

.scene__row--masked {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  letter-spacing: 0.15em;
}

/* Why the clip is masked, as the program says it beside the lock; in a very narrow row it may end
   in an ellipsis, as the program's own rows do. */
.scene__lock {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

/* The features page's scenes, from here to the motion below. History: as the privacy scene, but the
   copy arrives readable. */
.scene--history .scene__pop {
  top: 4.4rem;
  left: 0.9rem;
  right: 0.9rem;
  width: auto;
  padding: 0;
  overflow: hidden;
}

.scene--history .scene__copy b {
  letter-spacing: 0;
}

/* Then F2 opens the new clip in the editor, which covers the list whole, so no row shows cut off
   behind it; one word changes, and as the editor closes the row takes the new text. */
.scene__editor {
  position: absolute;
  inset: 2.6rem 0.9rem 0.9rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
  opacity: 0;
  transform-origin: top left;
}

.scene__editor-body {
  display: flex;
  align-items: flex-start;
  margin: 0;
  padding: 0.6rem 0.75rem 0;
  color: var(--ink);
}

.scene__editor-body .scene__caret {
  flex: none;
}

.scene__edit {
  display: grid;
}

.scene__edit > * {
  grid-area: 1 / 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scene__now {
  opacity: 0;
}

.scene__keys--edit {
  opacity: 0;
}

/* F2 stands under the list, clear of its corner and of the scene's edge. */
.scene--history .scene__keys--edit {
  bottom: 0.4rem;
}

/* A small heading inside a panel. */
.scene__head {
  display: block;
  padding: 0.45rem 0.75rem 0.2rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Queue: a form, its fields filled in one after another. */
.scene--queue .scene__doc {
  display: grid;
  gap: 0.45rem;
}

.scene__field {
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr);
  align-items: center;
  margin: 0;
}

.scene__field .scene__label {
  margin: 0;
}

.scene__field .scene__input {
  height: 1.55rem;
  border-color: var(--rule);
  box-shadow: none;
}

.scene--queue .scene__typed {
  opacity: 1;
}

/* The cursor moves from field to field; a caret behind each value would blink in all three at once. */
.scene--queue .scene__typed::after {
  content: none;
}

.scene__keys--queue {
  opacity: 1;
}

/* Placeholder: the clip with its placeholders, then the text filled in. */
.scene--placeholder .scene__pop {
  top: 4.2rem;
  left: 0.9rem;
  right: 0.9rem;
  width: auto;
}

.scene__token {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--accent);
}

/* Field on a website: the address above the field. */
.scene__url {
  margin: -0.15rem 0 0.55rem !important;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--paper-sunk);
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* Assign: picking the field first, as the app does it. The clip's details in the main window offer
   "Choose an input field"; the window steps aside, the bar at the top says to click a field and the
   screen dims round the program's field; the pointer clicks it, SnipStack asks whether to assign it,
   and then, in use, the clip shows under the empty field and Tab puts it in. */
.scene--assign .scene__doc {
  margin-top: 1.7rem;
  z-index: 2;
}

.scene__dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--paper-sunk);
  opacity: 0;
}

.scene__pickbar {
  position: absolute;
  top: 0.45rem;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
  width: max-content;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0;
  transform: translateX(-50%);
}

.scene__pickbar > svg {
  color: var(--accent);
}

.scene__pointer {
  position: absolute;
  top: 5.6rem;
  left: 40%;
  z-index: 5;
  color: var(--ink);
  opacity: 0;
}

.scene__pointer > svg {
  display: block;
}

/* Both stand in front of the program's field and cover it whole, edge to edge. */
.scene__panel,
.scene__ask {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  z-index: 4;
  padding: 0.5rem 0.75rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
  opacity: 0;
}

.scene__panel {
  top: 1.6rem;
  padding: 0.25rem 0 0.65rem;
}

.scene__panel .scene__head {
  padding-top: 0.6rem;
}

.scene__panel-button {
  display: inline-block;
  margin: 0.15rem 0.75rem 0;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 5px;
  color: var(--ink);
}

.scene__ask {
  top: 2.6rem;
}

.scene__ask-title {
  margin: 0 0 0.3rem;
  color: var(--ink);
  font-weight: 600;
}

.scene__ask-place {
  margin: 0 0 0.6rem;
  color: var(--ink-2);
}

.scene__ask-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: 0;
}

.scene__ask-quiet,
.scene__ask-button {
  padding: 0.2rem 0.65rem;
  border-radius: 5px;
}

.scene__ask-quiet {
  border: 1px solid var(--rule);
  color: var(--ink);
}

.scene__ask-button {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Anywhere: formatted text copied from a page, pasted plain into a mail with the shortcut. */
.scene--anywhere .scene__copy {
  top: 5.6rem;
  color: var(--ink);
  font-size: 0.75rem;
}

.scene__rich b {
  font-family: var(--display);
  font-size: 0.875rem;
  letter-spacing: 0;
  color: var(--accent);
}

.scene__rich u {
  text-decoration-color: var(--accent);
}

.scene__plain {
  font-family: var(--sans);
}

/* The features page: links under the title to its categories, set like the header's page links. */
.overview__head--features {
  margin-bottom: 0;
}

.jump ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.jump a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

/* On the features page each feature is a row of its own, the words beside the scene, so it reads
   rather than skims; the scene changes sides from row to row. Benny asked for it to be clear rather
   than compact on 2026-10-27. On a phone the scene stands above its words. */
.demos--all {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-soft);
}

.demos--all > .demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
  grid-template-areas:
    "title scene"
    "text scene"
    "more scene";
  grid-template-rows: 1fr auto 1fr;
  column-gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--rule-soft);
}

.demos--all > .demo:nth-child(even) {
  grid-template-columns: minmax(0, 27rem) minmax(0, 1fr);
  grid-template-areas:
    "scene title"
    "scene text"
    "scene more";
}

.demos--all .scene {
  grid-area: scene;
  height: 14rem;
  margin: 0;
}

.demos--all .demo h3 {
  grid-area: title;
  align-self: end;
  margin-bottom: 0.6rem;
  font-size: clamp(1.375rem, 2.4vw, 1.625rem);
}

.demos--all .demo > p:not(.demo__more) {
  grid-area: text;
  max-width: var(--measure);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.demos--all .demo .demo__more {
  grid-area: more;
  align-self: start;
  margin-top: 0.9rem;
  font-size: 0.9375rem;
}

/* Under a category's scenes, what needs no picture: a title, a sentence and the way into the help,
   in columns, rules across as in the contents list. */
.more-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  column-gap: clamp(1.75rem, 4vw, 3.5rem);
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding: 0;
  list-style: none;
}

.more-list:empty {
  display: none;
}

.more-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

.more-list h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}

.more-list p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

.more-list .demo__more {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

@media (max-width: 44rem) {
  .demos--all {
    display: grid;
    margin-inline: 0;
    overflow: visible;
  }

  .demos--all::before,
  .demos--all::after {
    content: none;
  }

  .demos--all > .demo,
  .demos--all > .demo:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "scene"
      "title"
      "text"
      "more";
    grid-template-rows: auto;
  }

  .demos--all .scene {
    margin-bottom: 1.25rem;
  }
}

/* How long one round of each scene takes. A scene with more steps gets more time, so every one of
   them moves at about the same pace: a step every half second to a second, the result held for about
   two seconds so it can be read, then the first frame again. Benny found the scenes standing still
   for long stretches when they all shared 8 s (snipstack-website#104). */
.scene--field,
.scene--privacy {
  --scene-cycle: 5s;
}

.scene--picture,
.scene--trigger,
.scene--app,
.scene--transform,
.scene--queue,
.scene--anywhere,
.scene--placeholder {
  --scene-cycle: 6s;
}

.scene--history {
  --scene-cycle: 7s;
}

.scene--assign {
  --scene-cycle: 10s;
}

@media (prefers-reduced-motion: no-preference) {
  .scene *,
  .scene *::before,
  .scene *::after {
    animation-duration: var(--scene-cycle);
    animation-timing-function: var(--ease-out);
    animation-iteration-count: infinite;
    animation-fill-mode: both;
  }

  /* What most scenes end on: the text is there whole from one frame to the next, as pasted text is.
     It is never wiped in from the left, which draws letters cut in half on the way. Until then the
     caret waits at the start of the line; after, it blinks behind the text. */
  .scene__typed { animation-name: scene-pasted; }
  .scene__line > .scene__caret { animation-name: scene-caret-waits; }
  .scene__typed::after { animation: popup-caret 1.06s steps(1, end) infinite; }

  .scene--picture .scene__photo { animation-name: scene-picture-photo; }
  .scene--picture .scene__keys--copy { animation-name: scene-picture-copy; }
  .scene--picture .scene__keys--open { animation-name: scene-picture-paste; }
  .scene--picture .scene__file--new { animation-name: scene-picture-file; }

  .scene--field .scene__hint { animation-name: scene-field-hint; }
  .scene--field .scene__hint kbd { animation-name: scene-field-tab; }
  .scene--field .scene__typed { animation-name: scene-field-typed; }
  .scene--field .scene__line > .scene__caret { animation-name: scene-field-caret; }

  /* The word types itself a letter at a time: each stage shows for the time of one letter, `--i`
     letters after the first. */
  .scene--trigger .scene__words { animation-name: scene-trigger-words; }
  .scene--trigger .scene__word {
    animation-name: scene-trigger-stage;
    animation-delay: calc(var(--i, 0) * var(--scene-cycle) * 0.025);
  }
  .scene--trigger .scene__word--none { animation-name: scene-trigger-none; }
  .scene--trigger .scene__word--whole { animation-name: scene-trigger-whole; }
  .scene--trigger .scene__hint { animation-name: scene-trigger-hint; }
  .scene--trigger .scene__hint kbd { animation-name: scene-trigger-tab; }

  .scene--app .scene__pop { animation-name: scene-app-pop; }
  .scene--app .scene__keys--up { animation-name: scene-app-up; }
  .scene--app .scene__keys--enter { animation-name: scene-app-enter; }
  .scene--app .scene__row--newest::before { animation-name: scene-app-newest; }
  .scene--app .scene__row--entry::before { animation-name: scene-app-entry; }
  .scene--app .scene__view--entries { animation-name: scene-app-entries; }
  .scene--app .scene__view--clips { animation-name: scene-app-clips; }

  .scene--transform .scene__pop { animation-name: scene-transform-pop; }
  .scene--transform .scene__keys--tab { animation-name: scene-transform-tab; }
  .scene--transform .scene__menu { animation-name: scene-transform-menu; }
  .scene--transform .scene__pick::before { animation-name: scene-transform-pick; }

  .scene--privacy .scene__copy { animation-name: scene-privacy-copy; }
  .scene--privacy .scene__list { animation-name: scene-privacy-list; }
  .scene--privacy .scene__row--masked { animation-name: scene-privacy-row; }

  .scene--history .scene__copy { animation-name: scene-history-copy; }
  .scene--history .scene__list { animation-name: scene-history-list; }
  .scene--history .scene__row--new { animation-name: scene-history-row; }
  .scene--history .scene__keys--edit { animation-name: scene-history-f2; }
  .scene--history .scene__editor { animation-name: scene-history-editor; }
  .scene--history .scene__editor .scene__was { animation-name: scene-history-was; }
  .scene--history .scene__editor .scene__now { animation-name: scene-history-now; }
  .scene--history .scene__edit--row .scene__was { animation-name: scene-history-row-was; }
  .scene--history .scene__edit--row .scene__now { animation-name: scene-history-row-now; }

  .scene--assign .scene__panel { animation-name: scene-assign-panel; }
  .scene--assign .scene__panel-button { animation-name: scene-assign-press-1; }
  .scene--assign .scene__dim { animation-name: scene-assign-dim; }
  .scene--assign .scene__pickbar { animation-name: scene-assign-pickbar; }
  .scene--assign .scene__pointer { animation-name: scene-assign-pointer; }
  .scene--assign .scene__ask { animation-name: scene-assign-ask; }
  .scene--assign .scene__ask-button { animation-name: scene-assign-press-2; }
  .scene--assign .scene__hint { animation-name: scene-assign-hint; }
  .scene--assign .scene__hint kbd { animation-name: scene-assign-tab; }
  .scene--assign .scene__typed { animation-name: scene-assign-typed; }
  .scene--assign .scene__line > .scene__caret { animation-name: scene-assign-caret; }

  .scene--queue .scene__field:nth-child(1) .scene__typed { animation-name: scene-queue-fill-1; }
  .scene--queue .scene__field:nth-child(2) .scene__typed { animation-name: scene-queue-fill-2; }
  .scene--queue .scene__field:nth-child(3) .scene__typed { animation-name: scene-queue-fill-3; }
  .scene--queue .scene__field:nth-child(1) .scene__input { animation-name: scene-queue-focus-1; }
  .scene--queue .scene__field:nth-child(2) .scene__input { animation-name: scene-queue-focus-2; }
  .scene--queue .scene__field:nth-child(3) .scene__input { animation-name: scene-queue-focus-3; }
  .scene__keys--queue kbd { animation-name: scene-queue-press; }

  .scene--anywhere .scene__copy { animation-name: scene-anywhere-copy; }
  .scene--anywhere .scene__keys--open { animation-name: scene-anywhere-keys; }

  .scene--placeholder .scene__pop { animation-name: scene-placeholder-pop; }
  .scene--placeholder .scene__keys--open { animation-name: scene-placeholder-keys; }

  /* A scene that is not on screen holds still on its first frame (theme.js marks the ones that play
     and winds the others back); without the script the class never appears and they all play. */
  .scenes-watched .scene:not(.scene--playing) *,
  .scenes-watched .scene:not(.scene--playing) *::before,
  .scenes-watched .scene:not(.scene--playing) *::after {
    animation-play-state: paused;
  }
}

/* The pause control in the masthead (theme.js sets the class on the root) holds every scene, in view or
   not, and the popup demo's blinking cursor; finder.js stops the demo's play itself. Not inside the
   reduced-motion query: the pictures stand still there anyway. */
:root.motion-paused .scene *,
:root.motion-paused .scene *::before,
:root.motion-paused .scene *::after,
:root.motion-paused .popup__caret {
  animation-play-state: paused;
}

/* Without motion each scene stands on its most telling frame, which is what its own rules draw. Three
   of them tell more with the result in the line as well: what the transform made of the clip, what
   the placeholders became, and the formatted text beside its plain copy. */
@media (prefers-reduced-motion: reduce) {
  .scene--transform .scene__typed,
  .scene--placeholder .scene__typed,
  .scene--anywhere .scene__typed {
    opacity: 1;
  }

  .scene--transform .scene__line > .scene__caret,
  .scene--placeholder .scene__line > .scene__caret,
  .scene--anywhere .scene__line > .scene__caret {
    display: none;
  }

  .scene--anywhere .scene__copy {
    opacity: 1;
  }
}

/* The motion itself. A percentage is a share of the scene's own round (see `--scene-cycle` above); a
   pair such as `48.9%` and `50%` is a change from one frame to the next. */

/* The pasted text, in the scenes of 6 s: there at 49 %, read until 86 %, gone before the round ends. */
@keyframes scene-pasted {
  0%, 48.9% { opacity: 0; }
  50%, 86% { opacity: 1; }
  91%, 100% { opacity: 0; }
}

@keyframes scene-caret-waits {
  0%, 48.9% { opacity: 1; }
  49%, 91% { opacity: 0; }
  92%, 100% { opacity: 1; }
}

/* Picture: a picture in the browser covers the folder, Ctrl+C copies it and it drops away; then
   Ctrl+V in the folder, and the new file arrives. */
@keyframes scene-picture-photo {
  0%, 5% { opacity: 0; transform: scale(0.96); animation-timing-function: var(--ease-out); }
  10%, 27% { opacity: 1; transform: scale(1); animation-timing-function: var(--ease-in-out); }
  35%, 100% { opacity: 0; transform: translateY(1.5rem) scale(0.85); }
}

@keyframes scene-picture-copy {
  0%, 13% { opacity: 0; transform: translateY(4px); animation-timing-function: var(--ease-out); }
  17% { opacity: 1; transform: translateY(0); }
  21% { opacity: 1; transform: translateY(1px); }
  23%, 29% { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(0); }
}

@keyframes scene-picture-paste {
  0%, 39% { opacity: 0; transform: translateY(4px); animation-timing-function: var(--ease-out); }
  43% { opacity: 1; transform: translateY(0); }
  47% { opacity: 1; transform: translateY(1px); }
  49%, 57% { opacity: 1; transform: translateY(0); }
  61%, 100% { opacity: 0; transform: translateY(0); }
}

@keyframes scene-picture-file {
  0%, 47% { opacity: 0; transform: scale(0.96); animation-timing-function: var(--ease-out); }
  52%, 88% { opacity: 1; transform: scale(1); }
  93%, 100% { opacity: 0; transform: scale(1); }
}

/* Field: the clip shows under the empty field, Tab is pressed and the field holds it. */
@keyframes scene-field-hint {
  0%, 8% { opacity: 0; transform: translateY(-3px); animation-timing-function: var(--ease-out); }
  14%, 40% { opacity: 1; transform: translateY(0); }
  44%, 100% { opacity: 0; transform: translateY(0); }
}

@keyframes scene-field-tab {
  0%, 34%, 39%, 100% { transform: translateY(0); }
  36.5% { transform: translateY(1px); }
}

@keyframes scene-field-typed {
  0%, 39.9% { opacity: 0; }
  41%, 84% { opacity: 1; }
  89%, 100% { opacity: 0; }
}

@keyframes scene-field-caret {
  0%, 39.9% { opacity: 1; }
  40%, 89% { opacity: 0; }
  90%, 100% { opacity: 1; }
}

/* Trigger: the caret alone, then the word a letter at a time, the clip under it, Tab, and the text
   in the word's place. The stages of the word sit in one box, which goes when the text comes. */
@keyframes scene-trigger-words {
  0%, 48.9% { opacity: 1; }
  49%, 91.9% { opacity: 0; }
  92%, 100% { opacity: 1; }
}

@keyframes scene-trigger-none {
  0%, 7.9% { opacity: 1; }
  8%, 91.9% { opacity: 0; }
  92%, 100% { opacity: 1; }
}

@keyframes scene-trigger-stage {
  0%, 7.9% { opacity: 0; }
  8%, 10.4% { opacity: 1; }
  10.5%, 100% { opacity: 0; }
}

/* The whole word starts later by its delay, so it ends well before the round does: its box is back
   by then, and the word must not be in it yet. */
@keyframes scene-trigger-whole {
  0%, 7.9% { opacity: 0; }
  8%, 60% { opacity: 1; }
  60.1%, 100% { opacity: 0; }
}

@keyframes scene-trigger-hint {
  0%, 25% { opacity: 0; transform: translateY(-3px); animation-timing-function: var(--ease-out); }
  30%, 48% { opacity: 1; transform: translateY(0); }
  52%, 100% { opacity: 0; transform: translateY(0); }
}

@keyframes scene-trigger-tab {
  0%, 43%, 48%, 100% { transform: translateY(0); }
  45.5% { transform: translateY(1px); }
}

/* App: the popup opens over the message with the newest clip picked; the up arrow moves to the
   entry "For Outlook", Enter opens it, and its clips stand there until the round ends. */
@keyframes scene-app-pop {
  0%, 6% { opacity: 0; transform: scale(0.96); animation-timing-function: var(--ease-out); }
  11%, 88% { opacity: 1; transform: scale(1); animation-timing-function: var(--ease-in-out); }
  92%, 100% { opacity: 0; transform: scale(0.98); }
}

@keyframes scene-app-up {
  0%, 17% { opacity: 0; transform: translateY(4px); animation-timing-function: var(--ease-out); }
  21% { opacity: 1; transform: translateY(0); }
  26% { opacity: 1; transform: translateY(1px); }
  28%, 31% { opacity: 1; transform: translateY(0); }
  35%, 100% { opacity: 0; transform: translateY(0); }
}

@keyframes scene-app-enter {
  0%, 37% { opacity: 0; transform: translateY(4px); animation-timing-function: var(--ease-out); }
  41% { opacity: 1; transform: translateY(0); }
  47% { opacity: 1; transform: translateY(1px); }
  49%, 53% { opacity: 1; transform: translateY(0); }
  57%, 100% { opacity: 0; transform: translateY(0); }
}

@keyframes scene-app-newest {
  0%, 26.9% { opacity: 1; }
  27%, 95.9% { opacity: 0; }
  96%, 100% { opacity: 1; }
}

@keyframes scene-app-entry {
  0%, 26.9% { opacity: 0; }
  27%, 95.9% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

@keyframes scene-app-entries {
  0%, 48.9% { opacity: 1; }
  49%, 95.9% { opacity: 0; }
  96%, 100% { opacity: 1; }
}

@keyframes scene-app-clips {
  0%, 48.9% { opacity: 0; }
  49.5%, 95.9% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

/* Transform: the clip, Tab, its menu, the first transform picked, the result in the text. */
@keyframes scene-transform-tab {
  0%, 9% { opacity: 0; transform: translateY(4px); animation-timing-function: var(--ease-out); }
  12% { opacity: 1; transform: translateY(0); }
  16% { opacity: 1; transform: translateY(1px); }
  18%, 23% { opacity: 1; transform: translateY(0); }
  27%, 100% { opacity: 0; transform: translateY(0); }
}

@keyframes scene-transform-pop {
  0%, 5% { opacity: 0; transform: scale(0.96); animation-timing-function: var(--ease-out); }
  9%, 46% { opacity: 1; transform: scale(1); animation-timing-function: var(--ease-in-out); }
  50%, 100% { opacity: 0; transform: scale(0.98); }
}

@keyframes scene-transform-menu {
  0%, 18% { opacity: 0; transform: translateY(-4px) scale(0.97); animation-timing-function: var(--ease-out); }
  22%, 46% { opacity: 1; transform: translateY(0) scale(1); animation-timing-function: var(--ease-in-out); }
  50%, 100% { opacity: 0; transform: translateY(0) scale(0.98); }
}

@keyframes scene-transform-pick {
  0%, 30% { opacity: 0; }
  33%, 100% { opacity: 1; }
}

/* Privacy: a copy from the password manager goes towards the list and is gone before it reaches
   it; the list makes room, and only then the new row shows, in its place and whole, masked. */
@keyframes scene-privacy-copy {
  0%, 6% { opacity: 0; transform: translate(-50%, -6px); animation-timing-function: var(--ease-out); }
  12%, 30% { opacity: 1; transform: translate(-50%, 0); animation-timing-function: var(--ease-in-out); }
  36%, 100% { opacity: 0; transform: translate(-50%, 0.5rem) scale(0.94); }
}

@keyframes scene-privacy-list {
  0%, 33% { transform: translateY(-1.9rem); animation-timing-function: var(--ease-out); }
  41%, 88% { transform: translateY(0); animation-timing-function: var(--ease-in-out); }
  96%, 100% { transform: translateY(-1.9rem); }
}

@keyframes scene-privacy-row {
  0%, 41% { opacity: 0; animation-timing-function: var(--ease-out); }
  46%, 84% { opacity: 1; }
  89%, 100% { opacity: 0; }
}

/* History: a copy drops into the list; F2 opens it in the editor, its time changes, and the row
   has the new text once the editor has closed. */
@keyframes scene-history-copy {
  0%, 4% { opacity: 0; transform: translate(-50%, -6px); animation-timing-function: var(--ease-out); }
  8%, 18% { opacity: 1; transform: translate(-50%, 0); animation-timing-function: var(--ease-in-out); }
  23%, 100% { opacity: 0; transform: translate(-50%, 0.5rem) scale(0.94); }
}

@keyframes scene-history-list {
  0%, 21% { transform: translateY(-1.9rem); animation-timing-function: var(--ease-out); }
  27%, 90% { transform: translateY(0); animation-timing-function: var(--ease-in-out); }
  97%, 100% { transform: translateY(-1.9rem); }
}

@keyframes scene-history-row {
  0%, 27% { opacity: 0; animation-timing-function: var(--ease-out); }
  31%, 87% { opacity: 1; }
  91%, 100% { opacity: 0; }
}

@keyframes scene-history-f2 {
  0%, 31% { opacity: 0; transform: translateY(4px); animation-timing-function: var(--ease-out); }
  35% { opacity: 1; transform: translateY(0); }
  38.5% { opacity: 1; transform: translateY(1px); }
  40%, 41% { opacity: 1; transform: translateY(0); }
  44%, 100% { opacity: 0; transform: translateY(0); }
}

@keyframes scene-history-editor {
  0%, 41% { opacity: 0; transform: scale(0.96); animation-timing-function: var(--ease-out); }
  45%, 67% { opacity: 1; transform: scale(1); animation-timing-function: var(--ease-in-out); }
  70%, 100% { opacity: 0; transform: scale(0.98); }
}

@keyframes scene-history-was {
  0%, 55.9% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

@keyframes scene-history-now {
  0%, 55.9% { opacity: 0; }
  56%, 100% { opacity: 1; }
}

/* The row behind the editor takes the new text while the editor still covers it. */
@keyframes scene-history-row-was {
  0%, 59.9% { opacity: 1; }
  60%, 100% { opacity: 0; }
}

@keyframes scene-history-row-now {
  0%, 59.9% { opacity: 0; }
  60%, 100% { opacity: 1; }
}

/* Assign, in four steps of its 10 s: the clip's details with their button (to 21 %), the bar, the
   veil and the pointer clicking the field (to 46 %), the question (to 63 %), then the field in use. */
@keyframes scene-assign-panel {
  0%, 3% { opacity: 0; transform: scale(0.97); animation-timing-function: var(--ease-out); }
  6%, 18% { opacity: 1; transform: scale(1); animation-timing-function: var(--ease-in-out); }
  21%, 100% { opacity: 0; transform: translateY(1rem) scale(0.9); }
}

@keyframes scene-assign-press-1 {
  0%, 13%, 17%, 100% { transform: scale(1); background-color: transparent; }
  15% { transform: scale(0.95); background-color: var(--accent-soft); }
}

@keyframes scene-assign-dim {
  0%, 21% { opacity: 0; animation-timing-function: var(--ease-out); }
  25%, 43% { opacity: 0.75; animation-timing-function: var(--ease-in-out); }
  46%, 100% { opacity: 0; }
}

@keyframes scene-assign-pickbar {
  0%, 21% { opacity: 0; transform: translate(-50%, -4px); animation-timing-function: var(--ease-out); }
  25%, 43% { opacity: 1; transform: translate(-50%, 0); }
  46%, 100% { opacity: 0; transform: translate(-50%, 0); }
}

@keyframes scene-assign-pointer {
  0%, 25% { opacity: 0; transform: translate(5rem, 4rem); }
  28% { opacity: 1; transform: translate(5rem, 4rem); animation-timing-function: var(--ease-in-out); }
  37% { opacity: 1; transform: translate(0, 0); }
  39.5% { opacity: 1; transform: translate(0, 0) scale(0.85); }
  42%, 43% { opacity: 1; transform: translate(0, 0) scale(1); }
  46%, 100% { opacity: 0; transform: translate(0, 0); }
}

@keyframes scene-assign-ask {
  0%, 44% { opacity: 0; transform: translateY(4px) scale(0.98); animation-timing-function: var(--ease-out); }
  48%, 60% { opacity: 1; transform: translateY(0) scale(1); }
  63%, 100% { opacity: 0; transform: translateY(0) scale(0.98); }
}

@keyframes scene-assign-press-2 {
  0%, 55%, 59%, 100% { transform: scale(1); }
  57% { transform: scale(0.94); }
}

@keyframes scene-assign-hint {
  0%, 64% { opacity: 0; transform: translateY(-3px); animation-timing-function: var(--ease-out); }
  67%, 75% { opacity: 1; transform: translateY(0); }
  78%, 100% { opacity: 0; transform: translateY(0); }
}

@keyframes scene-assign-tab {
  0%, 71%, 75%, 100% { transform: translateY(0); }
  73% { transform: translateY(1px); }
}

@keyframes scene-assign-typed {
  0%, 75.9% { opacity: 0; }
  76.5%, 94% { opacity: 1; }
  97%, 100% { opacity: 0; }
}

@keyframes scene-assign-caret {
  0%, 75.9% { opacity: 1; }
  76%, 97% { opacity: 0; }
  98%, 100% { opacity: 1; }
}

/* Queue: the keys are pressed three times, and each press fills the field the cursor is in, which
   then moves on to the next. */
@keyframes scene-queue-fill-1 {
  0%, 13.9% { opacity: 0; }
  15%, 86% { opacity: 1; }
  91%, 100% { opacity: 0; }
}

@keyframes scene-queue-fill-2 {
  0%, 31.9% { opacity: 0; }
  33%, 86% { opacity: 1; }
  91%, 100% { opacity: 0; }
}

@keyframes scene-queue-fill-3 {
  0%, 49.9% { opacity: 0; }
  51%, 86% { opacity: 1; }
  91%, 100% { opacity: 0; }
}

@keyframes scene-queue-press {
  0%, 10%, 15%, 28%, 33%, 46%, 51%, 100% { transform: translateY(0); }
  12.5%, 30.5%, 48.5% { transform: translateY(1px); }
}

@keyframes scene-queue-focus-1 {
  0%, 21.9% { border-color: var(--accent); }
  22%, 91.9% { border-color: var(--rule); }
  92%, 100% { border-color: var(--accent); }
}

@keyframes scene-queue-focus-2 {
  0%, 21.9% { border-color: var(--rule); }
  22%, 39.9% { border-color: var(--accent); }
  40%, 100% { border-color: var(--rule); }
}

@keyframes scene-queue-focus-3 {
  0%, 39.9% { border-color: var(--rule); }
  40%, 91.9% { border-color: var(--accent); }
  92%, 100% { border-color: var(--rule); }
}

/* Anywhere: formatted text is copied and drops away; the shortcut is pressed and the text is in the
   mail, plain. */
@keyframes scene-anywhere-copy {
  0%, 5% { opacity: 0; transform: translate(-50%, -6px); animation-timing-function: var(--ease-out); }
  10%, 27% { opacity: 1; transform: translate(-50%, 0); animation-timing-function: var(--ease-in-out); }
  34%, 100% { opacity: 0; transform: translate(-50%, 1.5rem) scale(0.92); }
}

@keyframes scene-anywhere-keys {
  0%, 36% { opacity: 0; transform: translateY(4px); animation-timing-function: var(--ease-out); }
  40% { opacity: 1; transform: translateY(0); }
  45% { opacity: 1; transform: translateY(1px); }
  47%, 54% { opacity: 1; transform: translateY(0); }
  58%, 100% { opacity: 0; transform: translateY(0); }
}

/* Placeholder: the clip with its placeholders, Enter, and the text filled in. */
@keyframes scene-placeholder-pop {
  0%, 5% { opacity: 0; transform: scale(0.96); animation-timing-function: var(--ease-out); }
  9%, 45% { opacity: 1; transform: scale(1); animation-timing-function: var(--ease-in-out); }
  49%, 100% { opacity: 0; transform: scale(0.98); }
}

@keyframes scene-placeholder-keys {
  0%, 29% { opacity: 0; transform: translateY(4px); animation-timing-function: var(--ease-out); }
  33% { opacity: 1; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(1px); }
  42%, 53% { opacity: 1; transform: translateY(0); }
  57%, 100% { opacity: 0; transform: translateY(0); }
}

/* Questions: native disclosures parted by soft rules, a mono plus that turns into a minus. */
/* The rows run the full width, like every other block on the page; the answers keep the measure, so
   a line stays short enough to read. Benny asked for the full width on 2026-10-23. */
.faq {
  border-top: 1px solid var(--rule-soft);
}

.faq__item {
  border-bottom: 1px solid var(--rule-soft);
}

.faq__item summary {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  transition: color var(--hover) ease;
}

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

.faq__item summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--mono);
  font-weight: 400;
  color: var(--ink-3);
  transition: color var(--hover) ease;
}

.faq__item[open] summary::after {
  content: "\2212";
}

.faq__item summary:hover,
.faq__item summary:hover::after {
  color: var(--accent);
}

.faq__item p {
  max-width: var(--measure);
  margin: 0 0 1.25rem;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- Footer */

.colophon {
  margin-top: auto;
  border-top: 1px solid var(--rule);
  padding-block: 2rem 2.5rem;
}

/* Two things stand in the row: the links, a group of their own, and the note. Where both fit the
   column they stand side by side, the links at the left and the note ending at the right edge. The
   links stand 1 rem apart, not 1.75 rem as while there were four of them, so that six links and the
   German note fit the page's column on one line in the fonts Windows shows. Where they do not fit,
   they stack, each in the middle of the page: Benny did not want the note on a second line hanging
   out to the right, and asked for the stacked footer to be centred (2026-11-20).

   Whether they fit depends on the words and on the visitor's font, and no media query knows either.
   So the row works it out itself. The build counts the characters and the links (--chars and
   --links, set on the element). --room is the width they need on one line: each character as wide
   as the font's zero, which is the step of a mono type (1ch), plus the letter-spacing, then the
   gaps, and 2 px for rounding. --stacked is 0 px while that fits and 1 px once it does not; the
   percentage in it is the column's width where it is used. The two things take their least width
   from it, none or the whole line. So a narrower window stacks the footer, a wider font does (SF
   Mono on a Mac needs more than the column holds), and a window with a scrollbar counts as what is
   left beside it. Without --chars the least width is not valid and the row simply wraps. */
.colophon__inner {
  --room: calc(var(--chars) * (1ch + 0.04em) + var(--links) * 1rem + 2px);
  --stacked: clamp(0px, (var(--room) - 100%) * 999, 1px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-align: center;
}

/* Side by side, each is as wide as its words. Stacked, each takes the whole line and stands in its
   middle. */
.colophon__links,
.colophon__note {
  min-width: min(100%, var(--stacked) * 9999);
}

.colophon__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.75rem 1rem;
}

.colophon a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

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

/* ---------------------------------------------------------------- Back to the top */

/* A way back up where a long page has nothing sticky to reach for. That is every page on a narrow
   screen, below 62 rem, and at every width a page that asks for it (`.to-top-track--always`): the
   features page, whose jump links stand at its top; Benny asked for the button there on 2026-11-20.
   Other pages have the sidebar on a wide screen, or are short, and never show it there. It takes no
   script. The button is fixed to the window like the topic rail, a rem in from the right and from the
   bottom, and it only shows where the page has been scrolled a screen and a half down or further:
   the track covers the whole page and clips the button to the part of it from 150vh to the end. Near
   the top the button is clipped away, taps included; scrolling on uncovers it where it stands,
   without moving it. A page shorter than that never shows it, and the track, which ends with the
   page, adds nothing to its length. Benny asked on 2026-09-16 for it to stay put like the rail and to
   sit less far right: the sticky link before came up with the page, and on a short page it made room
   for itself below the end. The rules below say what the button is; the ones at the end, where it
   shows. */
.to-top-track {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: none;
  clip-path: inset(150vh 0 0 0);
  /* The track covers the page; only the button itself takes taps. */
  pointer-events: none;
}

/* The rail's family: raised paper in a rule, round. Big enough for a thumb. */
.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-raised);
  color: var(--ink-2);
  pointer-events: auto;
}

.to-top:hover {
  color: var(--ink);
}

.to-top svg {
  width: 16px;
  height: 16px;
}

/* Where the browser ties an animation to the page's scrolling, the button fades in whole once the page
   has scrolled half a screen, instead of being uncovered by the track's edge: an edge
   that ran through it showed half a button. Benny asked for it on 2026-10-24. */
@supports (animation-timeline: scroll()) {
  .to-top-track {
    clip-path: none;
  }

  .to-top {
    animation: to-top-in linear both;
    animation-timeline: scroll(root);
    animation-range: 40vh 60vh;
  }
}

/* Where the button shows: at every width on a page that asks for it, and below 62 rem on every page.
   There the colophon ends above the button in the corner (1 rem from the bottom, 2.75 rem tall), so
   its last line stays clear of it at the page's end and its centred lines keep the page's middle. A
   padding at the right did this while the lines stood at the left. The build marks the colophon of a
   page that asks `colophon--up`. A `:has()` on the track that follows it would say the same, but a
   browser without `:has()` would drop that rule and let the note slide under the button. */
.to-top-track--always {
  display: block;
}

.colophon--up {
  padding-bottom: 4.5rem;
}

@media (max-width: 62rem) {
  .to-top-track {
    display: block;
  }

  .colophon {
    padding-bottom: 4.5rem;
  }
}

/* Room for the pause control (`.motion-toggle`), which stands in the corner: the way back up steps up
   above it (2.75 rem tall, a rem from the bottom, half a rem between), and the colophon ends above
   whatever stands in the corner, one button on a wide screen, two where the way back up shows too.
   All of it only where theme.js has shown the control, so without the script, or for a visitor who
   asked for less motion, nothing moves. */
html.has-motion-toggle .to-top {
  bottom: 4.25rem;
}

html.has-motion-toggle .colophon {
  padding-bottom: 4.5rem;
}

html.has-motion-toggle .colophon--up {
  padding-bottom: 7.5rem;
}

@media (max-width: 62rem) {
  html.has-motion-toggle .colophon {
    padding-bottom: 7.5rem;
  }
}

@keyframes to-top-in {
  from {
    opacity: 0;
    visibility: hidden;
  }

  to {
    opacity: 1;
    visibility: visible;
  }
}

/* ---------------------------------------------------------------- Wiki */

.wiki {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  --wiki-top: clamp(2rem, 5vw, 3.5rem);
  padding-block: var(--wiki-top) clamp(3rem, 7vw, 5rem);
  flex: 1;
}

/* A long page lists many topics under its name, so the sidebar scrolls on its own rather than run
   off the bottom of the window. Scrolling clips whatever pokes out of the box - the marker sits a
   pixel left of it, a focus ring five pixels around - so the padding makes that room and the
   negative margin gives it back to the grid.

   It sticks exactly where it stands at the top of a page: below the header (4 rem and its rule) by
   the grid's top padding. Sticking higher, as it did at 5.5 rem, the list stood 33 px higher on a
   page scrolled down than on the next page, which opens at its top, so every change of page from
   the sidebar made the list jump down; Benny saw it on 2026-10-20. */
.wiki__side {
  position: sticky;
  top: calc(4rem + 1px + var(--wiki-top));
  z-index: 6;
  align-self: start;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: calc(100vh - 4rem - 1px - var(--wiki-top) - 1.5rem);
}

.wiki__pages {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 0.375rem;
  margin: -0.375rem;
  font-size: 0.9375rem;
}

/* ---------------------------------------------------------------- Search */

/* Above the page list, hidden until wiki.js shows it. The field is set into the page like code; the
   results float over the text below and beside it in a raised panel, wider than the sidebar.
   wiki.js runs after the first paint, so showing the box only then pushed the page list down, and on
   a narrow screen the whole page with it. The snippet in the head marks a page that runs scripts
   with data-script before anything is drawn, and such a page shows the box from the start. */
.search {
  position: relative;
  flex: none;
  margin-bottom: 1.75rem;
}

[data-script] .search[hidden] {
  display: block;
}

.search__label {
  display: block;
}

.search__box {
  position: relative;
}

.search__field {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.45rem 2.25rem 0.45rem 0.75rem;
  font-family: var(--sans);
  /* 16 px at least, or a phone zooms in on focus. */
  font-size: max(16px, 0.9375rem);
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper-sunk);
  border: 1px solid var(--rule);
  border-radius: 4px;
  appearance: none;
}

.search__field:hover {
  border-color: var(--ink-3);
}

/* A field draws its ring as its own edge: laid over the border with a soft halo outside, rather than
   a second box 3 px away from the first. The outline stays, so forced colours still show it. */
.search__field:focus-visible {
  outline-offset: -1px;
  border-radius: 4px;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search__field::-webkit-search-cancel-button {
  display: none;
}

.search__key {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.search__field:focus + .search__key,
.search--filled .search__key {
  display: none;
}

@media (hover: none) {
  .search__key {
    display: none;
  }
}

.search__panel {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  width: min(30rem, calc(100vw - 2rem));
  max-height: min(30rem, calc(100vh - 12rem));
  max-height: min(30rem, calc(100dvh - 12rem));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.search__panel[hidden],
.search__none[hidden] {
  display: none;
}

.search__results {
  margin: 0;
  padding: 0;
  list-style: none;
}

.search__results li {
  border-bottom: 1px solid var(--rule-soft);
}

.search__results li:last-child {
  border-bottom: 0;
}

.search__results a {
  display: block;
  padding: 0.65rem 1rem 0.7rem;
  color: var(--ink-2);
  text-decoration: none;
}

.search__results a:hover {
  background: var(--rule-soft);
}

/* The one the arrow keys have reached: the selected row's tint and a bar on its left, as in the
   popup drawing. */
.search__results li[aria-selected="true"] a {
  background: var(--accent-soft);
  box-shadow: inset 2px 0 0 var(--accent);
}

.search__where {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.search__title {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink);
}

.search__results li[aria-selected="true"] .search__title {
  color: var(--accent);
}

.search__snippet {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.search mark {
  padding: 0 0.1em;
  border-radius: 2px;
  font-weight: 600;
  color: var(--ink);
  background: var(--accent-soft);
}

.search__none {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* For a screen reader only: how many results there are. */
.search__status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (forced-colors: active) {
  .search__results li[aria-selected="true"] a {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }

  .search mark {
    color: MarkText;
    background: Mark;
    forced-color-adjust: none;
  }
}

/* .prose .toc__title for the same reason as .prose .toc ul below: .prose p would set its margin. */
.search__label,
.wiki__pages-title,
.prose .toc__title,
.toc-ghost .toc__title,
.rail__title {
  margin: 0 0 0.9rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.wiki__pages ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--rule);
}

.wiki__pages a {
  display: block;
  padding: 0.35rem 0 0.35rem 1rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--ink-2);
  text-decoration: none;
}

.wiki__pages a:hover {
  color: var(--ink);
  border-left-color: var(--rule);
}

/* Inside the link, so the ring does not reach across the rule and past the sidebar's edge. */
.wiki__pages a:focus-visible {
  color: var(--ink);
  outline-offset: -2px;
  border-radius: 4px;
}

.wiki__pages a[aria-current="page"] {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
}

/* The open page's topics hang off the same rule, a step further in and a size smaller. They stay in
   --ink-2: at this size --ink-3 is too faint to read on light paper. wiki.js marks the one being
   read with aria-current="true". The marker changes colour, never weight, so a topic that wraps
   does not reflow as it lights up, and it has no transition on purpose. */
.wiki__pages .wiki__topics {
  margin: 0 0 0.5rem;
  border-left: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.wiki__pages .wiki__topics a {
  padding: 0.3rem 0 0.3rem 1.85rem;
}

/* The page's marker and the first topic's meet on a fractional pixel, and at a display scale like
   125 % the two round apart and leave a gap in the blue line once the sidebar has moved. The first
   topic reaches 1px up under the page link, so the two always overlap; the text does not move. */
.wiki__pages .wiki__topics li:first-child a {
  margin-top: -1px;
  padding-top: calc(0.3rem + 1px);
}

.wiki__pages .wiki__topics a[aria-current="true"] {
  color: var(--accent);
  border-left-color: var(--accent);
}

.wiki__main {
  min-width: 0;
  max-width: 44rem;
}

/* Only on narrow screens, where the sidebar is a row of chips with no room for the topics. Wider,
   the sidebar lists them itself, and this box would put the same list on screen twice. */
.toc {
  display: none;
  margin: 0 0 2.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper-raised);
}

/* The box sits inside .prose, whose list rules come later in this file with the same weight and
   would indent and space this list like running text. The .prose prefix makes these win. The
   ghost below draws the same list outside .prose. */
.prose .toc ul,
.toc-ghost ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 2rem;
  font-size: 0.9375rem;
}

.prose .toc li,
.toc-ghost li {
  margin-bottom: 0.3rem;
  break-inside: avoid;
}

.toc a,
.toc-ghost a {
  color: var(--ink-2);
  text-decoration: none;
}

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

/* ---------------------------------------------------------------- Topic rail */

/* Narrow screens only, and only once wiki.js has shown it. The sidebar has no room for the topics
   there, so a column of ticks on the right edge stands for them, a dot for the top of the page and a
   tick per topic, the one being read longer and in the accent. A tap opens the list beside it; held
   or swiped, the column rolls into a wheel, seen edge-on, that turns through the topics, and back
   once it is let go. Both sit on top of the page, so they get the raised paper and a rule, and the
   panel and the name a turn shows, which cover text, the shadow as well.

   The box and the rail are one "On this page", never both on screen. While the box is in view the
   rail is docked, hidden; once the box has all but scrolled away under the header, wiki.js turns
   it into the rail, and back again when it returns. Both switches keep their space, so nothing on
   the page moves: a hidden box still holds its place in the text, a docked rail its place on the
   edge. Between the two, .toc-ghost is drawn for a little over a quarter of a second, a copy of the
   box that shrinks into the rail's pill or grows out of it.

   Centred on the window by auto margins rather than a transform, which would put the text in the
   panel on half pixels. The rail is 1.75rem wide at 0.25rem from the edge, wider than the page's
   side padding on a phone; the ticks alone would fit, but be too small to hit. So while the rail is
   shown, the text column keeps 2.5rem clear of the edge (the rail and a gap), padding only what
   the page's own side padding does not already cover. */
.rail {
  /* How much the wheel grows while a finger turns it; wiki.js reads it to roll the ticks one to one
     under the finger. */
  --rail-lift: 1.15;
  display: none;
  position: fixed;
  z-index: 5;
  top: 0;
  bottom: 0;
  right: 0.25rem;
  height: fit-content;
  margin-block: auto;
}

/* The ticks' window. At rest it holds the column: half a rem from one tick to the next and 0.875rem
   from the outer two to the edge, as before the wheel. It is never shorter than the 5.25rem the wheel
   needs, whose size is this height too. wiki.js sets --places, the number of ticks, reads the height
   and places the ticks inside, in the column or round the wheel. */
.rail__handle {
  position: relative;
  display: block;
  width: 1.75rem;
  height: max(5.25rem, calc((var(--places, 1) - 1) * 0.5rem + 1.75rem));
  margin: 0;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-raised);
  color: var(--ink-3);
  cursor: pointer;
  /* A swipe that starts on the rail turns the wheel instead of scrolling the page, and no double tap
     zooms. And a control is not text: nothing on it can be selected, flash under a tap or call up the
     long press menu. */
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  transform-origin: 100% 50%;
}

.rail__handle:hover,
.rail__handle[aria-expanded="true"] {
  color: var(--ink-2);
}

/* Held or turned by a finger (wiki.js): a little larger, grown out from the edge, lifted off the page
   with the shadow and its ticks in full ink. The change takes 0.15 s, like a hover, and none for a
   visitor who asked for less motion. */
.rail--held .rail__handle {
  transform: scale(var(--rail-lift));
  box-shadow: var(--shadow);
  color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .rail__handle {
    transition: transform var(--hover) ease-out, box-shadow var(--hover) ease-out;
  }
}

/* A tick, centred on the middle line and moved off it by wiki.js: to its place in the column, or round
   the wheel. The marker for the topic being read is no thing of its own but that topic's tick: wiki.js
   sets --near from 0, a tick, to 1, the marker, and grows it from the right to 1.75 times its length,
   0.875rem, while it takes on the accent. On the wheel that is whichever tick is in the middle, handed
   on to the next as it turns, the nearer the middle the more marker. Without color-mix the tick still
   grows. */
.rail__tick {
  position: absolute;
  top: 50%;
  right: 0.375rem;
  width: 0.5rem;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: currentColor;
  background: color-mix(in oklab, var(--accent) calc(var(--near, 0) * 100%), currentColor);
  transform-origin: 100% 50%;
  /* Each tick on a layer of its own, so the marker's growing to the left and shrinking back cannot
     leave a 1 px dot of the accent in the rail's own paint where its tip had been (seen by Benny on
     2026-11-22; the cause is a guess, not reproduced). A tick still repaints when its colour changes. */
  will-change: transform, opacity;
}

/* The top of the page, the first place: a dot above the topics' ticks. */
.rail__tick--top {
  right: 0.5rem;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
}

.rail__panel {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 2.5rem;
  width: min(18rem, calc(100vw - 3.5rem));
  height: fit-content;
  max-height: calc(100vh - 10rem);
  max-height: calc(100dvh - 10rem);
  margin-block: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem 1.1rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
}

.rail__panel[hidden] {
  display: none;
}

.rail__panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--rule);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.rail__panel a {
  display: block;
  padding: 0.45rem 0 0.45rem 0.9rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--ink-2);
  text-decoration: none;
}

.rail__panel a:hover {
  color: var(--ink);
  border-left-color: var(--rule);
}

.rail__panel a[aria-current="true"] {
  color: var(--accent);
  border-left-color: var(--accent);
}

/* On the changelog the panel names the system beside the number, in the mono of the sidebar rows, so
   two versions of different systems never read alike. */
.rail__system {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* The name of the topic in the middle while the wheel is held or turns: in the accent like the panel's
   marked row, on the panel's paper with its rule and shadow, because it covers text too. It stands
   1.5rem left of the rail, level with the rail's middle, where the marker is, rather than with the
   thumb, which would take it along, and wraps a long name rather than cut it off. wiki.js makes it.
   Benny asked on 2026-09-23 for it to stay beside the rail instead of the thumb. */
.rail__label {
  position: absolute;
  top: 50%;
  right: calc(100% + 1.5rem);
  transform: translateY(-50%);
  width: max-content;
  max-width: min(20rem, calc(100vw - 5.5rem));
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
  color: var(--accent);
  font-size: 0.9375rem;
  line-height: 1.4;
  pointer-events: none;
}

.rail__label[hidden] {
  display: none;
}

.toc--away,
.rail--docked {
  visibility: hidden;
}

/* Positioned and sized by wiki.js, from the box's rectangle to the pill's or back. It only ever
   exists while it moves, and it is a drawing: inert, hidden from assistive technology. */
.toc-ghost {
  position: fixed;
  z-index: 5;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper-raised);
  pointer-events: none;
}

.toc-ghost__body {
  padding: 1.1rem 1.25rem;
}

/* ---------------------------------------------------------------- Prose */

.prose h1,
.legal h1 {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.prose h2,
.legal h2 {
  margin: 3rem 0 0.9rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

.prose h3 {
  margin: 2rem 0 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1875rem;
}

/* A long German compound ("Zwischenablageverlauf") breaks, with a hyphen where the browser knows one,
   instead of running out of a narrow window. */
.prose h1,
.prose h2,
.prose h3,
.legal h1,
.legal h2 {
  hyphens: auto;
  overflow-wrap: break-word;
}

.prose h4 {
  margin: 1.5rem 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.prose p,
.legal p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose li::marker {
  color: var(--ink-3);
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 2px solid var(--accent);
  color: var(--ink-2);
}

.prose blockquote p:last-child {
  margin: 0;
}

.prose hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

code {
  font-family: var(--mono);
  font-size: 0.8125em;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  background: var(--paper-sunk);
  border: 1px solid var(--rule-soft);
}

pre {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper-sunk);
}

pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.8125rem;
}

/* A key cap sits a little above the baseline, so its middle lines up between the x-height and the
   capitals of the text around it, where the eye puts the middle of a line, instead of hanging low
   on the baseline. Half a pixel more padding on top balances the thicker bottom edge, so the letters
   sit in the middle of the cap. Benny noticed the caps sitting low on 2026-10-23. */
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: calc(0.1em + 0.5px) 0.45em calc(0.1em - 0.5px);
  vertical-align: 0.1em;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--paper-raised);
  font-family: var(--mono);
  font-size: 0.75em;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

/* A whole key chord, from the first cap to the last. */
.chord {
  white-space: nowrap;
}

.table-scroll {
  margin: 0 0 1.5rem;
  overflow-x: auto;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th {
  padding: 0.7rem 1rem 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
  white-space: nowrap;
}

td {
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}

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

th:last-child,
td:last-child {
  padding-right: 0;
}

/* ---------------------------------------------------------------- Changelog */

/* The wiki's frame: the versions in the sidebar, each a link to its own section, and the text
   beside it. Each version is a section whose heading is its own anchor (#v0-2-0), so the app can
   open a version's entry directly. Without a version there is no sidebar, and the text takes the
   whole row. */
.wiki--single {
  grid-template-columns: minmax(0, 1fr);
}

/* A version in the list: its number, and under it its system or the upcoming label in mono, a step
   smaller and muted, so the eye reads down the numbers. */
.versions__number {
  display: block;
}

.versions__meta {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* The version being read, marked by wiki.js as it marks a wiki topic: colour and the rule's
   segment, never weight. */
.versions a[aria-current="true"] {
  color: var(--accent);
  border-left-color: var(--accent);
}

.changelog__lead {
  max-width: var(--measure);
  font-size: 1.1875rem;
  color: var(--ink-2);
}

.changelog__feed {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

/* The newest version of each system: a small table under the lead, then the selector that picks
   the pages. Each system joins as a row when it has a version. The row's header is a name, so it
   drops the column heads' mono capitals. */
.changelog__overview {
  max-width: var(--measure);
  margin: 1.5rem 0 1.25rem;
}

.changelog__caption {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.changelog__overview .table-scroll {
  margin-bottom: 0;
}

.systems th[scope="row"] {
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  white-space: normal;
}

.systems tbody tr:last-child th {
  border-bottom: 0;
}

/* Six links in a small table would shout in the accent; they stand in the text's colour with the
   rule's underline and light up on hover and focus. */
.systems a {
  color: inherit;
  text-decoration-color: var(--rule);
}

.systems a:hover,
.systems a:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.systems__upcoming {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

/* The selector: one row of quiet links like the wiki's chips, the current one underlined in the
   accent. Each is a page of its own, so it needs no script. */
.changelog__select ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.changelog__select a {
  display: block;
  padding: 0.2rem 0.6rem;
  border-bottom: 2px solid transparent;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  text-decoration: none;
}

.changelog__select a:hover {
  border-bottom-color: var(--rule);
}

.changelog__select a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.release__system {
  color: var(--ink-2);
}

/* A version is a row that opens: its number, date and "At a glance" stand in the row while it is
   closed, its points under it once it is open. One is open at a time (the details share a name). */
.release__details {
  border-top: 1px solid var(--rule-soft);
}

.release:last-of-type .release__details {
  border-bottom: 1px solid var(--rule-soft);
}

.release__summary {
  position: relative;
  display: block;
  padding: 1.1rem 2.5rem 1.1rem 0;
  cursor: pointer;
  list-style: none;
}

.release__summary::-webkit-details-marker {
  display: none;
}

/* The chevron points down while the version is closed and up while it is open. */
.release__summary::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  top: 1.65rem;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.release__details[open] > .release__summary::after {
  top: 1.95rem;
  transform: rotate(-135deg);
}

.release__summary:hover .release__link,
.release__summary:focus-visible .release__link {
  color: var(--accent);
}

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

.prose .release__summary h2 {
  margin: 0;
  padding: 0;
  border-top: 0;
}

.release__link {
  color: inherit;
}

.release__body {
  padding: 0.25rem 0 1.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .release__summary::after {
    transition: none;
  }
}

/* A status rather than an action, so it borrows the tag's dot instead of drawing a box. */
.release__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* The dot sits on the middle of the capitals beside it, not of the line: capitals stand above the
   line's middle by the room kept for descenders, about 0.05 em in the mono. Benny noticed the dot
   sitting low on 2026-10-23. */
.release__badge::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  transform: translateY(-0.05em);
}

.release__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0 0.6rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.release__channel {
  color: var(--ink-2);
}

.release h3 {
  margin-top: 1.25rem;
}

/* "At a glance": one or two sentences under the version's line, a step quieter than the points. */
.release__glance {
  max-width: var(--measure);
  color: var(--ink-2);
}

/* "At a glance" names itself on a line of its own in the mono of .release__meta, no box. */
.release__glance-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* A run of points of one area: the area named once in a narrow margin column beside its first
   point, the points beside it. A hairline parts one run from the next, none above the first. The
   name is an h4 for a screen reader, dressed down to the mono of .release__meta. */
.change-area {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  column-gap: 1.25rem;
  align-items: start;
}

.change-area + .change-area {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule-soft);
}

.prose .change-area__label {
  margin: 0;
  padding-top: 0.3rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
  overflow-wrap: anywhere;
  color: var(--ink-3);
}

.prose .change-area ul {
  margin-bottom: 0;
}

.change-area .change:last-child {
  margin-bottom: 0;
}

/* Below the wiki's breakpoint the name moves above its points, so a phone never scrolls sideways. */
@media (max-width: 62rem) {
  .change-area {
    display: block;
  }

  .prose .change-area__label {
    padding-top: 0;
    margin-bottom: 0.35rem;
  }
}

/* A feature that needs Pro: the badge's mono uppercase label, without its accent dot, which stays
   the mark of a status. A non-breaking space ties it to the last word. */
.change__pro {
  margin-left: 0.25rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-2);
}

/* For a screen reader only: "needs" in front of the marker, so it says "needs Pro". */
.change__hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- Legal pages */

.legal {
  max-width: 42rem;
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem);
  flex: 1;
}

.legal .back {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-decoration: none;
}

.legal .back:hover {
  color: var(--ink);
}

.legal .updated {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-3);
}

/* ---------------------------------------------------------------- Help marks */

/* An app's F1 or Ctrl+click lands on an empty #help-… span (build.mjs). The element that holds it
   lights up in the accent tint, so the eye finds the spot in the middle of a topic; with motion
   allowed the tint fades out again (below), without it the tint stays. */
.prose {
  --help-tint: color-mix(in srgb, var(--accent) 20%, transparent);
}

/* The light comes on at once, with no wait and a strong ease-out on the first step of each arrival
   keyframe below, since the eye looks right after the jump; it holds and fades slowly for whoever
   looks a little late. Benny asked for no wait on 2026-10-27. */

.prose :is(h1, h2, h3, h4, p, li, pre, th):has(> .help-mark:target),
.prose tr:has(> td > .help-mark:target) > td {
  background: var(--help-tint);
  box-shadow: 0 0 0 0.4rem var(--help-tint);
  border-radius: 2px;
}

@media (forced-colors: active) {
  .prose :is(h1, h2, h3, h4, p, li, pre, th):has(> .help-mark:target),
  .prose tr:has(> td > .help-mark:target) > td {
    outline: 2px solid Highlight;
    outline-offset: 0.3rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .prose :is(h1, h2, h3, h4, p, li, pre, th):has(> .help-mark:target),
  .prose tr:has(> td > .help-mark:target) > td {
    animation: help-arrive 2.6s ease-out both;
  }
}

/* A section heading stands under its rule with room above the words, so a tint on the whole heading
   sat low in a tall box. The same tint, halo and fade are drawn behind the words instead, so the look
   and the timing stay those of every other mark. Benny noticed it on 2026-10-23. */
.prose h2:has(> .help-mark:target) {
  position: relative;
  isolation: isolate;
  background: none;
  box-shadow: none;
  animation: none;
}

.prose h2:has(> .help-mark:target)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1.1rem 0 0;
  border-radius: 2px;
  background: var(--help-tint);
  box-shadow: 0 0 0 0.4rem var(--help-tint);
}

@media (forced-colors: active) {
  .prose h2:has(> .help-mark:target) {
    outline: none;
  }

  .prose h2:has(> .help-mark:target)::before {
    background: none;
    box-shadow: none;
    outline: 2px solid Highlight;
    outline-offset: 0.3rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* The heading itself nudges, words and all, as a row does in the app; its tint behind the words
     only lights and fades, so the two do not nudge twice over. */
  .prose h2:has(> .help-mark:target) {
    animation: help-nudge 2.6s ease-out both;
  }

  .prose h2:has(> .help-mark:target)::before {
    animation: help-tint 2.6s ease-out both;
  }
}

/* As the app lights a setting it jumps to (its settingsSearch.css): two small nudges the eye catches
   even off to the side, then the tint stays a moment and fades, for whoever looks a little late. The
   tint is the app's 20 % of the accent, stronger than --accent-soft, which the dark theme all but
   swallows. Benny asked for the app's blink on 2026-10-23. */
/* A heading a reader arrives at from the search or a link elsewhere lights up as a help mark does
   (wiki.js adds .is-arriving and leaves it until another heading lights). */
.prose h2.is-arriving {
  position: relative;
  isolation: isolate;
}

.prose h2.is-arriving::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1.1rem 0 0;
  border-radius: 2px;
}

.prose :is(h3, h4).is-arriving {
  border-radius: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .prose h2.is-arriving {
    animation: help-nudge 2.6s ease-out both;
  }

  .prose h2.is-arriving::before,
  .prose :is(h3, h4).is-arriving {
    animation: help-tint 2.6s ease-out both;
  }

  .prose :is(h3, h4).is-arriving {
    animation-name: help-arrive;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prose h2.is-arriving::before,
  .prose :is(h3, h4).is-arriving {
    background: var(--help-tint);
    box-shadow: 0 0 0 0.4rem var(--help-tint);
  }
}

/* A bar beside the whole section a reader arrives at, from its rule to the next, as long as the
   heading's light (wiki.js draws it). It shows how far the section reaches without tinting all of
   it. Benny chose it on 2026-10-24. */
.wiki__main {
  position: relative;
}

.section-bar {
  position: absolute;
  left: -1rem;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  pointer-events: none;
  animation: section-bar 2.6s ease-out both;
}

@keyframes section-bar {
  0% { opacity: 0; animation-timing-function: var(--ease-out); }
  8%, 65% { opacity: 1; }
  100% { opacity: 0; }
}

/* Reduced motion keeps the bar, as it keeps the tint; the next arrival replaces it. */
@media (prefers-reduced-motion: reduce) {
  .section-bar {
    animation: none;
  }
}

/* The nudge runs through a registered number rather than animating transform itself: a transform
   animation runs on the graphics card, which enlarges a picture of the words and blurs them, while a
   number is worked out on the page each frame and the words are drawn afresh at their new size, sharp.
   The elements that blink take their scale from it. Benny asked for sharp words on 2026-10-24. */
@property --help-nudge {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

.prose :is(h1, h2, h3, h4, p, li, pre, th):has(> .help-mark:target),
.prose tr:has(> td > .help-mark:target) > td,
.prose :is(h2, h3, h4).is-arriving {
  scale: var(--help-nudge);
}

/* help-arrive split in two, for a heading: the nudge on the heading, the light on its tint.
   Between and after the nudges the scale rests at 1.0001, not 1: at exactly 1 the browser snaps the
   words to whole pixels again, and a heading that sits between two pixels then hopped up a little
   once the light was over (Benny, 2026-10-27). The words stay where the nudge left them instead. */
@keyframes help-nudge {
  0% { --help-nudge: 1.0001; animation-timing-function: var(--ease-out); }
  8% { --help-nudge: 1.01; }
  17% { --help-nudge: 1.0001; }
  26% { --help-nudge: 1.01; }
  35%, 100% { --help-nudge: 1.0001; }
}

@keyframes help-tint {
  0% {
    animation-timing-function: var(--ease-out);
    background-color: transparent;
    box-shadow: 0 0 0 0.4rem transparent;
  }
  8%,
  65% {
    background-color: var(--help-tint);
    box-shadow: 0 0 0 0.4rem var(--help-tint);
  }
  100% {
    background-color: transparent;
    box-shadow: 0 0 0 0.4rem transparent;
  }
}

@keyframes help-arrive {
  0% {
    animation-timing-function: var(--ease-out);
    --help-nudge: 1.0001;
    background-color: transparent;
    box-shadow: 0 0 0 0.4rem transparent;
  }
  8% {
    --help-nudge: 1.01;
    background-color: var(--help-tint);
    box-shadow: 0 0 0 0.4rem var(--help-tint);
  }
  17% {
    --help-nudge: 1.0001;
  }
  26% {
    --help-nudge: 1.01;
  }
  35%,
  65% {
    --help-nudge: 1.0001;
    background-color: var(--help-tint);
    box-shadow: 0 0 0 0.4rem var(--help-tint);
  }
  100% {
    --help-nudge: 1.0001;
    background-color: transparent;
    box-shadow: 0 0 0 0.4rem transparent;
  }
}

/* ---------------------------------------------------------------- Page load */

@media (prefers-reduced-motion: no-preference) {
  .reveal > * {
    animation: rise 0.7s var(--ease-out) both;
  }

  .reveal > *:nth-child(2) {
    animation-delay: 0.06s;
  }

  .reveal > *:nth-child(3) {
    animation-delay: 0.12s;
  }

  .reveal > *:nth-child(4) {
    animation-delay: 0.18s;
  }

  .reveal > *:nth-child(5) {
    animation-delay: 0.24s;
  }

  .reveal > *:nth-child(6) {
    animation-delay: 0.3s;
  }

  .hero__inner > .finder {
    animation: rise 0.8s var(--ease-out) 0.15s both;
  }

  /* The wiki overview and the pricing page open as the start and download pages do: the head rises
     (.reveal), then the pages of the wiki or the three tiers follow it, a beat apart. The wiki's
     own pages do not: they are read and stepped through, and a page that moved each time would
     only be in the way. */
  .overview__list > li,
  .tiers > .tier {
    animation: rise 0.7s var(--ease-out) 0.2s both;
  }

  .overview__list > li:nth-child(2),
  .tiers > .tier:nth-child(2) {
    animation-delay: 0.25s;
  }

  .overview__list > li:nth-child(3),
  .tiers > .tier:nth-child(3) {
    animation-delay: 0.3s;
  }

  .overview__list > li:nth-child(4) {
    animation-delay: 0.35s;
  }

  .overview__list > li:nth-child(n + 5) {
    animation-delay: 0.4s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------------- Narrow screens */

@media (max-width: 62rem) {
  .figure {
    max-width: 26rem;
  }

  .wiki {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  /* Static, but still above the text, so the results cover it rather than slip under it. */
  .wiki__side {
    position: relative;
    top: auto;
    max-height: none;
  }

  .search {
    margin-bottom: 1.25rem;
  }

  .search__panel {
    width: 100%;
    max-height: min(30rem, 60vh);
  }

  .wiki__pages {
    overflow: visible;
    padding: 0 0 1.25rem;
    margin: 0;
    border-bottom: 1px solid var(--rule);
  }

  .wiki__pages .wiki__topics {
    display: none;
  }

  .toc,
  .rail:not([hidden]) {
    display: block;
  }

  /* The clamp is .wrap's side padding; keep the two in step. Held from the first paint on a page
     that runs scripts, like the search, so the text does not rewrap once wiki.js shows the rail. */
  body:has(> .rail:not([hidden])) .wiki__main,
  [data-script] body:has(> .rail) .wiki__main {
    padding-right: max(0rem, calc(2.5rem - clamp(1rem, 4vw, 2.5rem)));
  }

  /* One row that a finger swipes sideways, however many pages or versions there are, so the row
     never grows taller and pushes the text down. The end fades out to say there is more; the room
     after the last chip lets it scroll clear of the fade. wiki.js keeps the open page or the version
     being read in view. Benny chose this on 2026-10-23. */
  .wiki__pages ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem 0.5rem;
    padding-right: 2rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    border-left: 0;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 2rem), transparent);
  }

  .wiki__pages ul::-webkit-scrollbar {
    display: none;
  }

  .wiki__pages li {
    flex: none;
  }

  .wiki__pages a {
    padding: 0.2rem 0.6rem;
    margin-left: 0;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .wiki__pages a:hover {
    border-bottom-color: var(--rule);
  }

  .wiki__pages a[aria-current="page"] {
    border-bottom-color: var(--accent);
  }

  /* As chips, a version shows only its number. Benny chose this on 2026-11-02. Where several
     systems share the list, the system stays beside the number, so two chips never read alike. */
  .versions__number,
  .versions__meta {
    display: inline;
  }

  .versions__state {
    display: none;
  }

  .versions:not(:has(.versions__system)) .versions__meta {
    display: none;
  }

  .versions a[aria-current="true"] {
    border-bottom-color: var(--accent);
  }

}

@media (max-width: 40rem) {
  body {
    font-size: 16px;
  }

  /* Two lines: the brand and the switches, then the page links on a line of their own along the
     bottom, so the current page still marks the bar's rule. */
  .masthead__inner {
    flex-wrap: wrap;
    min-height: 0;
    row-gap: 0;
  }

  .masthead__tools {
    margin-block: 0.6rem;
    margin-left: auto;
    padding-left: 0;
    border-left: 0;
  }

  .masthead__pages {
    order: 1;
    width: 100%;
    min-height: 2.75rem;
    margin-left: 0;
    border-top: 1px solid var(--rule-soft);
  }

  .prose .toc ul,
  .toc-ghost ul {
    columns: 1;
  }

  .contents li {
    grid-template-columns: 2.25rem 1fr;
    padding-block: 1.25rem;
  }
}

/* The feedback form on the wiki's feedback page: label over field, one column, at the text's width. */
.feedback {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: var(--measure);
  margin: 1.25rem 0 2rem;
}

.feedback__label {
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.feedback__label:first-child,
.feedback__legend + .feedback__label {
  margin-top: 0;
}

.feedback__field {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-family: var(--sans);
  /* 16 px at least, or a phone zooms in on focus. */
  font-size: max(16px, 0.9375rem);
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper-sunk);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.feedback__field:hover {
  border-color: var(--ink-3);
}

.feedback__field:focus-visible {
  outline-offset: -1px;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.feedback__field--select,
.feedback__field--short {
  align-self: flex-start;
  width: auto;
  min-width: 12rem;
}

/* "Choose a type …" stands in like a placeholder: muted until a type is chosen, in the same colour
   as the other fields' placeholders. The required select is :invalid exactly while that empty first
   option is selected. */
.feedback__field::placeholder {
  color: var(--ink-2);
  opacity: 1;
}

.feedback__field--select:invalid {
  color: var(--ink-2);
}

.feedback__field--select option {
  color: var(--ink);
}

/* Shown only for a bug report: `hidden` must win over the block's flex layout. */
.feedback__log[hidden] {
  display: none;
}

/* The message with its character count under the box's right end, in the gap to the next label, so
   the count takes no room of its own. */
.feedback__message-box {
  position: relative;
}

.feedback__count {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

.feedback__count--near {
  color: var(--ink);
  font-weight: 600;
}

.feedback__field--message {
  min-height: 9rem;
  resize: vertical;
}

.feedback__title,
.feedback__image,
.feedback__log,
.feedback__manual {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Hidden by feedback.js when the app passed its version; display: flex would otherwise win. */
.feedback__manual[hidden],
.feedback__preview[hidden],
.feedback__title[hidden],
.feedback__from-app[hidden] {
  display: none;
}

.feedback__tip,
.feedback__from-app {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.feedback__from-app {
  margin-top: 0.75rem;
}

/* The legend of the marks stands above the first field, where it reads as the form's, not as the
   note of the field before it. */
.feedback__legend {
  margin: 0 0 0.25rem;
}

.cf-turnstile {
  margin-top: 0.75rem;
}

.feedback__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}

.feedback__send {
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
}

.feedback__send:disabled {
  opacity: 0.6;
  cursor: default;
}

.feedback__status {
  margin: 0;
  font-size: 0.9375rem;
}

.feedback__status--problem {
  color: var(--danger);
}

.feedback__sent {
  margin: 1.25rem 0 2rem;
  font-weight: 600;
}

/* It takes the focus only so the thanks is read out; nothing here can be operated. */
.feedback__sent:focus {
  outline: none;
}

/* A label opening one of the form's boxes keeps the gap to the field above it. */
.feedback__title > .feedback__label,
.feedback__image > .feedback__label,
.feedback__log > .feedback__label,
.feedback__manual > .feedback__label {
  margin-top: 0.75rem;
}

/* The chosen screenshot: a small picture, its name and the way to take it out again. */
.feedback__preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: var(--paper-sunk);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.feedback__thumb {
  width: 4.5rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 2px;
}

.feedback__thumb-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
}

/* The buttons inside the form look like the app's secondary buttons: a quiet filled surface with a
   thin edge and rounded corners, rather than the site's outlined call to action. */
.feedback__pick,
.feedback__remove {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color var(--hover) ease, background-color var(--hover) ease;
}

.feedback__pick:hover,
.feedback__remove:hover {
  border-color: var(--ink-3);
}

/* The real file field stays for the keyboard and screen readers, out of sight; its focus rings the
   button that stands in for it. */
.feedback__pick-box {
  position: relative;
  align-self: flex-start;
}

.feedback__pick-box[hidden] {
  display: none;
}

.feedback__file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.feedback__file:focus-visible + .feedback__pick {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.feedback__required {
  color: var(--accent);
}

/* Forced colours (a Windows contrast theme) replace every background with the page colour, so the
   markers that are nothing but a background would vanish: the current page's bar in the header, the
   status dot, the scene dots and the rail's ticks. They keep the system highlight colour, and a
   scene dot an outline so the unselected ones show too. */
@media (forced-colors: active) {
  .masthead__pages a[aria-current]::after,
  .tag::before,
  .slide-dot::after,
  .rail__tick {
    background: Highlight;
    forced-color-adjust: none;
  }

  .slide-dot {
    border: 1px solid CanvasText;
  }
}
