/* Furrow: what the site's pages share. The landing page's own sections are in landing.css,
   and the search page's in search.css. */

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  font-weight: 100 900;
  src: url("/assets/fonts/geist.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  font-weight: 100 900;
  src: url("/assets/fonts/geist-mono.woff2") format("woff2");
  font-display: swap;
}

/* Stand-ins for the moment before the faces above arrive. Each is a font the reader already
   has, scaled until its words take the same room, so text shows at once and nothing moves
   when the real face replaces it. The numbers were measured against this site's own text. */
@font-face {
  font-family: "Instrument Serif Fallback";
  src: local("Times New Roman"), local("TimesNewRomanPSMT");
  size-adjust: 83%;
  ascent-override: 119%;
  descent-override: 37%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Instrument Serif Fallback";
  font-style: italic;
  src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT");
  size-adjust: 87%;
  ascent-override: 114%;
  descent-override: 36%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Geist Fallback";
  font-weight: 100 900;
  src: local("Arial"), local("ArialMT");
  size-adjust: 102%;
  ascent-override: 98%;
  descent-override: 29%;
  line-gap-override: 0%;
}

/* Everything is lit from above, the way the hero's field is. A surface is lighter along its
   top, catches a line of light on its upper edge and throws a shadow under itself; a well is
   cut into a surface and darker than the page. Ember marks evidence and what is chosen. */
