/* Generated from packages/tokens/src/index.ts by `pnpm --filter @mysh/tokens generate`. Do not edit. */
:root {
  --bg: #0D0D0C;
  --surface: #171716;
  --surface-2: #201F1D;
  --surface-3: #2A2926;
  --border: #262523;
  --border-strong: #34332F;
  --hairline: #1F1E1C;
  --text: #F4F1EA;
  --text-2: #B5B3AC;
  --text-3: #8C8A84;
  --placeholder: #77746C;
  --accent: #9DB4E8;
  --accent-2: #B9CBF0;
  --accent-muted: #1A2236;
  --accent-text: #0D0D0C;
  --paper: #F4F1EA;
  --ink: #0D0D0C;
  --ink-2: #5C5952;
  --paper-line: #E3DFD4;
  --ink-accent: #2B3A6B;
  --success: #86CFA0;
  --warning: #E8C26E;
  --danger: #EF7A6C;
  --danger-muted: #2D1A17;
  --input-bg: #1C1B19;
  --font-serif: 'Hedvig Letters Serif', 'Hedvig Serif Fallback', Georgia, 'Times New Roman', serif;
  --font-sans: 'Hedvig Letters Sans', 'Hedvig Sans Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  color-scheme: dark;
}

/* mysh.ai. Black, one typeface family, and the video. Colour variables come from @mysh/tokens
   (prepended by the build); the site darkens them to true black below, because the page is a
   room for a film and the only colour on it should be the film's. */

/* Hedvig Letters (SIL OFL), latin subset. The serif is the brand voice: the wordmark, headings and
   anything a person said. The sans is for everything that is merely read. Neither has a bold or an
   italic, and none is synthesised: emphasis is a change of face, not of weight. The fallback faces
   are metrics-matched so text does not jump when the real fonts arrive. */
@font-face {
  font-family: 'Hedvig Letters Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/HedvigLettersSerif.woff2') format('woff2');
}
@font-face {
  font-family: 'Hedvig Letters Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/HedvigLettersSans.woff2') format('woff2');
}
@font-face {
  font-family: 'Hedvig Serif Fallback';
  src: local('Georgia'), local('Times New Roman');
  size-adjust: 103.7%;
  ascent-override: 102%;
  descent-override: 32%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Hedvig Sans Fallback';
  src: local('Arial'), local('Helvetica'), local('Liberation Sans');
  size-adjust: 100.3%;
  ascent-override: 102%;
  descent-override: 32%;
  line-gap-override: 0%;
}

:root {
  --bg: #000000;
  --surface: #121212;
  --surface-2: #1a1a1a;
  --surface-3: #242424;
  --border: #262626;
  --hairline: #1c1c1c;
  --site: 72rem;
  --measure: 40rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
  scrollbar-gutter: stable;
  caret-color: var(--text);
  accent-color: var(--text);
  font-synthesis: none;
  font-optical-sizing: auto;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  text-rendering: optimizeLegibility;
}
p,
li,
dd {
  text-wrap: pretty;
}
img,
svg,
video {
  max-inline-size: 100%;
  block-size: auto;
}
strong,
b,
em,
i,
.said {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: normal;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--text-3);
  text-underline-offset: 0.2em;
  transition:
    text-decoration-color 150ms ease,
    color 150ms ease;
}
a:hover {
  text-decoration-color: var(--text);
}
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  color: var(--bg);
  background: var(--text);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.9rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  text-decoration: none;
  z-index: 20;
}
.skip-link:focus {
  top: 1rem;
}

main {
  flex: 1;
  width: 100%;
}
main:focus {
  outline: none;
}

/* ---------- the grid every page shares ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--site));
  margin-inline: auto;
}

/* ---------- header ---------- */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.015em;
  text-decoration: none;
  color: var(--text);
}
.brand .stars {
  font-size: 0.62em;
  letter-spacing: -0.06em;
  vertical-align: -0.12em;
  margin-left: 0.04em;
}
.site-header nav {
  display: flex;
  gap: 0.25rem;
  margin-right: -0.75rem;
}
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  color: var(--text-2);
  text-decoration: none;
  border-radius: 8px;
}
.site-header nav a:hover {
  color: var(--text);
}
.site-header nav a[aria-current] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.4em;
  text-decoration-color: var(--text);
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: auto;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  min-height: 4.5rem;
  color: var(--text-3);
  font-size: 0.95rem;
}
.site-footer nav {
  display: flex;
  gap: 1.5rem;
}
.site-footer a {
  color: var(--text-3);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
}

