/* ============================================================
   Forma — workshop catalogue
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("/artifacts/forma-frontend--v1--s1--deepseek-4.1-flash--vanilla--2026-09-18T13-32-09-457Z/assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/artifacts/forma-frontend--v1--s1--deepseek-4.1-flash--vanilla--2026-09-18T13-32-09-457Z/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4efe7;
  --paper-2: #ece4d7;
  --paper-3: #e4dacb;
  --card: #fbf8f2;
  --ink: #211c17;
  --ink-soft: #4f463c;
  --muted: #6f6455;
  --line: #ddd1c0;
  --line-strong: #c9bba6;
  --clay: #bf5a3c;
  --clay-deep: #9c3f24;
  --clay-tint: #f0d9cf;
  --sage: #5f6f52;
  --gold: #b8862f;

  --cat-baking: #a9601f;
  --cat-baking-bg: #f6e3cd;
  --cat-ceramics: #4f7385;
  --cat-ceramics-bg: #dfeaf0;
  --cat-floristry: #5f7a34;
  --cat-floristry-bg: #e6eed4;
  --cat-painting: #9c4a63;
  --cat-painting-bg: #f4dde3;

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;

  --wrap: 1240px;
  --radius: 4px;
  --radius-lg: 8px;

  --shadow-soft: 0 1px 2px rgba(33, 28, 23, 0.05),
    0 12px 32px -18px rgba(33, 28, 23, 0.35);
  --shadow-lift: 0 2px 4px rgba(33, 28, 23, 0.06),
    0 26px 46px -22px rgba(33, 28, 23, 0.42);

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

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(
      1100px 520px at 82% -8%,
      rgba(191, 90, 60, 0.09),
      transparent 62%
    ),
    radial-gradient(
      720px 420px at -6% 22%,
      rgba(95, 111, 82, 0.07),
      transparent 60%
    );
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.dialog-open {
  overflow: hidden;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.wrap {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
}

.kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-deep);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 60;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  text-decoration: none;
  transition: top 0.18s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

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

/* ---------- header ---------- */
.site-header {
  position: relative;
  z-index: 10;
  padding: 22px 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand__mark {
  width: 26px;
  height: 26px;
  fill: var(--clay);
  flex: none;
}

.brand__word {
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

.site-header__note {
  color: var(--muted);
  font-size: 0.9rem;
  padding-left: 20px;
  border-left: 1px solid var(--line-strong);
}

.save-summary {
  margin-left: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.save-summary__count {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--clay-deep);
  line-height: 1;
}

.save-summary__label {
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ---------- hero ---------- */
.hero {
  padding: 42px 0 76px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.hero__copy {
  max-width: 34rem;
}

.hero h1 {
  font-size: clamp(2.9rem, 6.2vw, 4.9rem);
  margin: 18px 0 0;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--clay);
}

.hero__lede {
  margin-top: 24px;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 30rem;
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn--solid {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

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

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(33, 28, 23, 0.04);
}

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

/* ---------- hero art (arched frame) ---------- */
.hero__art {
  position: relative;
  margin: 0;
  border-radius: 260px 260px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 4.4;
}

.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  pointer-events: none;
  border-radius: inherit;
}

.hero__art figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  right: 18px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ---------- section head ---------- */
.catalog {
  padding: 12px 0 84px;
  scroll-margin-top: 20px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 22px;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  margin-top: 12px;
}

.result-count {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ---------- toolbar ---------- */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding: 16px 18px;
  margin-bottom: 34px;
  background: rgba(244, 239, 231, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

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

.field label,
.field__spacer {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.field__icon {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  stroke-linecap: round;
  pointer-events: none;
}

.field input,
.field select {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 11px 16px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input {
  padding-left: 42px;
}

.field input::placeholder {
  color: #8a7e6d;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(191, 90, 60, 0.18);
}

.field input:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

.field__control--select select {
  padding-right: 40px;
  cursor: pointer;
}

.field__chevron {
  position: absolute;
  right: 15px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.field--toggle {
  align-self: end;
}

/* ---------- saved toggle ---------- */
.save-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 14px 10px 15px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.save-toggle__icon,
.btn__icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  flex: none;
}

.save-toggle:hover {
  border-color: var(--ink);
}

.save-toggle[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.save-toggle[aria-pressed="true"] .save-toggle__icon {
  fill: currentColor;
}

.save-toggle__count,
.save-toggle__label {
  white-space: nowrap;
}

.save-toggle__count {
  min-width: 1.4em;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

.save-toggle[aria-pressed="true"] .save-toggle__count {
  background: rgba(244, 239, 231, 0.22);
  color: var(--paper);
}

/* ---------- grid + cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 26px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-3);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.045);
}

.card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(251, 248, 242, 0.94);
  color: var(--ink-soft);
  backdrop-filter: blur(4px);
}

.card__badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot, var(--clay));
}

.card__saved {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  box-shadow: 0 4px 12px rgba(33, 28, 23, 0.25);
}

.card__saved svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 18px;
  flex: 1;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.card__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.card h3 {
  font-size: 1.5rem;
  line-height: 1.12;
}

.card__desc {
  font-size: 0.94rem;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__footer {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.card__price {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
}

.card__price small {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-left: 2px;
}

.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--clay-deep);
  background: transparent;
  border: 0;
  padding: 6px 2px;
  cursor: pointer;
  border-radius: 3px;
}

.card__cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease);
}

.card__cta:hover svg {
  transform: translateX(3px);
}

/* ---------- empty state ---------- */
.empty-state {
  text-align: center;
  padding: 70px 24px 76px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(251, 248, 242, 0.6);
}

.empty-state h3 {
  font-size: 1.7rem;
}

.empty-state p {
  margin: 12px auto 24px;
  color: var(--ink-soft);
  max-width: 32rem;
}

/* ---------- notes band ---------- */
.notes {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 74px 0;
}

.notes__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.notes__art {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 5;
  background: var(--paper-3);
}

.notes__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notes__copy h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin: 12px 0 30px;
  max-width: 18ch;
}

.notes__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.notes__list li {
  padding-left: 22px;
  border-left: 2px solid var(--clay);
}

.notes__list h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.notes__list p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- footer ---------- */
.site-footer {
  padding: 44px 0 56px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.site-footer__brand .brand__mark {
  width: 20px;
  height: 20px;
}

.site-footer__meta {
  max-width: 52ch;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================================
   Detail dialog
   ============================================================ */
.detail {
  padding: 0;
  border: none;
  background: var(--card);
  color: var(--ink);
  width: min(1060px, calc(100vw - 56px));
  max-width: calc(100vw - 56px);
  max-height: calc(100vh - 64px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(33, 28, 23, 0.55);
}

.detail[open] {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
}

.detail::backdrop {
  background: rgba(33, 28, 23, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.detail__media {
  position: relative;
  background: var(--paper-3);
  min-height: 100%;
}

.detail__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail__panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
  max-height: calc(100vh - 64px);
}

.detail__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 26px 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chip-ink, var(--ink-soft));
  background: var(--chip-bg, var(--paper-2));
}

.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  flex: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.icon-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.detail__scroll {
  overflow-y: auto;
  padding: 8px 26px 28px;
  min-height: 0;
}

.detail__scroll h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.04;
  margin: 6px 0 20px;
}

.detail__body {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.facts {
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

.facts div {
  min-width: 0;
}

.facts dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.facts dd {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}

.detail__instructor {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.detail__instructor-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail__instructor-name {
  font-family: var(--serif);
  font-size: 1.35rem;
}

.detail__actions {
  padding: 18px 26px 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(244, 239, 231, 0.4), var(--card));
}

.btn--save {
  width: 100%;
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
  padding: 15px 22px;
}

.btn--save:hover {
  background: var(--clay-deep);
  border-color: var(--clay-deep);
}

.btn--save[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn--save .btn__icon {
  fill: none;
}

.btn--save[aria-pressed="true"] .btn__icon {
  fill: currentColor;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1040px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }

  .field--toggle {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .hero__inner,
  .notes__inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 26px 0 56px;
  }

  .hero__art {
    aspect-ratio: 16 / 10;
    border-radius: 180px 180px var(--radius-lg) var(--radius-lg);
    order: -1;
  }

  .notes__art {
    aspect-ratio: 16 / 9;
    order: -1;
  }
}

@media (max-width: 700px) {
  .wrap {
    width: min(100% - 32px, var(--wrap));
  }

  .site-header__note {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
  }

  .hero__art {
    aspect-ratio: 5 / 4;
    border-radius: 130px 130px var(--radius-lg) var(--radius-lg);
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .toolbar {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    position: static;
  }

  .field--toggle {
    grid-column: auto;
  }

  .save-toggle {
    width: 100%;
    justify-content: center;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .detail[open] {
    display: block;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    inset: 0;
    border-radius: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .detail__panel {
    max-height: none;
    display: flex;
    flex-direction: column;
  }

  .detail__media {
    flex: none;
    height: 44vh;
    min-height: 220px;
  }

  .detail__media img {
    position: static;
    height: 100%;
  }

  .detail__scroll {
    overflow: visible;
    padding-bottom: 20px;
  }

  .detail__actions {
    position: sticky;
    bottom: 0;
    box-shadow: 0 -10px 20px -14px rgba(33, 28, 23, 0.4);
  }

  .facts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 400px) {
  .facts {
    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;
  }

  .card:hover {
    transform: none;
  }

  .card:hover .card__media img {
    transform: none;
  }
}
