/*
 * The landing page (index.html), "Four seasons scroll". The page is the game's world: one fixed canvas behind
 * everything draws the game's own scene (home.js) and changes season as you scroll. Everything in front is the game's
 * UI vocabulary: cream signs with a terra strip, ink borders, a hard bottom shadow and two posts; tiles in cream chip;
 * phones in the cabinet brown. The pixel face is for short labels only; text is system sans. support, privacy and
 * terms keep style.css.
 *
 * Light only, on purpose: the scenes are daytime and pale, and the signs are cream in the game too.
 *
 * One deliberate step off the palette: terra #CC543C carries cream text at 3.96:1, under AA for small text, so
 * the sign strip and buttons use --terra-sign (#BF4831, 6% deeper, 4.65:1 with cream). It reads as the same red.
 */

@font-face {
  font-family: 'Press Start 2P';
  src: url(assets/fonts/PressStart2P-Regular.ttf) format('truetype');
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #2B211B;
  --ink-soft: #6B5A50;
  --cabinet: #1E1814;
  --cream: #FAF6EE;
  --chip: #EFE6D4;
  --cream2: #E9DFCB;
  --terra: #CC543C;
  --terra-sign: #BF4831;
  --terra-deep: #9B3A26;
  --gold: #E8B84A;
  --dirt: #4A382E;
  --dirt2: #5C4739;
  --sky: #DCEBD4;
  --grass: #6F9466;
  --grass-hi: #93B884;
  --shade: rgba(43, 33, 27, 0.24);

  --px: 'Press Start 2P', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* home.js sets --k (the whole-number pixel scale) and --ground (the ground strip's height) from the screen. */
  --k: 3;
  --ground: 13.4vh;
  --wrap: 1160px;
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
}

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

html {
  -webkit-text-size-adjust: 100%;
  /* Sky above, earth below: what shows past the world on an overscroll or a growing mobile viewport. */
  background: linear-gradient(var(--sky) 50%, var(--dirt) 50%) fixed;
  scroll-padding-top: 72px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  background: transparent;
}

img,
video {
  max-width: 100%;
}

a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.px {
  font-family: var(--px);
  font-weight: 400;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--cream);
  border: 3px solid var(--ink);
  padding: 10px 14px;
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

/* ---------- The world ---------- */

.world {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  z-index: -1;
  background: linear-gradient(to top, var(--dirt) calc(var(--ground) - 4 * var(--k) * 1px), var(--grass) 0, var(--grass) var(--ground), var(--sky) 0);
}

#world {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.vh-probe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100vh;
  height: 100svh;
  visibility: hidden;
  pointer-events: none;
}

/* ---------- The sign: the game's sign bar grown into a card ---------- */

.sign {
  position: relative;
  width: 100%;
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
}

/* Its two posts, as in the game. */
.sign::after {
  content: '';
  position: absolute;
  left: 9%;
  right: 9%;
  top: calc(100% + 9px);
  height: 18px;
  background:
    linear-gradient(var(--ink), var(--ink)) left top / 6px 100% no-repeat,
    linear-gradient(var(--ink), var(--ink)) right top / 6px 100% no-repeat;
}

