/* =========================================================================
   FORMA — Autumn season roster
   Direction: a studio bulletin / craft-school catalogue.
   Cool paper canvas, heavy grotesque display, mono data labels, and a
   colour swatch system drawn from the workshop materials.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --paper: #e8ecef;
  --paper-soft: #f2f4f5;
  --surface: #ffffff;
  --ink: #10151a;
  --ink-soft: #1b2228;

  /* text */
  --text: #10151a;
  --text-2: #39434b;
  --muted: #5c6872;
  --on-ink: #eef1f2;
  --on-ink-muted: #9fb0ba;

  /* lines */
  --line: #c3ccd2;
  --line-soft: #d7dee2;
  --line-ink: #10151a;

  /* accent */
  --accent: #1b3fd8;
  --accent-deep: #1430aa;
  --focus: #1b3fd8;

  /* disciplines */
  --baking: #b8720f;
  --ceramics: #2f6da6;
  --floristry: #2c7a4b;
  --painting: #cc3f27;

  /* type */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* space */
  --gutter: 24px;
  --max: 1320px;
  --radius: 6px;
  --radius-lg: 10px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
    height: auto;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Shared roles ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.eyebrow-invert {
  color: var(--on-ink-muted);
}

.section-title {
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 700;
}

.lede {
  max-width: 46ch;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-2);
}

.tag {
  display: inline-block;
  padding: 2px 6px;
  margin-right: 6px;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--swatch, var(--accent));
}

/* Focus */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
  transition: top 0.18s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-solid:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.btn-quiet {
  border-color: transparent;
  color: var(--text-2);
}
.btn-quiet:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn:active {
  transform: translateY(1px);
}

/* ---------- Masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.wordmark-chip {
  width: 14px;
  height: 14px;
  background: var(--accent);
}

.wordmark-text {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.masthead-meta {
  flex: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-sep {
  color: var(--line);
}

.masthead-saved {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.masthead-saved #saved-count {
  display: inline-block;
  min-width: 20px;
  padding: 2px 6px;
  margin-left: 4px;
  background: var(--ink);
  color: var(--on-ink);
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(40px, 6vw, 84px) 0 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.hero-copy {
  padding-top: clamp(4px, 2vw, 28px);
}

.hero-title {
  margin: 18px 0 22px;
  font-size: clamp(50px, 6.5vw, 88px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.hero-title-alt {
  display: inline-block;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-figure {
  margin: 0;
  position: relative;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line-ink);
  border-radius: var(--radius-lg);
}

.hero-figure figcaption {
  margin-top: 12px;
  max-width: 42ch;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* Swatch legend */
.swatch-legend {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 3vw, 40px);
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 18px;
  border-top: 1px solid var(--line-ink);
}

.legend-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.legend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  flex: 1;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px clamp(14px, 2.5vw, 30px) 2px 0;
  margin-right: clamp(14px, 2.5vw, 30px);
  border-right: 1px solid var(--line);
}
.legend-item:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.legend-chip {
  width: 26px;
  height: 26px;
  background: var(--swatch);
}

.legend-name {
  font-size: 15px;
  font-weight: 600;
}

.legend-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Season band ---------- */
.band {
  margin-top: clamp(56px, 8vw, 104px);
  background: var(--ink);
  color: var(--on-ink);
}

.band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 80px);
  padding-block: clamp(44px, 6vw, 76px);
  align-items: start;
}

.band-title {
  margin-top: 16px;
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 700;
  color: var(--on-ink);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.fact {
  padding: 18px 20px;
  background: var(--ink);
}

.fact dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
}

.fact dd {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Catalogue ---------- */
.catalogue {
  padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 72px);
}

.catalogue-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-ink);
}

.catalogue-heading .section-title {
  margin-top: 12px;
}

.catalogue-heading .eyebrow {
  color: var(--muted);
}

.results-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-bottom: 6px;
}