:root {
  color-scheme: dark;
  --bg: #09070C;
  --grain: url("/assets/grain.png");
  --fg: #F4EFE9;
  --body: #D4CCD2;
  --soft: #ABA2AC;
  --line: rgba(244, 239, 233, 0.11);
  --line-strong: rgba(244, 239, 233, 0.24);
  --panel: #19151D;
  --surface: linear-gradient(180deg, #211B27 0%, #17131C 100%);
  --surface-warm: linear-gradient(180deg, #36232F 0%, #251924 100%);
  --raised: linear-gradient(180deg, #2C2433 0%, #211B28 100%);
  --well: #0C0A10;
  --edge: inset 0 1px 0 rgba(255, 244, 230, 0.1), inset 0 0 0 1px rgba(255, 244, 230, 0.045);
  --lift: 0 32px 64px -32px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.35);
  --sunk: inset 0 2px 6px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 244, 230, 0.06);
  --ember: #FF7A5C;
  --rose: #F6667C;
  --orchid: #BC46A8;
  --iris: #B9C2FF;
  --wash: rgba(255, 122, 92, 0.17);
  --display: "Instrument Serif", "Instrument Serif Fallback", Georgia, "Times New Roman", serif;
  --sans: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 48px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* The page is not a flat black: a fine grain (`--grain`, a small tile of faint noise) lies
   over it, which the surfaces on it cover. Geist has no italic of its own; source titles
   still slant. */
body {
  margin: 0;
  background: var(--bg) var(--grain);
  color: var(--fg);
  font: 17px/1.6 var(--sans);
  font-synthesis: style;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-weight: 400;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

cite {
  font-style: italic;
}

::selection {
  background: var(--ember);
  color: #140D12;
}

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

/* 1200px of content between 48px gutters. */
.wrap {
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label,
.eyebrow {
  font: 500 12px/1.5 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.label {
  color: var(--soft);
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--ember);
}

.lede {
  max-width: 34em;
  color: var(--body);
  font-size: 19px;
  line-height: 1.55;
}

.aside {
  margin-top: 22px;
  color: var(--soft);
  font-size: 15px;
}

.caption {
  max-width: 44em;
  margin-top: 20px;
  color: var(--soft);
  font-size: 14.5px;
}

.locator {
  color: var(--soft);
  font: 12.5px/1.5 var(--mono);
  overflow-wrap: anywhere;
}

.nowrap {
  white-space: nowrap;
}

/* Read aloud, not shown. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 15px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--fg);
  color: #140D12;
  font: 500 16px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  background: #fff;
}

.button span {
  display: inline-block;
}

.button:hover span {
  transform: translateX(3px);
}

.button--ghost {
  border-color: var(--line-strong);
  background: rgba(9, 7, 12, 0.55);
  color: var(--fg);
}

.button--ghost:hover {
  border-color: rgba(244, 239, 233, 0.5);
  background: rgba(40, 32, 46, 0.8);
}

.button--small {
  padding: 11px 16px;
  font-size: 14.5px;
}

/* Header */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.wordmark {
  --furrow-accent: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 400 29px/1 var(--display);
  text-decoration: none;
}

.wordmark svg {
  width: 26px;
  height: 26px;
}

/* The mark is set twice in a wordmark: whole, and again as its three furrows one over each
   stroke (mark.svg). At rest only the whole mark shows. Pointed at, or reached by keyboard,
   the whole mark dims and the furrows are ploughed again over it, nearest first, a little
   brighter than before; pressed, the mark is pushed in, and let go it is ploughed once more.
   The furrows are drawn by moving a dash along each stroke: three short lines in a mark the
   size of a letter, which costs nothing to repaint. */
.wordmark .furrow {
  --furrow-accent: #FF9C7A;
  opacity: 0;
  color: #fff;
  stroke-dasharray: 1 2;
}

.wordmark .furrow + .furrow {
  --wait: 0.09s;
}

.wordmark .furrow + .furrow + .furrow {
  --wait: 0.18s;
}

/* The name beside the mark answers too. Pointed at, light the colours of the dusk crosses it
   from the left as the furrows are ploughed, and leaves it white; pressed, ember floods it
   from the left and it gives a little, and let go the light crosses it again. Both are
   pictures cut to the letters, put there only while they are wanted: at rest the name is
   plain text. Their place and size are set here so that there is something to move from. */
.wordmark-name {
  background-repeat: no-repeat;
  background-position:
    0 0,
    100% 0;
  background-size:
    0% 100%,
    300% 100%;
  transform-origin: 0 50%;
}

@media (prefers-reduced-motion: no-preference) {
  .wordmark {
    transition: color 0.2s;
  }

  .wordmark svg {
    overflow: visible;
    transition: transform 0.45s cubic-bezier(0.3, 1.5, 0.5, 1);
  }

  .wordmark use {
    transition: opacity 0.25s;
  }

  .wordmark-name {
    transition:
      background-position 0.8s cubic-bezier(0.45, 0, 0.25, 1) 0.1s,
      background-size 0.3s ease-out,
      transform 0.45s cubic-bezier(0.3, 1.5, 0.5, 1);
  }

  .wordmark:active svg {
    transform: scale(0.84) rotate(5deg);
    transition: transform 0.09s ease-out;
  }

  .wordmark:is(:hover, :focus-visible, :active) .wordmark-name {
    background-image:
      linear-gradient(var(--ember), var(--ember)),
      linear-gradient(100deg, #fff 0 42%, #FFE3CC 46%, #FF9C7A 50%, #F6667C 54%, #BC46A8 57%, var(--fg) 61% 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .wordmark:active .wordmark-name {
    background-size:
      100% 100%,
      300% 100%;
    transform: translateY(1px) scale(0.97);
    transition-duration: 0.12s;
    transition-delay: 0s;
  }

  @media (hover: hover) {
    .wordmark:is(:hover, :focus-visible) {
      color: #fff;
    }

    .wordmark:is(:hover, :focus-visible):not(:active) svg {
      transform: rotate(-7deg) scale(1.08);
    }

    .wordmark:is(:hover, :focus-visible):not(:active) .wordmark-name {
      background-position:
        0 0,
        0 0;
    }

    .wordmark:is(:hover, :focus-visible):not(:active) .mark-whole {
      opacity: 0.3;
    }

    .wordmark:is(:hover, :focus-visible):not(:active) .furrow {
      opacity: 1;
      animation: plough 0.5s cubic-bezier(0.3, 0.6, 0.2, 1) var(--wait, 0s) backwards;
    }
  }
}

@keyframes plough {
  from {
    stroke-dashoffset: 1;
  }
}

/* A plain link in a masthead, shown at every width. */
.bar-link {
  color: var(--body);
  font-size: 15px;
  text-decoration: none;
}

.bar-link:hover {
  color: #fff;
}

/* Type standing in for light. field.js fills the block with the preview's own source passages;
   whatever uses one gives it a gradient, which colours the letters and, where it runs out to
   nothing, fades them away. */
.glyphs {
  position: absolute;
  margin: 0;
  overflow: hidden;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font: 500 12.5px/1.64 var(--mono);
  letter-spacing: 0.16em;
  white-space: pre;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

/* The scene: a furrowed field running to a low sun. The land is a small canvas painted by
   field.js and shown as hard pixels. `--land` is how much of the box the canvas takes and
   `--rise` how far down the canvas its horizon sits, which puts the horizon at `--horizon` in
   the box; field.js reads `--rise`, `--sun` and `--figure`, so the painting and the sky
   agree. The sky is a smooth gradient. The landing and pricing pages stand whole sections in
   a scene. Nothing in it moves. */

.scene {
  --land: 72%;
  --rise: 0.2;
  --sun: 50%;
  --figure: 1;
  --horizon: calc(100% - var(--land) * (1 - var(--rise)));
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 30% 26% at var(--sun) var(--horizon),
      rgba(255, 222, 190, 0.95),
      rgba(252, 130, 122, 0.7) 28%,
      rgba(198, 70, 166, 0.4) 58%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent calc(var(--horizon) - 44%),
      rgba(44, 20, 78, 0.6) calc(var(--horizon) - 27%),
      rgba(100, 36, 116, 0.82) calc(var(--horizon) - 12%),
      rgba(214, 86, 122, 0.9) calc(var(--horizon) - 3.5%),
      rgba(255, 172, 136, 0.96) var(--horizon),
      transparent var(--horizon)
    );
  pointer-events: none;
}

/* The page's dark comes back up over the nearer furrows, where the copy sits. */
.scene::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 54%;
  background: var(--grain), linear-gradient(to top, var(--bg) 14%, rgba(9, 7, 12, 0.66) 56%, transparent);
}

.scene-land {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--land);
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

/* Answers and their sources */

.answer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 65ch) minmax(260px, 360px);
  justify-content: space-between;
  column-gap: 56px;
  font-size: 19px;
  line-height: 1.65;
}

.answer > p {
  grid-column: 1;
  margin-bottom: 1em;
  text-wrap: wrap;
}

.answer > .follow {
  grid-row: -2 / -1;
  align-self: end;
  margin: 0;
  font: 500 15.5px/1.6 var(--sans);
  letter-spacing: 0;
}

.evidence {
  margin: 0 -2px;
  padding: 0 2px;
  border: 0;
  border-radius: 3px;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: underline dotted var(--ember) 2px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

/* A tight ring, so it does not run into the words on either side. */
.evidence:focus-visible {
  outline-offset: 1px;
}

.evidence:hover,
.evidence[aria-expanded="true"] {
  text-decoration-style: solid;
}

.evidence:hover {
  background: rgba(255, 122, 92, 0.08);
}

.evidence[aria-expanded="true"] {
  background: var(--wash);
}

.evidence sup,
.note-mark {
  color: var(--ember);
  font: 600 11px/1 var(--mono);
  letter-spacing: 0;
}

.evidence sup {
  display: inline-block;
  position: relative;
  top: -0.2em;
  margin-left: 3px;
  vertical-align: super;
}

/* The thread from the open phrase runs into the rule along the top of its note. */
.thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.thread path {
  fill: none;
  stroke: var(--ember);
  stroke-width: 1.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(255, 122, 92, 0.75));
}

/* The note hangs from its rule. It has no box of its own: the rule's light falls down it and
   is gone before the note ends. */
.note {
  grid-column: 2;
  align-self: start;
  margin-top: 6px;
  padding: 12px 18px 20px;
  border-top: 1.5px solid var(--ember);
  background: linear-gradient(180deg, rgba(255, 122, 92, 0.11), rgba(255, 122, 92, 0) 68%);
  font: 400 15px/1.5 var(--sans);
  letter-spacing: 0;
}

.note-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 32px;
}

.note-phrase {
  font-weight: 600;
}

.note-close {
  align-self: center;
  width: 32px;
  height: 32px;
  margin: -4px -8px 0 auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--soft);
  font: 400 24px/1 var(--sans);
  cursor: pointer;
}