.sign-strip {
  margin: 0;
  padding: 10px 12px 9px;
  background: var(--terra-sign);
  color: var(--cream);
  border-bottom: 3px solid var(--ink);
  text-align: center;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sign-word {
  margin: 0;
  padding: 18px 12px 16px;
  text-align: center;
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1;
  border-bottom: 2px dashed var(--shade);
}

.sign-body {
  padding: 22px 26px 26px;
}

.sign-body p {
  margin: 0;
  text-wrap: pretty;
}

.sign-body p + p {
  margin-top: 10px;
}

h1,
h2 {
  font-family: var(--sans);
  font-weight: 800;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(31px, 4vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.016em;
  margin-bottom: 10px;
}

.lead {
  font-size: clamp(16.5px, 1.25vw, 18px);
  max-width: 48ch;
}

.sign-body .lead {
  margin-bottom: 20px;
}

/* A kana or kanji in running text sits in a little game tile. */
.kana {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.2em;
  line-height: 1.35;
  text-align: center;
  font-size: 1.05em;
  font-weight: 500;
  background: var(--chip);
  border: 2px solid var(--ink);
}

.speed {
  font-size: 0.68em;
  letter-spacing: 0.02em;
  color: var(--terra-deep);
  white-space: nowrap;
}

.fine {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- Calls to action ---------- */

.cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-bottom: 14px;
}

.badge {
  display: inline-block;
  border-radius: 10px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge img {
  display: block;
  width: auto;
  height: 54px;
}

.qr {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qr img {
  display: block;
  width: 84px;
  height: 84px;
  background: #fff;
  border: 3px solid var(--ink);
}

.sign-body .qr p {
  margin: 0;
  max-width: 17ch;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-soft);
}

.qr strong {
  display: block;
  color: var(--ink);
}

.cta-note {
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 54ch;
}

/* The QR code is for a desktop visitor with a phone in their pocket. */
@media (hover: none), (pointer: coarse), (max-width: 899px) {
  .qr {
    display: none;
  }
}

/* ---------- The phones ---------- */

.phone {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.phone-screen {
  position: relative;
  width: var(--pw, 272px);
  aspect-ratio: 9 / 16;
  border: 10px solid var(--ink);
  border-radius: 30px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 8px 8px 0 var(--shade);
}

.phone-screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clip-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 2px solid var(--cream);
  background: rgba(43, 33, 27, 0.8);
  cursor: pointer;
}

.clip-toggle[hidden] {
  display: none;
}

.clip-toggle::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 14px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(var(--cream), var(--cream)) left / 4px 100% no-repeat,
    linear-gradient(var(--cream), var(--cream)) right / 4px 100% no-repeat;
}

.clip-toggle[data-paused='true']::before {
  width: 0;
  height: 0;
  margin-left: 2px;
  background: none;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--cream);
}

.clip-toggle:focus-visible {
  outline-color: var(--cream);
  outline-offset: -6px;
}

/* The caption chip under a phone names the season and the world in the clip. */
.cap {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px 6px;
  background: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  font-size: 14.5px;
  line-height: 1.2;
}

.cap .px {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--terra-deep);
}

.ico {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
  shape-rendering: crispEdges;
}

/* ---------- Top bar ---------- */

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--shade);
  transform: translateY(calc(-100% - 10px));
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0s linear 0.28s;
}

.bar.on {
  transform: none;
  visibility: visible;
  transition: transform 0.28s ease, visibility 0s;
}

.bar-in {
  max-width: var(--wrap);
  height: 58px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 14px;
}

.bar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
}

.bar-brand img {
  display: block;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.bar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bar-nav a {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border: 2px solid transparent;
  text-decoration: none;
}

.bar-nav a:hover {
  border-color: var(--shade);
}

.bar-nav a[aria-current] {
  background: var(--chip);
  border-color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}

.bar-try {
  padding: 0 12px;
  font-weight: 700;
  font-size: 15px;
}

.bar-get {
  padding: 11px 14px 10px;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  background: var(--terra-sign);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}

.bar-get:hover {
  background: var(--terra-deep);
}

/* ---------- Hero: world 1, the mountain ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter) var(--ground);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-top: 18px;
}

.brand img {
  display: block;
  border: 2px solid var(--ink);
  border-radius: 10px;
}

.brand p {
  margin: 0;
  line-height: 1.25;
}

.brand b {
  display: block;
  font-size: 16px;
}

.brand span {
  font-size: 14px;
  color: var(--ink-soft);
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 590px) auto;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-top: clamp(18px, 4.5vh, 52px);
}

.hero-sign {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sign--hero::after {
  display: none;
}

/* The hero sign says one thing and offers two buttons: no lead, no fine print. */
.sign--hero h1 {
  margin-bottom: 20px;
}

.sign--hero .cta {
  margin-bottom: 0;
}

.new {
  display: inline-block;
  margin-right: 4px;
  padding: 4px 6px 3px;
  font-size: 10px;
  color: var(--ink);
  background: var(--gold);
  border: 2px solid var(--ink);
  vertical-align: 1px;
}

/* The hero's sign is planted: its posts run down to the ground, and Tan stands between them. */
.posts--hero {
  position: relative;
  flex: 1 0 auto;
  min-height: 150px;
  max-height: 300px;
  margin: 9px 9% calc(var(--k) * -3px);
  background:
    linear-gradient(var(--ink), var(--ink)) left top / 6px 100% no-repeat,
    linear-gradient(var(--ink), var(--ink)) right top / 6px 100% no-repeat;
}

.tan--wave {
  position: absolute;
  left: 50%;
  bottom: calc(var(--k) * 1px);
  width: 200px;
  height: auto;
  margin-left: -100px;
}

.phone--hero {
  align-self: end;
  margin-bottom: clamp(24px, 6vh, 64px);
}

.phone--hero .phone-screen {
  width: auto;
  height: min(600px, calc(100svh - var(--ground) - 190px));
  min-height: 360px;
  aspect-ratio: 480 / 1040;
  border-radius: 34px;
}

/* On the earth strip, under everything. */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: calc((var(--ground) - 4 * var(--k) * 1px) / 2);
  transform: translate(-50%, 50%);
  padding: 9px 12px 8px;
  color: var(--cream);
  background: var(--dirt);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.scroll-cue:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.scroll-cue:focus-visible {
  outline-color: var(--cream);
}

/* ---------- Season chapters ---------- */

.chapter {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 104px var(--gutter) calc(var(--ground) + 64px);
}

.chapter-grid {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 480px) auto;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}

