/* PictureFollows. Graphite, white hairlines. The only colour is the sunset's own. */

:root {
  --bg-top: #0D0F12;
  --bg-bottom: #171B20;
  --text: #F1F2F4;
  --muted: rgba(241, 242, 244, 0.66);
  --faint: rgba(241, 242, 244, 0.44);
  --hairline: rgba(255, 255, 255, 0.14);
  --hairline-strong: rgba(255, 255, 255, 0.32);
  --ivory: #F4EFE4;
  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 40px);
  --label: 220px;            /* the left column that holds each section's name */
}

/* The other background being tried: true black, like the editors it sits beside. */
html[data-bg="black"] { --bg-top: #000000; --bg-bottom: #000000; }

* { box-sizing: border-box; }

html {
  background: var(--bg-bottom);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--hairline-strong); }

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--pad));
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; display: block; }

.top { flex-wrap: wrap; gap: 10px 20px; }
.top nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 28px); }
.top nav a { color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; opacity: 0.86; }
.top nav a.by { color: var(--faint); font-weight: 400; opacity: 1; }
@media (max-width: 560px) {
  .top nav a.by { display: none; }        /* it is in the footer too */
  .top nav .long { display: none; }       /* "Contact Support" reads "Support" */
}
.top nav a:hover { color: var(--text); opacity: 1; }

/* Hero */

.hero { padding-top: clamp(40px, 8vw, 104px); }

.hero h1 { margin: 0; font-weight: inherit; }

.hero .lead-in {
  display: block;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--text);
}

/* "The picture follows." Plain ivory by default. Where the browser can clip a
   background to text, the spectrogram's grain lies across the WHOLE line in every look,
   at the same size and place, and each look only chooses which letters show it:
     grain  every letter
     word   "picture" only
     leak   "picture", fading out across the first letters of "follows"
     plain  none
   So "picture" is the same pixels in every look. */
