/*
 * The Rhyme Game — theme styles.
 * Direction: "Loud and flat" (design-taste-frontend, seed 1009288589). Street poster: flat blue, red and black fields,
 * one heavy grotesk set tight, pictures stuck on. Interface fragments ([data-ui]) keep their own small radii and borders.
 */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --surface: #f3f3f3;
  --surface-2: #e7e7e7;
  --ink: #0a0a0a;
  --muted: #5f5f5f;
  --blue: #2436ff;
  --blue-strong: #1424d6;
  --red: #ff3b1f;
  --red-strong: #e02a10;
  --black: #0a0a0a;
  --navy: #050a5c;
  --soft-on-dark: #c4c4c4;

  --font: "Cabinet Grotesk", "Arial Narrow", Arial, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);
  --step-display: clamp(3.5rem, 12vw, 11.875rem);

  --m: clamp(18px, 1.6vw + 6px, 28px);
  --col-gap: clamp(12px, 1.6vw, 24px);
  --section: clamp(104px, 12vw, 200px);
  --masthead: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;

  --focus: var(--ink);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
figure { margin: 0; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; /* taste-skill-ignore: visually hidden text, not a rule */
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: var(--m); top: -100px; z-index: 100; background: #fff; color: var(--ink); padding: 12px 18px; font-weight: 500; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons and links ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 28px;
  background: var(--blue); color: #fff;
  font-size: var(--step-body); font-weight: 500; line-height: 1.1; text-decoration: none;
  border: 0; border-radius: 0; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button--big { min-height: 64px; padding: 18px 40px; font-size: var(--step-lead); }
.button--masthead { background: var(--red); color: var(--ink); min-height: 44px; padding: 10px 20px; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--blue-strong); }
  .button--masthead:hover { background: #fff; color: var(--ink); }
  .button--black:hover { background: #fff; color: var(--ink); }
}
.button--black { background: var(--ink); color: #fff; }

/* ---------- Masthead ---------- */
.masthead {
  --focus: #fff;
  position: relative; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  min-height: var(--masthead);
  padding: 12px var(--m);
  background: var(--blue); color: #fff;
}
.wordmark { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; text-decoration: none; line-height: 1; margin-right: auto; }
.wordmark img { max-height: 44px; width: auto; }
.nav__list { display: flex; gap: 28px; list-style: none; }
.nav__list a, .menu-toggle { font-size: var(--step-body); font-weight: 500; text-decoration: none; text-decoration-thickness: 0.08em; text-underline-offset: 0.25em; }
.nav__list a { transition: text-decoration-color var(--t-hover) ease; text-decoration: underline; text-decoration-color: transparent; }
@media (hover: hover) and (pointer: fine) { .nav__list a:hover { text-decoration-color: currentColor; } }
.nav__list .current-menu-item > a { text-decoration-color: currentColor; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; padding: 10px 0; cursor: pointer; }
.menu-toggle__close { display: none; }

@media (max-width: 860px) {
  .masthead { gap: 16px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 30;
    display: flex; align-items: flex-end;
    padding: calc(var(--masthead) + 24px) var(--m) 48px;
    background: var(--blue);
    visibility: hidden; opacity: 0;
    transition: opacity var(--t-ui) ease, visibility 0s linear var(--t-ui);
  }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__list a { font-size: clamp(2.5rem, 13vw, 4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
  .menu-open .nav { visibility: visible; opacity: 1; transition: opacity var(--t-ui) ease; }
  .menu-open .menu-toggle { position: relative; z-index: 40; }
  .menu-open .menu-toggle__open { display: none; }
  .menu-open .menu-toggle__close { display: inline; }
  .menu-open body { overflow: hidden; }
  .button--masthead { position: relative; z-index: 40; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow-x: clip; }
.hero__field {
  --focus: #fff;
  position: relative;
  min-height: calc(82svh - var(--masthead));
  padding: clamp(32px, 7svh, 96px) var(--m) 48px;
  background: var(--blue); color: #fff;
}
.hero__title {
  font-size: var(--step-display);
  line-height: 0.84;
  letter-spacing: -0.045em;
  max-width: 11ch;
  position: relative; z-index: 1;
}
.hero__band {
  position: relative;
  display: flex; align-items: center; justify-content: flex-start; gap: 24px 48px;
  min-height: 18svh;
  padding: 28px var(--m);
  background: var(--red); color: var(--ink);
}
.hero__line { font-size: var(--step-lead); font-weight: 500; line-height: 1.3; max-width: 34ch; }

/* The scrap stuck on the poster: a boombox and a live bar of the game. */
.scrap {
  --focus: var(--ink);
  position: absolute; z-index: 3;
  left: calc(var(--m) + 65vw);
  bottom: calc(-9svh);
  width: min(25vw, 46svh);
  aspect-ratio: 3 / 4;
  display: flex; flex-direction: column;
  padding: 8% 6% 7%;
  background: #fff; color: var(--ink);
  border-radius: 999px 999px 0 0;
  transform: rotate(5deg);
  cursor: pointer;
}
.scrap__photo { flex: 1 1 auto; display: flex; align-items: flex-end; justify-content: center; min-height: 0; }
.scrap__img { width: 132%; max-width: none; height: 100%; object-fit: contain; object-position: center bottom; margin-inline: -16%; mix-blend-mode: multiply; } /* the print's paper ground melts into the white scrap */
[data-ui] .scrap__bar {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr 1fr 2.3fr; gap: 6px; align-items: end;
  margin-top: 12px; padding-top: 52px;
}
[data-ui] .scrap__beat { height: 14px; background: var(--surface-2); border-radius: 3px; }
[data-ui] .scrap__word {
  display: flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 6px;
  background: var(--blue); color: #fff; border-radius: 4px;
  font-size: clamp(1.25rem, 1.8vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em;
  transition: transform 120ms var(--ease-out);
}
[data-ui] .scrap__word.is-hit { transform: scale(1.08); }
[data-ui] .scrap__ball { position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); will-change: transform; }
.scrap__note { margin-top: 12px; font-size: var(--step-small); line-height: 1.35; color: var(--muted); }

@media (max-width: 1100px) {
  .hero__band { flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; }
  .hero__line { max-width: 30ch; }
}
@media (max-width: 700px) {
  .hero__field { min-height: calc(78svh - var(--masthead)); padding-top: 28px; }

  .scrap { left: auto; right: -7vw; bottom: -40px; width: 60vw; padding-top: 16%; }
  .hero__band { flex-direction: column; align-items: stretch; padding-top: 64px; gap: 20px; }
  .hero__band .button { width: 100%; }
}

/* ---------- Section shells ---------- */
.play, .change, .learn { padding: var(--section) var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }

/* ---------- Play ---------- */
.play__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; margin-bottom: 48px; }
.play__title { grid-column: 1 / span 7; font-size: var(--step-head); }
.play__intro { grid-column: 8 / span 5; font-size: var(--step-lead); line-height: 1.35; }
@media (max-width: 860px) {
  .play__head { display: block; }
  .play__intro { margin-top: 20px; }
}

/* ---------- The game (interface fragment) ---------- */
.rg { --focus: var(--blue); display: grid; gap: 12px; }
[data-ui].rg__stage {
  position: relative; overflow: hidden;
  padding: 24px clamp(16px, 2.4vw, 36px) 40px;
  background: var(--surface); border-radius: 8px;
}
[data-ui] .rg__top { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
[data-ui] .rg__status { font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: auto; }
[data-ui] .rg__topic { flex-basis: 100%; font-size: 20px; }
[data-ui] .rg__topic b { font-weight: 800; }
[data-ui] .rg__grid { list-style: none; display: grid; gap: 14px; }
[data-ui] .rg__bar {
  display: grid; grid-template-columns: 1fr 1fr 1fr 2.2fr; gap: 10px; align-items: end;
  padding-top: 64px;
  transition: opacity var(--t-ui) ease;
}
[data-ui] .rg__beat { height: 22px; background: var(--surface-2); border-radius: 4px; transition: background-color 120ms ease; }
[data-ui] .rg__bar.is-now .rg__beat { background: #cfcfcf; }
[data-ui] .rg__bar.is-past { opacity: 0.4; }
[data-ui] .rg__word {
  display: flex; align-items: center; justify-content: center;
  min-height: 64px; padding: 4px 10px;
  border-radius: 6px;
  font-size: clamp(1.5rem, 2.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  overflow-wrap: anywhere; text-align: center;
  transition: transform 120ms var(--ease-out);
}
[data-ui] .rg__word--a { background: var(--blue); color: #fff; }
[data-ui] .rg__word--b { background: var(--red); color: var(--ink); }
[data-ui] .rg__word--hidden { background: transparent; color: var(--muted); border: 3px dashed currentColor; }
[data-ui] .rg__word--a.rg__word--hidden { color: var(--blue); }
[data-ui] .rg__word--b.rg__word--hidden { color: var(--red-strong); }
[data-ui] .rg__word.is-hit { transform: scale(1.07); }
[data-ui] .rg__ball {
  position: absolute; left: 0; top: 0; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%; background: var(--ink);
  will-change: transform;
}
[data-ui] .rg__grid.is-swap .rg__bar { animation: rg-swap 420ms var(--ease-out) both; }
[data-ui] .rg__grid.is-swap .rg__bar:nth-child(2) { animation-delay: 40ms; }
[data-ui] .rg__grid.is-swap .rg__bar:nth-child(3) { animation-delay: 80ms; }
[data-ui] .rg__grid.is-swap .rg__bar:nth-child(4) { animation-delay: 120ms; }
@keyframes rg-swap { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
[data-ui] .rg__count {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(7rem, 16vw, 13rem); font-weight: 800; color: var(--blue); line-height: 1;
  background: rgb(243 243 243 / 0.82);
  pointer-events: none;
}
[data-ui] .rg__review {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  padding: clamp(24px, 4vw, 56px);
  background: var(--surface);
}
[data-ui] .rg__review[hidden], [data-ui] .rg__count[hidden] { display: none; }
[data-ui] .rg__review-title { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 0.95; }
[data-ui] .rg__review-line { font-size: 20px; max-width: 40ch; }
[data-ui] .rg__review-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }

[data-ui].rg__panel {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px 32px; align-items: start;
  padding: 24px clamp(16px, 2.4vw, 36px); background: var(--surface); border-radius: 8px;
}
[data-ui] .rg__mine, [data-ui] .rg__stats { grid-column: 1 / -1; }
[data-ui] .rg__actions { display: flex; flex-wrap: wrap; gap: 8px; }
[data-ui] .rg__actions [data-start] { min-height: 56px; min-width: 160px; font-size: 22px; }
[data-ui] .rg__actions .rg__btn { min-height: 56px; }
[data-ui] .rg__field { border: 0; margin: 0; padding: 0; min-width: 0; }
[data-ui] .rg__field legend, [data-ui] .rg__field > label, [data-ui] .rg__legend { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 500; }
[data-ui] .rg__seg { display: flex; flex-wrap: wrap; gap: 6px; }
[data-ui] .rg__seg label { position: relative; }
[data-ui] .rg__seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
[data-ui] .rg__seg span, [data-ui] .rg__seg button {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px;
  background: #fff; border: 1px solid #d0d0d0; border-radius: 4px;
  font-size: 15px; font-weight: 500; line-height: 1.1; cursor: pointer;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, border-color var(--t-hover) ease;
}
[data-ui] .rg__seg input:checked + span, [data-ui] .rg__seg button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
[data-ui] .rg__seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
[data-ui] .rg__seg input:disabled + span, [data-ui] fieldset:disabled button { opacity: 0.5; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  [data-ui] .rg__seg label:hover span, [data-ui] .rg__seg button:hover { border-color: var(--ink); }
}
[data-ui] .rg__tempo-row { display: flex; gap: 10px; align-items: center; }
[data-ui] input[type="range"] { width: 100%; accent-color: var(--blue); min-height: 32px; }
[data-ui] output { font-variant-numeric: tabular-nums; font-weight: 800; margin-left: 6px; }
[data-ui] .rg__toggles { display: grid; gap: 8px; font-size: 15px; }
[data-ui] .rg__toggles input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--blue); vertical-align: -3px; }
[data-ui] textarea, [data-ui] input[type="search"], [data-ui] input[type="text"] {
  width: 100%; padding: 10px 12px; background: #fff; border: 1px solid #c4c4c4; border-radius: 4px; font-size: 17px;
}
[data-ui] .rg__hint, [data-ui] .rg__stats { font-size: 15px; color: var(--muted); }
[data-ui] .rg__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 16px;
  background: #fff; color: var(--ink); border: 1px solid var(--ink); border-radius: 4px;
  font-size: 17px; font-weight: 500; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
[data-ui] .rg__btn:active { transform: scale(0.97); }
[data-ui] .rg__btn--go { background: var(--blue); color: #fff; border-color: var(--blue); }
[data-ui] .rg__btn--small { min-height: 40px; font-size: 15px; white-space: nowrap; }
[data-ui] .rg__btn:disabled { opacity: 0.45; cursor: default; transform: none; }
@media (hover: hover) and (pointer: fine) {
  [data-ui] .rg__btn:not(:disabled):hover { background: var(--ink); color: #fff; }
  [data-ui] .rg__btn--go:not(:disabled):hover { background: var(--blue-strong); border-color: var(--blue-strong); }
}
[data-ui] .rg__link {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  color: var(--blue); font-size: 17px; font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em;
}
.rg__noscript { margin-top: 16px; font-size: var(--step-lead); }
.rg.is-playing .rg__panel fieldset, .rg.is-playing .rg__tempo { opacity: 0.6; }
.rg.is-paused .rg__ball { opacity: 0.4; }

@media (max-width: 560px) {
  [data-ui] .rg__actions { display: grid; grid-template-columns: 1fr 1fr 1fr; width: 100%; }
  [data-ui] .rg__actions [data-start] { grid-column: 1 / -1; }
  [data-ui] .rg__status { margin-left: 0; }
  [data-ui].rg__stage { padding: 16px 12px 24px; }
  [data-ui] .rg__bar { gap: 6px; padding-top: 48px; grid-template-columns: 1fr 1fr 1fr 2.6fr; }
  [data-ui] .rg__beat { height: 16px; }
  [data-ui] .rg__word { min-height: 52px; font-size: 1.375rem; }
  [data-ui] .rg__ball { width: 20px; height: 20px; }
  [data-ui].rg__panel { padding: 16px; }
}

/* ---------- How it works: lines that step across ---------- */
.steps {
  --focus: #fff;
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  padding: var(--section) var(--m);
  background: var(--black); color: #fff;
}
.steps__list { grid-column: 6 / -1; grid-row: 1; list-style: none; display: grid; row-gap: 56px; }
.steps__item:nth-child(2) { padding-left: 6%; }
.steps__item:nth-child(3) { padding-left: 12%; }
.steps__item:nth-child(4) { padding-left: 18%; }
.steps__line { font-size: var(--step-head); font-weight: 800; line-height: 1; letter-spacing: -0.035em; }
.steps__item--last .steps__line { color: var(--red); }
.steps__text { margin-top: 12px; max-width: 34ch; color: var(--soft-on-dark); }
/* The DJ clip holds the left half while the staircase steps down the right. */
.steps__photo { grid-column: 1 / span 5; grid-row: 1; align-self: start; position: sticky; top: 24px; }
.steps__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #222; }
.steps__photo figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--soft-on-dark); }
.steps__photo figcaption a { color: #fff; }
@media (max-width: 860px) {
  .steps { display: block; }
  .steps__list { display: block; }
  .steps__item { margin-bottom: 40px; }
  .steps__item:nth-child(2) { padding-left: 6vw; }
  .steps__item:nth-child(3) { padding-left: 12vw; }
  .steps__item:nth-child(4) { padding-left: 18vw; }
  .steps__photo { position: static; margin-top: 24px; }
}

/* ---------- What you can change: capabilities at poster scale ---------- */
.change { padding-block: clamp(120px, 16vh, 200px); }
.change__list { margin: 0; }
.change__row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  align-items: baseline;
  padding: 10px 0;
}
.change__row--head { padding-bottom: 18px; }
.change__row dt { grid-column: 1 / span 8; }
.change__row dd { grid-column: 9 / span 4; margin: 0; }
.change__name, .change__heading { font-size: var(--step-head); font-weight: 800; line-height: 1; letter-spacing: -0.035em; transition: color var(--t-hover) ease; }
.change__heading { color: var(--muted); }
.change__text { font-size: var(--step-body); }
@media (hover: hover) and (pointer: fine) { .change__row:hover .change__name { color: var(--blue); } }
@media (max-width: 860px) {
  .change__row { display: block; padding: 0 0 28px; }

  .change__text { margin-top: 6px; padding-left: var(--m); }
}

/* ---------- Off the top: object in front of type ---------- */
.top {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  padding: var(--section) var(--m);
  background: var(--red); color: var(--ink);
}
.top__title { grid-column: 1 / span 7; grid-row: 1; align-self: center; font-size: var(--step-display); line-height: 0.88; letter-spacing: -0.045em; }
.top__line { display: block; }
.top__object { grid-column: 8 / -1; grid-row: 1; align-self: center; justify-self: end; width: min(100%, 560px); rotate: -4deg; }
/* The museum shot is hard-cropped to the mic flag itself. */
.top__crop { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #d9d9d9; }
.top__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.top__about { grid-column: 1 / span 5; grid-row: 2; margin-top: clamp(48px, 6vw, 96px); font-size: var(--step-lead); line-height: 1.35; display: grid; gap: 32px; align-content: start; justify-items: start; }
.top__levels { grid-column: 7 / -1; grid-row: 2; margin-top: clamp(48px, 6vw, 96px); list-style: none; display: grid; gap: 16px; font-size: var(--step-body); line-height: 1.5; max-width: 60ch; }
.top__levels strong { font-weight: 800; }
.top .button { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .top .button:hover { background: var(--blue); } }
@media (max-width: 860px) {
  .top { display: block; }
  .top__object { width: 78vw; margin: 32px 0 0 auto; }
  .top__levels { margin-top: 40px; }
}

/* ---------- Learn: giant word, filled bar rows ---------- */
.learn { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.learn__col { grid-column: 1 / span 6; container-type: inline-size; max-width: 680px; }
.learn__word { font-size: var(--step-display); line-height: 0.8; letter-spacing: -0.05em; margin-bottom: 20px; }
.learn__bars { display: grid; gap: 6px; }
.learn__bar { background: var(--surface); }
.learn__bar summary {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 56px; padding: 0 18px;
  font-size: var(--step-body); font-weight: 500; cursor: pointer; list-style: none;
}
.learn__bar summary::-webkit-details-marker { display: none; }
.learn__bar summary::after { content: "+"; font-size: 1.6em; font-weight: 400; line-height: 1; transition: transform var(--t-ui) var(--ease-out); }
.learn__bar[open] summary::after { transform: rotate(45deg); }
.learn__bar ul { list-style: none; display: grid; gap: 14px; padding: 4px 20px 22px; }
.learn__bar li { display: flex; justify-content: space-between; gap: 16px; }
.learn__bar a { font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .learn__bar a:hover { color: var(--blue); text-decoration-color: currentColor; } }
.learn__bar li span { color: var(--muted); }
.learn__photo { grid-column: 8 / span 5; position: sticky; top: 24px; }
.learn__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); }
.learn__photo figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--muted); max-width: 46ch; }
@media (max-width: 860px) {
  .learn { display: block; }
  .learn__photo { position: static; margin-top: 40px; }
  .learn__img { aspect-ratio: 4 / 3; }
}

/* ---------- Blog: the latest articles on the red field ---------- */
.blog { padding: var(--section) var(--m); background: var(--red); color: var(--ink); --focus: var(--ink); }
.blog__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.blog__title { font-size: var(--step-display); line-height: 0.8; letter-spacing: -0.05em; }
.blog__list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.blog__card { height: 100%; }
.blog__link { display: flex; flex-direction: column; height: 100%; background: var(--bg); text-decoration: none; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.blog__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface); }
.blog__body { display: flex; flex-direction: column; gap: 12px; padding: 22px 20px 26px; flex: 1; }
.blog__name { font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.125rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.blog__meta { margin-top: auto; font-size: var(--step-small); color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .blog__link:hover { background: var(--ink); color: #fff; } .blog__link:hover .blog__meta { color: var(--soft-on-dark); } }
@media (max-width: 1100px) { .blog__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .blog__list { grid-template-columns: 1fr; } }

/* ---------- Questions: a band per question ---------- */
.faq__head {
  --focus: #fff;
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  min-height: 40svh; padding: 0 var(--m);
  background: var(--blue); color: #fff;
}
.faq__title { grid-column: 1 / span 6; align-self: end; padding-bottom: 32px; font-size: var(--step-head); }
.faq__photo { grid-column: 8 / span 5; align-self: stretch; margin: 32px 0; }
.faq__img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.faq__band {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  padding: 56px var(--m);
  background: var(--bg);
}
.faq__band:nth-of-type(even) { background: var(--surface); }
.faq__q { grid-column: 1 / span 5; font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.02em; }
.faq__a { grid-column: 7 / span 6; font-size: var(--step-body); max-width: 54ch; }
@media (max-width: 860px) {
  .faq__head { display: flex; flex-direction: column; justify-content: flex-end; min-height: 30svh; padding-top: 24px; }
  .faq__title { padding-bottom: 24px; order: 2; align-self: flex-start; }
  .faq__photo { margin: 0; order: 1; }
  .faq__img { min-height: 0; aspect-ratio: 16 / 9; }
  .faq__band { display: block; padding: 32px 20px; }
  .faq__a { margin-top: 10px; }
}

/* ---------- Footer: invitation over a cropped name ---------- */
.colophon {
  --focus: #fff;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 100svh;
  padding: clamp(72px, 10vw, 140px) var(--m) 0;
  background: var(--black); color: #fff;
}
.colophon__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.colophon__invite { grid-column: 1 / span 7; display: grid; gap: 32px; justify-items: start; }
.colophon__title { font-size: var(--step-head); }
.colophon__links { grid-column: 10 / span 3; display: grid; gap: 28px; align-content: start; }
.colophon__list { list-style: none; display: grid; gap: 10px; }
.colophon__list a, .colophon__legal a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .colophon__list a:hover, .colophon__legal a:hover { text-decoration-color: currentColor; } }
.colophon__legal { margin-top: auto; padding-top: 72px; display: grid; gap: 12px; font-size: var(--step-small); color: var(--soft-on-dark); }
.colophon__row { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.colophon__name {
  margin: 16px 0 0;
  font-size: var(--step-display); font-weight: 800; line-height: 0.8; letter-spacing: -0.05em;
  white-space: nowrap; color: #fff;
  transform: translateY(26%);
  margin-left: -0.04em;
}
@media (max-width: 860px) {
  .colophon__top { display: block; }
  .colophon__links { margin-top: 48px; }

  .colophon__invite .button { width: 100%; }
}

/* ---------- Ads ---------- */
.ad { margin: 56px auto 0; max-width: 1200px; text-align: center; }
.ad__label { font-size: var(--step-small); color: var(--muted); margin-bottom: 8px; }
.ad__unit { min-height: 250px; display: flex; align-items: center; justify-content: center; background: var(--surface); }
.ad--band { padding: 0 var(--m) 64px; }
.ad--article { margin: 40px 0; }
.ad--inline { margin: 40px 0; }
.ad--side { margin: 32px 0 0; }
.ad--side .ad__unit { min-height: 600px; }
.ad--tool { margin: 40px auto; padding: 0 var(--m); }

/* ---------- Inner pages: the poster head ---------- */
.page-head {
  --focus: #fff;
  position: relative; overflow-x: clip;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  padding-inline: var(--m);
  background: var(--blue);
  color: #fff;
}
.page-head > .crumbs { grid-column: 1 / -1; grid-row: 1; }
.page-head__title { grid-column: 1 / span 8; grid-row: 2; align-self: center; }
.page-head__picture { grid-column: 9 / -1; grid-row: 2 / span 2; align-self: end; position: relative; z-index: 2; margin: 24px 0 -40px; rotate: 3deg; background: #fff; padding: 10px; }
.page-head__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* A long title takes less width, and the picture grows to carry the first screen. */
.page-head--long .page-head__title { grid-column: 1 / span 6; }
.page-head--long .page-head__picture { grid-column: 7 / -1; }
.page-head--long .page-head__img { aspect-ratio: 1; }
.page-head--long .page-head__band { padding-right: calc(var(--m) + 52%); }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; padding-top: 16px; font-size: var(--step-small); }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: 0.7; }
.crumbs a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; }
.crumbs a:hover { text-decoration-color: currentColor; }
.page-head__title { padding-top: clamp(40px, 8svh, 112px); padding-bottom: clamp(40px, 6svh, 80px); font-size: var(--step-display); line-height: 0.86; letter-spacing: -0.045em; }
.page-head__title--long { font-size: clamp(2rem, 1rem + 3.6vw, 4.25rem); line-height: 0.95; }
.page-head__title--xlong { font-size: clamp(1.75rem, 0.9rem + 2.6vw, 3.25rem); line-height: 0.98; }
@media (max-width: 700px) {
  .page-head__title--long { font-size: 8vw; }
  .page-head__title--xlong { font-size: 7vw; }
}
.page-head__band {
  grid-column: 1 / -1; grid-row: 3;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px 40px;
  margin-inline: calc(-1 * var(--m)); padding: 28px calc(var(--m) + 34%) 28px var(--m);
  min-height: 96px;
  background: var(--red); color: var(--ink);
}

.page-head__lead { font-size: var(--step-lead); line-height: 1.3; max-width: 46ch; font-weight: 500; }
.page-head__meta { font-size: var(--step-body); }
.page-head__meta a { text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Prose ---------- */
.page-body { padding: clamp(56px, 8vw, 112px) 0 var(--section); }
.prose { font-size: var(--step-body); line-height: 1.6; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.875rem, 1.3rem + 2.2vw, 3rem); margin-top: 2.4em; line-height: 1; }
.prose h3 { font-size: var(--step-lead); margin-top: 1.6em; line-height: 1.15; letter-spacing: -0.02em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose a.button, .prose .practice .button { color: #fff; text-decoration: none; }
.prose a:not(.button):not(.row__link) { color: var(--blue); text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.18em; }
.prose a:hover { color: var(--blue-strong); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { margin-inline: 0; padding: 28px 32px; background: var(--surface); font-size: var(--step-lead); line-height: 1.35; font-weight: 500; }
.prose blockquote p + p { margin-top: 0.6em; }
.prose img { height: auto; }
.prose figure figcaption, .wp-element-caption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step-body); }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #d6d6d6; vertical-align: top; }
.prose th { font-weight: 800; }
.prose code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.92em; background: var(--surface); padding: 0.1em 0.3em; }
.prose pre { background: var(--surface); padding: 20px; overflow: auto; }
.prose .wp-block-button__link, .practice .button { border-radius: 0; }
.practice { margin-top: 2em; }

/* ---------- Article layout ---------- */
.article { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); padding: clamp(48px, 7vw, 104px) var(--m) var(--section); }
.article__main { grid-column: 1 / span 8; max-width: 64ch; }
.article__image { margin-bottom: 40px; }
.article__image img { width: 100%; }
.article__side { grid-column: 10 / span 3; }
.article__sticky { position: sticky; top: 24px; display: grid; gap: 16px; }
.article__side-title { font-weight: 800; font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em; }
.article__tools { list-style: none; display: grid; gap: 6px; }
.article__tools a { display: block; padding: 14px 16px; background: var(--surface); text-decoration: none; font-weight: 500; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .article__tools a:hover { background: var(--ink); color: #fff; } }
.article__byline { margin-top: 40px; color: var(--muted); }
/* Tool pages: the tool runs the full width; the text under it is set as headings on the left, paragraphs on the right. */
.article--tool { display: block; }
.article--tool .article__main { max-width: none; }
.article--tool .prose { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.article--tool .prose > * { grid-column: 5 / span 7; max-width: 62ch; }
.article--tool .prose > .tool-wrap, .article--tool .prose > .ad, .article--tool .prose > .tool-list, .article--tool .prose > .word-index, .article--tool .prose > .wp-block-table { grid-column: 1 / -1; max-width: none; }
.article--tool .prose > h2 { grid-column: 1 / span 4; margin-top: 0; padding-top: 1.2em; }
.article--tool .prose > h2 + * { margin-top: 0; padding-top: 1.6em; }
.article--tool .prose > .tool-wrap { margin-bottom: clamp(24px, 4vw, 56px); }
.article--tool .article__side { margin-top: clamp(56px, 7vw, 104px); }
.article--tool .article__side-title { font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.035em; margin-bottom: 8px; }
.article--tool .article__tools { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.article--tool .article__tools a { padding: 26px 20px; font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.02em; }
@media (max-width: 860px) {
  .article--tool .prose { display: block; }
  .article--tool .prose > h2 { padding-top: 0; margin-top: 2em; }
  .article--tool .prose > h2 + * { padding-top: 0; margin-top: 0.6em; }
}
.practice-band { margin-top: 56px; padding: clamp(28px, 4vw, 48px); background: var(--blue); color: #fff; display: grid; gap: 16px; justify-items: start; --focus: #fff; }
.practice-band__title { font-size: clamp(1.875rem, 1.3rem + 2.2vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -0.035em; }
.practice-band .button { background: var(--red); color: var(--ink); }
.practice-band--side { margin-top: 0; }
@media (max-width: 960px) {
  .article { display: block; }
  .article__side { margin-top: 56px; }
  .article__tools { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .article__tools { grid-template-columns: 1fr; }
}

/* ---------- Listings ---------- */
.rows { padding: clamp(48px, 7vw, 104px) var(--m) var(--section); }
.rows__title { font-size: var(--step-head); margin-bottom: 32px; }
.rows__list { list-style: none; display: grid; gap: 6px; }
.rows__search { margin-bottom: 48px; max-width: 720px; }
.row__link {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: first baseline;
  padding: 28px 20px; background: var(--surface); text-decoration: none;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.row__title { grid-column: 1 / span 6; font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.row__text { grid-column: 7 / span 6; }
.row__meta { grid-column: 11 / span 2; text-align: right; color: var(--muted); font-size: var(--step-small); }
@media (hover: hover) and (pointer: fine) { .row__link:hover { background: var(--ink); color: #fff; } .row__link:hover .row__meta { color: var(--soft-on-dark); } }
@media (max-width: 860px) {
  .row__link { display: block; padding: 22px 18px; }
  .row__text { display: block; margin-top: 10px; }
  .row__meta { display: block; text-align: left; margin-top: 8px; }
}
.rows--related { padding-top: 0; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.nav-links .page-numbers { display: inline-flex; min-width: 48px; min-height: 48px; align-items: center; justify-content: center; padding: 0 14px; background: var(--surface); text-decoration: none; font-weight: 500; }
.nav-links .page-numbers.current { background: var(--ink); color: #fff; }
.empty { display: grid; gap: 20px; }
.empty__title { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }

/* Tool list rows */
.tool-list { list-style: none; display: grid; gap: 6px; padding: 0 !important; }
.tool-list li + li { margin-top: 0 !important; }
.tool-list a {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: first baseline;
  padding: 26px 20px; background: var(--surface); color: var(--ink) !important; text-decoration: none !important;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.tool-list__name { grid-column: 1 / span 6; font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.tool-list__text { grid-column: 7 / span 6; }
@media (hover: hover) and (pointer: fine) { .tool-list a:hover { background: var(--blue); color: #fff !important; } }
@media (max-width: 860px) { .tool-list a { display: block; } .tool-list__text { display: block; margin-top: 8px; } }

/* Search form */
.search label { display: block; font-weight: 500; margin-bottom: 8px; }
[data-ui].search__row, .search__row[data-ui] { display: flex; gap: 8px; }
[data-ui].search__row input { flex: 1; min-height: 52px; padding: 10px 14px; border: 1px solid #c4c4c4; border-radius: 4px; background: #fff; font-size: 18px; }
[data-ui].search__row .rg__btn { min-height: 52px; padding: 10px 22px; border-radius: 4px; border: 1px solid var(--blue); background: var(--blue); color: #fff; font-weight: 500; cursor: pointer; }

/* ---------- Tools (interface fragments) ---------- */
.tool { --focus: var(--blue); display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
[data-ui].tool__stage { display: grid; gap: 24px; align-content: center; min-height: 420px; padding: clamp(24px, 4vw, 56px); background: var(--surface); border-radius: 8px; }
[data-ui] .tool__out { display: flex; flex-wrap: wrap; gap: 0.1em 0.4em; font-size: clamp(3rem, 1.6rem + 6vw, 8rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; min-height: 1em; overflow-wrap: anywhere; }
[data-ui] .tool__out.is-new span { animation: rg-swap 380ms var(--ease-out) both; }
[data-ui] .tool__out.is-new span:nth-child(2) { animation-delay: 60ms; }
[data-ui] .tool__out.is-new span:nth-child(3) { animation-delay: 120ms; }
[data-ui] .tool__out.is-new span:nth-child(4) { animation-delay: 180ms; }
[data-ui] .tool__out.is-new span:nth-child(5) { animation-delay: 240ms; }
[data-ui] .tool__dots { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--muted); }
[data-ui] .tool__dots span { width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2); transition: background-color 80ms ease, transform 80ms ease; }
[data-ui] .tool__dots span.is-on { background: var(--blue); transform: scale(1.15); }
[data-ui] .tool__dots span:nth-child(4).is-on { background: var(--red); }
[data-ui] .tool__dots--big span { width: clamp(40px, 7vw, 96px); height: clamp(40px, 7vw, 96px); }
[data-ui] .tool__bpm { font-size: var(--step-display); font-weight: 800; line-height: 0.85; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
[data-ui] .tool__bpm small { font-size: var(--step-lead); letter-spacing: -0.01em; margin-left: 0.2em; }
[data-ui] .tool__bar { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; min-height: 1.5em; }
[data-ui] .tool__actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
[data-ui].tool__panel { display: grid; gap: 18px; padding: 20px; background: var(--surface); border-radius: 8px; }
[data-ui] .tool__history { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0 !important; }
[data-ui] .tool__history li + li { margin-top: 0 !important; }
[data-ui] .tool__history a { color: var(--blue); font-weight: 500; }
[data-ui] .rg__seg--plain { margin-top: 10px; }
@media (max-width: 960px) { .tool { grid-template-columns: 1fr; } [data-ui].tool__stage { min-height: 300px; } }

/* Rhyme finder and results */
.tool--finder { display: block; }
[data-ui].finder { padding: 24px; background: var(--surface); border-radius: 8px; }
[data-ui] .finder label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 8px; }
[data-ui] .finder__row { display: flex; gap: 8px; }
[data-ui] .finder__row input { flex: 1; min-height: 60px; font-size: 24px; font-weight: 500; }
[data-ui] .finder__row .rg__btn { min-height: 60px; padding: 10px 24px; }
.finder__head { margin: 32px 0 8px; }
.finder__word { font-size: var(--step-head); font-weight: 800; line-height: 0.95; letter-spacing: -0.045em; }
.finder__head p + p { margin-top: 12px; }
.finder__empty { margin-top: 24px; font-size: 20px; }
.rhymes { display: grid; gap: 40px; margin-top: 32px; }
.rhymes__title { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.1; }
.rhymes__title span { font-weight: 500; color: var(--muted); font-size: var(--step-body); margin-left: 6px; }
.rhymes__note { margin: 6px 0 14px !important; color: var(--ink); font-size: var(--step-body); }
.rhymes__list { list-style: none; columns: 4 9rem; column-gap: 24px; padding: 0 !important; }
.rhymes__list li { margin: 0 0 6px !important; break-inside: avoid; }
.rhymes__list a { color: var(--ink); font-size: var(--step-body); font-weight: 500; text-decoration: underline; text-decoration-color: #c4c4c4; text-underline-offset: 0.2em; }
.rhymes__list a:hover { color: var(--blue); text-decoration-color: currentColor; }
.rhymes__group--perfect .rhymes__list a { font-weight: 800; }

.word-index { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0 !important; }
.word-index li + li { margin-top: 0 !important; }
.word-index a { display: inline-flex; min-height: 48px; align-items: center; padding: 8px 18px; background: var(--surface); color: var(--ink) !important; font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.02em; text-decoration: none !important; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .word-index a:hover { background: var(--blue); color: #fff !important; } }

/* Rhyme pages */
.rhyme-page { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); padding: clamp(48px, 7vw, 104px) var(--m) var(--section); }
.rhyme-page__main { grid-column: 1 / span 8; }
.rhyme-page__main .rhymes { margin-top: 0; }
.rhyme-page__side { grid-column: 9 / span 4; display: grid; gap: 24px; align-content: start; }
.rhyme-page__finder [data-ui] .finder__row { flex-direction: column; }
.prose--intro { margin-bottom: 48px; max-width: 70ch; }
.prose--after { margin-top: 56px; max-width: 70ch; }
.prose .rows__list--embed { list-style: none; padding: 0; margin: 32px 0 0; }
.prose .rows__list--embed li { margin: 0; }
.prose .row__link { text-decoration: none; color: inherit; }
.prose blockquote cite { display: block; margin-top: 12px; font-size: var(--step-small); font-style: normal; font-weight: 400; color: var(--muted); line-height: 1.5; }
.rows__empty { color: var(--muted); }
@media (max-width: 960px) { .rhyme-page { display: block; } .rhyme-page__side { margin-top: 56px; } }

/* ---------- 404 ---------- */
.lost__title { padding: clamp(48px, 12svh, 160px) var(--m) clamp(48px, 8svh, 96px); background: var(--black); color: #fff; font-size: var(--step-display); line-height: 0.86; letter-spacing: -0.045em; }
.lost__band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: 32px var(--m); background: var(--red); }
.lost__line { font-size: var(--step-lead); max-width: 40ch; font-weight: 500; line-height: 1.3; }

/* ---------- Comments ---------- */
.comments { max-width: 72ch; padding: 0 var(--m) var(--section); }
.comments__title { font-size: clamp(1.875rem, 1.3rem + 2.2vw, 3rem); margin-bottom: 24px; }
.comments__list { list-style: none; display: grid; gap: 6px; margin-bottom: 40px; }
.comments__list .comment-body { padding: 20px; background: var(--surface); }
.comment-form label { display: block; font-weight: 500; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px; border: 1px solid #c4c4c4; background: #fff; } /* taste-skill-ignore: form fields */
.comment-form p + p { margin-top: 16px; }
.comment-form .rg__btn { min-height: 52px; padding: 10px 24px; background: var(--blue); color: #fff; border: 0; cursor: pointer; font-weight: 500; }

/* ---------- Block alignment helpers ---------- */
.alignleft { float: left; margin: 0.4em 1.4em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; }

/* ---------- Motion: entrances, the shutter ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter[data-reveal] img { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in { clip-path: inset(0); }
  .js .shutter[data-reveal].is-in img { transform: none; }
  .hero__title { animation: rise 900ms var(--ease-expo) both; }
  .hero__line { animation: rise 900ms var(--ease-expo) 120ms both; }
  .hero__band .button { animation: rise 900ms var(--ease-expo) 200ms both; }
  .scrap { animation: stick 1000ms var(--ease-expo) 260ms both; }
  .top__img { animation: drift 12s var(--ease-soft) infinite alternate; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes stick { from { opacity: 0; transform: rotate(14deg) translateY(40px) scale(0.94); } to { opacity: 1; transform: rotate(5deg); } }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1.06); } to { transform: translate3d(-12px, 8px, 0) scale(1.08); } }

/* ---------- Print ---------- */
@media print {
  .masthead, .colophon, .ad, .rg, .tool { display: none !important; }
  .page-head { background: none; color: #000; }
}

/* Phones: the display step grows with the width so the two-line headlines stay large. */
@media (max-width: 700px) {
  :root { --step-display: 16.5vw; }
}
@media (max-width: 700px) {
  .hero__line, .steps__text, .play__intro, .faq__a, .top__levels, .page-head__lead, .lost__line, .learn__photo figcaption { max-width: none; }
}

/* Inner page heads on small screens (after the base rules so they win). */
@media (max-width: 960px) {
  .page-head__title, .page-head--long .page-head__title { grid-column: 1 / -1; }
  .page-head__picture, .page-head--long .page-head__picture { grid-column: 5 / -1; grid-row: 3; margin: 0 0 -24px; }
  .page-head--long .page-head__img { aspect-ratio: 4 / 3; }
  .page-head__band { grid-row: 4; padding-right: var(--m); padding-top: 48px; }
}
@media (max-width: 560px) {
  .page-head__picture, .page-head--long .page-head__picture { grid-column: 3 / -1; margin-right: -8vw; }
}
