/* Family song: the landing page, the questionnaire, the theme, the lyrics and the finished
   record. Phones first; one breakpoint at 768px. */

/* The header takes the colour of whatever is under it. */
body[data-screen="home"] .ft-header,
body:not([data-screen]) .ft-header {
  background: var(--sun);
}
body[data-screen="home"],
body:not([data-screen]) {
  background: var(--sun);
}
body[data-screen="theme"],
body[data-screen="press"],
body[data-screen="record"] {
  background: var(--teal-deep);
  color: var(--on-dark);
}
body[data-screen="theme"] .ft-nav a:hover,
body[data-screen="press"] .ft-nav a:hover,
body[data-screen="record"] .ft-nav a:hover {
  background: rgba(251, 243, 228, 0.12);
}

#landing {
  background: var(--paper);
}

/* ---------- Hero ---------- */

.hero {
  background: var(--sun);
  padding: 1.25rem var(--gutter) 0;
  overflow: hidden;
}

.hero__inner {
  max-width: 76rem;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

.hero__title {
  font-size: clamp(3.1rem, 13.2vw, 8.25rem);
  margin-bottom: 1.25rem;
}

.hero__line {
  display: block;
}

.hero__lede {
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__fine {
  margin-top: 1rem;
  font-weight: 800;
}

.hero__yours {
  margin-top: 0.5rem;
}

.hero__stage {
  position: relative;
  padding-bottom: 2.5rem;
}

.hero__album {
  width: min(66vw, 21rem);
  margin-left: 0;
}

.hero__player {
  margin-top: 1.5rem;
  max-width: 30rem;
}

.hero .player__line--now {
  font-size: clamp(1.5rem, 6vw, 2.25rem);
  min-height: 2.4em;
}

.hero .player__line--near {
  display: none;
}

.hero .player__play {
  background: var(--teal);
  color: var(--on-dark);
}

.hero .player__seek {
  --track: rgba(18, 59, 56, 0.22);
  --fill: var(--teal);
}

@media (min-width: 768px) {
  .hero {
    padding-top: 2.5rem;
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 3rem;
  }
  /* Two lines, each about six ems wide: sized to the column so neither wraps. */
  .hero__title {
    font-size: clamp(3rem, 7.2vw, 6.5rem);
  }
  .hero__line {
    white-space: nowrap;
  }
  .hero__stage {
    padding-bottom: 4rem;
  }
  .hero__album {
    width: min(30vw, 26rem);
  }
}

/* ---------- How it goes: a track list ---------- */

.how {
  background: var(--teal-deep);
  padding: clamp(3.5rem, 10vw, 7rem) var(--gutter);
}

.how__inner {
  max-width: 62rem;
  margin: 0 auto;
}

.how__title {
  font-size: clamp(2.2rem, 7vw, 4.25rem);
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  color: var(--sun);
}

.track {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  gap: 0.25rem 1rem;
  align-items: baseline;
  padding: 1.4rem 0;
  border-top: 2px dashed rgba(251, 243, 228, 0.22);
}

.track:last-child {
  border-bottom: 2px dashed rgba(251, 243, 228, 0.22);
}

.track__no,
.track__time {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--sun);
}

.track__time {
  white-space: nowrap;
}

.track__name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.6rem, 5.4vw, 2.6rem);
  line-height: 1.05;
  margin-bottom: 0.4rem;
}

.track__body p {
  color: var(--on-dark-muted);
  max-width: 34rem;
}

/* ---------- What you say is what gets sung ---------- */

.proof {
  padding: clamp(3.5rem, 10vw, 7rem) var(--gutter);
}