/* ---------- homepage: the film ---------- */
.home main {
  display: grid;
  place-items: center;
  padding: 0 0 1rem;
}
.home main .container {
  display: grid;
  justify-items: center;
}
.film {
  /* Fits the frame to the room: never wider than the page, never taller than the viewport
     leaves after the header and footer. */
  width: min(100%, calc((100dvh - 11rem) * 16 / 9));
  min-width: min(100%, 18rem);
}
.frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  isolation: isolate;
}
.frame .poster,
.frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.frame .poster {
  object-fit: cover;
  display: block;
}
.frame iframe {
  z-index: 1;
  opacity: 0;
}
.frame .play {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.frame .play .disc {
  width: clamp(4rem, 8vw, 5.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: grid;
  place-items: center;
  transition: transform 200ms ease;
}
.frame .play .disc svg {
  width: 38%;
  height: auto;
  margin-left: 7%;
}
.frame .play:focus-visible {
  outline: none;
}
.frame .play:focus-visible .disc {
  outline: 2px solid var(--text);
  outline-offset: 5px;
}
.frame .play:active .disc {
  transform: scale(0.96);
  transition-duration: 100ms;
}
@media (hover: hover) and (pointer: fine) {
  .frame .play:hover .disc {
    transform: scale(1.05);
  }
}
.frame .caption {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  margin: 0;
  padding: 2.5rem 1.25rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
  background: linear-gradient(to top, rgb(0 0 0 / 0.55), transparent);
  pointer-events: none;
}
.film-fallback {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  color: var(--text-2);
}

/* Before the sequence runs (flag.js marks the page), the frame waits shut and the chrome unseen.
   home.js opens it; if the sequence never starts, flag.js takes the mark away. */
.js-motion .home .site-header,
.js-motion .home .site-footer {
  opacity: 0;
}
.js-motion .film:not(.is-open) .frame {
  clip-path: inset(50% 0 50% 0 round var(--radius));
}
.js-motion .film:not(.is-open) .play {
  opacity: 0;
}

/* ---------- prose (About, Privacy, docs) ---------- */
.prose {
  max-width: var(--measure);
  width: 100%;
  padding: 1.5rem 0 3rem;
}
.prose h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 1rem 0 1.25rem;
  text-wrap: balance;
}
.prose h1 + p {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 34rem;
}

/* Text pages span the same grid as the rest of the site: an opening, then rows that put each
   heading beside its text. */
.page .prose {
  max-width: none;
  padding: clamp(1.5rem, 5vh, 3.5rem) 0 2rem;
}
.page .opening {
  padding-bottom: clamp(2rem, 6vh, 4rem);
}
.page .opening h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  max-width: 14em;
  margin: 0 0 1rem;
}
.page .opening h1 + p {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.3;
  color: var(--text);
  max-width: 28em;
}
.page .opening > :last-child {
  margin-bottom: 0;
}
.page .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem 3rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
}
.page .row .h-wrap h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}
.page .row-body {
  max-width: var(--measure);
}
.page .row-body > :first-child {
  margin-top: 0;
}
.page .row-body > :last-child {
  margin-bottom: 0;
}
@media (min-width: 52rem) {
  .page .row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    padding: 2.5rem 0;
  }
}
.prose h2 {
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 3rem 0 0.75rem;
}
.prose h3 {
  font-size: 1.3rem;
  margin: 2rem 0 0.5rem;
}
.prose h2 a,
.prose h3 a {
  color: inherit;
  text-decoration: none;
}
.prose h2[id],
.prose h3[id] {
  scroll-margin-top: 5.5rem;
}
.h-wrap {
  position: relative;
}
.h-wrap .anchor {
  position: absolute;
  right: 100%;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding-right: 0.4rem;
  color: var(--text-3);
  text-decoration: none;
}
.h-wrap .anchor:hover {
  color: var(--text);
}
@media (hover: hover) {
  .h-wrap .anchor {
    opacity: 0;
  }
  .h-wrap:hover .anchor,
  .h-wrap .anchor:focus-visible {
    opacity: 1;
  }
}
.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1rem;
}
.prose li {
  margin: 0.3rem 0;
}
.prose li > ul,
.prose li > ol {
  margin-bottom: 0.25rem;
}
.prose blockquote {
  margin: 1.5rem 0;
  padding: 0;
  border: 0;
  color: var(--text);
}
.prose blockquote p {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.3;
  max-width: 24em;
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose blockquote code {
  font-size: 0.72em;
}
.docs-layout .prose blockquote p {
  font-size: 1.25rem;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border-radius: 6px;
  padding: 0.12em 0.4em;
  overflow-wrap: anywhere;
}
.prose pre {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  overflow-x: auto;
  line-height: 1.55;
  font-size: 0.9rem;
  tab-size: 2;
}
.prose pre:focus-visible,
.table-wrap:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.prose pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  overflow-wrap: normal;
}
.table-wrap {
  margin: 1rem 0 1.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.prose table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.prose td code,
.prose th code {
  white-space: nowrap;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.9rem 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.prose th {
  color: var(--text-2);
  font-family: var(--font-serif);
  font-size: 1.05rem;
}
.prose img {
  max-width: 100%;
  height: auto;
}
.prose .lead {
  font-size: 1.2rem;
  color: var(--text-2);
}
.prose .placeholder {
  color: var(--text-3);
}

/* ---------- the story (About) ---------- */
.story-open {
  padding: clamp(3rem, 10vh, 7rem) 0 clamp(2rem, 6vh, 4rem);
}
.story-open h1 {
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 14em;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
.story-open p {
  margin: 0;
  max-width: 34em;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--text-2);
}

/* The stream: columns of things people have said, drifting past. It is the "anything" shown rather
   than claimed. The lists are duplicated once so the drift can loop; under reduced motion they
   stand still, and it is hidden from assistive technology because it is decoration. */
.story-stream {
  padding: 0 0 clamp(4rem, 12vh, 8rem);
}
.story-stream .columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  height: clamp(18rem, 44vh, 26rem);
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
.story-stream .col {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.3;
  color: var(--text);
  animation: drift 70s linear infinite;
  will-change: transform;
}
.story-stream .col:nth-child(2) {
  animation-duration: 86s;
  animation-direction: reverse;
}
.story-stream .col:nth-child(3) {
  animation-duration: 78s;
  display: none;
}
.story-stream .col li {
  padding: 0.55em 0;
  text-wrap: pretty;
}
.story-stream .columns:hover .col {
  animation-play-state: paused;
}
@keyframes drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}
@media (min-width: 52rem) {
  .story-stream .columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 3rem;
  }
  .story-stream .col:nth-child(3) {
    display: block;
  }
}

