/* Forma — Bauhaus primary. Circle, square, triangle, quarter: one shape per craft. */
:root {
  --paper: #f4f1ec;
  --surface: #ffffff;
  --ink: #141414;
  --muted: #55514b;
  --red: #ce3a1d;
  --accent: #b32d12;       /* red tuned for text/buttons: 5.6:1 on paper, 6.4:1 white on it */
  --accent-ink: #ffffff;
  --blue: #23439c;
  --yellow: #e8a50c;
  --rule: 2px solid var(--ink);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Futura", "Futura PT", "Jost", "Century Gothic", "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--body);
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }

.wrap { width: min(1280px, 100% - 48px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 20px; font-weight: 600;
}
.skip:focus { top: 8px; }

.label {
  font: 600 0.75rem/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--light { color: #dfe5f7; }

/* ---------- focus ---------- */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.studio :focus-visible { outline-color: var(--yellow); }
input:focus-visible, select:focus-visible { outline-offset: 0; box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--blue); }
.item:has(.btn-open:focus-visible) { outline: 3px solid var(--blue); outline-offset: -3px; }
.item .btn-open:focus-visible { outline-offset: 2px; }
.cal__day:focus-visible { outline-offset: -3px; }
.detail :focus-visible { outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px;
  font: 700 1rem/1.2 var(--display);
  letter-spacing: 0.01em;
  border: var(--rule);
  background: transparent; color: var(--ink);
  cursor: pointer; text-decoration: none;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}
.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--ghost { background: var(--surface); }
.btn:active { transform: scale(0.97); }

/* ---------- header ---------- */
.site-header { border-bottom: var(--rule); background: var(--paper); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; color: var(--ink); text-decoration: none; }
.wordmark__text { font: 700 1.75rem/1 var(--display); letter-spacing: -0.03em; }
.wordmark__shapes { display: inline-flex; gap: 3px; }
.ws { display: block; width: 14px; height: 14px; background: var(--red); border: 2px solid var(--ink); transition: transform 300ms var(--ease); }
.ws--circle { border-radius: 50%; }
.ws--square { background: var(--blue); }
.ws--tri { background: var(--yellow); clip-path: polygon(50% 0, 100% 100%, 0 100%); border: 0; }
nav { display: flex; gap: 8px; }
nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding-inline: 12px;
  color: var(--ink); font: 600 1rem var(--display); text-decoration: none;
  background-image: linear-gradient(var(--ink), var(--ink)); background-repeat: no-repeat;
  background-size: 0 2px; background-position: 12px calc(100% - 10px);
  transition: background-size 200ms var(--ease);
}
nav a:active { transform: scale(0.97); }

/* ---------- hero ---------- */
.hero { overflow: clip; padding-block: 48px 96px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero h1 {
  font: 700 clamp(3.75rem, 9vw, 9rem)/0.92 var(--display);
  letter-spacing: -0.04em;
  margin-block: 16px 24px;
  animation: rise 700ms var(--ease) both;
}
.lede { font-size: 1.125rem; max-width: 46ch; color: var(--ink); }
.hero__cta { margin-top: 32px; }
.stats { display: flex; margin-top: 48px; border-top: var(--rule); max-width: 560px; }
.stats div { flex: 1 1 0; padding: 16px 16px 0 0; }
.stats div + div { padding-left: 16px; border-left: 2px solid var(--ink); }
.stats dt { font: 600 0.75rem/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.stats dd { font: 700 clamp(1.75rem, 3vw, 2.25rem)/1.1 var(--display); letter-spacing: -0.02em; margin-top: 4px; }

.plate-wrap { position: relative; padding: 0 0 0 0; }
.deco { position: absolute; z-index: 0; pointer-events: none; }
.deco--morph { top: -40px; right: -40px; width: 128px; height: 128px; background: var(--red); border: var(--rule); border-radius: 50%; animation: morph 7s var(--ease) infinite alternate; }
.deco--bar { left: -24px; bottom: -24px; width: 45%; height: 24px; background: var(--blue); border: var(--rule); }
.plate { position: relative; z-index: 1; background: var(--surface); border: var(--rule); padding: 20px 20px 16px; }
.plate__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 12px; }
.plate__title { font: 700 1.75rem/1.1 var(--display); letter-spacing: -0.02em; }

.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font: 600 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 8px 0; text-align: left; border-bottom: var(--rule); }
.cal th, .cal td { padding-left: 0; }
.cal td { position: relative; height: 80px; padding: 0; border: 1px solid rgba(20, 20, 20, 0.18); vertical-align: top; }
.cal .wkend { background: #faf7f1; }
.cal .blank { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(20, 20, 20, 0.06) 6px 7px); }
.cal__num { position: absolute; top: 4px; left: 6px; font: 600 0.75rem/1 var(--mono); color: var(--muted); }
.cal__day {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color 180ms var(--ease), opacity 180ms var(--ease);
}
.cal__day .cal__num { color: var(--ink); font-weight: 700; }
.cal__shape { position: absolute; right: 8%; bottom: 8%; width: 68%; height: 68%; transition: transform 300ms var(--ease); animation: drop 600ms var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 250ms); }
.cal__tick { position: absolute; top: 3px; right: 5px; width: 20px; height: 20px; display: none; place-items: center; background: var(--ink); color: var(--paper); font: 700 0.75rem/1 var(--body); border-radius: 50%; }
.cal__day.is-saved .cal__tick { display: grid; }
.cal__day.is-dim { opacity: 0.3; }
.cal__day:active .cal__shape { transform: scale(0.9); }