/* Toolbar */
.toolbar {
  position: sticky;
  top: 64px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding: 18px 0;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

input[type="search"] {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px 11px 42px;
  border: 1.5px solid var(--line-ink);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}
input[type="search"]::placeholder {
  color: #6b757c;
}
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 4l12 12M16 4L4 16' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  cursor: pointer;
}

.select-shell {
  position: relative;
  display: flex;
  align-items: center;
}

select {
  width: 100%;
  min-height: 48px;
  padding: 11px 40px 11px 14px;
  border: 1.5px solid var(--line-ink);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select-caret {
  position: absolute;
  right: 15px;
  width: 12px;
  height: 8px;
  color: var(--ink);
  pointer-events: none;
}

/* Saved toggle */
.toggle-saved {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 18px;
  border: 1.5px solid var(--line-ink);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.toggle-saved-mark {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--ink);
  background: transparent;
  transition: background 0.18s var(--ease);
}

.toggle-saved[aria-pressed="true"] {
  background: var(--ink);
  color: var(--on-ink);
}
.toggle-saved[aria-pressed="true"] .toggle-saved-mark {
  background: var(--accent);
  border-color: var(--accent);
}

/* Roster rows */
.roster {
  border-top: 1px solid var(--line-ink);
}

.workshop {
  display: grid;
  grid-template-columns: 46px 12px minmax(0, 1.4fr) minmax(0, 0.85fr) minmax(0, 0.72fr) 128px;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s var(--ease);
}

.workshop:hover {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.ws-index {
  grid-column: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.ws-swatch {
  grid-column: 2;
  width: 12px;
  height: 44px;
  background: var(--swatch);
}

.ws-main {
  grid-column: 3;
  min-width: 0;
}

.ws-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ws-cat-text {
  color: var(--text-2);
}

.ws-title {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.02;
}

.ws-open {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.ws-open::after {
  content: "\2192";
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  transform: translateX(-4px);
  opacity: 0;
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}
.ws-open:hover::after,
.ws-open:focus-visible::after,
.workshop:hover .ws-open::after {
  transform: translateX(0);
  opacity: 1;
}

.ws-instructor {
  margin-top: 7px;
  font-size: 14px;
  color: var(--muted);
}

.ws-when {
  grid-column: 4;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.ws-when strong {
  display: block;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.ws-price {
  grid-column: 5;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.ws-price span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.ws-thumb {
  grid-column: 6;
  width: 128px;
  height: 88px;
  object-fit: cover;
  border: 1px solid var(--line-ink);
  border-radius: 4px;
  background: var(--paper-soft);
}

.ws-saved-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.ws-saved-flag::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
}

/* Empty state */
.empty-state {
  margin-top: 32px;
  padding: 48px clamp(20px, 4vw, 56px);
  border: 1.5px dashed var(--line-ink);
  border-radius: var(--radius-lg);
  text-align: left;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.empty-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.empty-title {
  margin-top: 12px;
  font-size: clamp(24px, 3vw, 34px);
}

.empty-copy {
  margin: 14px 0 24px;
  max-width: 48ch;
  color: var(--text-2);
}

/* ---------- Process ---------- */
.process {
  padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 104px);
}

.process-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-ink);
}
.process-head .section-title {
  margin-top: 12px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  background: var(--line);
  border: 1px solid var(--line);
}

.process-step {
  padding: 26px 24px 30px;
  background: var(--paper);
}

.process-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
}

.process-step-title {
  margin: 16px 0 10px;
  font-size: 22px;
}

.process-step p {
  color: var(--text-2);
  font-size: 16px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--on-ink);
  padding: clamp(40px, 5vw, 64px) 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.wordmark-invert .wordmark-text {
  color: var(--on-ink);
}

.footer-line {
  margin-top: 14px;
  max-width: 30ch;
  color: var(--on-ink-muted);
}

.footer-notes {
  max-width: 46ch;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--on-ink-muted);
}

/* ---------- Detail dialog ---------- */
.detail-dialog {
  margin: 0;
  padding: 0;
  border: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  background: transparent;
  overflow: hidden;
}
.detail-dialog::backdrop {
  background: rgba(9, 13, 17, 0.55);
  backdrop-filter: blur(2px);
}

.detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(600px, 100%);
  overflow-y: auto;
  background: var(--paper-soft);
  border-left: 1px solid var(--line-ink);
  display: flex;
  flex-direction: column;
}

.detail-media {
  position: relative;
  flex: 0 0 auto;
}

.detail-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--paper);
}

.detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.detail-close svg {
  width: 15px;
  height: 15px;
}

.detail-body {
  padding: clamp(24px, 4vw, 40px);
}

.detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-title {
  margin: 14px 0 16px;
  font-size: clamp(34px, 5.5vw, 52px);
  font-weight: 800;
  line-height: 0.98;
}

.detail-description {
  max-width: 46ch;
  color: var(--text-2);
  font-size: 17px;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0 0;
  background: var(--line);
  border: 1px solid var(--line-ink);
}

.spec {
  padding: 14px 16px;
  background: var(--paper-soft);
}

.spec dt {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec dd {
  margin: 7px 0 0;
  font-size: 16px;
  font-weight: 500;
}

.spec-price {
  background: var(--ink);
}
.spec-price dt {
  color: var(--on-ink-muted);
}
.spec-price dd {
  color: var(--on-ink);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-ink);
}

.btn-save {
  background: var(--surface);
  border-color: var(--ink);
}
.btn-save::before {
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
}
.btn-save[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-save[aria-pressed="true"]::before {
  content: "\2713";
}

/* ---------- Reveal motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .workshop {
    grid-template-columns: 38px 10px minmax(0, 1.3fr) minmax(0, 0.85fr) 84px 104px;
    gap: 14px;
  }
  .ws-thumb {
    width: 104px;
    height: 80px;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-figure {
    order: 2;
  }
  .hero-figure img {
    aspect-ratio: 16 / 11;
  }
  .hero-copy {
    order: 1;
  }
  .band-inner {
    grid-template-columns: 1fr;
  }
  .process-list {
    grid-template-columns: 1fr;
  }
  .toolbar {
    grid-template-columns: 1fr 1fr;
    top: 64px;
  }
  .field-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
  }
  body {
    font-size: 16px;
  }
  .masthead-meta {
    display: none;
  }
  .masthead-inner {
    justify-content: space-between;
  }
  .hero-title {
    font-size: clamp(42px, 12vw, 60px);
  }
  .toolbar {
    position: static;
  }
  .swatch-legend {
    flex-direction: column;
    gap: 14px;
  }
  .legend-list {
    flex-direction: column;
  }
  .legend-item {
    width: 100%;
    padding: 10px 0;
    margin-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .legend-item:last-child {
    border-bottom: 0;
  }
  .fact-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Roster becomes a stacked card */
  .roster {
    border-top: 0;
  }
  .workshop {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px 16px;
    align-items: start;
    padding: 20px 0 24px 16px;
    border-top: 1px solid var(--line-ink);
    border-bottom: 1px solid var(--line);
    position: relative;
  }
  .ws-index {
    grid-column: 1;
    grid-row: 1;
    padding-top: 4px;
  }
  .ws-swatch {
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    grid-column: auto;
    grid-row: auto;
    width: 6px;
    height: auto;
    min-height: 0;
  }
  .ws-main {
    grid-column: 2;
    grid-row: 1;
  }
  .ws-thumb {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .ws-when {
    grid-column: 2;
    grid-row: 3;
    display: flex;
    gap: 18px;
  }
  .ws-when strong {
    display: inline;
  }
  .ws-price {
    grid-column: 2;
    grid-row: 4;
    display: flex;
    align-items: baseline;
    gap: 12px;
  }
  .ws-price span {
    display: inline;
  }

  .detail-panel {
    width: 100%;
    border-left: 0;
  }
  .detail-specs {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 430px) {
  .toolbar {
    grid-template-columns: 1fr;
  }
  .detail-specs {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