.story-example {
  display: grid;
  gap: 3rem 3rem;
  align-items: start;
  padding: 0 0 clamp(4rem, 12vh, 8rem);
}
.story-example .label {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-3);
}
.story-example .said,
.story-example .q {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  line-height: 1.25;
  max-width: 18em;
}
.story-example .a {
  margin: 1rem 0 0;
  max-width: 24em;
  color: var(--text-2);
}
.story-example .kept {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 24rem;
}
.story-example .kept li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.1rem 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--border);
}
.story-example .kept li:last-child {
  border-bottom: 1px solid var(--border);
}
.story-example .kept .name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
}
.story-example .kept .detail {
  grid-column: 1;
  color: var(--text-2);
}
.story-example .kept .when {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  color: var(--text-3);
  font-size: 0.95rem;
  padding-top: 0.2rem;
}
@media (min-width: 60rem) {
  .story-example {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.story-how {
  display: grid;
  gap: 3rem 3rem;
  padding: 0 0 clamp(4rem, 12vh, 8rem);
}
.story-how h2 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  line-height: 1.15;
}
.story-how p {
  margin: 0;
  max-width: 28em;
}
@media (min-width: 52rem) {
  .story-how {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* The close: set apart by scale and a rule, not by a surface. */
.story-yours {
  display: grid;
  gap: 1rem 4rem;
  align-items: start;
  padding: clamp(3rem, 8vh, 5rem) 0 clamp(4rem, 10vh, 7rem);
  border-top: 1px solid var(--border);
}
.story-yours h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.story-yours p {
  margin: 0;
  max-width: 30em;
  font-size: 1.2rem;
  line-height: 1.55;
}
@media (min-width: 52rem) {
  .story-yours {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.story .site-footer {
  margin-top: 0;
}

/* ---------- docs ---------- */
.docs-layout {
  display: grid;
  gap: 1.5rem 3rem;
  grid-template-columns: minmax(0, 1fr);
}
.docs-nav {
  font-size: 0.95rem;
}
/* Narrow screens: a bar under the header says where the reader is and folds the list away.
   It stays at the top while reading, so the list is always one tap away. */
.docs-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
}
.docs-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.docs-bar .crumb {
  color: var(--text-2);
  text-decoration: none;
}
.docs-bar .crumb::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--text-3);
}
.docs-bar .here {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}
.docs-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-2);
  font: inherit;
  cursor: pointer;
}
.docs-toggle:hover {
  color: var(--text);
}
.docs-toggle::after {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  margin-top: -0.2rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 150ms var(--ease-out);
}
.docs-toggle[aria-expanded='true']::after {
  margin-top: 0.2rem;
  transform: rotate(225deg);
}
.docs-nav:has(.docs-toggle[aria-expanded='false']) .groups {
  display: none;
}
.docs-nav .groups {
  padding: 0.75rem 0;
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
  border-bottom: 1px solid var(--border);
}
.docs-group {
  margin: 0 0 1.25rem;
}
.docs-group h2 {
  margin: 0 0 0.35rem;
  padding: 0 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-3);
}
.docs-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.docs-group a {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  color: var(--text-2);
  text-decoration: none;
}
.docs-group a:hover {
  color: var(--text);
  background: var(--surface);
}
.docs-group a[aria-current='page'] {
  color: var(--text);
  background: var(--surface-2);
}
.docs-layout .prose {
  padding-top: 0.5rem;
}
.toc {
  display: none;
}
.docs-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.docs-pager a {
  display: grid;
  gap: 0.2rem;
  color: var(--text);
  max-width: 48%;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}
