/* Brisk's website, one stylesheet for every page (Docs/Decisions.md, 15 Nov 2026, the website). Dark only, as the
   app is, after Apple TV's look: black, Apple's own fonts where the device has them, pictures in large rounded
   frames, and a bar of glass on top. Nothing is loaded from any other site. */

:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #0e0e10;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --prose: #d2d2d7;
  --hairline: rgb(255 255 255 / 0.1);
  --rim: inset 0 0 0 1px rgb(255 255 255 / 0.07);
  --focus: #ff453a;
  --ring: #2997ff;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Charter, Georgia, serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --gutter: clamp(20px, 5vw, 40px);
  --page: 1180px;
  --bar-top: max(10px, env(safe-area-inset-top));
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.53;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: rgb(255 69 58 / 0.4); color: #fff; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }

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

.skip {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #000;
  font-weight: 600;
}
.skip:focus { top: calc(var(--bar-top) + 6px); }

.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }

/* The name as the icon has it: lowercase, its i in the reading's red. */
.wordmark { font-weight: 700; letter-spacing: -0.045em; }
.wordmark .i { color: var(--focus); }

/* The bar on top: glass, floating, as the app's tab bar. */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: var(--bar-top) var(--gutter) 0;
  pointer-events: none;
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: min(100%, 600px);
  height: 52px;
  margin-inline: auto;
  padding: 0 6px 0 20px;
  border-radius: 26px;
  background: rgb(30 30 32 / 0.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.12), 0 12px 32px rgb(0 0 0 / 0.4);
  pointer-events: auto;
  transition: background-color 0.3s var(--ease);
}
.is-scrolled .nav-bar { background: rgb(30 30 32 / 0.72); }
.nav-brand { display: flex; align-items: center; height: 44px; font-size: 23px; line-height: 1; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 20px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { background: rgb(255 255 255 / 0.1); color: var(--text); }

/* Type shared by the pages. */
.eyebrow {
  margin-bottom: 14px;
  color: var(--text-2);
  font-size: clamp(17px, 0.3vw + 15.5px, 21px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.title {
  font-size: clamp(36px, 2.9vw + 22px, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.032em;
}
.lede {
  color: var(--text-2);
  font-size: clamp(19px, 0.35vw + 17px, 22px);
  line-height: 1.45;
  letter-spacing: -0.014em;
}
.lede strong { color: var(--text); font-weight: 600; }

/* ---------- The home page's first screen: the reading screen, playing. ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--bar-top) + 52px + 16px) 0 clamp(56px, 9svh, 104px);
  overflow: hidden;
  text-align: center;
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(260px, 44svh, 440px);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.stage > * { grid-area: 1 / 1; }

/* The page behind the word: blurred while it plays, sharp on a pause with the word marked. */
.stage-page {
  width: min(100% - 2 * var(--gutter), 32rem);
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(18px, 0.4vw + 16px, 21px);
  line-height: 1.62;
  letter-spacing: 0;
  text-align: left;
  transition: filter 0.45s var(--ease), opacity 0.45s var(--ease);
}
.is-playing .stage-page { opacity: 0.42; filter: blur(5px); }
.stage-page .w { border-radius: 4px; transition: color 0.2s var(--ease), background-color 0.2s var(--ease); }
.stage-page .w.is-current { color: var(--focus); font-weight: 600; }
@media (hover: hover) {
  .is-paused .stage-page .w:hover { background: rgb(255 255 255 / 0.1); }
}

/* A darker pocket behind the word, so it stands clear of the page. */
.stage-pocket {
  width: min(150%, 1100px);
  height: 300px;
  background: radial-gradient(closest-side, rgb(0 0 0 / 0.8), rgb(0 0 0 / 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.is-playing .stage-pocket { opacity: 1; }

.stage-word {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.is-playing .stage-word { opacity: 1; }

/* The marks above and below, at the letter the eye lands on: short, thin and quiet. */
.stage-tick { width: 2px; height: 16px; border-radius: 1px; background: rgb(255 255 255 / 0.3); }

.word {
  position: relative;
  width: 100%;
  height: 1.3em;
  font-family: var(--serif);
  font-size: clamp(46px, 3.4vw + 28px, 84px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
}
/* The letter the eye lands on sits in the middle; the rest of the word hangs either side of it. */
.word-face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-content: center;
  white-space: pre;
}
.word-face .l { text-align: right; }
.word-face .f { color: var(--focus); }
.word-face .r { text-align: left; }
.word-face.is-long { font-size: 0.826em; }
.word-face.is-longer { font-size: 0.696em; }

.hint {
  min-height: 1.5em;
  margin-top: 6px;
  color: var(--text-3);
  font-size: 15px;
}

/* Play and the pace, as at the foot of the app's reading screen. */
.controls { display: none; }
.js .controls { display: flex; align-items: center; gap: 22px; margin-top: 14px; }

.play {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.1);
  box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.14);
  cursor: pointer;
  transition: transform 0.16s var(--ease), background-color 0.2s var(--ease);
}
.play:hover { background: rgb(255 255 255 / 0.16); }
.play:active { transform: scale(0.96); }
.play svg {
  grid-area: 1 / 1;
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: opacity 0.2s cubic-bezier(0.2, 0, 0, 1), scale 0.2s cubic-bezier(0.2, 0, 0, 1), filter 0.2s cubic-bezier(0.2, 0, 0, 1);
}
.play .icon-play { translate: 1.5px 0; }
.play .icon-pause, .is-playing .play .icon-play { opacity: 0; scale: 0.25; filter: blur(4px); }
.is-playing .play .icon-pause { opacity: 1; scale: 1; filter: blur(0); }

.pace { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pace-value { color: var(--text-2); font-size: 13px; }
.pace-value b {
  margin-right: 5px;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* The ruler slides under a fixed red mark, as the Camera app's zoom dial turns. */
.ruler {
  position: relative;
  width: 252px;
  height: 46px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent);
}
.ruler:active { cursor: grabbing; }
.ruler:focus-visible { outline-offset: -2px; border-radius: 8px; }
.ruler-track { position: absolute; top: 6px; left: 50%; display: flex; }
.ruler-track.is-settling { transition: transform 0.28s var(--ease); }
.ruler-track .tick { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 14px; }
.ruler-track .tick i { display: block; width: 1.5px; height: 9px; border-radius: 1px; background: rgb(255 255 255 / 0.28); }
.ruler-track .tick b { width: 14px; color: var(--text-2); font-size: 10px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; display: flex; justify-content: center; }
.ruler-track .is-fifty i { height: 15px; background: rgb(255 255 255 / 0.5); }
.ruler-track .is-hundred i { width: 2px; height: 22px; background: rgb(255 255 255 / 0.8); }
.ruler-track .tick:not(.is-hundred) i { margin-bottom: auto; }
.ruler-mark {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 3px;
  height: 26px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--focus);
  pointer-events: none;
}

.hero-copy { margin-top: clamp(40px, 7svh, 72px); padding-inline: var(--gutter); }
.hero h1 {
  font-size: clamp(44px, 4.6vw + 18px, 88px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.035em;
}
.hero .lede { max-width: 35rem; margin: 20px auto 0; }

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  margin-top: 30px;
  padding: 0 20px 0 18px;
  border-radius: 22px;
  background: rgb(255 255 255 / 0.08);
  box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.12);
  font-size: 15px;
  font-weight: 500;
}
.soon .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--focus); }

/* The first screen comes in once, in order. */
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
.enter { animation: enter 0.9s var(--ease) both; }
.enter-1 { animation-name: fade; animation-duration: 1.2s; }
.enter-2 { animation-delay: 0.15s; }
.enter-3 { animation-delay: 0.25s; }
.enter-4 { animation-delay: 0.35s; }
.enter-5 { animation-delay: 0.45s; }

/* ---------- The home page's sections. ---------- */

.section { padding-block: clamp(72px, 9vw, 136px); }
.section-tight { padding-block: clamp(24px, 3vw, 40px); }
.head { max-width: 48rem; margin-inline: auto; text-align: center; }
.head .lede { max-width: 38rem; margin: 20px auto 0; }

.tiles, .points, .shelf { list-style: none; }

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(48px, 6vw, 80px);
}
.tile {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 30px 28px 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, #131315, #0b0b0c);
  box-shadow: var(--rim);
}
.tile svg, .point svg { flex: none; width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { padding-top: 56px; font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; }
.tile p { margin-top: 8px; color: var(--text-2); font-size: 16px; line-height: 1.45; }

/* A picture in a large rounded frame, words over its foot. */
.feature, .card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--surface);
}
.feature > picture, .card > picture { position: absolute; inset: 0; z-index: -2; }
.feature > picture img, .card > picture img { width: 100%; height: 100%; object-fit: cover; }
.feature::before, .card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgb(0 0 0 / 0.92) 0%, rgb(0 0 0 / 0.6) 34%, rgb(0 0 0 / 0) 66%);
}
.feature::after, .card::after, .app-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  pointer-events: none;
}
.feature { min-height: clamp(540px, 50vw, 700px); border-radius: 32px; }
.feature-copy { max-width: 44rem; padding: clamp(28px, 5vw, 64px); }
.feature-copy .eyebrow, .card .eyebrow { color: rgb(245 245 247 / 0.7); }
.feature-copy p:not(.eyebrow) { margin-top: 16px; color: rgb(245 245 247 / 0.82); font-size: clamp(17px, 0.3vw + 16px, 21px); line-height: 1.45; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split-flip > :first-child { order: 2; }
.split .lede { margin-top: 20px; }
.note { margin-top: 20px; color: var(--text-3); font-size: 15px; line-height: 1.5; }

/* The page on a pause, as the app shows it. */
.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 32px;
  background: radial-gradient(120% 100% at 50% 0%, #19191c 0%, #0b0b0c 72%);
  box-shadow: var(--rim);
}
.page-hint { margin-bottom: 26px; color: var(--text-3); font-size: 14px; text-align: center; }
.page-text {
  max-height: 15.5em;
  overflow: hidden;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(18px, 0.4vw + 16px, 21px);
  line-height: 1.62;
  letter-spacing: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent);
  mask-image: linear-gradient(180deg, #000 62%, transparent);
}
.page-text p + p { margin-top: 0.9em; }
.page-text mark { background: none; color: var(--focus); font-weight: 600; }
.panel figcaption { margin-top: 18px; color: var(--text-3); font-size: 13px; text-align: center; }

/* Smart Pace drawn: each word with a bar as long as it stays. */
.rhythm-words { display: flex; flex-wrap: wrap; gap: 22px 16px; align-items: flex-end; list-style: none; }
.rhythm-words li { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rhythm-words .bar { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 76px; }
.rhythm-words .bar i {
  display: block;
  width: 6px;
  border-radius: 3px;
  background: rgb(255 255 255 / 0.32);
  transform-origin: bottom;
}
.rhythm-words .is-slower .bar i { background: var(--focus); }
.rhythm-words .rw { font-family: var(--serif); font-size: clamp(18px, 0.4vw + 16px, 21px); font-weight: 500; letter-spacing: 0; line-height: 1.2; }
.rhythm-words small { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.js .reveal .rhythm-words .bar i { transform: scaleY(0); transition: transform 0.9s var(--ease); }
.js .reveal.in .rhythm-words .bar i { transform: none; }
.rhythm figcaption { margin-top: 28px; color: var(--text-3); font-size: 13px; }

.shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(48px, 6vw, 80px);
}
.card { aspect-ratio: 4 / 5; padding: 28px; border-radius: 28px; }
.card h3 { font-size: clamp(24px, 0.8vw + 17px, 30px); line-height: 1.1; letter-spacing: -0.025em; }
.card p:not(.eyebrow) { margin-top: 10px; color: rgb(245 245 247 / 0.8); font-size: 16px; line-height: 1.45; }
.card .eyebrow { margin-bottom: 8px; font-size: 15px; }

.points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(48px, 6vw, 72px);
}
.point {
  padding: 28px 24px 26px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--rim);
}
.point svg { width: 30px; height: 30px; }
.point h3 { margin-top: 22px; font-size: 19px; line-height: 1.25; letter-spacing: -0.018em; }
.point p { margin-top: 6px; color: var(--text-2); font-size: 15px; line-height: 1.45; }