.proof__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.proof__title {
  font-size: clamp(2.2rem, 7vw, 4.25rem);
  max-width: 14em;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.proof__pair {
  display: grid;
  gap: 2.5rem;
}

.said {
  background: var(--card);
  border-radius: 6px 22px 22px 6px;
  border-left: 10px solid var(--coral);
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: 0 16px 30px -22px rgba(18, 59, 56, 0.55);
  transform: rotate(-1.2deg);
  max-width: 30rem;
}

.said__who,
.sung__who {
  font-weight: 900;
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.said blockquote {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 700;
}

.sung__lines {
  font-size: clamp(1.9rem, 6.6vw, 3.6rem);
  line-height: 1.06;
}

.sung__lines span {
  display: block;
}

.sung__hook {
  color: var(--coral);
}

@media (min-width: 768px) {
  .proof__pair {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 4rem;
  }
}

/* ---------- The shelf of example covers ---------- */

.shelf {
  background: var(--teal-deep);
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

.shelf__head {
  padding: 0 var(--gutter);
  max-width: 76rem;
  margin: 0 auto clamp(1.75rem, 5vw, 3rem);
}

.shelf__title {
  font-size: clamp(2.2rem, 7vw, 4.25rem);
  margin-bottom: 1rem;
}

.shelf__head .lede {
  color: var(--on-dark-muted);
}

.shelf__rail {
  display: flex;
  gap: clamp(1.25rem, 4vw, 3rem);
  padding: 1.5rem var(--gutter) 2.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.shelf__rail::-webkit-scrollbar {
  display: none;
}

.shelf__item {
  flex: none;
  width: min(62vw, 19rem);
  scroll-snap-align: center;
}

.shelf__item:nth-child(odd) {
  transform: rotate(-2deg);
}

.shelf__item:nth-child(even) {
  transform: rotate(1.5deg) translateY(0.75rem);
}

.shelf__yours {
  flex: none;
  width: min(62vw, 19rem);
  aspect-ratio: 1;
  scroll-snap-align: center;
  border: 3px dashed rgba(251, 243, 228, 0.45);
  border-radius: 12px;
  display: grid;
  place-content: center;
  gap: 1rem;
  text-align: center;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--on-dark);
}

.shelf__yours span {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.9rem;
  line-height: 1.05;
}

.shelf__yours b {
  font-weight: 900;
  color: var(--sun);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

@media (min-width: 768px) {
  .shelf--pinned .shelf__rail {
    overflow: visible;
    width: max-content;
    scroll-snap-type: none;
  }
  .shelf__item,
  .shelf__yours {
    width: 21rem;
  }
}

/* ---------- Fair questions ---------- */

.asks {
  padding: clamp(3.5rem, 10vw, 7rem) var(--gutter);
}

.asks__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.asks__title {
  font-size: clamp(2.2rem, 7vw, 4.25rem);
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.asks__list {
  margin: 0;
  display: grid;
  gap: 2rem;
}

.asks__list dt {
  font-weight: 1000;
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.asks__list dd {
  margin: 0;
  color: var(--muted);
  max-width: 30rem;
}

@media (min-width: 768px) {
  .asks__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
  }
}

/* ---------- Closing ---------- */

.closing {
  background: var(--sun);
  padding: clamp(4rem, 12vw, 8rem) var(--gutter);
  text-align: center;
}

.closing__inner {
  max-width: 52rem;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 2rem;
}

.closing__title {
  font-size: clamp(2.6rem, 9vw, 5.5rem);
}

/* ---------- Form pieces ---------- */

.field {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.85rem 1rem;
  border: 2px solid rgba(18, 59, 56, 0.28);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.field::placeholder {
  color: #8a8f88;
  font-weight: 600;
}

.field:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(248, 195, 49, 0.55);
}

.field--dark {
  background: rgba(251, 243, 228, 0.1);
  border-color: rgba(251, 243, 228, 0.4);
  color: var(--on-dark);
}

.field--dark::placeholder {
  color: rgba(251, 243, 228, 0.55);
}

.field--dark:focus {
  border-color: var(--sun);
  box-shadow: 0 0 0 4px rgba(248, 195, 49, 0.3);
}

.labelled {
  display: grid;
  gap: 0.5rem;
}

.labelled__text {
  font-weight: 900;
}

.field-error {
  color: #a8321f;
  font-weight: 800;
}

.field-error:empty {
  display: none;
}

.on-dark .field-error {
  color: #ffb4a6;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--paper-deep);
  font-weight: 800;
  font-size: 0.9688rem;
  line-height: 1.3;
  text-align: left;
  transition:
    background-color 0.2s,
    transform 0.2s var(--ease-spring);
}

.chip:active {
  transform: scale(0.97);
}

.chip--pick[aria-checked="true"] {
  background: var(--teal);
  color: var(--on-dark);
}

.chip--dark {
  background: rgba(251, 243, 228, 0.12);
  color: var(--on-dark);
}

.chip--dark[aria-checked="true"] {
  background: var(--sun);
  color: var(--ink);
}

.check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-weight: 700;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.1rem 0 0;
  accent-color: var(--sun);
}

/* ---------- The questionnaire ---------- */

#flow {
  min-height: 70vh;
}

.quiz {
  background: var(--paper);
  padding: 0.5rem var(--gutter) 2rem;
}

.quiz__inner {
  max-width: 44rem;
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
}

/* Back and the pace on one line, the seven screens under them; one line on wide screens. */
.quiz__top {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem 1rem;
}

.quiz__steps {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  justify-items: center;
}

.dots {
  display: flex;
  justify-content: center;
}

.dots button {
  display: grid;
  place-content: center;
  width: 2.1rem;
  height: 2.5rem;
}

.dots i {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 2px solid rgba(18, 59, 56, 0.3);
  transition:
    background-color 0.3s,
    border-color 0.3s,
    transform 0.3s var(--ease-spring);
}

/* Small records: played, playing, still in the sleeve. */
.dots .is-done i {
  background: radial-gradient(circle, var(--coral) 0 28%, var(--vinyl) 30%);
  border-color: var(--vinyl);
}

.dots .is-now i {
  border-color: var(--coral);
  background: radial-gradient(circle, var(--coral) 0 28%, transparent 30%);
  transform: scale(1.25);
}

.quiz__where {
  font-size: 0.8125rem;
  font-weight: 800;
  text-align: center;
}

.toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--paper-deep);
}

.toggle button {
  min-height: 2.5rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.toggle button[aria-pressed="true"] {
  background: var(--card);
  box-shadow: 0 2px 0 rgba(12, 58, 55, 0.15);
}

@media (min-width: 768px) {
  .quiz__top {
    grid-template-columns: 1fr auto 1fr;
  }
  .quiz__steps {
    grid-column: 2;
    grid-row: 1;
  }
  .quiz__top > .text-button {
    justify-self: start;
  }
  .quiz__top > .toggle {
    justify-self: end;
  }
}

.quiz__head {
  display: grid;
  gap: 0.75rem;
}

.quiz__kick {
  font-weight: 800;
}

.quiz__title {
  font-size: clamp(2.1rem, 8vw, 3.4rem);
  outline: none;
  overflow-wrap: anywhere;
}

.quiz__sub {
  font-size: 1.5rem;
  line-height: 1.1;
}

/* A question and the box under it. */
.ask {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}

.ask__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.6rem;
  font-weight: 900;
  font-size: 1.125rem;
  line-height: 1.3;
}

.ask--small .ask__label {
  font-size: 0.9375rem;
}

.ask--more .ask__label {
  color: var(--teal);
}

.field--area {
  display: block;
  min-height: 7.25rem;
  resize: vertical;
  border-radius: 18px;
  line-height: 1.6;
}

.field--mini {
  min-height: 2.75rem;
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  font-size: 1rem;
}

.tag {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--card);
  font-size: 0.75rem;
  font-weight: 900;
}