.docs-pager a:hover {
  color: var(--text-2);
}
.docs-pager .dir {
  color: var(--text-3);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}
.docs-pager .next {
  margin-left: auto;
  text-align: right;
}

@media (min-width: 60rem) {
  .docs-layout {
    grid-template-columns: 15rem minmax(0, 1fr);
    align-items: start;
  }
  .docs-nav {
    top: 1.5rem;
    max-height: calc(100dvh - 3rem);
    overflow-y: auto;
    padding-right: 0.5rem;
  }
  .docs-bar {
    display: none;
  }
  .docs-nav:has(.docs-toggle[aria-expanded='false']) .groups,
  .docs-nav .groups {
    display: block;
    padding: 0.5rem 0 0;
    max-height: none;
    overflow: visible;
    border-bottom: 0;
  }
}
@media (min-width: 78rem) {
  .docs-layout {
    grid-template-columns: 15rem minmax(0, 1fr) 12rem;
  }
  .toc {
    display: block;
    position: sticky;
    top: 1.5rem;
    font-size: 0.9rem;
    padding-top: 1rem;
  }
  .toc p {
    margin: 0 0 0.5rem;
    color: var(--text-3);
    font-size: 0.85rem;
  }
  .toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .toc a {
    display: block;
    padding: 0.25rem 0;
    color: var(--text-2);
    text-decoration: none;
  }
  .toc a:hover {
    color: var(--text);
  }
  .toc a[aria-current='true'] {
    color: var(--text);
  }
}

/* ---------- 404 ---------- */
.lost {
  max-width: var(--measure);
  padding: clamp(3rem, 12vh, 8rem) 0;
}
.lost h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.lost p {
  color: var(--text-2);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
@media (prefers-contrast: more) {
  :root {
    --text-2: #d6d3cb;
    --text-3: #b0ada5;
    --border: #4a4843;
  }
}
@media (forced-colors: active) {
  .frame {
    border: 1px solid CanvasText;
  }
  .frame .play .disc {
    border: 1px solid CanvasText;
  }
}
@media (prefers-reduced-motion: reduce) {
  .docs-toggle::after,
  .frame .play .disc,
  a {
    transition: none;
  }
  .story-stream .col {
    animation: none;
  }
}
