/* Life Music site. Palette and type from docs/design/ui-direction.md and ui/theme/Color.kt.
   Bright accents are fills with Ink Plum text; text-safe shades are used where an accent is text. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque.ttf") format("truetype");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("fonts/Figtree.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* Brand */
  --ink-plum: #2b1840;
  --paper-lilac: #f7f2ff;
  --bubblegum: #ff4f9a;
  --mint: #2fd9a8;
  --tangerine: #ff8a3d;
  --lemon: #ffd84d;
  --sky: #4da8ff;
  --grape: #9b6bff;
  --lime: #b4e33d;
  --no-place: #e3d3ff;

  /* Light scheme */
  --bg: var(--paper-lilac);
  --text: var(--ink-plum);
  --muted: #5a4a6e;
  --accent-text: #ad1f63;
  --surface: #ffffff;
  --surface-2: #ede4fa;
  --surface-3: #e1d4f3;
  --outline: #7d6c91;
  --outline-soft: #d6c9e8;
  --edge: var(--ink-plum);
  --focus: #ad1f63;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --page: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink-plum);
    --text: var(--paper-lilac);
    --muted: #d3c5e6;
    --accent-text: #ff8fc1;
    --surface: #3a2652;
    --surface-2: #33204a;
    --surface-3: #4d3768;
    --outline: #a592bc;
    --outline-soft: #5a4475;
    --edge: var(--paper-lilac);
    --focus: #ff8fc1;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-text);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.16em;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 7.4vw, 5.6rem);
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.035em;
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-variation-settings: "opsz" 36;
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-variation-settings: "opsz" 24;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--bubblegum);
  color: var(--ink-plum);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  padding-block: 1.25rem;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-variation-settings: "opsz" 24;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  min-height: 48px;
}

.brand img {
  width: 36px;
  height: 36px;
  transform: rotate(-6deg);
  border-radius: 10px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--bubblegum);
  text-decoration-thickness: 0.18em;
}

/* Buttons and pills */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--ink-plum);
  background: var(--bubblegum);
  color: var(--ink-plum);
  font-family: var(--body);
  font-weight: 800;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px) rotate(-1deg);
}

.button--large {
  min-height: 60px;
  padding: 1rem 2rem;
  font-size: 1.2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 2px solid var(--ink-plum);
  color: var(--ink-plum);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
}

.pill--live {
  background: var(--mint);
}

.pill--live::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ink-plum);
}

/* Download slot */

.download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 60px;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 2px dashed var(--outline);
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
}

.soon::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--lemon);
  border: 2px solid var(--ink-plum);
}

.download__note {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 28rem;
}

.download__sha {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

/* Hero */

.hero {
  padding-block: clamp(1.5rem, 5vw, 4rem) clamp(3rem, 8vw, 6rem);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero h1 .hl {
  position: relative;
  white-space: nowrap;
}

.hero h1 .hl::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.06em;
  right: -0.08em;
  bottom: 0.06em;
  height: 0.36em;
  background: var(--lemon);
  border-radius: 999px;
  transform: rotate(-1.5deg);
}

.hero h1 {
  position: relative;
  z-index: 0;
}

.hero__lede {
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 1.8vw, 1.3rem);
  color: var(--muted);
  max-width: 34rem;
}

.hero__lede strong {
  color: var(--text);
  font-weight: 700;
}

.hero .download {
  margin-top: 2rem;
}

/* The phone and its stickers (illustration; made-up data) */

.stage {
  position: relative;
  justify-self: center;
  width: min(100%, 22rem);
  padding: 1.5rem 0;
}

