/*
  One stylesheet, inlined into every page.

  The idea: the site is typeset like a transcript. Time lives in the left margin,
  the text sits in one reading column, and the only colour is a highlighter.

  Paper   #ffffff   the page
  Ink     #1a1a1a   text, rules that carry meaning, focus
  Marker  #d6f25c   the highlighter: main action, found text, the line being spoken
  Slate   #5e6166   secondary text
  Rule    #dededb   hairlines
  Wash    #f3f3f1   quiet fills
*/
:root {
  --paper: #ffffff;
  --ink: #1a1a1a;
  --marker: #d6f25c;
  --marker-soft: #eef8c4;
  --slate: #5e6166;
  --rule: #dededb;
  --wash: #f3f3f1;
  --alert: #a8261b;
  /* Card tints on the start page */
  --sky: #d9ecff;
  --peach: #ffe3c9;
  --lilac: #e8e0ff;
  --pink: #ffd9ec;
  --rail: 5.5rem;
  --measure: 43rem;
  --frame: 70rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171717;
    --ink: #f1f1ef;
    --marker-soft: #3b4517;
    --slate: #a9aaa6;
    --rule: #363634;
    --wash: #242423;
    --alert: #ff9d91;
    --sky: #1d3247;
    --peach: #45301f;
    --lilac: #2e2848;
    --pink: #45243a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #171717;
  --ink: #f1f1ef;
  --marker-soft: #3b4517;
  --slate: #a9aaa6;
  --rule: #363634;
  --wash: #242423;
  --alert: #ff9d91;
  --sky: #1d3247;
  --peach: #45301f;
  --lilac: #2e2848;
  --pink: #45243a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
::selection { background: var(--marker); color: #1a1a1a; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2 { margin: 0; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
code { font: 0.875em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--wash); padding: 0.1em 0.35em; border-radius: 4px; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; left: -200vw; }
.quiet { color: var(--slate); }

/* Frame: a reading column with a margin on its left for timecodes. */
.top, main, .foot { width: 100%; max-width: var(--frame); margin-inline: auto; padding-inline: 1rem; }
main { flex: 1; padding-bottom: 4rem; }
main > *, .doc > * { max-width: var(--measure); }
@media (min-width: 62rem) {
  .top, main, .foot { padding-left: calc(var(--rail) + 1rem); }
}

.top { display: flex; align-items: center; justify-content: space-between; padding-block: 0.75rem; }
/* The name is set as highlighted text. */
.brand { display: inline-block; padding: 0.2em 0.45em; border-radius: 3px; background: var(--marker); color: #1a1a1a; font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 0.25rem; }
.top nav a { padding: 0.625rem 0.75rem; font-size: 0.9375rem; }
.icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; cursor: pointer; }
.icon:hover { background: var(--wash); }

.foot { border-top: 1px solid var(--rule); padding-block: 1.25rem 2rem; color: var(--slate); font-size: 0.875rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-left: -0.125rem; }
.foot a { display: inline-block; padding: 0.5rem 0.125rem; }
.foot p { margin-top: 0.25rem; }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; min-height: 44px; padding: 0 0.9375rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); font-family: inherit; font-size: 0.9375rem; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; user-select: none; }
.btn:hover { border-color: var(--ink); }
.btn.primary { border-color: var(--marker); background: var(--marker); color: #1a1a1a; font-weight: 700; }
.btn.primary:hover { border-color: #1a1a1a; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled:hover { border-color: var(--rule); }
.btn.primary:disabled:hover { border-color: var(--marker); }
.waiting { margin-top: 0.5rem; font-size: 0.875rem; opacity: 0.75; }
.btn.toggle[aria-pressed="true"] { border-color: var(--ink); background: var(--wash); }
input[type="text"], input[type="search"], input[type="email"], select { min-height: 44px; min-width: 0; padding: 0 0.75rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; }
input::placeholder { color: var(--slate); opacity: 1; }
input:focus-visible, select:focus-visible { outline: 2px solid var(--ink); outline-offset: -1px; }

/* Link form */
.ask { display: flex; gap: 0.5rem; }
.field { position: relative; display: flex; flex: 1; min-width: 0; }
.field input { flex: 1; width: 100%; min-height: 56px; padding-inline: 1rem 4.75rem; border: 1.5px solid var(--ink); font-size: 1.0625rem; }
.ask > .btn { min-height: 56px; padding-inline: 1.375rem; font-size: 1.0625rem; }
.paste { position: absolute; right: 0.5rem; top: 50%; translate: 0 -50%; height: 38px; padding: 0 0.625rem; border: 0; border-radius: 6px; background: var(--wash); color: inherit; font-family: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
.ask.busy > .btn { pointer-events: none; }
.ask.busy > .btn span::after { content: ""; display: inline-block; width: 0.8em; height: 0.8em; margin-left: 0.5em; vertical-align: -0.08em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
.ask.compact .field input { min-height: 44px; padding-inline: 0.75rem; border: 1px solid var(--rule); font-size: 1rem; }
.ask.compact > .btn { min-height: 44px; padding-inline: 0.9375rem; font-size: 0.9375rem; }
.hint { min-height: 1.5rem; margin-top: 0.5rem; color: var(--alert); font-size: 0.9375rem; }
.hint:empty { min-height: 0; margin: 0; }

/* Start page */
.hero { padding: clamp(1.5rem, 9vh, 5.5rem) 0 2.5rem; }
.hero h1 { font-size: clamp(2.375rem, 8.4vw, 4rem); line-height: 1; letter-spacing: -0.035em; }
.lead { margin: 1rem 0 1.75rem; max-width: 34rem; color: var(--slate); font-size: clamp(1.0625rem, 2.6vw, 1.25rem); line-height: 1.45; }
.sample { margin-top: 0.875rem; font-size: 0.9375rem; }
.section { padding-top: 2.5rem; }
.section > h2 { margin-bottom: 1rem; font-size: 1.3125rem; }
.chip { display: inline-block; padding: 0.05em 0.5em; border: 1px dashed var(--ink); border-radius: 6px; font-size: 0.9375rem; font-weight: 600; text-decoration: none; cursor: grab; }
/* Start page hero: a sheet of lined paper in the highlighter colour, edge to edge, under
   the top bar too. border-image paints past the column without widening the page, and the
   band keeps its light colours in dark mode, since the marker is the brand. */
.home .top, .home .hero {
  --ink: #1a1a1a; --slate: #3a3f1c; --paper: #ffffff; --wash: #f3f3f1; --alert: #a8261b;
  color: var(--ink); color-scheme: light;
}
/* The hero is positioned, so it would paint over the bar; lift the bar above it. */
.home .top { position: relative; z-index: 1; }
.home .brand { background: #1a1a1a; color: var(--marker); }
.home .hero {
  position: relative; margin-bottom: 1rem; padding-bottom: clamp(2.5rem, 8vh, 4.5rem);
  border-image: repeating-linear-gradient(180deg, var(--marker) 0 2.15rem, #c9e357 2.15rem calc(2.15rem + 1px)) fill 0 / 0 / 100vh 100vw 0;
}
.home .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-image: linear-gradient(#1a1a1a, #1a1a1a) fill 0 / 0 / 0 100vw; }
.home .hero { padding-top: clamp(1.25rem, 5vh, 3rem); }
.home .hero h1 { max-width: 17ch; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.05; }
.home .lead { max-width: 36rem; margin: 0.875rem 0 4.25rem; color: var(--ink); font-size: 1.0625rem; }
/* "Ctrl + D to bookmark": keys set as real keycaps, in the highlighter colour. */
.bookmark { display: inline-flex; align-items: center; gap: 0.3rem; margin-bottom: 1rem; padding: 0.3125rem 0.75rem 0.3125rem 0.375rem; border: 1.5px solid #1a1a1a; border-radius: 999px; background: #fff; font-size: 0.8125rem; font-weight: 600; }
.bookmark kbd { min-width: 1.75rem; padding: 0.125rem 0.375rem; border: 1px solid #1a1a1a; border-bottom-width: 3px; border-radius: 6px; background: var(--marker); font-family: inherit; font-size: 0.8125rem; font-weight: 800; line-height: 1.2; text-align: center; }
.dock { position: relative; max-width: 44rem; }
/* The note is written by hand; its arrow comes down into the spot where the link goes. */
.note { position: absolute; left: 1.5rem; top: -3.75rem; display: flex; align-items: flex-start; gap: 0.375rem; font: 600 1.6rem/1 "Caveat Note", "Comic Sans MS", cursive; rotate: -3deg; }
.note span { padding-top: 0.125rem; animation: fade-in 0.4s ease-out 0.6s both; }
.note svg { flex: none; width: 2.75rem; height: 3.25rem; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.note path { stroke-dasharray: 90; animation: draw 0.6s ease-out 0.8s both; }
.home .ask {
  align-items: center; gap: 0.5rem; padding: 0.5rem 0.5rem 0.5rem 1.125rem;
  border: 3px solid #1a1a1a; border-radius: 16px; background: #fff; box-shadow: 7px 7px 0 #1a1a1a;
  animation: land 0.55s cubic-bezier(.2, .9, .3, 1.2) 0.15s both; transition: box-shadow 0.15s, translate 0.15s;
}
.home .ask:focus-within { box-shadow: 10px 10px 0 #1a1a1a; translate: -2px -2px; }
.link-ico { flex: none; width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.home .field input { min-height: 3.5rem; padding-inline: 0.25rem 5.25rem; border: 0; background: none; font-size: 1.1875rem; }
.home .field input:focus-visible { outline: none; }
.home .ask > .btn { min-height: 3.5rem; padding-inline: 1.5rem; border-color: #1a1a1a; border-radius: 10px; background: #1a1a1a; color: var(--marker); font-size: 1.125rem; font-weight: 800; }
.home .ask > .btn:hover { background: #000; }
.home .hint { color: var(--alert); }
.works { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1.5rem; font-size: 0.9375rem; font-weight: 600; }
.works span { display: inline-flex; align-items: center; }
.home .sample { color: var(--ink); }
@keyframes land { from { opacity: 0; translate: 7px 7px; } }
@keyframes draw { from { stroke-dashoffset: 90; } to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } }

/* Emoji used as small markers before a label. */
.home i[aria-hidden] { font-style: normal; margin-right: 0.45em; }

/* Before and after: YouTube's caption lines beside the same words as a paragraph. */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.compare figure { margin: 0; min-width: 0; padding: 1rem 1.125rem 1.25rem; border-radius: 14px; background: var(--wash); }
.compare figure:last-child { background: var(--marker-soft); }
.compare figcaption { margin-bottom: 0.75rem; padding-bottom: 0.375rem; border-bottom: 1px solid var(--rule); color: var(--slate); font-size: 0.875rem; font-weight: 600; }
.compare figure:last-child figcaption { border-bottom-color: var(--ink); color: var(--ink); }
.compare .transcript { font-size: 1.0625rem; }
.compare .ts { position: static; display: block; margin: 0 0 0.125rem; }
.lines { margin: 0; padding: 0; list-style: none; color: var(--slate); font-size: 0.9375rem; line-height: 1.35; }
.lines li { display: flex; gap: 0.75rem; padding: 0.3125rem 0; }
.lines span { flex: 0 0 2.25rem; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
/* Uses: one tinted card each, with the hero's ink outline and hard shadow. */
.uses { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 0; }
.uses div { padding: 1rem 1.125rem 1.125rem; border: 2px solid var(--ink); border-radius: 14px; background: var(--tint, var(--wash)); box-shadow: 4px 4px 0 var(--ink); }
.uses dt { display: flex; align-items: center; font-weight: 800; }
.uses dt i[aria-hidden] { font-size: 1.375rem; }
.uses dd { margin: 0.375rem 0 0; color: var(--ink); }
.tint-sky { --tint: var(--sky); }
.tint-peach { --tint: var(--peach); }
.tint-lilac { --tint: var(--lilac); }
.tint-pink { --tint: var(--pink); }
.faster { max-width: 36rem; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { padding: 0.9375rem 0; font-weight: 600; cursor: pointer; }
.faq details p { padding-bottom: 1rem; color: var(--slate); }

/* Transcript text: timecodes hang in the margin on wide screens, sit above the paragraph on narrow ones. */
.transcript { font-size: 1.125rem; line-height: 1.65; overflow-wrap: break-word; }
.transcript p { position: relative; margin-bottom: 1.1em; contain: layout style; }
.ts { display: block; margin-bottom: 0.125rem; color: var(--slate); font-size: 0.875rem; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.4; text-decoration: none; }
a.ts:hover { color: var(--ink); text-decoration: underline; }
.no-ts .doc .ts { display: none; }
@media (min-width: 62rem) {
  .ts { position: absolute; right: 100%; top: 0.36em; margin: 0 1.25rem 0 0; white-space: nowrap; }
}
.transcript span[data-s] { border-radius: 3px; cursor: pointer; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (hover: hover) { .transcript span[data-s]:hover { background: var(--wash); } }
.transcript .now { background: var(--marker-soft); }
.transcript .hit { background: var(--marker); color: #1a1a1a; }
.transcript .cur { outline: 2px solid var(--ink); outline-offset: 1px; }

/* Transcript page */
.doc { padding-top: 0.25rem; }
.doc-head { display: flex; align-items: flex-start; gap: 1rem; margin: 1.5rem 0 0.5rem; }
.doc-title { flex: 1; min-width: 0; }
.doc-head h1 { font-size: clamp(1.3125rem, 4.4vw, 1.875rem); line-height: 1.15; overflow-wrap: anywhere; }
.byline { margin-top: 0.375rem; color: var(--slate); font-size: 0.9375rem; }
/* The video starts as a thumbnail beside the title and grows when played. */
.player { position: relative; flex: 0 0 10.5rem; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; font-size: 0.5625rem; }
.doc-head.playing { flex-direction: column; }
.doc-head.playing .player { order: 2; flex: none; width: 100%; max-width: 32rem; }
.poster { all: unset; display: block; width: 100%; height: 100%; cursor: pointer; }
.poster:focus-visible { outline: 3px solid var(--marker); outline-offset: -3px; }
.poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; width: 4em; height: 4em; border-radius: 50%; background: var(--marker); }
.play::after { content: ""; position: absolute; inset: 50% auto auto 54%; translate: -50% -50%; border-style: solid; border-width: 0.7em 0 0.7em 1.15em; border-color: transparent transparent transparent #1a1a1a; }
.player iframe { display: block; width: 100%; height: 100%; border: 0; }
.player.dock iframe { position: fixed; right: 0.75rem; bottom: 0.75rem; z-index: 30; width: min(46vw, 21rem); height: auto; aspect-ratio: 16 / 9; border-radius: 6px; box-shadow: 0 10px 34px rgb(0 0 0 / 0.4); }
@media (min-width: 80rem) {
  /* Room beside the column: keep the video there instead of over the text. */
  .player.dock iframe { top: 1rem; bottom: auto; right: max(1rem, calc(50vw - var(--frame) / 2 + 1rem)); }
}

.toolbar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.625rem 0; background: var(--paper); border-bottom: 1px solid var(--ink); }
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 0.4em; height: 0.4em; margin-top: -0.2em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; rotate: 45deg; }
.menu-list { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; display: grid; min-width: 15rem; padding: 0.375rem; border: 1px solid var(--ink); border-radius: 10px; background: var(--paper); box-shadow: 0 12px 30px rgb(0 0 0 / 0.14); white-space: nowrap; }
.menu-list a, .menu-list button { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 44px; padding: 0 0.75rem; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: var(--wash); }
.menu-list small { color: var(--slate); font-size: 0.875rem; }
.menu-list hr { width: 100%; margin: 0.25rem 0; border: 0; border-top: 1px solid var(--rule); }
.menu-note { max-width: 15rem; padding: 0.375rem 0.75rem 0.25rem; color: var(--slate); font-size: 0.8125rem; line-height: 1.35; white-space: normal; }
.ico { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.find-open { display: none; }
.find { display: flex; align-items: center; gap: 0.25rem; flex: 1 1 12rem; min-width: 0; }
.find input { flex: 1; width: 100%; }
.find output { color: var(--slate); font-size: 0.8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.find output:not(:empty) { padding: 0 0.375rem; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem 1rem; margin: 1rem 0 1.5rem; color: var(--slate); font-size: 0.9375rem; }
.langs { display: flex; gap: 0.5rem; min-width: 0; }
.langs select { max-width: 15rem; min-height: 40px; font-size: 0.9375rem; }
.end { margin-top: 2rem; font-size: 0.9375rem; }

.skeleton { margin: 1.5rem 0; color: var(--slate); }
.skeleton:has(~ .result) { display: none; }
.skeleton span { display: block; height: 0.875rem; margin: 0.75rem 0; border-radius: 4px; background: var(--wash); animation: shimmer 1.4s ease-in-out infinite; }
.skeleton span:nth-child(3) { width: 94%; }
.skeleton span:nth-child(4) { width: 88%; }
.skeleton span:nth-child(6) { width: 62%; }

/* A notice interrupts the page, so it gets the heaviest rule on it. */
.notice { margin-top: 1.5rem; padding-top: 1.125rem; border-top: 3px solid var(--ink); }
.notice.wide { margin-top: clamp(1.5rem, 8vh, 4rem); }
.notice h1, .notice h2 { margin-bottom: 0.5rem; font-size: 1.5rem; }
.notice p { margin-bottom: 1.125rem; color: var(--slate); }
.notice .actions, .challenge { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 0; }

.ad { margin: 1.5rem 0; min-height: 7.5rem; }
.ad::before { content: "Advertisement"; display: block; margin-bottom: 0.25rem; color: var(--slate); font-size: 0.75rem; }
.adsbygoogle { display: block; }

.quote { position: absolute; z-index: 35; min-height: 40px; padding: 0 0.875rem; border: 1px solid #1a1a1a; border-radius: 8px; background: var(--marker); color: #1a1a1a; font: inherit; font-size: 0.875rem; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgb(0 0 0 / 0.18); }
.toast { position: fixed; left: 50%; bottom: 1.25rem; z-index: 40; translate: -50% 1rem; padding: 0.625rem 0.875rem; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 0.9375rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.15s, translate 0.15s; }
.toast.show { opacity: 1; translate: -50% 0; }

/* Text pages */
.prose { padding-top: clamp(1.5rem, 7vh, 4rem); }
.prose h1 { margin-bottom: 1rem; font-size: clamp(2rem, 6.4vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; }
.prose h2 { margin: 2.25rem 0 0.5rem; font-size: 1.3125rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li { margin: 0.5rem 0; }
.prose .lead { margin-top: 0; }
.plan { list-style: none; margin-bottom: 1.5rem !important; padding: 0 !important; border-top: 1px solid var(--ink); }
.plan li { margin: 0; padding: 0.875rem 0; border-bottom: 1px solid var(--rule); }

/* Account pages */
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.row .grow { flex: 1; min-width: 12rem; }
.scroll { overflow-x: auto; }
.stack { display: grid; justify-items: start; gap: 0.625rem; max-width: 24rem; }
.stack input { width: 100%; }
.stack label { font-weight: 600; }
.ledger { width: 100%; margin-bottom: 1rem; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.ledger th, .ledger td { padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.ledger th { border-bottom-color: var(--ink); color: var(--slate); font-weight: 600; }
.ledger .num { padding-right: 0; text-align: right; }
.secret { display: block; padding: 0.875rem 1rem; font-size: 1rem; user-select: all; }

/* Developer pages and the developer note under a transcript */
pre { margin: 0 0 1rem; padding: 0.875rem 1rem; overflow-x: auto; border-radius: 8px; background: var(--wash); font-size: 0.875rem; line-height: 1.5; }
pre code { padding: 0; background: none; font-size: inherit; }
.docs .scroll { margin-bottom: 1rem; }
.docs td code { white-space: nowrap; }
.docs h2 small { margin-left: 0.5rem; color: var(--slate); font-size: 0.875rem; font-weight: 500; letter-spacing: 0; }
.docs .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.dev { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.9375rem; }
.dev p { margin-bottom: 0.625rem; }

/* Phones */
@media (max-width: 34rem) {
  .top nav a { padding-inline: 0.5rem; }
  .ask:not(.compact) { flex-direction: column; }
  .compare, .uses { grid-template-columns: 1fr; }
  .player { flex-basis: 7.25rem; font-size: 0.4375rem; }
  .toolbar { gap: 0.3125rem; }
  .toolbar .btn { padding-inline: 0.625rem; }
  .menu summary::after { display: none; }
  .toolbar .toggle, .find-open { display: inline-flex; padding: 0; min-width: 44px; }
  .toolbar .toggle .label, .menu .long { display: none; }
  .find { display: none; flex-basis: 100%; }
  .toolbar.finding .find { display: flex; }
  .toolbar.finding .find-open { border-color: var(--ink); background: var(--wash); }
  .menu-list { min-width: 14rem; }
  .langs { flex: 1 1 100%; }
  .langs select { flex: 1; max-width: none; min-height: 44px; }
  .transcript { font-size: 1.0625rem; }
}

/* Start page on phones: the note sits right above the field, the button takes its own row. */
@media (max-width: 40rem) {
  .home .lead { margin-bottom: 1.5rem; }
  .note { position: static; margin: 0 0 0.25rem 0.75rem; font-size: 1.4rem; rotate: -2deg; }
  .note svg { width: 2rem; height: 2.5rem; }
  .home .ask { flex-direction: row; flex-wrap: wrap; padding: 0.5rem; }
  .home .ask .link-ico { margin-left: 0.5rem; }
  .home .ask .field { flex: 1 1 0; }
  .home .field input { padding-right: 4.125rem; font-size: 1.0625rem; }
  .home .ask > .btn { flex: 1 1 100%; }
}

@keyframes spin { to { rotate: 360deg; } }
@keyframes shimmer { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Printing gives a clean document: the title and the text with its timecodes. */
@media print {
  .top, .foot, .ask, .hint, .player, .toolbar, .meta, .ad, .dev, .end, .toast, .quote, .note { display: none !important; }
  body { background: #fff; color: #000; }
  main { max-width: none; padding: 0 0 0 4.5rem; }
  .transcript { font-size: 11pt; line-height: 1.5; }
  .ts { position: absolute; right: 100%; top: 0.3em; margin-right: 1rem; color: #555; }
}