.note-close:hover {
  background: rgba(244, 239, 233, 0.08);
  color: var(--fg);
}

.note-locator {
  margin-top: 4px;
  color: var(--soft);
  font: 12.5px/1.5 var(--mono);
  overflow-wrap: anywhere;
}

.note-excerpt {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 2px solid var(--ember);
  font-size: 16.5px;
  line-height: 1.55;
}

.note-method,
.note-context {
  color: var(--soft);
}

.note-method,
.note-attribution {
  margin-top: 14px;
}

.note-context {
  display: block;
}

.note-links,
.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 16px;
  font-size: 15px;
}

.note-links a,
.card-links a {
  color: #FF9D83;
  font-weight: 500;
}

.note-links a:hover,
.card-links a:hover {
  color: #FFC4B2;
}

/* The composer: one large field, the workspace's three choices under it, and a button. */

/* It is flat: one fill, and round it a thick rim in place of a drawn outline. The rim is an
   element of its own behind the fill, `--rim` wider all round. At rest it is a quiet band
   with two lengths of light on it, which the motion block sends round; with the reader inside
   the composer the whole band is lit in the evidence colours and throws a little of that
   light onto the page. */
.composer {
  --rim: 3px;
  --round: 28px;
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-inline: auto;
  padding: 8px 10px 10px 26px;
  border-radius: var(--round);
  text-align: left;
}

