/* /music and /podcast (DESIGN.md "Show pages"): the show, then how it is made. Loaded after site.css, which owns the
   chrome (header, footer, ground, type, focus ring) and the tokens used here (--ground, --raised, --tray, --ochre,
   --paper, --stone, --body, --muted, --hair), so everything here is scoped to <main class="showcase"> and no colour
   is written as a hex. scripts/build.py publishes this file as public/showcase.<hash>.css.

   Without the script (src/showcase.js) the stepper shows its finished state: every step lit, every output shown.
   The script adds .live to the track and lights one step at a time (.past, .cur).
   Radii are DESIGN.md's: thumb (.625rem) for covers and outputs, card (1.25rem) for the panel, pill (999px). */
.showcase :is(h1, h2, p) { margin: 0; }

/* 1. The show: the title, one line, the channel, and four covers with captions. */
.show { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(2.5rem, 7vw, 6rem); }
.show h1 { margin: .5rem 0 1.125rem; color: var(--paper); font-size: clamp(3rem, 6.4vw, 5.75rem); line-height: .95; letter-spacing: -.04em; font-weight: 800; }
.show h1.long { font-size: clamp(2.75rem, 5.4vw, 5rem); }
.show .intro p { margin-bottom: 1.875rem; font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.55; color: var(--body); max-width: 30ch; }
.yt { display: inline-flex; align-items: center; gap: .75rem; min-height: 3.25rem; padding: 0 1.375rem; border-radius: 999px; background: var(--ochre); color: var(--ground); font-size: 1.125rem; font-weight: 700; transition: background-color .2s; }
.yt:hover { background: var(--ochre-hi); }
.yt svg { width: 1.375rem; height: 1.375rem; fill: currentColor; }
.covers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.125rem; }
.cv { margin: 0; min-width: 0; }
.cv img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 1; border-radius: .625rem; background: var(--tray); }
.covers.wide .cv img { aspect-ratio: 16 / 9; }
.cv figcaption { padding: .75rem 2px 0; font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.cv figcaption b { display: block; color: var(--paper); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }

/* 2. How it is made: five steps on a rail, each with what it makes. */
.made { border-top: 1px solid var(--tray); padding-block: clamp(3.5rem, 8vw, 7rem); }
.made h2 { margin-bottom: .75rem; color: var(--paper); font-size: clamp(2rem, 3.6vw, 3.25rem); letter-spacing: -.03em; line-height: 1; font-weight: 800; }
.made .lead { margin-bottom: 3rem; color: var(--body); font-size: 1.25rem; line-height: 1.55; max-width: 46ch; }
.line { background: var(--raised); border-radius: 1.25rem; padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 2.25rem; }
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 0 1rem; }
/* each step spans the track's three rows (dot, name, output), so the outputs line up and share the tallest one's height */
.st { position: relative; display: grid; grid-row: span 3; grid-template-rows: subgrid; text-align: center; }
/* the rail: each step draws the piece to the next one, behind the dots */
.st:not(:last-child)::before { content: ""; position: absolute; left: 50%; top: 27px; width: calc(100% + 1rem); height: 2px; background: var(--ochre); }
.dot { position: relative; z-index: 1; width: 56px; height: 56px; margin: 0 auto 1.125rem; border-radius: 50%; display: grid; place-items: center; background: var(--ochre); border: 2px solid var(--ochre); color: var(--ground); transform: scale(1.06); }
.dot svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.txt { display: block; }
.st b { display: block; color: var(--paper); font-size: 1.1875rem; line-height: 1.3; }
.st small { display: block; margin-top: 2px; color: var(--muted); font-size: .9375rem; line-height: 1.45; }
.out { margin: 1.375rem auto 0; width: 100%; min-height: 150px; max-width: 190px; padding: 10px; border-radius: .625rem; background: var(--tray); display: grid; place-items: center; overflow: hidden; color: var(--stone); font-size: .875rem; line-height: 1.45; }
.out img { width: 100%; height: 130px; object-fit: cover; border-radius: .25rem; }
.out .film { color: var(--paper); font-size: 1.375rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; text-align: center; }
.out .film small { display: block; margin-top: .125rem; color: var(--muted); font-size: .875rem; font-weight: 500; letter-spacing: 0; }
.out ol { margin: 0; padding-left: 1.25rem; text-align: left; }
.out .vid { position: relative; display: block; width: 100%; }
.out .vid::after { content: ""; position: absolute; left: 50%; top: 50%; border-left: 18px solid var(--paper); border-block: 11px solid transparent; transform: translate(-40%, -50%); }
.out .vid .bar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 4px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 30%, transparent); }
.out .vid .bar i { display: block; width: 38%; height: 100%; border-radius: inherit; background: var(--ochre); }
.out .sched { text-align: center; }
.out .sched b { display: block; color: var(--ochre); font-size: 1.625rem; line-height: 1.3; }
/* with the script: only the steps reached so far are lit */
.track.live .st:not(.past)::before { background: var(--hair); }
.track.live .st:not(.past, .cur) .dot { background: var(--tray); border-color: var(--hair); color: var(--muted); transform: none; }
.track.live .st:not(.past, .cur) .out { opacity: .25; transform: translateY(8px); }
.line .foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.line .foot b { color: var(--stone); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .dot { transition: background-color .4s, border-color .4s, color .4s, transform .4s; }
  .out { transition: opacity .5s, transform .5s; }
  .st::before { transition: background-color .4s; }
}

/* Phones and narrow windows: one column for the show; the rail turns vertical and only the step running shows what it makes. */
@media (max-width: 53.75rem) {
  .show { grid-template-columns: 1fr; }
  .covers { gap: .625rem; }
  .cv figcaption { font-size: .875rem; }
  .cv figcaption b { font-size: .9375rem; }
}
@media (max-width: 60rem) {
  .track { grid-template-columns: 1fr; grid-template-rows: none; gap: 0; }
  .st { grid-row: auto; grid-template-rows: none; grid-template-columns: 56px minmax(0, 1fr); column-gap: 1.125rem; padding-bottom: 1.375rem; text-align: left; }
  .st:not(:last-child)::before { left: 27px; top: 28px; bottom: -28px; width: 2px; height: auto; }
  .dot { margin: 0; }
  .txt { align-self: center; }
  .out { grid-column: 2; margin: .75rem 0 0; max-width: none; min-height: 0; }
  .out img { height: 160px; }
  .track.live .st:not(.cur) .out { display: none; }
  .track.live .st.past:not(.cur) .dot { background: var(--tray); border-color: var(--hair); color: var(--muted); transform: none; }
}
