/* Direction A: Home Screen. Paper, ink, and the apps' own colors. */
@font-face { font-family: 'Luckiest Guy'; src: url('/fonts/luckiest-guy-latin.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('/fonts/bricolage-grotesque-normal-400-800.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }

:root {
  --paper: #F6F1E7;
  --paper-2: #EDE6D8;
  --ink: #1B1726;
  --ink-2: #4B4558;
  --rule: #DDD4C3;
  --link: #1B1726;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #15131B; --paper-2: #1E1B26; --ink: #F3EEE4; --ink-2: #B6AFC0; --rule: #34303F; --link: #F3EEE4; }
}
:root[data-theme="dark"] { --paper: #15131B; --paper-2: #1E1B26; --ink: #F3EEE4; --ink-2: #B6AFC0; --rule: #34303F; --link: #F3EEE4; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 'Bricolage', ui-sans-serif, system-ui, sans-serif; font-optical-sizing: auto; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 6px; }
figure { margin: 0; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }

/* top bar */
.top { max-width: 1240px; margin: 0 auto; padding: 22px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mark { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); line-height: 0.85; }
.mark-big { font: 38px/0.9 'Luckiest Guy', sans-serif; letter-spacing: 0.02em; padding-top: 4px; }
.mark-small { font: 700 13px/1 'Bricolage', sans-serif; letter-spacing: 0.42em; margin-top: 3px; padding-left: 0.42em; }
.top-nav { display: flex; gap: 30px; font-weight: 700; font-size: 18px; }
.top-nav a { text-decoration: none; }
.top-nav a:hover { text-decoration: underline; }

/* live app bands */
.band { background: var(--app-bg); color: var(--app-ink); overflow: hidden; }
.band a { color: var(--app-ink); }
.band-in { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.band-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--app-ink) 14%, transparent), 0 8px 24px -10px rgb(0 0 0 / 0.5); }
.band h1 { margin-top: 22px; font-size: clamp(40px, 5.4vw, 64px); }
.band-line { margin: 10px 0 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; color: var(--app-text); }
.band-blurb { margin: 18px 0 0; max-width: 30em; opacity: 0.88; }
.band-credit, .story-credit { margin: 10px 0 0; max-width: 34em; font-size: 14px; font-weight: 600; opacity: 0.8; }
.band-meta { margin: 18px 0 0; font-size: 14px; font-weight: 600; opacity: 0.82; }
/* The live version from the hub (/hub.js): its own line, so no separator dangles at a wrap. */
[data-hub]:not([hidden]) { display: block; margin-top: 2px; }
.band-actions + .band-credit { margin-top: 18px; }
.band-actions { margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.btn-store { display: inline-block; padding: 13px 22px; border-radius: 999px; background: var(--app-ink); color: var(--app-bg) !important; text-decoration: none; font-weight: 700; }
.btn-store:hover { filter: brightness(1.12); }
.btn-quiet { font-weight: 600; }
/* Scan-to-install for computers only: a phone already has the store button. */
.band-qr { display: none; }
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .band-qr { display: flex; align-items: center; gap: 14px; margin: 18px 0 0; max-width: 22em; font-size: 14px; font-weight: 600; }
  .band-qr img { flex: none; border-radius: 8px; }
}
.band-legal { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; opacity: 0.82; }
/* Apple's "What's New" from the hub (/hub.js), closed by default so the store button stays above the fold. */
.band-notes { margin: 18px 0 0; max-width: 34em; font-size: 14px; }
.band-notes summary { cursor: pointer; font-weight: 700; }
.band-notes p { margin: 8px 0 0; white-space: pre-line; opacity: 0.88; }
.band-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px); align-items: start; }
.shot img { width: 100%; height: auto; }
.shot-store img { border-radius: 7%/3.2%; box-shadow: 0 18px 40px -22px rgb(0 0 0 / 0.55); }
.bezel { padding: 4.5%; border-radius: 15%/7%; background: #0B0B0D; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 18px 40px -20px rgb(0 0 0 / 0.6); }
.bezel img { border-radius: 11%/5.2%; }

/* the playables: a phone-shaped stage per app; the real first screen stays underneath */
.band-play { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.4vw, 32px); }
.stage { flex: 0 0 auto; width: min(340px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
/* A shared link focuses the stage (loader.js); no ring unless it came from the keyboard. */
.stage:focus:not(:focus-visible) { outline: none; }
.stage-screen { position: relative; width: 100%; aspect-ratio: 340 / 640; border-radius: 40px; overflow: hidden; background: var(--app-soft); isolation: isolate;
  box-shadow: 0 0 0 8px #0B0B0D, 0 0 0 9px rgb(255 255 255 / 0.12), 0 30px 60px -24px rgb(0 0 0 / 0.65); }
.stage-still { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.stage[data-state="live"] .stage-still { visibility: hidden; }
.stage-cap { margin: 8px 0 0; font-size: 14px; font-weight: 600; opacity: 0.8; text-align: center; }
.stage-try { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2; padding: 12px 20px; border: 0; border-radius: 999px; background: var(--app-ink); color: var(--app-bg); font: 700 15px 'Bricolage', sans-serif; cursor: pointer; }
.btn-soon { display: inline-block; padding: 11px 20px; border-radius: 999px; box-shadow: inset 0 0 0 2px currentColor; font-weight: 700; opacity: 0.85; }
.dock-app { position: relative; display: inline-flex; }
.dock-icon { border-radius: 23%; }

/* one app's own page */
.band-shots-row { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 6vw, 80px); }
.more { max-width: var(--max); margin: 0 auto; padding: clamp(44px, 6vw, 72px) var(--gutter); text-align: center; }
.more h2 { font-size: clamp(28px, 3.4vw, 40px); }
.more-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 24px; margin: 26px 0 28px; }
.more-app { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.more-icon { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 6px 16px -6px rgb(0 0 0 / 0.25); }
@media (max-width: 860px) {
  .band-in { grid-template-columns: 1fr; gap: 36px; }
  .band-shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter); scrollbar-width: none; }
  .band-shots::-webkit-scrollbar { display: none; }
  .band-shots .shot { flex: 0 0 62%; scroll-snap-align: center; }
}

/* ---- the home screen --------------------------------------------------------
   One component, two places: on a phone it fills the first screen; on a desktop
   it is the screen of the phone pinned beside the stories. Sized in container
   units, so it lays out the same in both. */
.phone-screen { container-type: size; }
.hs { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 0 6cqw 4.5cqw; overflow: hidden; color: #1B1726;
  background: radial-gradient(75cqw 75cqw at 6% 10%, #FFB37A, transparent 68%), radial-gradient(85cqw 85cqw at 104% 50%, #FF9CC4, transparent 66%), radial-gradient(95cqw 95cqw at -4% 102%, #86DCD2, transparent 66%), #FFF1DE; }
.hs > * { position: relative; }
.hs-wall { position: absolute !important; right: -20cqw; bottom: -12cqw; font: 150cqw/0.8 'Luckiest Guy', sans-serif; color: rgb(255 255 255 / 0.38); transform: rotate(-11deg); pointer-events: none; user-select: none; }
.hs-status { flex: none; height: 13cqw; max-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0.6cqw 2.6cqw 0; font: 650 4.4cqw/1 -apple-system, system-ui, sans-serif; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.hs-sys svg { display: block; width: 17cqw; height: auto; }
.hs-widget { flex: none; margin-top: 3cqw; padding: 5.5cqw 6cqw 6cqw; border-radius: 7cqw; background: rgb(255 255 255 / 0.55); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7), 0 12px 30px -18px rgb(60 30 0 / 0.35); }
.hs-mark { margin: 0; display: flex; flex-direction: column; align-items: flex-start; line-height: 0.85; }
.hs-mark span:first-child { font: 12.6cqw/0.9 'Luckiest Guy', sans-serif; letter-spacing: 0.01em; padding-top: 1cqw; }
.hs-mark span:last-child { font: 700 3cqw/1 'Bricolage', sans-serif; letter-spacing: 0.5em; margin-top: 1.4cqw; padding-left: 0.3em; }
.hs-title { margin-top: 3.6cqw; font: 700 5.2cqw/1.2 'Bricolage', sans-serif; letter-spacing: -0.015em; text-wrap: balance; }
.hs-grid { flex: none; margin-top: 8cqw; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6cqw 2cqw; }
.hs-app { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.8cqw; padding: 0; border: 0; background: none; color: inherit; text-decoration: none; cursor: pointer;
  font: 600 3.05cqw/1.1 -apple-system, system-ui, sans-serif; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.hs-icon, .hs-tile { width: 16.4cqw; height: 16.4cqw; border-radius: 23%; box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 6px 14px -6px rgb(0 0 0 / 0.32); transition: transform 0.12s, filter 0.12s; }
.hs-app:active .hs-icon, .hs-app:active .hs-tile { transform: scale(0.9); filter: brightness(0.85); }
.hs-label { max-width: 22cqw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-sound[hidden] { display: none; }
.hs-tile { display: grid; place-items: center; background: #1B1726; color: #FFF1DE; }
.hs-tile svg { width: 56%; height: auto; }
.hs-mute, html[data-sound="off"] .hs-wave { display: none; }
html[data-sound="off"] .hs-mute { display: inline; }
html[data-sound="off"] .hs-tile { background: rgb(255 255 255 / 0.6); color: #1B1726; }
.hs-badge { position: absolute; top: -1.6cqw; left: calc(50% + 4.6cqw); min-width: 6.2cqw; height: 6.2cqw; padding: 0 1.6cqw; border-radius: 3.1cqw; background: #FF3B30; color: #fff;
  font: 700 3.7cqw/6.2cqw -apple-system, system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 0.7cqw rgb(255 255 255 / 0.9); pointer-events: none; }
html.launched .hs-badge { display: none; }
.hs-foot { flex: none; margin: auto 0 0; display: flex; align-items: flex-end; gap: 3cqw; }
.hs-foot .hs-sound { flex: none; width: 21cqw; margin-bottom: 3cqw; }
.hs-receipt { flex: 1; min-width: 0; margin: 0; padding: 3.6cqw 4.6cqw 4.6cqw; display: grid; gap: 1.4cqw; background: #FFFDF8; color: #232323; text-decoration: none; border-radius: 3cqw 3cqw 0 0;
  font: 3.3cqw/1.25 ui-monospace, Menlo, 'SF Mono', monospace; box-shadow: 0 10px 24px -14px rgb(60 30 0 / 0.4);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 4cqw 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 4cqw 100%; }
.hs-r-head, .hs-r-row { display: flex; justify-content: space-between; gap: 2cqw; }
.hs-r-head { padding-bottom: 1.4cqw; border-bottom: 1px dashed #9a9a9a; font-weight: 800; letter-spacing: 0.04em; }
.hs-r-head span:first-child { font: 800 3.6cqw/1.2 'Bricolage', sans-serif; letter-spacing: -0.01em; color: #1F6F6B; }
.hs-r-row b { font-weight: 800; font-variant-numeric: tabular-nums; }
.hs-pill { margin: 5cqw auto 0; padding: 2.8cqw 5.4cqw; border-radius: 999px; background: rgb(255 255 255 / 0.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: inherit; text-decoration: none; font: 600 3.7cqw/1 -apple-system, system-ui, sans-serif; }
@media (prefers-reduced-motion: no-preference) {
  /* Within a second, one icon asks to be tapped: a badge lands and it wiggles three times, a few seconds apart, then stops. */
  html:not(.launched) .hs-app[data-invite] .hs-icon { animation: invite 3.4s ease-in-out 0.95s 3; }
  .hs-badge { animation: badge-in 0.45s cubic-bezier(0.3, 1.8, 0.5, 1) 0.8s backwards; }
}
@keyframes invite { 0%, 24%, 100% { transform: none; } 3% { transform: rotate(-8deg) scale(1.07); } 7% { transform: rotate(7deg) scale(1.07); } 11% { transform: rotate(-6deg) scale(1.05); } 15% { transform: rotate(4deg) scale(1.03); } 19% { transform: rotate(-2deg); } }
@keyframes badge-in { from { transform: scale(0); } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hs { color: #F6F1E7; background: radial-gradient(75cqw 75cqw at 6% 10%, #8A3A12, transparent 68%), radial-gradient(85cqw 85cqw at 104% 50%, #7A1F4C, transparent 66%), radial-gradient(95cqw 95cqw at -4% 102%, #0E5B55, transparent 66%), #17131E; }
  :root:not([data-theme="light"]) .hs-wall { color: rgb(255 255 255 / 0.06); }
  :root:not([data-theme="light"]) .hs-widget, :root:not([data-theme="light"]) .hs-pill { background: rgb(20 16 28 / 0.5); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08); }
  :root:not([data-theme="light"]) .hs-tile { background: #F6F1E7; color: #1B1726; }
}

/* ---- the stories (cards by default; the desktop phone turns them into chapters) ---- */
.stories { min-width: 0; }
.intro { padding: 40px var(--gutter) 28px; }
.intro h2 { font-size: clamp(32px, 4.6vw, 64px); letter-spacing: -0.035em; text-wrap: balance; max-width: 13em; }
.intro-cue { margin: 18px 0 0; font-size: clamp(19px, 1.9vw, 27px); line-height: 1.3; font-weight: 600; color: var(--ink); max-width: 26em; text-wrap: balance; }
.cue-desk { display: none; }
.about { max-width: 30em; margin: 12px 0 0; font-size: 15px; color: var(--ink-2); }
.stories-soon { margin: 28px var(--gutter) 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.story { margin: 0 12px 12px; padding: 26px 22px 24px; border-radius: 30px; background: var(--app-bg); color: var(--app-ink); scroll-margin-top: 12px; }
.story a { color: inherit; }
.story-head { display: flex; align-items: center; gap: 16px; }
.story-icon { width: 64px; height: 64px; flex: none; border-radius: 15px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--app-ink) 14%, transparent), 0 8px 20px -10px rgb(0 0 0 / 0.5); }
.story h2 { font-size: clamp(30px, 3.4vw, 46px); }
.story-meta { margin: 4px 0 0; font-size: 14px; font-weight: 600; opacity: 0.82; }
.story-line { margin: 18px 0 0; font-size: clamp(22px, 2.3vw, 30px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; color: var(--app-text); }
.story-blurb { margin: 10px 0 0; max-width: 34em; opacity: 0.88; }
.story-play { margin: 20px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.story-open { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; background: var(--app-accent); color: var(--app-on-accent) !important; font-size: 19px; font-weight: 800; text-decoration: none; }
.story-open::before { content: ''; width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.story-cap { font-size: 14px; font-weight: 600; opacity: 0.8; }
.story-actions { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.story-legal { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; opacity: 0.82; }

/* ---- the ending: the receipt ---- */
.ending { margin: 28px 12px 12px; padding: 30px 22px 28px; border-radius: 30px; background: var(--app-bg); color: var(--app-ink); display: grid; gap: 22px; }
.ending > * { min-width: 0; }
.ending h2 { font-size: clamp(34px, 4vw, 54px); }
.ending-copy p { margin: 12px 0 0; max-width: 30em; }
.ending-printer { min-height: 180px; }
.ending-wait { margin: 0; padding: 40px 0; text-align: center; opacity: 0.75; font-weight: 600; }

/* ---- a phone (under 1000px wide): the home screen is the first screen ---- */
@media (max-width: 999px) {
  .home .top { display: none; }
  .phone { position: relative; height: 100svh; min-height: 560px; max-height: 960px; background: #FFF1DE; }
  .phone-screen { position: absolute; top: 0; bottom: 0; left: 50%; width: min(100%, 520px); transform: translateX(-50%); overflow: hidden; }
}

/* ---- a phone that allows motion: the phone is pinned at the top and the stories below drive it, as on a desktop.
   With reduced motion the rule above stands alone: the home screen, then plain cards. ---- */
@media (max-width: 999px) and (prefers-reduced-motion: no-preference) {
  .split { background: var(--split-bg, var(--paper)); color: var(--split-ink, var(--ink)); transition: background-color 0.6s, color 0.6s; }
  .phone-col { position: sticky; top: 0; z-index: 3; padding: 10px 0 12px; background: inherit;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s; }
  /* What scrolls up under the pinned phone fades out instead of peeking from behind it. */
  .phone-col::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 44px; pointer-events: none;
    background: inherit; -webkit-mask-image: linear-gradient(#000 20%, transparent); mask-image: linear-gradient(#000 20%, transparent); }
  /* The ending: the phone slides up and away so the visit receipt is never under it. */
  .phone-away .phone-col { transform: translateY(calc(-100% - 60px)); visibility: hidden; transition: transform 0.35s cubic-bezier(0.3, 0.9, 0.3, 1), visibility 0s 0.35s; }
  /* The phone keeps its full size inside (the apps lay out as before) and is drawn at --k of it,
     about 44% of the screen's height, so the copy under it has room. */
  .phone { --ph: min(60svh, 560px, calc((100vw - 32px) / 0.474)); --k: 0.74; position: relative; height: var(--ph); width: calc(var(--ph) * 0.474); min-height: 0; max-height: none;
    margin: 0 auto calc(var(--ph) * (var(--k) - 1)); transform: scale(var(--k)); transform-origin: 50% 0;
    padding: calc(var(--ph) * 0.0135); border-radius: calc(var(--ph) * 0.075); background: #0B0B0D; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 24px 48px -24px rgb(0 0 0 / 0.55); }
  .phone-screen { position: relative; top: auto; bottom: auto; left: auto; width: 100%; height: 100%; transform: translateZ(0); border-radius: calc(var(--ph) * 0.062); isolation: isolate; }
  .intro { padding-top: 20px; }
  .intro-cue .cue-desk { display: inline; }
  .intro-cue .cue-phone { display: none; }
  .driving .story { min-height: 34svh; margin: 0; padding: 4svh var(--gutter); border-radius: 0; background: none; color: inherit; display: flex; flex-direction: column; justify-content: center; }
  /* Every story in full colour: a faded one read as disabled (the lead's review, 2026-11-20). */
  .driving .story-cap::before { content: '\2191  In the phone: '; }
}

/* ---- a desktop: the phone is pinned, the stories drive it ---- */
@media (min-width: 1000px) {
  .split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 96px); padding: 0 max(var(--gutter), calc((100% - 1240px) / 2)) 64px;
    background: var(--split-bg, var(--paper)); color: var(--split-ink, var(--ink)); transition: background-color 0.6s, color 0.6s; }
  .phone-col { position: relative; }
  .phone { --ph: min(800px, calc(100vh - 48px)); position: sticky; top: max(24px, calc(50vh - var(--ph) / 2)); height: var(--ph); width: calc(var(--ph) * 0.474); margin: 0 0 0 auto;
    padding: calc(var(--ph) * 0.0135); border-radius: calc(var(--ph) * 0.075); background: #0B0B0D; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 40px 80px -30px rgb(0 0 0 / 0.55); }
  .phone-screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--ph) * 0.062); overflow: hidden; isolation: isolate; transform: translateZ(0); }
  .intro { padding: 0; min-height: calc(100vh - 90px); display: flex; flex-direction: column; justify-content: center; }
  .intro-cue .cue-desk { display: inline; }
  .intro-cue .cue-phone { display: none; }
  .stories-soon { margin: 0; padding: 12vh 0 0; }
  .story { margin: 0 0 28px; padding: 32px 36px; }
  .ending { margin: 12vh 0 0; padding: 40px; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); align-items: start; }
  /* With the loader running: each story is a chapter on the page's own color, which follows the app in the phone. */
  .driving .story { min-height: 78vh; margin: 0; padding: 6vh 0; border-radius: 0; background: none; color: inherit; display: flex; flex-direction: column; justify-content: center; opacity: 0.22; transition: opacity 0.4s; }
  .driving .story.is-active { opacity: 1; }
  .driving .story-cap::before { content: '\2190  In the phone: '; }
}
@media (min-width: 1000px) and (prefers-reduced-motion: reduce) {
  .split, .driving .story { transition: none; }
}
/* help */
.also { max-width: 640px; margin: 0 auto; padding: clamp(36px, 5vw, 56px) var(--gutter) 0; text-align: center; }
.also h2 { font-size: clamp(22px, 3vw, 28px); }
.also p { color: var(--ink-2); margin: 10px 0 0; }
.also-link { color: inherit; font-weight: 600; }
.help { max-width: var(--max); margin: 0 auto; padding: clamp(44px, 6vw, 72px) var(--gutter) clamp(52px, 7vw, 88px); text-align: center; }
.help h2 { font-size: clamp(30px, 4vw, 44px); }
.help p { color: var(--ink-2); margin: 10px 0 0; }
.btn-mail { display: inline-block; margin-top: 10px; padding: 14px 24px; border-radius: 999px; background: var(--ink); color: var(--paper) !important; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }

/* footer */
.foot { background: var(--paper-2); }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 48px; font-size: 14px; color: var(--ink-2); }
.foot p { margin: 6px 0; }
.foot-mark { font: 22px/1 'Luckiest Guy', sans-serif; color: var(--ink); letter-spacing: 0.02em; }
.foot-mark span { font: 700 11px 'Bricolage', sans-serif; letter-spacing: 0.4em; vertical-align: middle; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-small { font-size: 13px; opacity: 0.8; }

/* documents */
.doc-app { background: var(--app-bg); color: var(--app-ink); }
.doc-app-in { max-width: 760px; margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.doc-icon { width: 48px; height: 48px; border-radius: 11px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--app-ink) 18%, transparent); }
.doc-app-in strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.doc-app-in small { display: block; font-size: 14px; opacity: 0.8; }
.doc-main { max-width: 760px; margin: 0 auto; padding: 28px var(--gutter) 80px; }
.doc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 32px; }
.doc-tabs a { padding: 7px 14px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--rule); }
.doc-tabs a[aria-current="page"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.doc-main h1 { font-size: clamp(36px, 6vw, 56px); }
.updated { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; }
.prose { margin-top: 32px; font-size: 17px; line-height: 1.65; overflow-wrap: break-word; }
.prose h2 { font-size: 24px; margin: 44px 0 0; letter-spacing: -0.015em; line-height: 1.2; }
.prose h3 { font-size: 19px; margin: 30px 0 0; letter-spacing: -0.01em; line-height: 1.25; }
.prose p, .prose ul, .prose ol { margin: 14px 0 0; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose strong { font-weight: 700; }
.prose code { font-size: 0.92em; }
.nf .doc-main { text-align: center; padding-top: 96px; }
.nf-apps { list-style: none; margin: 28px auto 0; padding: 0; max-width: 520px; display: grid; gap: 6px; text-align: left; }
.nf-apps a { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: center; padding: 10px 12px; border-radius: 16px; text-decoration: none; color: inherit; }
.nf-apps a:hover, .nf-apps a:focus-visible { background: rgb(127 127 127 / 0.12); }
.nf-mean { margin: 24px 0 0; font-size: 18px; font-weight: 700; }
.nf-apps img { grid-row: span 2; width: 48px; height: 48px; border-radius: 11px; }
.nf-name { font-weight: 700; }
.nf-soon { font-weight: 600; font-size: 0.8em; opacity: 0.65; margin-left: 6px; }
.nf-line { font-size: 0.92em; opacity: 0.8; }


/* ---- The press kit (/press/) ---- */
.press .doc-main { max-width: 980px; }
.press-lead { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; max-width: 30em; }
.press-logos { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.press-logo { margin: 0; }
.press-chip { display: grid; place-items: center; min-height: 150px; padding: 24px; border-radius: 22px; border: 1px solid var(--rule); }
.press-chip img { max-width: 100%; height: auto; }
.press-chip-light { background: #F6F1E7; }
.press-chip-dark { background: #15131B; }
.press-logo figcaption { margin-top: 10px; font-size: 15px; font-weight: 600; }
.press-apps { margin-top: 22px; display: grid; gap: 14px; }
.press-app { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 22px; padding: 22px; border-radius: 26px; background: var(--paper-2); }
.press-icon img { display: block; border-radius: 22.5%; box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.5); }
.press .prose .press-app h3 { margin: 0; font-size: 24px; }
.press-app h3 a { text-decoration: none; }
.press-app h3 a:hover { text-decoration: underline; }
.press .prose .press-app p { margin: 6px 0 0; }
.press-line { font-weight: 700; }
.press-facts { margin: 10px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 14px; }
@media (min-width: 900px) { .press-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.press-facts dt { font-weight: 600; color: var(--ink-2); }
.press-facts dd { margin: 0; font-weight: 700; }
.press .prose .press-app .press-version { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.press-blurb { font-size: 16px; line-height: 1.5; }
.press .prose .press-app .press-mail { margin-top: 10px; font-size: 15px; font-weight: 600; }
.press .prose .press-app .press-files { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; font-weight: 600; }
@media (max-width: 560px) {
  .press-app { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px; border-radius: 22px; }
  .press-icon img { width: 72px; height: 72px; }
  /* Three links beside the wordmark have to fit a 320 px phone. */
  .top { gap: 10px; }
  .top-nav { gap: 13px; font-size: 15px; }
  .mark-big { font-size: 27px; }
  .mark-small { font-size: 10px; }
}
@media (max-width: 380px) {
  .top { padding-left: 12px; padding-right: 12px; gap: 8px; }
  .top-nav { gap: 10px; font-size: 14px; }
  .mark-big { font-size: 22px; }
  .mark-small { font-size: 8px; }
}

/* ---- An app's playable on its own page (/play/<app>/), in the app's colors ---- */
.play-solo { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: clamp(28px, 5vw, 56px) var(--gutter) clamp(40px, 6vw, 72px); background: var(--app-bg); color: var(--app-ink); }
.play-solo-head { display: flex; align-items: center; gap: 18px; width: min(100%, 372px); }
.play-solo-head > a { flex: none; line-height: 0; }
.play-solo-icon { width: 76px; height: 76px; border-radius: 22.5%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--app-ink) 14%, transparent), 0 8px 24px -10px rgb(0 0 0 / 0.5); }
.play-solo-head h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.03em; line-height: 1; margin: 0; }
.play-solo-line { margin: 6px 0 0; font-size: clamp(16px, 2vw, 19px); font-weight: 700; color: var(--app-text); line-height: 1.25; }
.play-solo-line .hl { background: var(--app-accent); color: #151515; padding: 0 0.2em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.play-solo-actions, .play-solo-launch { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; }
.play-about { font-weight: 700; color: inherit; }
.play-solo-launch .dock-app, .play-sound { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 16px 6px 6px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--app-ink) 12%, transparent); color: inherit; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.play-sound { padding: 6px 18px; }
.play-sound[aria-pressed="false"] { opacity: 0.7; }
.play-solo .dock-icon { width: 32px; height: 32px; border-radius: 22.5%; }
.play-solo-launch .dock-app:hover, .play-sound:hover { background: color-mix(in srgb, var(--app-ink) 20%, transparent); }
.play-solo-launch .dock-app:focus-visible, .play-sound:focus-visible { outline: 3px solid var(--app-ink); outline-offset: 2px; }

/* /embed/<app>/: the playable alone inside someone else's page. */
.embed { margin: 0; background: var(--app-bg); color: var(--app-ink); }
.embed-main { min-height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; }
.embed-by { margin: 0; font-size: 14px; font-weight: 700; }
.embed-by a { color: inherit; }
.press-embed { margin: 12px 0 0; display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.press-copy { justify-self: start; min-height: 44px; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: inherit; font-weight: 700; cursor: pointer; }
.press-copied { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.press-embed textarea { width: 100%; box-sizing: border-box; font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 8px; border-radius: 8px; border: 1px solid rgb(127 127 127 / 0.4); background: transparent; color: inherit; resize: none; }