.composer::before,
.composer::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

/* The light it throws when lit. */
.composer::before {
  z-index: -2;
  background: linear-gradient(100deg, #FF9D83, #F6667C 45%, #8A5BE0);
  filter: blur(26px);
  opacity: 0;
}

/* The fill, laid over the rim. */
.composer::after {
  z-index: -1;
  background: #17131D;
}

.composer-rim {
  position: absolute;
  z-index: -1;
  inset: calc(0px - var(--rim));
  overflow: hidden;
  border-radius: calc(var(--round) + var(--rim));
  background: rgba(255, 244, 230, 0.17);
  pointer-events: none;
}

.composer-rim::before,
.composer-rim::after {
  content: "";
  position: absolute;
}

/* The two lengths of light, on a square large enough to cover the band whichever way it is
   turned. */
.composer-rim::before {
  z-index: 1;
  top: 50%;
  left: 50%;
  width: calc(100% + 200px);
  aspect-ratio: 1;
  margin: calc(-50% - 100px) 0 0 calc(-50% - 100px);
  background: conic-gradient(
    rgba(255, 208, 176, 0) 0 6%,
    #FFD0B0 15%,
    #FF7A5C 21%,
    rgba(255, 122, 92, 0) 31% 56%,
    #B9C2FF 65%,
    #BC46A8 71%,
    rgba(188, 70, 168, 0) 81% 100%
  );
}

/* The whole band lit. */
.composer-rim::after {
  inset: 0;
  background: linear-gradient(100deg, #FFB08E, #FF7A5C 26%, #F6667C 50%, #BC46A8 76%, #8A5BE0);
  opacity: 0;
}

.composer:focus-within::before {
  opacity: 0.3;
}

.composer:focus-within .composer-rim::after {
  opacity: 1;
}

/* A composer whose field the page itself has made ready (the search page does) is waiting,
   not chosen: it stays unlit until it is pressed or typed in. The page marks it. */
.composer[data-resting]:focus-within::before,
.composer[data-resting]:focus-within .composer-rim::after {
  opacity: 0;
}

/* A question or suggestion too long for the field ends in an ellipsis, not mid-letter. */
.composer input {
  display: block;
  width: 100%;
  padding: 18px 12px 14px 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: none;
  color: inherit;
  font: 400 clamp(18px, 1.5vw, 20px) / 1.3 var(--sans);
  text-overflow: ellipsis;
  appearance: none;
  -webkit-appearance: none;
}

.composer input::placeholder {
  color: var(--soft);
  opacity: 1;
}

.composer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: -14px;
}

.composer-bar > button {
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--fg);
  color: #140D12;
  font: 400 20px/1 var(--sans);
  cursor: pointer;
}