.ask__label .tag {
  background: var(--paper-deep);
}

/* Things to think about: they look like chips and do nothing. */
.ideas {
  display: grid;
  gap: 0.5rem;
}

.chip--idea {
  min-height: 2.25rem;
  padding: 0.3rem 0.8rem;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 700;
  font-size: 0.875rem;
}

.chip--pick[aria-pressed="true"] {
  background: var(--teal);
  color: var(--on-dark);
}

.card {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.9rem;
  border-radius: 20px;
  background: var(--paper-deep);
}

.card .chip:not([aria-checked="true"]):not([aria-pressed="true"]) {
  background: var(--card);
}

.people,
.phrases,
.folds {
  display: grid;
  gap: 0.75rem;
}

.phrases > .btn {
  justify-self: start;
}

.person {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.person__fields {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}

.person__fields > .field--mini[inputmode] {
  max-width: 11rem;
}

.person__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}

.person__count {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.875rem;
}

.person__count .field {
  width: 4.5rem;
  text-align: center;
}

.person__age {
  justify-self: start;
}

.person__remove {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--muted);
}

.person__remove:hover {
  background: rgba(18, 59, 56, 0.08);
}

.people__add {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

/* The family read back, with the tick that says nobody is missing. */
.readback-slot:empty {
  display: none;
}

.readback {
  display: grid;
  gap: 0.4rem;
  padding: 1.25rem 1.35rem;
  border-radius: 20px;
  background: var(--teal-deep);
  color: var(--on-dark);
}

.readback__title {
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--sun);
  margin-bottom: 0.35rem;
}