.legend { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(20, 20, 20, 0.18); }
.legend li { display: inline-flex; align-items: center; gap: 8px; font: 600 0.875rem var(--display); min-height: 28px; }
.legend .shape { width: 18px; height: 18px; }

/* ---------- shapes ---------- */
[data-cat="Ceramics"] { --c: var(--red); }
[data-cat="Painting"] { --c: var(--blue); }
[data-cat="Floristry"] { --c: var(--yellow); }
[data-cat="Baking"] { --c: var(--ink); }
.shape { display: block; overflow: visible; flex: none; }
.sh { fill: var(--c, var(--red)); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; transition: fill 200ms var(--ease); }
.shape--line .sh { fill: transparent; }

/* ---------- workshops ---------- */
.workshops { padding-block: 96px 128px; border-top: var(--rule); background: var(--surface); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head h2 { font: 700 clamp(2.4rem, 5.2vw, 4.5rem)/1 var(--display); letter-spacing: -0.035em; max-width: 14ch; }
.section-head__count { font: 600 0.8125rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.tools { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 16px 24px; align-items: end; padding-block: 24px; border-block: var(--rule); }
.field { display: grid; gap: 8px; }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: 500 1rem var(--body); color: var(--ink);
  background-color: var(--paper); border: var(--rule); border-radius: 0;
  transition: background-color 180ms var(--ease);
}
.field input { appearance: none; -webkit-appearance: none; }
.field input::-webkit-search-cancel-button { cursor: pointer; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%23141414' stroke-width='2.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.toggle {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px;
  font: 700 1rem var(--display); color: var(--ink); background: var(--paper);
  border: var(--rule); cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}
.toggle__mark { width: 18px; height: 18px; border: 2.5px solid currentColor; border-radius: 50%; transition: background-color 180ms var(--ease); }
.toggle__count { min-width: 28px; padding: 2px 8px; text-align: center; font: 700 0.8125rem var(--mono); background: var(--ink); color: var(--paper); border: 2px solid var(--ink); }
.toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.toggle[aria-pressed="true"] .toggle__mark { background: var(--yellow); border-color: var(--yellow); }
.toggle[aria-pressed="true"] .toggle__count { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.toggle:active { transform: scale(0.97); }

.list { display: block; }
.note { padding-block: 32px; color: var(--muted); }

.item {
  position: relative;
  display: grid; grid-template-columns: 120px 280px minmax(0, 1fr) 200px; gap: 32px;
  align-items: start;
  padding-block: 32px; border-bottom: var(--rule);
  transition: background-color 180ms var(--ease);
}
.item__day { display: block; font: 700 5rem/0.85 var(--display); letter-spacing: -0.06em; margin-bottom: 8px; }
.item__photo { aspect-ratio: 4 / 3; overflow: hidden; border: var(--rule); background: var(--paper); }
.item__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease); }
.item__cat { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.item__cat .shape { width: 26px; height: 26px; transition: transform 300ms var(--ease); }
.tag { font: 700 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 8px; background: var(--ink); color: var(--paper); }
.item__title { font: 700 clamp(1.75rem, 2.6vw, 2.5rem)/1.05 var(--display); letter-spacing: -0.03em; margin-top: 12px; }
.item__desc { margin-top: 12px; max-width: 52ch; }
.item__meta { margin-top: 12px; font: 600 0.875rem var(--mono); color: var(--muted); }
.item__side { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
.item__price { display: flex; flex-direction: column; }
.item__amount { font: 700 3rem/1 var(--display); letter-spacing: -0.04em; }
.item__actions { display: grid; gap: 8px; }
.item__actions .btn { width: 100%; }
.btn-open::after { content: ""; position: absolute; inset: 0; }
.btn-qs { position: relative; z-index: 2; }
.btn-qs__mark { width: 14px; height: 14px; border: 2.5px solid currentColor; border-radius: 50%; transition: background-color 180ms var(--ease); }
.btn-qs[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.btn-qs[aria-pressed="true"] .btn-qs__mark { background: var(--yellow); border-color: var(--yellow); }
.item.is-saved .shape--line .sh { fill: var(--c); }
.item.is-saved .item__cat .shape { animation: stamp 300ms var(--ease); }

.empty { padding: 64px 0 32px; max-width: 560px; }
.empty__shape { width: 56px; height: 56px; margin-bottom: 24px; animation: morph 5s var(--ease) infinite alternate; }
.empty h3 { font: 700 clamp(1.75rem, 3vw, 2.5rem)/1.05 var(--display); letter-spacing: -0.03em; }
.empty p { margin: 12px 0 24px; color: var(--muted); }

/* ---------- studio band ---------- */
.studio { background: var(--blue); color: #f4f1ec; padding-block: 96px 128px; overflow: clip; }
.studio__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: center; }
.studio__figure { position: relative; }
.studio__figure::before { content: ""; position: absolute; z-index: 0; left: -32px; bottom: -32px; width: 55%; aspect-ratio: 1; background: var(--yellow); border-radius: 0 100% 0 0; transform-origin: bottom left; }
.studio__figure img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 50%; border: 2px solid #f4f1ec; }
.studio__figure figcaption { position: relative; z-index: 1; margin-top: 12px; max-width: 48ch; color: #dfe5f7; }
.studio h2 { font: 700 clamp(2.4rem, 5.2vw, 4.5rem)/1 var(--display); letter-spacing: -0.035em; margin-block: 12px 24px; max-width: 12ch; }
.studio__lede { max-width: 52ch; font-size: 1.125rem; }
.ledger { margin-top: 40px; border-top: 2px solid #f4f1ec; }
.ledger div { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-bottom: 1px solid rgba(244, 241, 236, 0.45); }
.ledger dt { font: 600 0.75rem/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #dfe5f7; align-self: center; }
.ledger dd { font: 700 1.375rem/1.2 var(--display); letter-spacing: -0.01em; text-align: right; }
.studio__sub { margin-top: 48px; font: 700 1.375rem/1.2 var(--display); }
.teachers { margin-top: 12px; }
.teachers li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 16px; padding-block: 12px; border-bottom: 1px solid rgba(244, 241, 236, 0.45); transition: background-color 180ms var(--ease), padding 180ms var(--ease); }
.teachers__name { font: 700 1.0625rem var(--display); }
.teachers__what { color: #dfe5f7; }

/* ---------- footer ---------- */
.site-footer { padding-block: 96px 32px; overflow: clip; }
.bigmark { display: flex; align-items: center; justify-content: center; font: 700 clamp(5rem, 24vw, 22rem)/0.9 var(--display); letter-spacing: -0.05em; padding-bottom: 0.04em; }
.bigmark__o { display: inline-block; width: 0.62em; height: 0.62em; margin-inline: 0.03em; background: var(--red); border: 0.03em solid var(--ink); border-radius: 50%; animation: morph 6s var(--ease) infinite alternate; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 32px; margin-top: 48px; padding-top: 16px; border-top: var(--rule); color: var(--muted); font-size: 0.875rem; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
.foot p:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }

/* ---------- detail dialog ---------- */
dialog.detail {
  padding: 0; border: var(--rule); background: var(--paper); color: var(--ink);
  width: min(1120px, calc(100vw - 48px)); max-width: none;
  max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain;
}
dialog.detail[open] { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; animation: sheet 220ms var(--ease) both; }
dialog.detail::backdrop { background: rgba(20, 20, 20, 0.62); }
.detail__bar { grid-column: 1 / -1; position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; background: var(--paper); border-bottom: var(--rule); }
.detail__crumb { display: flex; align-items: center; gap: 12px; }
.detail__crumbshape { width: 24px; height: 24px; }
.detail__media { position: relative; min-height: 320px; border-right: var(--rule); background: var(--ink); }
.detail__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail__panel { padding: 40px 40px 40px; display: flex; flex-direction: column; }
.detail__title { font: 700 clamp(2.25rem, 4.4vw, 3.75rem)/1 var(--display); letter-spacing: -0.035em; margin-top: 8px; }
.detail__body { margin-top: 24px; font-size: 1.125rem; max-width: 52ch; }
.facts { margin-top: 32px; border-top: var(--rule); }
.facts div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 16px; padding-block: 12px; border-bottom: 1px solid rgba(20, 20, 20, 0.25); }
.facts dt { font: 600 0.75rem/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); align-self: center; }
.facts dd { font-weight: 600; }
.detail__buy { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin-top: 32px; }
.detail__price { display: flex; align-items: baseline; gap: 12px; }
.detail__amount { font: 700 3.5rem/1 var(--display); letter-spacing: -0.04em; }
.save { min-height: 56px; padding-inline: 24px; }
.save__mark { width: 16px; height: 16px; border: 2.5px solid currentColor; border-radius: 50%; transition: background-color 180ms var(--ease); }
.save.is-on, .save[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.save[aria-pressed="true"] .save__mark { background: var(--yellow); border-color: var(--yellow); }
.detail__note { margin-top: 16px; min-height: 1.6em; font: 600 0.8125rem var(--mono); color: var(--muted); }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: rotate(-90deg) scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes stamp { 0% { transform: scale(1.5) rotate(-45deg); } 100% { transform: none; } }
@keyframes morph { 0%, 35% { border-radius: 50%; transform: rotate(0); } 65%, 100% { border-radius: 0; transform: rotate(90deg); } }
@keyframes sheet { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- hover (pointer devices only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #8f2410; border-color: #8f2410; }
  .btn--ghost:hover { background: var(--ink); color: var(--paper); }
  .btn-qs[aria-pressed="true"]:hover { background: var(--blue); border-color: var(--blue); }
  .save[aria-pressed="true"]:hover { background: var(--blue); border-color: var(--blue); }
  nav a:hover { background-size: calc(100% - 24px) 2px; }
  .wordmark:hover .ws { transform: translateY(-3px) rotate(90deg); }
  .field input:hover, .field select:hover { background-color: var(--surface); }
  .toggle:hover { background: var(--ink); color: var(--paper); }
  .toggle:hover .toggle__count { background: var(--paper); color: var(--ink); border-color: var(--paper); }
  .cal__day:hover { background: var(--paper); }
  .cal__day:hover .cal__shape { transform: rotate(90deg) scale(1.08); }
  .item:hover { background: var(--paper); }
  .item:hover .item__photo img { transform: scale(1.04); }
  .item:hover .item__cat .shape { transform: rotate(90deg); }
  .teachers li:hover { background: rgba(244, 241, 236, 0.1); padding-left: 12px; }
  .foot a:hover { text-decoration-thickness: 3px; }
  .bigmark:hover .bigmark__o { animation-play-state: paused; border-radius: 0; }
  .skip:hover { background: var(--blue); }
}
.item:has(.btn-open:focus-visible) .item__photo img { transform: scale(1.04); }
.item:has(.btn-open:focus-visible) .item__cat .shape { transform: rotate(90deg); }

/* ---------- small screens ---------- */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; gap: 64px; }
  .stats { max-width: none; }
  .item { grid-template-columns: 96px 220px minmax(0, 1fr); }
  .item__side { grid-column: 2 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .item__actions { grid-template-columns: auto auto; }
  .studio__grid { grid-template-columns: 1fr; gap: 64px; }
  .studio__figure { max-width: 520px; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 48px); }
  .hero { padding-block: 32px 64px; }
  .hero h1 { margin-top: 12px; }
  .deco--morph { width: 88px; height: 88px; top: -32px; right: -36px; }
  .plate { padding: 12px 8px 12px; }
  .plate__head { padding-inline: 4px; }
  .cal td { height: 48px; }
  .cal__num { top: 3px; left: 4px; }
  .cal__tick { width: 16px; height: 16px; top: 2px; right: 2px; font-size: 0.625rem; }
  .legend { padding-inline: 4px; }
  .stats dd { font-size: 1.5rem; }

  .workshops { padding-block: 64px 96px; }
  .section-head { margin-bottom: 24px; }
  .tools { grid-template-columns: 1fr; }
  .toggle { justify-content: space-between; }

  .item { grid-template-columns: 1fr; gap: 16px; padding-block: 24px; }
  .item__date { display: flex; align-items: baseline; gap: 12px; }
  .item__day { font-size: 3.5rem; margin: 0; }
  .item__side { grid-column: auto; flex-direction: column; align-items: stretch; gap: 16px; }
  .item__price { flex-direction: row; align-items: baseline; gap: 12px; }
  .item__amount { font-size: 2.5rem; }
  .item__actions { grid-template-columns: 1fr 1fr; }
  .item__actions .btn { padding-inline: 12px; }

  .studio { padding-block: 64px 96px; }
  .studio__figure::before { left: -12px; bottom: -16px; }
  .teachers li { grid-template-columns: 1fr; gap: 2px; }
  .ledger dd { font-size: 1.125rem; }

  .site-footer { padding-block: 64px 24px; }

  dialog.detail { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; }
  dialog.detail[open] { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; }
  .detail__bar { padding: 8px 20px; }
  .detail__media { min-height: 0; aspect-ratio: 3 / 2; border-right: 0; border-bottom: var(--rule); }
  .detail__panel { padding: 24px 24px 40px; }
  .facts div { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .detail__amount { font-size: 2.75rem; }
  .detail__buy { flex-direction: column; align-items: stretch; }
  .save { width: 100%; }
}

@media (max-width: 380px) {
  .item__actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 1ms !important; }
  .hero h1, dialog.detail[open] { animation-name: fade; }
  .cal__shape { animation-name: fade; }
  .deco--morph, .empty__shape, .bigmark__o { animation: none !important; }
  .item:hover .item__cat .shape, .cal__day:hover .cal__shape, .wordmark:hover .ws { transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