/* With nothing asked yet, the button waits. */
.composer input:placeholder-shown ~ .composer-bar > button {
  background: rgba(255, 244, 230, 0.1);
  color: var(--soft);
}

.composer input:placeholder-shown ~ .composer-bar > button:hover {
  background: rgba(255, 244, 230, 0.18);
  color: var(--fg);
}

.composer-bar > button:hover {
  background: #fff;
}

.composer-bar > button span {
  display: inline-block;
}

.composer-bar > button:hover span {
  transform: translateX(2px);
}

.composer-bar > button:active {
  transform: scale(0.94);
}

/* A choice: a pill that names it and shows what is chosen, with no outline of its own inside
   the composer's. composer.js draws the list that opens under it and keeps the hidden select
   beside it in step, which is what the form submits. */
.pick {
  position: relative;
}

.pick-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px 9px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 244, 230, 0.065);
  color: var(--fg);
  font: 400 14px/1.4 var(--sans);
  white-space: nowrap;
  cursor: pointer;
}

.pick-trigger:hover,
.pick-trigger[aria-expanded="true"] {
  background: rgba(255, 244, 230, 0.12);
}

.pick-trigger:active {
  transform: scale(0.97);
}

.pick-trigger:focus-visible {
  outline-offset: 2px;
  border-radius: 999px;
}

.pick-name {
  color: var(--soft);
}

.pick-value {
  max-width: 11em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pick-chevron {
  width: 10px;
  height: 6px;
  margin-left: 2px;
  fill: none;
  stroke: var(--soft);
  stroke-width: 1.4;
}

.pick-trigger[aria-expanded="true"] .pick-chevron {
  transform: rotate(180deg);
}

/* The list: a flat sheet hung from the pill. composer.js sets `data-align` and `data-side`
   when it has to hang from the other edge or open upwards to stay on screen, and `data-state`
   as it opens and closes, which is what the motion block animates. */
.pick-menu {
  --from: -6px;
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  min-width: max(100%, 11.5em);
  max-height: min(27em, 62vh);
  overflow-y: auto;
  padding: 6px;
  border-radius: 14px;
  background: #1B1622;
  box-shadow:
    0 0 0 1px rgba(255, 244, 230, 0.1),
    0 20px 44px -14px rgba(0, 0, 0, 0.85);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
  transform-origin: top left;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 239, 233, 0.22) transparent;
}

.pick-menu[data-align="end"] {
  right: 0;
  left: auto;
  transform-origin: top right;
}

.pick-menu[data-side="top"] {
  --from: 6px;
  top: auto;
  bottom: calc(100% + 8px);
  transform-origin: bottom left;
}

.pick-menu li {
  position: relative;
  padding: 8px 36px 8px 10px;
  border-radius: 8px;
  color: var(--body);
  cursor: pointer;
}

.pick-menu li[data-active] {
  background: rgba(255, 244, 230, 0.1);
  color: var(--fg);
}

.pick-menu li[aria-selected="true"] {
  color: var(--fg);
}