.chapter--flip .chapter-grid {
  grid-template-columns: auto minmax(0, 480px);
}

.chapter--flip .sign {
  order: 2;
}

/* The results card's mix-up, as the game draws it. */
.mix {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px dashed var(--shade);
}

.mix-pair {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mix-label {
  font-size: 14px;
  color: var(--ink-soft);
}

.tile {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 25px;
  line-height: 1;
  background: var(--chip);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}

.tile--wrong {
  color: var(--terra-deep);
}

/* ---------- Finale: back on the mountain, play it here ---------- */

.finale {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 104px var(--gutter) calc(var(--ground) + 40px);
}

.td-host {
  width: 100%;
}

.finale-grid {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 500px) auto;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}

.pick {
  margin-top: 20px !important;
  font: 400 10px/1.2 var(--px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--terra-deep);
}

.tracks {
  list-style: none;
  margin: 12px 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.track {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 14px 6px 12px;
  font: 700 15px/1.2 var(--sans);
  color: var(--ink);
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 0 5px 0 var(--ink);
  cursor: pointer;
}

.track:hover {
  background: #fff;
}

.track:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--ink);
}

.track .tile {
  width: 50px;
  height: 50px;
  font-size: 28px;
  font-weight: 500;
  box-shadow: none;
}

.track-seasons {
  display: flex;
  gap: 5px;
}

.track-seasons .ico {
  width: 16px;
  height: 16px;
}

.stage-wrap {
  border: 10px solid var(--ink);
  border-radius: 32px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 8px 8px 0 var(--shade);
}

.td-stage {
  height: min(640px, calc(100svh - 170px));
  min-height: 460px;
  aspect-ratio: 9 / 17;
  background: var(--sky);
}

.poster {
  position: absolute;
  inset: 0;
}

.td-host[data-state] .poster {
  display: none;
}

.poster-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.poster-sign {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 22%;
  display: flex;
  flex-direction: column;
  text-align: center;
  background: var(--cream);
  border: 3px solid var(--ink);
}

.poster-sign::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  top: calc(100% + 3px);
  height: 10px;
  background:
    linear-gradient(var(--ink), var(--ink)) left top / 5px 100% no-repeat,
    linear-gradient(var(--ink), var(--ink)) right top / 5px 100% no-repeat;
}

.poster-sign span:first-child {
  padding: 7px 6px 6px;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--terra-sign);
  border-bottom: 3px solid var(--ink);
}

.poster-sign span:last-child {
  padding: 12px 6px 11px;
  font-size: 14px;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  padding: 17px 24px 15px;
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cream);
  background: var(--terra-sign);
  border: 3px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  cursor: pointer;
}

.poster-play:hover {
  background: var(--terra-deep);
}

.poster-play:active {
  transform: translate(-50%, calc(-50% + 3px));
  box-shadow: 0 3px 0 var(--ink);
}

.poster-tan {
  position: absolute;
  right: 5%;
  bottom: calc(12.5% - 2px);
  width: 40%;
  height: auto;
}

/* After the first run, the Continue? sign takes the track sign's place (home.js). */
.finale-signs {
  width: 100%;
}

.td-host.has-continue .sign--play,
.sign--cont[hidden] {
  display: none;
}

.sign--cont h2:focus {
  outline: none;
}

.sign--cont .cta {
  margin: 18px 0 12px;
}

.again {
  margin-top: 16px;
  padding: 11px 16px 10px;
  font: 700 15px/1.2 var(--sans);
  color: var(--ink);
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
}

.again:hover {
  background: #fff;
}

.again:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--ink);
}

/* ---------- Closing: Tan jumps above the ground ---------- */

.closing {
  padding: 96px var(--gutter) 0;
}