.readback__tick {
  align-items: center;
  margin-top: 0.75rem;
  font-weight: 900;
}

/* A card that opens: one per person, one for the pets, one per bonus question. */
.fold {
  border-radius: 20px;
  background: var(--paper-deep);
}

.fold summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.6rem 1rem;
  font-weight: 900;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.fold summary::-webkit-details-marker {
  display: none;
}

.fold summary::after {
  content: "+";
  flex: none;
  margin-left: auto;
  font-size: 1.4rem;
  line-height: 1;
}

.fold[open] summary::after {
  content: "−";
}

.fold__name {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* How much has been said about someone: fuller cards make fuller verses. */
.fold__bar {
  flex: 1 1 3rem;
  max-width: 10rem;
  height: 0.5rem;
  margin-left: auto;
  border-radius: 999px;
  background: rgba(18, 59, 56, 0.12);
  overflow: hidden;
}

.fold summary:has(.fold__bar)::after {
  margin-left: 0;
}

.fold__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--teal);
  transition: width 0.3s;
}

.fold__body {
  display: grid;
  gap: 1.25rem;
  padding: 0.25rem 1rem 1.1rem;
}

.nudge {
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  background: var(--sun-soft);
  font-weight: 800;
}

.coming {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: var(--mint);
  font-size: 0.9375rem;
}

/* The open box at the foot of a screen, and "tell me more". */
.deeper {
  display: grid;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px dashed var(--line);
}

.followups {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.followups:empty {
  display: none;
}

.followups .ask {
  justify-self: stretch;
}

.phrase__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
}

.phrase__two {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .phrase__two {
    grid-template-columns: 1fr 1fr;
  }
}

/* Skip and Next stay in reach while the screen scrolls. */
.quiz__bar {
  position: sticky;
  bottom: var(--keyboard, 0px);
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.9rem 0 calc(0.9rem + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(251, 243, 228, 0), var(--paper) 32%);
}

.quiz__bar .field-error {
  flex: 1 1 100%;
  order: -1;
}

.quiz__bar-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 1rem;
  margin-left: auto;
}

.retry {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: var(--blush);
  font-weight: 700;
}

.on-dark .retry {
  background: rgba(251, 243, 228, 0.1);
}

.retry__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

/* ---------- The theme ---------- */

.theme {
  background: var(--teal-deep);
  padding: 1rem var(--gutter) 4rem;
}

.theme__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

.theme__words {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  min-width: 0;
}

.theme__title {
  font-size: clamp(2.5rem, 9.5vw, 4.75rem);
  color: var(--sun);
  outline: none;
}

.theme__lede {
  color: var(--on-dark-muted);
  max-width: 34rem;
}

.theme__note {
  font-weight: 800;
}

.theme__note:empty {
  display: none;
}

.theme__waiting {
  font-weight: 800;
  color: var(--sun);
}

.theme__empty {
  max-width: 36rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(251, 243, 228, 0.1);
  font-weight: 700;
}

.themes {
  display: grid;
  gap: 0.9rem;
}

.themes:empty {
  display: none;
}

/* One theme: its name, where it comes from, what the song does with it. */
.theme-card {
  display: grid;
  gap: 0.8rem;
  padding: 1.25rem 1.3rem 1.3rem;
  border-radius: 10px 22px 22px 10px;
  border-left: 10px solid var(--coral);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  transition:
    background-color 0.2s,
    transform 0.25s var(--ease-spring);
}