/* A tick against what is chosen. */
.pick-menu li[aria-selected="true"]::after {
  content: "";
  position: absolute;
  top: calc(50% - 5px);
  right: 13px;
  width: 10px;
  height: 6px;
  border: solid var(--ember);
  border-width: 0 0 1.6px 1.6px;
  transform: rotate(-45deg);
}

.search-hint {
  max-width: 46em;
  margin-top: 18px;
  color: var(--soft);
  font-size: 15px;
}

/* Question titles, each a link to its own search: three to try, under a composer. */
.questions a {
  font-family: var(--display);
  text-decoration: none;
}

.questions a:hover {
  color: #FF9D83;
}

/* A stage: something standing in front of the light of the sources it draws on. The light
   rises behind its upper edge and is gone by its foot. */
.stage {
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.stage .glyphs {
  z-index: -1;
  inset: -52px 0 -40px;
  background-image: radial-gradient(
    ellipse 54% 62% at 50% 26%,
    #FFE9D6 0%,
    #FFB08E 18%,
    #F6667C 36%,
    #BC46A8 54%,
    rgba(123, 79, 214, 0.55) 74%,
    rgba(123, 79, 214, 0) 96%
  );
}

/* One column: the note follows its paragraph. */
@media (max-width: 900px) {
  .answer {
    display: block;
  }

  .note {
    margin: 0 0 1.4em;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
  }

  body {
    font-size: 16.5px;
  }

  .lede {
    font-size: 17.5px;
  }

  .bar {
    height: 60px;
  }

  .answer {
    font-size: 18px;
  }

  .glyphs {
    font-size: 11px;
  }

  .composer {
    --round: 24px;
    padding: 6px 8px 8px 18px;
  }

  .composer input {
    padding: 14px 8px 10px 0;
  }

  .composer-bar {
    margin-left: -8px;
  }

  .pick-trigger {
    padding: 8px 11px 8px 12px;
    font-size: 13.5px;
  }

  .pick-value {
    max-width: 8em;
  }
}

/* Motion. Colours change briefly on hover; two lengths of light go round the composer's rim;
   a list opens and closes the way a good menu does; and the composer travels between the
   site's pages instead of vanishing. None of it runs for readers who ask for less, and all
   of it is opacity and transform, which the browser can do without redrawing the page. */
@media (prefers-reduced-motion: no-preference) {
  a,
  button,
  .button {
    transition:
      color 0.2s,
      background-color 0.2s,
      box-shadow 0.25s,
      transform 0.15s var(--ease);
  }

  .button span,
  .composer-bar > button span {
    transition: transform 0.25s var(--ease);
  }

  /* The rim's lights go round once in nine seconds. They stand still while the composer is
     off screen (composer.js marks it). */
  .composer-rim::before {
    animation: turn 9s linear infinite;
    transition: opacity 0.4s;
  }

  .composer.is-away .composer-rim::before {
    animation-play-state: paused;
  }

  .composer::before,
  .composer-rim::after {
    transition: opacity 0.35s;
  }

  .glyphs.is-ready,
  .scene-land.is-ready {
    animation: appear 0.9s ease-out;
  }

  .pick-chevron {
    transition: transform 0.2s var(--ease);
  }

  .pick-menu li {
    transition:
      background-color 0.12s,
      color 0.12s;
  }

  .pick-menu[data-state="open"] {
    animation: menu-in 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .pick-menu[data-state="closed"] {
    animation: menu-out 0.12s ease-in both;
  }

  /* From one of the site's pages to the next, the page crosses over and the composer, named
     on both sides (by composer.js as it is sent, and by the page it arrives on), moves to
     where it sits on the new one. */
  @view-transition {
    navigation: auto;
  }

  ::view-transition-group(composer) {
    animation-duration: 0.45s;
    animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
  }
}

@keyframes appear {
  from {
    opacity: 0;
  }
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes turn {
  to {
    transform: rotate(1turn);
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(var(--from)) scale(0.95);
  }
}

@keyframes menu-out {
  to {
    opacity: 0;
    transform: translateY(var(--from)) scale(0.96);
  }
}