.more { margin-top: 40px; text-align: center; font-size: 19px; }
.more a, .text-link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s var(--ease);
}
.more a:hover, .text-link:hover { text-decoration-color: currentColor; }

.closing { text-align: center; }
.app-icon {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto 36px;
  overflow: hidden;
  border-radius: 29px;
  box-shadow: 0 24px 80px rgb(255 69 58 / 0.14);
}
.app-icon img { width: 100%; height: 100%; }
.closing h2 { font-size: clamp(48px, 5vw + 20px, 104px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.closing .lede { margin-top: 20px; }

/* ---------- Every page's foot. ---------- */

.footer {
  margin-top: clamp(40px, 6vw, 80px);
  padding: 36px 0 calc(44px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline);
}
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer .wordmark { font-size: 22px; line-height: 1; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer nav a { color: var(--text-2); font-size: 14px; transition: color 0.2s var(--ease); }
.footer nav a:hover { color: var(--text); }
.fine { max-width: 62rem; margin-top: 22px; color: var(--text-3); font-size: 12px; line-height: 1.5; }

/* ---------- The policy, the terms and support. ---------- */

.doc-head { padding-top: calc(var(--bar-top) + 52px + clamp(56px, 8vw, 104px)); text-align: center; }
.doc-head h1 { font-size: clamp(44px, 3.6vw + 26px, 84px); font-weight: 700; line-height: 1.03; letter-spacing: -0.035em; }
.doc-head .lede { max-width: 36rem; margin: 20px auto 0; }
.meta { margin-top: 18px; color: var(--text-3); font-size: 14px; }

.summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(48px, 6vw, 72px);
  list-style: none;
}

.doc-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
  margin-top: clamp(56px, 7vw, 96px);
}
.toc { position: sticky; top: calc(var(--bar-top) + 52px + 32px); }
.toc p { margin-bottom: 12px; color: var(--text-3); font-size: 13px; font-weight: 600; }
.toc ol { display: grid; border-left: 1px solid var(--hairline); list-style: none; }
.toc a {
  display: block;
  margin-left: -1px;
  padding: 5px 0 5px 16px;
  border-left: 1px solid transparent;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.35;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.toc a:hover { color: var(--text); }
.toc a.is-active { border-left-color: var(--focus); color: var(--text); }

.prose { max-width: 44rem; }
.prose section + section { margin-top: 56px; }
.prose h2 { font-size: clamp(24px, 0.5vw + 21px, 30px); line-height: 1.2; letter-spacing: -0.022em; scroll-margin-top: 104px; }
.prose h3 { margin-top: 28px; font-size: 19px; letter-spacing: -0.016em; }
.prose p, .prose li { color: var(--prose); line-height: 1.6; }
.prose h2 + p, .prose h3 + p, .prose p + p, .prose p + ul, .prose ul + p, .prose h2 + ul { margin-top: 14px; }
.prose ul { display: grid; gap: 8px; padding-left: 1.25em; }
.prose li::marker { color: var(--text-3); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a, .answer a {
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease);
}
.prose a:hover, .answer a:hover { text-decoration-color: currentColor; }
.in-short {
  padding: 24px 28px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--rim);
}
.prose .in-short p { color: var(--text); font-size: 19px; line-height: 1.5; }

/* Support: a card to write from, and the questions people ask. */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px;
  margin-top: clamp(48px, 6vw, 72px);
}
.contact .panel h2 { font-size: clamp(26px, 0.8vw + 20px, 32px); letter-spacing: -0.024em; }
.contact .panel > p { margin-top: 10px; color: var(--text-2); }
.contact ul { display: grid; gap: 8px; margin-top: 14px; padding-left: 1.2em; color: var(--text-2); }
.contact li::marker { color: var(--text-3); }
.address { margin-top: 16px; color: var(--text-3); font-size: 15px; }
.address a { color: var(--text-2); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  margin-top: 28px;
  padding: 0 26px;
  border-radius: 25px;
  background: var(--text);
  color: #000;
  font-size: 17px;
  font-weight: 600;
  transition: transform 0.16s var(--ease), background-color 0.2s var(--ease);
}
.button:hover { background: #fff; }
.button:active { transform: scale(0.96); }
.button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.faq { max-width: 52rem; margin: clamp(72px, 9vw, 128px) auto 0; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { margin-bottom: 8px; font-size: clamp(26px, 0.8vw + 20px, 32px); letter-spacing: -0.024em; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 16px 0;
  cursor: pointer;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.016em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin: -4px 6px 0 0;
  border-right: 1.75px solid var(--text-3);
  border-bottom: 1.75px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease), margin 0.25s var(--ease);
}
.faq details[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.answer { max-width: 46rem; padding-bottom: 26px; color: var(--prose); }
.answer p + p, .answer p + ul, .answer ul + p { margin-top: 12px; }
.answer ul { display: grid; gap: 6px; padding-left: 1.2em; }
.answer li::marker { color: var(--text-3); }
.answer strong { color: var(--text); font-weight: 600; }

/* The page that isn't there. */
.lost {
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: 100svh;
  padding: var(--gutter);
  text-align: center;
}
.lost-word { display: flex; flex-direction: column; align-items: center; gap: 18px; width: min(80vw, 560px); }
.lost h1 { margin-top: 36px; font-size: clamp(32px, 2vw + 22px, 48px); font-weight: 700; letter-spacing: -0.03em; }
.lost p { margin-top: 12px; color: var(--text-2); }
.lost .button { margin-top: 32px; }

/* ---------- Things that ease in as they reach the screen. ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Narrower screens. ---------- */

@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points, .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-body { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; padding: 22px 24px; border-radius: 22px; background: var(--surface); box-shadow: var(--rim); }
  .toc ol { border-left: 0; columns: 2; column-gap: 24px; }
  .toc a { margin: 0; padding: 4px 0; border: 0; }
  .toc a.is-active { color: var(--text-3); }
}

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-flip > :first-child { order: 0; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  /* The cards become a shelf to swipe, as on Apple TV. */
  .shelf {
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .shelf::-webkit-scrollbar { display: none; }
  .shelf .card { flex: 0 0 min(82vw, 380px); scroll-snap-align: start; }
}

@media (max-width: 600px) {
  .tiles, .points, .summary { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; }
  .tile h3 { padding-top: 32px; }
  .feature { min-height: 580px; border-radius: 26px; }
  .card { border-radius: 26px; }
  .panel { border-radius: 26px; }
  .toc ol { columns: 1; }
  .nav-links a { padding: 0 13px; }
  .js .controls { gap: 16px; }
  .ruler { width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .enter, .enter-1 { animation: fade 0.6s linear both; animation-delay: 0s; }
  .js .reveal { transform: none; transition: opacity 0.4s linear; }
  .js .reveal .rhythm-words .bar i { transform: none; transition: none; }
}