.theme-card[aria-checked="true"] {
  background: var(--sun);
  transform: translateX(0.4rem) rotate(-0.6deg);
}

.theme-card__name {
  display: block;
  font-size: clamp(1.6rem, 6.2vw, 2.4rem);
  line-height: 1.02;
}

.theme-card__row {
  display: grid;
  gap: 0.1rem;
  font-weight: 700;
  line-height: 1.45;
}

.theme-card__row strong {
  font-size: 0.8125rem;
  font-weight: 1000;
  color: var(--teal);
}

.theme__own .labelled__text {
  color: var(--on-dark);
}

.theme__side {
  display: grid;
  gap: 1.75rem;
  align-content: start;
  justify-items: start;
}

.theme__preview {
  width: min(58vw, 17rem);
  padding-right: 4%;
}

.theme__actions {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}

.theme__actions .text-button {
  color: var(--on-dark-muted);
}

@media (min-width: 768px) {
  .theme__inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 4rem;
  }
  .theme__side {
    position: sticky;
    top: 2rem;
  }
  .theme__preview {
    width: min(26vw, 21rem);
  }
}

/* ---------- The lyrics: behind an address, then read and fixed ---------- */

.lyric {
  display: grid;
  gap: 1.1rem;
  padding: 1.4rem 1.4rem 1.5rem;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 16px 30px -22px rgba(18, 59, 56, 0.55);
}

.lyric__section,
.lyric__blur {
  display: grid;
  gap: 0.1rem;
}

.lyric p {
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.lyric .lyric__tag {
  font-size: 0.8125rem;
  font-weight: 1000;
  color: var(--coral);
}

.lyric .lyric__wait {
  color: var(--muted);
}

.lyric__blur {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

.gate {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}

.gate .btn {
  justify-self: start;
}

.gate .check input {
  accent-color: var(--teal);
}

/* A line the songwriter made up: keep it or cut it. */
.choice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.choice p {
  flex: 1 1 14rem;
  font-weight: 800;
}

.choice p span {
  display: block;
  font-weight: 600;
}

/* ---------- Pressing, and one question while it does ---------- */

.press {
  background: var(--teal-deep);
  padding: 1.5rem var(--gutter) 4rem;
}

.press__inner {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.press__machine {
  display: grid;
  justify-items: center;
}

.press__disc {
  width: min(52vw, 15rem);
}

.press__words {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.press__title {
  font-size: clamp(2.4rem, 9vw, 4.25rem);
  color: var(--sun);
  outline: none;
}

.press__status {
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.press__bar {
  display: block;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(251, 243, 228, 0.16);
  overflow: hidden;
  max-width: 24rem;
}

.press__bar i {
  display: block;
  height: 100%;
  width: 4%;
  border-radius: 999px;
  background: var(--sun);
  transition: width 2.5s linear;
}

.send {
  display: grid;
  gap: 1.1rem;
  background: rgba(251, 243, 228, 0.07);
  border-radius: 24px;
  padding: 1.5rem 1.25rem;
}

.send__title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.75rem, 6.4vw, 2.5rem);
  line-height: 1.04;
}

.send p {
  color: var(--on-dark-muted);
}

.send__own {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
}

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

.send .btn {
  justify-self: start;
}

.send__fine {
  font-size: 0.8125rem;
}

@media (min-width: 768px) {
  .press__inner {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 4rem;
    align-items: start;
  }
  .press__machine {
    position: sticky;
    top: 3rem;
  }
  .press__disc {
    width: min(26vw, 20rem);
  }
  .send {
    padding: 2rem;
  }
}

/* ---------- The finished record ---------- */

.reveal {
  background: var(--teal-deep);
  padding: 1.5rem var(--gutter) 0;
}

.reveal__loading {
  padding: 6rem 0;
  text-align: center;
  font-weight: 800;
}

.reveal__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 2.25rem;
}

.reveal__album {
  width: min(64vw, 20rem);
}

.reveal__words {
  display: grid;
  gap: 1.1rem;
  align-content: start;
  min-width: 0;
}

.reveal__family {
  font-weight: 1000;
  color: var(--sun);
}

.reveal__title {
  font-size: clamp(2.5rem, 10vw, 5rem);
  outline: none;
  overflow-wrap: anywhere;
}

.reveal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.reveal__fine {
  color: var(--on-dark-muted);
  max-width: 32rem;
}

.credits {
  margin: 0;
  display: grid;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 2px dashed rgba(251, 243, 228, 0.22);
}

.credits div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
}

.credits dt {
  color: var(--on-dark-muted);
  font-weight: 700;
}

.credits dd {
  margin: 0;
  font-weight: 900;
}

.liner summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 2px;
  cursor: pointer;
  list-style: none;
}