.closing-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 540px);
  justify-content: center;
  align-items: end;
  gap: 36px;
}

.tan--cheer {
  display: block;
  width: 220px;
  height: auto;
  margin-bottom: 44px;
}

.sign--go {
  margin-bottom: 66px;
}

/* These posts run into the ground (the footer). */
.sign--go::after {
  height: 66px;
}

.sign--go .cta {
  margin: 18px 0 0;
}

/* ---------- Footer: the ground ---------- */

.foot {
  position: relative;
  padding: calc(var(--k) * 4px + 34px) var(--gutter) max(40px, env(safe-area-inset-bottom));
  color: var(--cream);
  background-color: var(--dirt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='24' shape-rendering='crispEdges'%3E%3Cg fill='%235C4739'%3E%3Crect x='2' y='5' width='3' height='1'/%3E%3Crect x='25' y='12' width='3' height='1'/%3E%3Crect x='13' y='18' width='2' height='1'/%3E%3Crect x='36' y='3' width='2' height='1'/%3E%3Crect x='40' y='20' width='3' height='1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: calc(46px * var(--k)) calc(24px * var(--k));
  background-position: 0 calc(var(--k) * 6px);
  box-shadow: inset 0 calc(var(--k) * 1px) 0 var(--grass-hi), inset 0 calc(var(--k) * 4px) 0 var(--grass);
}

.foot-in {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  gap: 10px;
  font-size: 15px;
}

.foot p {
  margin: 0;
}

.foot a {
  color: var(--cream);
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.foot :focus-visible {
  outline-color: var(--cream);
}

.foot .copy {
  color: #DCCFBD;
  font-size: 14px;
}

/* ---------- Narrower screens: stack ---------- */

@media (max-width: 899px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 22px;
  }

  .phone--hero {
    display: none;
  }

  .sign-body {
    padding: 20px 20px 22px;
  }

  .sign-word {
    padding: 15px 12px 13px;
  }

  .posts--hero {
    min-height: 128px;
  }

  .tan--wave {
    width: 140px;
    margin-left: -70px;
  }

  .chapter,
  .finale {
    padding-top: 88px;
  }

  .chapter-grid,
  .chapter--flip .chapter-grid,
  .finale-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 52px;
    max-width: 540px;
  }

  .chapter--flip .sign {
    order: 0;
  }

  .phone-screen {
    --pw: min(250px, 66vw);
  }

  .td-stage {
    height: auto;
    min-height: 0;
    width: min(300px, 78vw);
  }

  .closing-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 8px;
    max-width: 540px;
  }

  .tan--cheer {
    width: 150px;
    margin: 0;
  }
}

@media (max-width: 520px) {
  .bar-try {
    display: none !important;
  }

  /* Both store badges on one line at 375 px (Apple and Google ask for at least 40 px). */
  .badge img {
    height: 44px;
  }

  .bar-in {
    gap: 8px;
  }

  .sign-strip {
    font-size: 11px;
  }

  .new {
    margin-right: 0;
    font-size: 9px;
  }

  .tracks {
    gap: 8px;
  }

  .track {
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  .bar-brand span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bar,
  .bar.on {
    transition: none;
  }
}

/* The hero's second call to action: the demo further down, for a visitor who wants to play before installing.
   Phones hide the bar's "Try it", so this is their way to it. */
.hero-play {
  display: inline-block;
  margin-top: 18px;
  padding: 11px 16px 10px;
  font: 700 15px/1.2 var(--sans);
  color: var(--ink);
  text-decoration: none;
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}

.hero-play:hover {
  background: #fff;
}

.hero-play:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--ink);
}

.sign--hero .lead {
  margin: -8px 0 20px;
}

/* ---------- Good to know: a question sign between the demo and the closing ---------- */

.faq {
  padding: 96px var(--gutter) 24px;
}

.sign--faq {
  max-width: 680px;
  margin: 0 auto;
}

.sign--faq::after {
  display: none;
}

.sign--faq h2 {
  margin-bottom: 8px;
}

.sign--faq details {
  border-top: 2px dashed var(--shade);
}

.sign--faq summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}

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

.sign--faq summary::after {
  content: '+';
  font-family: var(--px);
  font-size: 13px;
  line-height: 1.6;
  color: var(--terra-deep);
}

.sign--faq details[open] summary::after {
  content: '\2212';
}

.sign--faq details p {
  padding: 0 0 16px;
  max-width: 58ch;
}
