/* ---- Rack: the FX Suite Rack page (#sinew/rack, page-rack.js) and its links from the Suite
   band and the Suite page. Built on styles.css: the Suite page's head, the section grid, the
   eyebrow and the preview note; only what the Rack adds is here. */

/* The link to the page: the hero cue, set under the Suite page's title and the band's grid. */
.rack-link { margin: 0; }
.suite-page__head .rack-link .rack-cue { margin-top: 32px; }
.suite-section .rack-link .rack-cue { margin-top: 0; }
.rack-cue:hover span { transform: translateX(3px); }

/* The head: the Suite page's, with a lead line and the provenance note under the title. */
.rack-page .suite-page__head h1 { text-wrap: balance; }
.rack-lead { max-width: 620px; margin-top: 30px; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; font-weight: 300; color: var(--ink); text-wrap: pretty; }
.rack-note { max-width: 520px; }

/* Each section: the site's heading column, the render in the wide column. */
.rack-section h2 { text-wrap: balance; }
.rack-figure { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.rack-figure img { width: 100%; border-radius: 4px; border: 1px solid var(--line); }
.rack-figure figcaption { font: 12px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rack-frame, .rack-strip { min-width: 0; }
/* An inspector strip is the rack's control row at its own aspect (about 6:1). Below 760 px it
   would shrink its labels out of reading, so it holds a readable width and scrolls sideways
   inside its own box; the page itself never scrolls sideways. */
.rack-strip:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* The preset names: a plain list in the site's mono, four across where there is room. */
.rack-presets__body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rack-presets__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 32px); }
.rack-presets__list li { font: 13px/1.5 var(--mono); letter-spacing: .04em; color: var(--ink); padding: 12px 0; border-bottom: 1px solid var(--line); }
.rack-presets .preview-note { max-width: 520px; }

@media (max-width: 1050px) { .rack-presets__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .rack-lead { margin-top: 22px; }
  .rack-strip { overflow-x: auto; overscroll-behavior-x: contain; border-radius: 4px; }
  .rack-strip img { width: 760px; max-width: none; }
  .rack-presets__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .rack-cue span { transition: none; } }
/* ---- end Rack */