.liner summary::-webkit-details-marker {
  display: none;
}

.liner__sheet {
  display: grid;
  gap: 1.1rem;
  margin-top: 0.75rem;
  padding: 1.4rem 1.3rem;
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .reveal {
    padding-top: 3rem;
  }
  .reveal__inner {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 5rem;
    align-items: start;
  }
  .reveal__album {
    width: min(30vw, 25rem);
    position: sticky;
    top: 3rem;
  }
}

.after {
  max-width: 72rem;
  margin: clamp(3rem, 9vw, 6rem) auto 0;
  padding-bottom: 4rem;
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.after__card {
  background: var(--sun);
  color: var(--ink);
  border-radius: 28px;
  padding: clamp(1.5rem, 5vw, 3rem);
  display: grid;
  gap: 1.1rem;
  max-width: 46rem;
}

.after__title {
  font-size: clamp(1.9rem, 6.4vw, 3rem);
  line-height: 1.02;
}

.after__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.after__card .btn--sun {
  background: var(--teal);
  color: var(--on-dark);
}

.after__again {
  color: var(--on-dark);
}

/* ---------- The player ---------- */

.player {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.player__lyrics {
  display: grid;
  gap: 0.35rem;
}

.player__line {
  overflow-wrap: anywhere;
}

.player__line--near {
  font-weight: 800;
  opacity: 0.45;
  min-height: 1.55em;
}

.player__line--now {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.9rem, 7.4vw, 3.1rem);
  line-height: 1.04;
  min-height: 2.2em;
  display: block;
}

.player__line--now.is-long {
  font-size: clamp(1.5rem, 5.8vw, 2.4rem);
}

.player__line--now.is-waiting {
  opacity: 0.5;
}

.player__word {
  display: inline-block;
  animation: word-in 0.45s var(--ease-spring) backwards;
}

.player__word--wait {
  animation: none;
}

.player__word--accent {
  font-style: italic;
  color: var(--sun);
}

.hero .player__word--accent {
  color: var(--teal);
}

@keyframes word-in {
  from {
    opacity: 0;
    transform: translateY(0.4em) rotate(-4deg);
  }
}

.player__bar {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.player__play {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.28);
  transition: transform 0.25s var(--ease-spring);
}

.player__play:active {
  transform: translateY(2px);
}

.player__time {
  font-size: 0.875rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-width: 2.4rem;
}

.player__seek {
  --track: rgba(251, 243, 228, 0.25);
  --fill: var(--sun);
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2.75rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.player__seek::-webkit-slider-runnable-track {
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(to right, var(--fill) var(--played, 0%), var(--track) var(--played, 0%));
}

.player__seek::-moz-range-track {
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(to right, var(--fill) var(--played, 0%), var(--track) var(--played, 0%));
}

.player__seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: -0.375rem;
  border-radius: 50%;
  background: var(--fill);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.18);
}

.player__seek::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border: 0;
  border-radius: 50%;
  background: var(--fill);
}

/* ---------- Toast and demo ribbon ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  transform: translate(-50%, 1rem);
  /* As wide as its words, up to the screen: not half of it, which is all "left: 50%" leaves. */
  width: max-content;
  max-width: min(92vw, 30rem);
  padding: 0.85rem 1.3rem;
  border-radius: 1.75rem;
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 800;
  font-size: 0.9375rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.25s var(--ease-out);
  z-index: 20;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.demo-ribbon {
  background: var(--ink);
  color: var(--on-dark);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 800;
  padding: 0.5rem var(--gutter);
}

.demo-ribbon__fill {
  color: var(--sun);
}