.hero .follows {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.08em;
  padding-bottom: 0.12em;
  font-size: clamp(3rem, 8.6vw, 6.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.0;
  text-wrap: balance;
  color: var(--ivory);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero .follows {
    background: #F0A21C url("assets/spectrogram-grain.jpg") center / cover no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* Letters that stay ivory are painted over the grain. */
  html[data-head="word"] .hero .follows :is(.the, .trail, .rest, .period),
  html[data-head="leak"] .hero .follows :is(.the, .rest, .period),
  html[data-head="plain"] .hero .follows :is(.the, .word, .trail, .rest, .period) {
    -webkit-text-fill-color: var(--ivory);
  }

  /* Leak: "follows" is ivory, but its first two letters ("fo", the .trail) let the grain
     through, fading out. The rest of the word is painted solid, so no grain shows past
     the fade, not even on a letter's edge. */
  html[data-head="leak"] .hero .follows .trail {
    background: linear-gradient(90deg, transparent 0%, var(--ivory) 92%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* Phones: "The picture follows." wraps onto two lines below about 440 px, which breaks
     the Leak (the fade only reads with "picture" and "follows" side by side). There, Leak
     shows as the one-word look. "picture" gets its own copy of the grain, sized and placed
     to show the same pixels it shows on desktop (measured: x 284–698, y −14–154 of the
     1200 × 160 strip). Spread across two lines, the shared grain would put the plain middle
     of the sun behind "picture". The picker's other looks still apply. */
  @media (max-width: 439px) {
    html:is([data-head="word"], [data-head="leak"]) .hero .follows {
      background: none;
      -webkit-text-fill-color: var(--ivory);
    }
    html:is([data-head="word"], [data-head="leak"]) .hero .follows .word {
      background: #F0A21C url("assets/spectrogram-grain.jpg") 36.2% 0.1em / 290% auto no-repeat;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    html[data-head="leak"] .hero .follows .trail {
      background: none;
      -webkit-text-fill-color: var(--ivory);
    }
  }
}

/* The hero's text beside a small menu bar screenshot (stacked on a phone). */
.intro-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: clamp(16px, 2vw, 24px); }
@media (min-width: 960px) {
  .intro-grid { grid-template-columns: minmax(0, 1fr) 220px; gap: 56px; align-items: end; }
}

.what {
  margin: 0;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.menubar { margin: 0; }
.menubar .shot { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.menubar .shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.menubar .shot.scratch {
  display: grid; place-items: center; padding: 18px; text-align: center;
  border: 1px dashed var(--hairline-strong); font-size: 14px; color: var(--muted);
}
/* Below the desktop layout the slot sits after the buttons, small. While it is still a
   placeholder it is hidden there, so a phone never shows an empty box. */
@media (max-width: 959px) {
  .menubar { max-width: 200px; }
  .menubar:has(.shot.scratch) { display: none; }
}

/* The one badge style, site-wide (soundbyjames.com): white hairline pill, white caps.
   Never filled, never coloured. */
.badge {
  display: inline-block;
  border: 1.5px solid #FFFFFF;
  border-radius: 999px;
  padding: 6px 15px 5px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #FFFFFF;
  white-space: nowrap;
}

.editors {     /* not used since pass 10 (merged into .what) */
  margin: 6px 0 0;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--muted);
}

.lede {
  max-width: 36em;
  margin: clamp(22px, 3vw, 36px) 0 0;
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.5;
  color: var(--text);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 34px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.button:hover { border-color: var(--text); }

.button.primary { background: var(--ivory); border-color: var(--ivory); color: #0D0F12; }
.button.primary:hover { background: #FFFFFF; border-color: #FFFFFF; }

.fine { margin: 14px 0 0; font-size: 14.5px; color: var(--muted); }

/* The sunset art. Two plates, one over the other: the spectrogram, and the photograph
   shown only left of the playhead. --p is the playhead, 0 to 1 across the ten seconds.
   It rests at 5.15 s; site.js moves it with the page's scroll. */

.art {
  --p: 0.515;
  --top: 0px;                       /* where the ruler sits, in the master's own units */
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  background: #2a1a05;
}

.art .stage { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 3024 / 1701; }
.art .plate, .art .overlay { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.art .photo { clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }

.art .ruler { transform: translate(0, var(--top)); }
.art .cursor { transform: translate(calc(var(--p) * 3024px), var(--top)); }

/* Wide screens show the master's 21:9 cut: rows 202 to 1498 of 1701. */
@media (min-width: 720px) {
  .art { aspect-ratio: 7 / 3; --top: 202px; }
  .art .stage { top: -15.5864%; }
}

/* On a phone the playhead's soft halo is under a pixel wide and is the costliest
   thing to redraw on every scroll frame, so it is left out there. */
@media (max-width: 719px) {
  .art .shaft-halo { display: none; }
}

/* The master's overlay styles, unchanged. */
.art .shaft { stroke: #fff6da; stroke-width: 5.4; }
.art .shaft-edge { stroke: #503311; stroke-width: 8.2; opacity: .40; }
.art .shaft-halo { stroke: #fff0b6; stroke-width: 10; opacity: .38; filter: url(#shaft-glow); }
.art .head { fill: #fff6da; stroke: #765626; stroke-width: 1.7; stroke-linejoin: round; }
.art .ruler-band { fill: #000000; opacity: .40; }
.art .ruler-edge { stroke: #fff6da; stroke-opacity: .30; stroke-width: 1.5; fill: none; }
.art .ruler-ticks { fill: none; stroke: #fff6da; stroke-opacity: .75; stroke-width: 2.4; }
.art .ruler-label { fill: #fff6da; font: 500 34px "Helvetica Neue", Arial, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .2px; text-anchor: middle; }

/* The proof: the screen recording, whole, in a plain frame. */

/* From the people who use it (pass 12): one slider, one format. Slide 1 is James's note;
   the others are testers in the same layout. A horizontal strip: on desktop the photo
   (220 px, 4:5) on the left and the words beside it, vertically centred; on a phone the
   quote on top and a small square photo beside the name. Every slide is the same height
   (the tallest), so the page never jumps between quotes. The track scrolls sideways with
   snap points: a phone swipes it natively, one slide at a time. Controls: thin chevrons at
   the edges (desktop) or beside the pills (phone), and pills; all 44 px targets. */
.voices {
  margin-top: clamp(48px, 7vw, 88px);
  margin-inline: calc(-1 * min(56px, var(--pad)));
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  grid-template-areas: "prev track next" ". pills .";
  column-gap: 12px;
  align-items: center;
}
.voices .prev { grid-area: prev; }
.voices .next { grid-area: next; }
.voice-track { grid-area: track; }
.pills { grid-area: pills; }

.voice-track {
  position: relative;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.voice-track::-webkit-scrollbar { display: none; }
.voice-track:focus-visible { outline: 2px solid var(--ivory); outline-offset: 4px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .voice-track { scroll-behavior: auto; } }

.voice {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;            /* one slide per swipe */
  display: grid;
  grid-template-columns: 220px minmax(0, 34em);
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas: "face ." "face quote" "face sign" "face .";
  column-gap: 40px;
}
.voice .face {
  grid-area: face;
  width: 220px;
  height: auto;                        /* the img's height attribute must not win over the shape */
  aspect-ratio: 4 / 5;
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  object-fit: cover;
  object-position: 50% 60%;
}
.voice .face-empty { display: block; border-style: dashed; }
.voice picture { display: contents; }
.voice .quote { grid-area: quote; margin: 0; }
.voice .quote p {
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--text);
}
.voice .sign { grid-area: sign; margin-top: 14px; font-size: 15px; color: var(--muted); }
.voice .name { color: var(--text); font-weight: 600; }
.voice .credits { display: block; margin-top: 1px; }
.voice .tag { margin-left: 6px; font-size: 12px; color: var(--faint); }

/* Thin ivory chevrons: no circle, no box; the whole 44 px square is the target. */
.chev {
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: none;
  display: grid; place-items: center; cursor: pointer;
  color: #fff6da; opacity: 0.6; transition: opacity 0.15s ease;
}
.chev:hover, .chev:focus-visible { opacity: 1; }

/* Pills: slim to look at, 44 x 44 to hit. */
.pills { display: flex; justify-content: center; margin-top: 10px; }
.pills button {
  width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; border-radius: 8px;
}
.pills button::before {
  content: ""; width: 16px; height: 5px; border-radius: 99px;
  background: var(--hairline-strong); transition: width 0.2s ease, background-color 0.2s ease;
}
.pills button:hover::before { background: var(--muted); }
.pills button[aria-selected="true"]::before { width: 26px; background: var(--ivory); }

/* Phones (pass 13): every slide becomes a photo card. The photo fills a 4:5 card (cropped
   to fit, around each person's focus point, so landscape and portrait photos both work),
   a dark fade rises from the bottom to just past the middle, and the quote, name and
   credits sit in it. The quote is smaller than the page copy so it reads as a card, not
   text. Same rounded corners and hairline border as the demo player. The current card
   fills most of the width and the next card's edge peeks in after a gap, as a deck of
   cards; nothing bleeds outside the slider. Swipe or the pills; no chevrons on phones.
   Quote length guide: about 160 characters per card. */
@media (max-width: 719px) {
  .voices {
    margin-inline: 0;
    grid-template-areas: "track track track" "pills pills pills";
    column-gap: 0;
  }
  .voices .chev { display: none; }
  .pills { margin-top: 6px; }
  .voice-track { gap: 12px; border-radius: 14px; }

  .voice {
    flex-basis: 86%;
    position: relative;
    aspect-ratio: 4 / 5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    border: 1px solid var(--hairline-strong);
    border-radius: 14px;
    overflow: hidden;
    background: #0b0b0b;
  }
  .voice .face {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%; aspect-ratio: auto;
    border: 0; border-radius: 0;
    object-fit: cover;
    object-position: var(--focus, 50% 40%);
  }
  /* Placeholders without a photo: a dark card with a soft grain (the site's spectrogram). */
  .voice .face-empty {
    background:
      linear-gradient(rgba(11, 11, 11, 0.88), rgba(11, 11, 11, 0.88)),
      url("assets/spectrogram-grain.jpg") center / cover;
  }
  /* The fade grows with the words: a soft ramp just above the quote, then dark behind the
     quote and the name, to the card's bottom edge. Every line sits on dark, whatever the
     photo, and the rest of the photo stays clean. */
  .voice .quote, .voice .sign { position: relative; z-index: 2; }
  .voice .quote p, .voice .sign > span { transition: opacity 0.3s ease; }
  .voice .quote {
    padding: 72px 18px 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.84) 72px);
  }
  .voice .sign {
    margin: 0;
    padding: 12px 18px 20px;
    background: rgba(0, 0, 0, 0.84);
    font-size: 13.5px;
    color: rgba(244, 239, 228, 0.72);
  }
  .voice .quote p { font-size: 17px; line-height: 1.42; letter-spacing: -0.008em; color: #F4EFE4; }
  .voice.long .quote p { font-size: 14.5px; line-height: 1.42; }   /* James's note is longer */

  /* Where the words sit is a choice per photo (data-text), so they never cover the person.
     "top": quote and name at the top, fading down. "split": the quote at the top, the name
     at the bottom like a caption, the person clear in between. "bottom" is the default. */
  .voice[data-text="top"], .voice[data-text="split"] { justify-content: flex-start; }
  .voice[data-text="top"] .quote, .voice[data-text="split"] .quote {
    padding: 18px 18px 0;
    background: rgba(0, 0, 0, 0.8);
  }
  .voice[data-text="top"] .sign {
    padding: 12px 18px 56px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8) 56px);
  }
  .voice[data-text="split"] .quote {
    padding: 16px 18px 22px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) calc(100% - 22px), rgba(0, 0, 0, 0));
  }
  .voice[data-text="split"] .sign {
    margin-top: auto;
    padding: 40px 18px 18px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.78) 40px);
  }
  .voice[data-text="split"].long .quote p { font-size: 14.5px; line-height: 1.38; }
  @media (max-width: 384px) { .voice[data-text="split"].long .quote p { font-size: 13.75px; } }   /* 375-wide phones: same six lines as 393 */
  /* Cards that are not showing keep their letters hidden, so the peeking edge is only a card
     edge, never cut-off text. The dark band stays baked into every card (pass 15), so
     nothing on the photo appears or vanishes during a swipe: only the letters fade. */
  .voice:not(.is-current) .quote p, .voice:not(.is-current) .sign > span { opacity: 0; }
  .voice .name { color: #F4EFE4; }
  .voice .tag { color: rgba(244, 239, 228, 0.5); }
}

/* How it works: one quiet line. */
.steps { margin: 0; max-width: 34em; font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.45; color: var(--text); }

/* A small breath after the art, and a short label saying which editor this is. */
.proof { margin: clamp(36px, 5vw, 60px) 0 0; }

/* The editor tabs: plain words. Hover brightens; the one showing is ivory with a thin
   white underline. */
.tabs { display: flex; flex-wrap: wrap; gap: 4px clamp(18px, 3vw, 30px); margin: 0 0 14px; }

.tabs button {
  font: inherit;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--faint);
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 4px 0 5px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--ivory); border-bottom-color: #FFFFFF; cursor: default; }

.proof .window {
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.proof .window { position: relative; aspect-ratio: 1600 / 876; }
.proof video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

/* The wipe's playhead: the art's ivory line, crossing once. */
.proof .wipe-line {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px;
  background: #fff6da;
  box-shadow: 0 0 10px rgba(255, 240, 182, 0.55);
  pointer-events: none;
}

.proof figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* Sections: the name on the left, the content on the right. */

.part {
  margin-top: clamp(56px, 8vw, 104px);
  padding-top: clamp(22px, 3vw, 32px);
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.part > h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--muted);
}

@media (min-width: 860px) {
  .part { grid-template-columns: var(--label) minmax(0, 1fr); gap: 40px; }
}

/* What it does */

.points { list-style: none; margin: 0; padding: 0; max-width: 34em; }

.points li {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.45;
  color: var(--muted);
}

.points li + li { margin-top: 1.05em; }
.points .modes { display: block; margin-top: 0.5em; font-size: 0.82em; color: var(--faint); }
.points strong { color: var(--text); font-weight: 600; }

/* Price: the clearest moment on the page. No card around it: it sits on the page like
   every other section, under the same hairline. The figure on the left, the way to get
   it on the right. */

.pricebox {
  margin-top: clamp(56px, 8vw, 104px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
}

.figure {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.22em;
  font-size: clamp(5rem, 15vw, 9.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.86;
  font-variant-numeric: tabular-nums;
  color: var(--ivory);
}

.offer .badge { margin-bottom: clamp(16px, 2vw, 22px); }

/* $39 after Dec 1: readable, not fine print. */
.after {
  margin: clamp(14px, 1.8vw, 20px) 0 0;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 500;
  color: var(--text);
}

.studio { margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.studio a { color: var(--text); }

.terms { margin: clamp(18px, 2.4vw, 26px) 0 0; }

.terms p {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--text);
}

.terms p + p { margin-top: 0.15em; color: var(--muted); }

.buy { display: flex; flex-direction: column; gap: 12px; }
.buy .button { min-height: 56px; font-size: 17px; width: 100%; }
.buy .fine { margin: 4px 0 0; }

@media (min-width: 860px) {
  .pricebox { grid-template-columns: minmax(0, 1fr) 300px; align-items: end; }
}

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

/* Works with: one line says how all three editors follow; the table only says which
   versions, with the connection in small grey under each name. Two columns, so it
   reads the same on a phone as on a desktop. */

.works > div > p { margin: 0; max-width: 34em; }

.works .names {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.45;
}

.works .each { margin-top: 10px; color: var(--muted); }

.compat {
  width: 100%;
  max-width: 30em;
  margin-top: 24px;
  border-collapse: collapse;
  font-size: 16px;
}

.compat th, .compat td {
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}

.compat .versions { text-align: right; white-space: nowrap; padding-left: 18px; }
.compat thead th { font-size: 14px; font-weight: 500; color: var(--faint); padding-bottom: 9px; }
.compat tbody th { font-weight: 600; color: var(--text); }
.compat .via { display: block; margin-top: 2px; font-size: 14.5px; font-weight: 400; color: var(--faint); }
.compat td { color: var(--text); font-variant-numeric: tabular-nums; }

.works > div > .note { margin-top: 14px; max-width: 34em; font-size: 15px; color: var(--muted); }
.works .req { margin-top: 22px; color: var(--muted); }
.works .req + .req { margin-top: 6px; }

/* Footer */

/* FAQ: plain questions and short answers. */
.faq { margin: 0; max-width: 40em; }
.faq .qa { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.faq .qa:first-child { padding-top: 0; }
.faq dt { font-weight: 600; color: var(--text); }
.faq dd { margin: 3px 0 0; color: var(--muted); }

footer { margin-top: clamp(72px, 11vw, 132px); border-top: 1px solid var(--hairline); }

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 28px;
  padding-top: 26px;
  padding-bottom: 40px;
  font-size: 14.5px;
  color: var(--faint);
}

footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Small pages: EULA, privacy, support, not found */

.page { padding-top: clamp(36px, 7vw, 84px); max-width: calc(44em + 2 * var(--pad)); margin-left: auto; margin-right: auto; }
.page h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 650; }
.page p, .page li { color: var(--muted); }
.page h1 + p { margin-top: 22px; }
.page ol, .page ul { padding-left: 1.2em; }
.page li { margin: 6px 0; }
.page strong { color: var(--text); font-weight: 600; }

.support .lines { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; color: var(--text); }
.support .big { min-height: 60px; padding: 0 34px; font-size: 18px; margin-top: 10px; }
.support .fine a { color: var(--muted); }

/* Scratch only. Everything with .scratch comes out before launch. */

/* (Not public marker: removed for the go-live, Nov 15.) */
footer .notpublic { margin-right: 18px; padding: 2px 8px; border: 1px dashed var(--hairline-strong); border-radius: 6px; font-size: 12.5px; color: var(--muted); }

.todo {
  font-size: 14.5px;
  color: var(--muted);
  text-decoration: underline dashed var(--hairline-strong);
  text-underline-offset: 4px;
}

.todo b { margin-right: 8px; font-weight: 600; color: var(--text); }

figcaption .todo { margin-left: 8px; font-size: 13px; }

/* ---------- Phones: the first screen (pass 10) ----------
   Goal: the first screen ends with the sunset art in view. Logo, headline, one line,
   two buttons, one short caption, then the art. The intro paragraph moves under the art,
   where it explains what has just been seen. Same content as desktop, only the order and
   the spacing change. The hero becomes one column of items so they can be reordered. */
@media (max-width: 719px) {
  .top { padding-top: 14px; padding-bottom: 14px; }

  .hero { display: flex; flex-direction: column; padding-top: 18px; }
  .hero .intro-grid, .hero .intro-text { display: contents; }

  .hero > h1        { order: 1; }
  .hero .what       { order: 2; margin-top: 12px; }
  .hero .actions    { order: 3; margin-top: 20px; }
  .hero .intro-text > .fine { order: 4; margin-top: 12px; }
  .hero .menubar    { order: 5; margin-top: 24px; }
  .hero .art        { order: 6; margin-top: 28px; }
  .hero .lede       { order: 7; margin-top: 26px; }
  .hero .voices     { order: 8; }
  .hero .proof      { order: 9; }
}

/* Go-live for the store review (Nov 15): "Launching soon" in place of Buy and Download.
   Not a link, not a button: a quiet outlined label with the price still beside it. */
.button.soon { cursor: default; color: var(--text); border-color: var(--hairline-strong); background: none; opacity: 0.9; }
.button.soon:hover { border-color: var(--hairline-strong); }
.buy .button.soon { width: 100%; }
.compat .beta { margin-left: 4px; font-size: 12.5px; color: var(--faint); }

/* The legal pages: readable long text. */
.legal h2 { margin: 34px 0 8px; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.legal p, .legal li { line-height: 1.6; }
.legal .legal-list { padding-left: 1.2em; }
.voices.single .chev, .voices.single .pills { display: none; }
@media (max-width: 719px) { .voices.single .voice { flex-basis: 100%; } }