.stage figcaption {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.phone {
  position: relative;
  margin-inline: auto;
  width: min(100%, 18.5rem);
  padding: 0.6rem;
  border-radius: 2.6rem;
  background: var(--ink-plum);
  border: 2px solid var(--edge);
  transform: rotate(2deg);
}

.screen {
  border-radius: 2.1rem;
  background: var(--paper-lilac);
  color: var(--ink-plum);
  padding: 1.6rem 1rem 1.2rem;
  font-size: 0.8rem;
  line-height: 1.35;
  overflow: hidden;
}

.screen__greet {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.screen__greet img {
  width: 26px;
  height: 26px;
}

.screen__day {
  margin-top: 0.4rem;
  font-family: var(--display);
  font-variation-settings: "opsz" 96;
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.screen__date {
  color: #5a4a6e;
  margin-top: 0.2rem;
}

.screen .pill {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  padding: 0.15rem 0.6rem;
}

.screen__pause {
  margin-top: 0.7rem;
  border-radius: 999px;
  background: var(--bubblegum);
  border: 2px solid var(--ink-plum);
  padding: 0.5rem;
  text-align: center;
  font-weight: 800;
}

.nowplaying {
  margin: 1rem 0.2rem 0.4rem;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: 1.2rem;
  background: #ffffff;
  border: 3px solid var(--tangerine);
  box-shadow: 0 0 0 2px var(--ink-plum);
  transform: rotate(-1.5deg);
  /* Three 1.4 s pulses, then still: under the 5 s of WCAG 2.2.2, so no pause control is needed. */
  animation: pulse 1.4s ease-in-out 3;
}

@keyframes pulse {
  0%,
  100% {
    transform: rotate(-1.5deg) scale(1);
  }
  50% {
    transform: rotate(-1.5deg) scale(1.025);
  }
}

.art {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  position: relative;
  color: var(--ink-plum);
}

.art--small {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 9px;
  font-size: 0.8rem;
}

.art::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  border: 2px solid var(--ink-plum);
  background: var(--dot, var(--no-place));
}

.tint-a { background: #ffe0cc; }
.tint-b { background: #d9ecff; }
.tint-c { background: #fff3c4; }
.tint-d { background: #ece2ff; }

.dot-tangerine { --dot: var(--tangerine); }
.dot-sky { --dot: var(--sky); }
.dot-lemon { --dot: var(--lemon); }
.dot-grape { --dot: var(--grape); }
.dot-lime { --dot: var(--lime); }
.dot-bubblegum { --dot: var(--bubblegum); }

.song__title {
  font-weight: 800;
  font-size: 0.9rem;
}

.song__artist {
  color: #5a4a6e;
}

.place-tag {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink-plum);
  background: var(--tangerine);
  font-weight: 700;
  font-size: 0.7rem;
}

.screen__glance {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
}

.screen__glance span {
  color: #ad1f63;
  font-weight: 700;
}

.screen__stats {
  display: flex;
  gap: 1.1rem;
  margin-top: 0.4rem;
}

.screen__stats b {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.screen__stats small {
  font-size: 0.7rem;
  color: #5a4a6e;
}

.rows {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.rows li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.rows .song {
  flex: 1;
  min-width: 0;
}

.rows .song__title,
.rows .song__artist {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rows time {
  color: #5a4a6e;
  font-size: 0.72rem;
}

.sticker {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  border-radius: 999px;
  border: 2px solid var(--ink-plum);
  box-shadow: 0 0 0 3px #ffffff;
  color: var(--ink-plum);
  font-weight: 800;
  font-size: 0.85rem;
  white-space: nowrap;
}

.sticker img {
  width: 30px;
  height: 30px;
}

.sticker--plain {
  padding: 0.4rem 0.9rem;
}

.sticker--lemon { background: var(--lemon); top: 0.2rem; left: -0.4rem; transform: rotate(-8deg); }
.sticker--sky { background: var(--sky); top: 24.5%; right: -0.8rem; transform: rotate(7deg); }
.sticker--lime { background: var(--lime); bottom: 3.2rem; left: -0.9rem; transform: rotate(-5deg); }

.avatar-sticker {
  position: absolute;
  z-index: 2;
  width: 64px;
  height: 64px;
  top: -0.4rem;
  right: 0.2rem;
  transform: rotate(10deg);
}

/* Sections */

.section {
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.section__intro {
  max-width: 40rem;
}

.section__intro p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.15rem;
}

/* How it works */

.steps {
  list-style: none;
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 0;
  padding: 0;
  display: grid;
  gap: clamp(3.5rem, 8vw, 6rem);
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.step:nth-child(even) .step__art {
  order: -1;
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  border: 2px solid var(--ink-plum);
  box-shadow: 0 0 0 3px var(--bg);
  color: var(--ink-plum);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  transform: rotate(-6deg);
}

.step:nth-child(1) .step__num { background: var(--bubblegum); }
.step:nth-child(2) .step__num { background: var(--sky); }
.step:nth-child(3) .step__num { background: var(--lemon); }

.step p {
  margin-top: 0.9rem;
  color: var(--muted);
  max-width: 32rem;
}

.step p strong {
  color: var(--text);
}

.step__art {
  position: relative;
  min-width: 0;
}

.panel {
  border-radius: 24px;
  background: var(--surface);
  border: 2px solid var(--outline-soft);
  padding: clamp(1.25rem, 3vw, 2rem);
}

/* Step 1: listening, in seconds */

.listen {
  display: grid;
  gap: 1.1rem;
}

.listen__row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.listen__row img {
  width: 52px;
  height: 52px;
  flex: none;
}

.bars {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 52px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.bars span {
  flex: 1 1 0;
  min-width: 3px;
  max-width: 9px;
  border-radius: 999px;
  background: var(--bubblegum);
  border: 1.5px solid var(--ink-plum);
  height: 40%;
}

.bars span:nth-child(7n + 1) { height: 34%; }
.bars span:nth-child(7n + 2) { height: 72%; }
.bars span:nth-child(7n + 3) { height: 100%; }
.bars span:nth-child(7n + 4) { height: 56%; }
.bars span:nth-child(7n + 5) { height: 84%; }
.bars span:nth-child(7n + 6) { height: 44%; }
.bars span:nth-child(7n + 7) { height: 66%; }

.bars--quiet span:nth-child(n) { height: 22%; }
.bars--quiet span:nth-child(4n + 2) { height: 34%; }

.bars--quiet span {
  background: var(--surface-3);
  border-color: var(--outline);
}

.listen__label {
  flex: none;
  min-width: 5.5rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.listen__label span {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.875rem;
}

.listen__cycle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.4rem;
  border-top: 2px dashed var(--outline-soft);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 0.85rem;
  font-weight: 600;
}

.chip--on {
  background: var(--mint);
  color: var(--ink-plum);
}

/* Step 2: timeline and map */

.map {
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--outline-soft);
  background: var(--surface);
}

.map svg {
  width: 100%;
  height: auto;
}

.timeline {
  margin: -2.5rem 0.75rem 0 auto;
  position: relative;
  width: min(100%, 21rem);
  border-radius: 24px;
  background: var(--surface);
  border: 2px solid var(--edge);
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
  transform: rotate(-1.5deg);
}

.timeline ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.timeline li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.timeline .visit {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.timeline .visit::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 2px solid var(--edge);
  background: var(--dot, var(--no-place));
  flex: none;
}

.timeline .trip {
  padding: 0.35rem 0.6rem 0.35rem 0.35rem;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--grape) 0 6px, var(--surface-2) 6px);
  font-weight: 700;
  font-size: 0.85rem;
}

.timeline .trip img {
  width: 30px;
  height: 30px;
  margin-left: 0.3rem;
}

.timeline .song {
  min-width: 0;
}

.timeline .song__title,
.timeline .song__artist {
  display: block;
}

.timeline .song__artist {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Step 3: privacy */

.vault {
  display: grid;
  gap: 1rem;
}

.vault__big {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.vault__zero {
  flex: none;
  display: grid;
  place-items: center;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  background: var(--lemon);
  border: 2px solid var(--ink-plum);
  box-shadow: 0 0 0 4px #ffffff;
  color: var(--ink-plum);
  font-family: var(--display);
  font-variation-settings: "opsz" 96;
  font-weight: 800;
  font-size: 3.6rem;
  line-height: 1;
  transform: rotate(-8deg);
}

.vault__big p {
  font-family: var(--display);
  font-variation-settings: "opsz" 24;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
}

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.flow li {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
  font-size: 0.95rem;
}

.flow .mark {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  border: 2px solid var(--ink-plum);
  color: var(--ink-plum);
  font-weight: 900;
  font-size: 0.85rem;
  line-height: 1;
}

.mark--yes { background: var(--mint); }
.mark--no { background: var(--bubblegum); }

.step__more {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 700;
}

/* Make it yours */

.yours {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.sheet {
  list-style: none;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 0.75rem;
  border-radius: 24px;
  background: var(--surface-2);
  border: 2px dashed var(--outline);
}

.sheet li {
  display: grid;
  place-items: center;
}

.sheet img {
  width: 64px;
  height: 64px;
}

.sheet li:nth-child(3n + 1) img { transform: rotate(-6deg); }
.sheet li:nth-child(3n + 2) img { transform: rotate(4deg); }
.sheet li:nth-child(5n) img { transform: rotate(-2deg) translateY(4px); }

.sheet .is-picked img {
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bubblegum);
}

.sheet .trip img {
  width: 58px;
  height: 58px;
}

/* Get it */

.get {
  text-align: left;
}

.get__card {
  position: relative;
  border-radius: 24px;
  border: 2px solid var(--edge);
  background: var(--surface);
  padding: clamp(2rem, 6vw, 4rem);
  display: grid;
  gap: 1.25rem;
  overflow: hidden;
}

.get__card p {
  color: var(--muted);
  max-width: 36rem;
}

.get__note-art {
  position: absolute;
  right: clamp(-1rem, 2vw, 2rem);
  top: clamp(-1rem, 2vw, 2rem);
  width: clamp(80px, 14vw, 140px);
  height: auto;
  transform: rotate(12deg);
}

.get h2 {
  padding-right: clamp(4rem, 12vw, 9rem);
}

/* Footer */

.site-footer {
  padding-block: 3rem 3.5rem;
  border-top: 2px solid var(--outline-soft);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--text);
  font-weight: 600;
}

/* Text pages (privacy, licences) */

.doc {
  padding-block: clamp(2rem, 6vw, 4rem) clamp(4rem, 10vw, 7rem);
}

.doc .wrap {
  max-width: 47rem;
}

.doc h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.doc h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.doc h2::before {
  content: "";
  flex: none;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  border: 2px solid var(--edge);
  background: var(--dot, var(--bubblegum));
}

.doc section:nth-of-type(7n + 2) h2 { --dot: var(--mint); }
.doc section:nth-of-type(7n + 3) h2 { --dot: var(--tangerine); }
.doc section:nth-of-type(7n + 4) h2 { --dot: var(--lemon); }
.doc section:nth-of-type(7n + 5) h2 { --dot: var(--sky); }
.doc section:nth-of-type(7n + 6) h2 { --dot: var(--grape); }
.doc section:nth-of-type(7n + 7) h2 { --dot: var(--lime); }

.doc h3 {
  margin-top: 1.75rem;
  font-size: 1.25rem;
}

.doc p,
.doc ul,
.doc dl {
  margin-top: 0.9rem;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.4rem;
}

.doc .lede {
  margin-top: 1.25rem;
  font-size: 1.2rem;
  color: var(--muted);
}

.doc code {
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.draft {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: var(--lemon);
  color: var(--ink-plum);
  border: 2px solid var(--ink-plum);
}

.draft strong {
  font-weight: 800;
}

.planned {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0 0.5rem;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  vertical-align: 0.1em;
}

.who {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0;
}

.who > div {
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: var(--surface);
  border: 2px solid var(--outline-soft);
}

.who dt {
  font-weight: 800;
}

.who dd {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.toc {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: var(--surface-2);
}

.toc h2 {
  margin: 0;
  font-size: 1.15rem;
}

.toc h2::before {
  display: none;
}

.toc ol {
  margin: 0.6rem 0 0;
  padding-left: 1.25rem;
  columns: 2 15rem;
}

.toc a {
  display: inline-block;
  padding-block: 0.3rem;
}

.notice {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--surface);
  border: 2px solid var(--outline-soft);
  font-size: 0.95rem;
}

.notice pre {
  margin: 0.5rem 0 0;
  white-space: pre-wrap;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.doc .meta {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Layout below tablet width */

@media (max-width: 56rem) {
  .hero .wrap,
  .step,
  .yours {
    grid-template-columns: minmax(0, 1fr);
  }

  .step:nth-child(even) .step__art {
    order: 0;
  }

  .stage {
    width: min(100%, 21rem);
  }
}

@media (max-width: 26rem) {
  .bars span:nth-child(n + 11) {
    display: none;
  }

  .listen__row {
    gap: 0.6rem;
  }

  .listen__row img {
    width: 40px;
    height: 40px;
  }

  .sticker--sky {
    right: -0.25rem;
  }

  .sticker--lime {
    left: -0.25rem;
  }

  .sticker--lemon {
    left: -0.1rem;
  }

  .timeline {
    margin-right: 0;
  }

  .vault__zero {
    width: 5rem;
    height: 5rem;
    font-size: 2.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .button:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .button,
  .soon,
  .pill {
    border: 2px solid ButtonText;
  }
}

/* Map illustration (step 2) */

.map-land { fill: #efe7fb; }
.map-water { fill: #cfe6ff; }
.map-park { fill: #dff3c4; }
.map-road { fill: none; stroke: #ffffff; stroke-width: 9; stroke-linecap: round; }
.map-road--minor { stroke-width: 5; }
.trip-casing { fill: none; stroke: var(--ink-plum); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.trip-line { fill: none; stroke: var(--grape); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.place { stroke: var(--ink-plum); stroke-width: 3; }
.place--tangerine { fill: var(--tangerine); }
.place--lemon { fill: var(--lemon); }
.place--sky { fill: var(--sky); }

@media (prefers-color-scheme: dark) {
  .map-land { fill: #3a2652; }
  .map-water { fill: #2a3f6e; }
  .map-park { fill: #3d4a3a; }
  .map-road { stroke: #5a4475; }
  .place { stroke: var(--paper-lilac); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* In dark mode the headline is light, so the Lemon mark sits under the word instead of behind it. */
@media (prefers-color-scheme: dark) {
  .hero h1 .hl::after {
    bottom: -0.1em;
    height: 0.14em;
  }
}
