/* ==========================================================================
   Forma — dark studio-programme identity
   Display: Syne · Body: Manrope · Labels/data: JetBrains Mono
   ========================================================================== */

:root {
  --bg: #141210;
  --bg-soft: #1a1713;
  --surface: #201d17;
  --surface-2: #272318;
  --line: #37322a;
  --line-strong: #4d463a;

  --text: #f4eddd;
  --muted: #b7ac95;
  --faint: #8c826c;

  --accent: #d0f24b;
  --accent-ink: #1a1c09;
  --accent-dim: rgba(208, 242, 75, 0.14);
  --accent-line: rgba(208, 242, 75, 0.42);

  --cat-baking: #e8a23d;
  --cat-ceramics: #e08b63;
  --cat-floristry: #e790ac;
  --cat-painting: #84b7ea;

  --font-display: "Syne", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(1.15rem, 4vw, 3.5rem);
  --radius: 6px;
  --radius-lg: 12px;

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

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

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

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 88% -12%, rgba(208, 242, 75, 0.07), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

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

a {
  color: inherit;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 100;
  transform: translateY(-130%);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
}

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ------------------------------------------------------------- header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  gap: 1.7rem;
  margin-inline-start: auto;
}
.site-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-nav a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.header-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  border-left: 1px solid var(--line);
  padding-left: 1.5rem;
}

/* --------------------------------------------------------------- hero --- */
.hero {
  padding-top: clamp(2.5rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 7.6vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin-top: 1.1rem;
  text-wrap: balance;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-title em::after {
  content: "";
  display: block;
  width: 2.4ch;
  height: 0.14em;
  margin-top: 0.12em;
  background: var(--accent);
}

.lede {
  max-width: 38ch;
  margin-top: 1.6rem;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 1.6rem;
  margin-top: 2.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
    color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: #e2ff6e;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-line);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--accent-line);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(208, 242, 75, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(208, 242, 75, 0);
  }
}

.hero-figure {
  position: relative;
  isolation: isolate;
}
.hero-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 4.4;
  background: var(--surface);
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.02);
}
.hero-figure::before {
  content: "";
  position: absolute;
  inset: -14px -14px auto auto;
  width: 44%;
  height: 60%;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.hero-figure figcaption {
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ------------------------------------------------------------ ticker --- */
.ticker {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-soft);
}
.ticker-track {
  display: flex;
  gap: 1.6rem;
  width: max-content;
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
  animation: ticker 34s linear infinite;
}
.ticker-track span:nth-child(even) {
  color: var(--accent);
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ------------------------------------------------------------ catalog --- */
.catalog {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.catalog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: end;
  padding-bottom: 2rem;
}
.catalog-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-top: 0.6rem;
}
.catalog-intro {
  color: var(--muted);
  max-width: 46ch;
  justify-self: end;
}

/* controls */
.controls {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) auto;
  gap: 1rem;
  align-items: end;
  padding: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.field label,
.field-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.input-shell,
.select-shell {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input-shell:focus-within,
.select-shell:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(208, 242, 75, 0.32);
}
.input-shell .icon {
  position: absolute;
  left: 0.9rem;
  color: var(--faint);
  pointer-events: none;
}
.input-shell input {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.9rem 0.6rem 2.7rem;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  outline: none;
}
.input-shell input::placeholder {
  color: var(--faint);
}
.input-shell input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.select-shell select {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 2.4rem 0.6rem 0.9rem;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  outline: none;
  appearance: none;
  cursor: pointer;
}
.select-shell > .icon {
  position: absolute;
  right: 0.8rem;
  color: var(--faint);
  pointer-events: none;
}
.select-shell option {
  background: var(--surface-2);
  color: var(--text);
}

.saved-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.6rem 1.05rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.saved-toggle .heart {
  transition: fill var(--dur) var(--ease);
}
.saved-toggle:hover {
  border-color: var(--accent-line);
}
.saved-toggle[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.saved-toggle[aria-pressed="true"] .heart {
  fill: currentColor;
}

/* results bar */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0.2rem 0.9rem;
}
.results-count {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.link-btn {
  background: none;
  border: none;
  padding: 0.4rem 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.link-btn:hover {
  border-bottom-color: var(--accent);
}

/* ------------------------------------------------------------- list ----- */
.program {
  border-top: 1px solid var(--line);
}

.item {
  border-bottom: 1px solid var(--line);
}

.item-card {
  display: grid;
  grid-template-columns: 2.1rem 128px minmax(0, 1fr) 250px 96px;
  grid-template-areas: "index thumb main facts side";
  gap: 1.4rem;
  align-items: center;
  padding: 1.15rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.item-card:hover {
  background: var(--surface);
}

.item-index {
  grid-area: index;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--faint);
}

.item-thumb {
  grid-area: thumb;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 500ms var(--ease), filter var(--dur) var(--ease);
}
.item-card:hover .item-thumb img {
  transform: scale(1.05);
  filter: saturate(1.05);
}

.item-main {
  grid-area: main;
  min-width: 0;
}
.item-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.item-cat .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cat-color, var(--accent));
}
.cat-baking {
  --cat-color: var(--cat-baking);
}
.cat-ceramics {
  --cat-color: var(--cat-ceramics);
}
.cat-floristry {
  --cat-color: var(--cat-floristry);
}
.cat-painting {
  --cat-color: var(--cat-painting);
}

.item-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-top: 0.35rem;
}
.item-title .open-item {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.item-title .open-item .icon {
  width: 0.7em;
  height: 0.7em;
  stroke-width: 2.2;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.item-card:hover .open-item .icon,
.open-item:focus-visible .icon {
  opacity: 1;
  transform: translateX(0);
}
.open-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}
.item-card {
  position: relative;
}
.open-item:hover {
  color: var(--accent);
}

.item-desc {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 52ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-facts {
  grid-area: facts;
  display: grid;
  gap: 0.3rem;
  font-size: 0.86rem;
}
.item-facts p {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.3rem;
}
.item-facts span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.item-facts strong {
  font-weight: 600;
  color: var(--text);
}

.item-side {
  grid-area: side;
  text-align: right;
}
.item-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}
.item-price sup {
  font-size: 0.55em;
  color: var(--faint);
  margin-right: 1px;
}
.item-seats {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

/* saved indicator on cards */
.item.is-saved .item-index::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.4rem;
}

/* -------------------------------------------------------- empty state --- */
.empty-state {
  text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  margin-top: 0.5rem;
}
.empty-icon {
  width: 2.2rem;
  height: 2.2rem;
  color: var(--accent);
  stroke-width: 1.4;
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-top: 0.8rem;
}
.empty-state p {
  color: var(--muted);
  max-width: 42ch;
  margin: 0.6rem auto 1.6rem;
}

/* -------------------------------------------------------------- studio --- */
.studio {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: start;
}
.studio-grid h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-top: 0.7rem;
  max-width: 16ch;
}
.studio-copy {
  color: var(--muted);
  max-width: 54ch;
  font-size: 1.02rem;
}

/* -------------------------------------------------------------- footer --- */
.site-footer {
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  padding-block: 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--faint);
}
.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}
.footer-inner a:hover {
  color: var(--accent);
}

/* -------------------------------------------------------------- dialog --- */
dialog.detail {
  border: none;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  margin: 0;
  color: var(--text);
  overflow: visible;
}
dialog.detail::backdrop {
  background: rgba(9, 8, 6, 0.74);
  backdrop-filter: blur(6px);
}
dialog.detail[open] {
  display: grid;
  place-items: center;
}

.detail-panel {
  width: min(960px, calc(100vw - 2rem));
  max-height: min(90dvh, 880px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: panel-in 280ms var(--ease);
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}

.detail-media {
  position: relative;
  aspect-ratio: 16 / 7;
  background: var(--surface-2);
  overflow: hidden;
}
.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 18, 16, 0.72), transparent 55%);
}
.detail-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  background: rgba(20, 18, 16, 0.82);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.detail-close:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.detail-cat-chip {
  position: absolute;
  left: 1.2rem;
  bottom: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(20, 18, 16, 0.82);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.detail-cat-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cat-color, var(--accent));
}

.detail-body {
  padding: clamp(1.3rem, 3vw, 2.6rem);
}
.detail-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.detail-text {
  margin-top: 1rem;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 60ch;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact {
  background: var(--surface);
  padding: 0.9rem 1rem;
}
.fact dt {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.fact dd {
  margin-top: 0.3rem;
  font-weight: 600;
  font-size: 0.98rem;
}

.detail-instructor {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}
.detail-instructor strong {
  color: var(--text);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.save-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.save-item .heart {
  transition: fill var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.save-item:hover {
  border-color: var(--accent-line);
}
.save-item[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.save-item[aria-pressed="true"] .heart {
  fill: currentColor;
}
.save-item:active .heart {
  transform: scale(0.86);
}

.detail-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}
.detail-caption {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --------------------------------------------------------- responsive --- */
@media (max-width: 1080px) {
  .item-card {
    grid-template-columns: 1.8rem 108px minmax(0, 1fr) 180px 84px;
    gap: 1rem;
  }
  .controls {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
  }
  .field-saved {
    grid-column: 1 / -1;
  }
  .saved-toggle {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .header-note {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-figure {
    order: -1;
  }
  .hero-frame {
    aspect-ratio: 16 / 10;
  }
  .hero-figure::before {
    display: none;
  }
  .catalog-head,
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .catalog-intro {
    justify-self: start;
  }
  .item-card {
    grid-template-columns: 108px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb main side"
      "thumb facts facts";
    align-items: start;
    row-gap: 0.8rem;
  }
  .item-index {
    display: none;
  }
  .item-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.4rem;
  }
  .item-facts p {
    border: none;
    padding: 0;
    gap: 0.45rem;
  }
  .detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-nav {
    display: none;
  }
  .controls {
    grid-template-columns: 1fr;
  }
  .field-saved {
    grid-column: auto;
  }
  .item-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb thumb"
      "main side"
      "facts facts";
    padding: 1rem;
    gap: 1rem;
  }
  .item-thumb {
    aspect-ratio: 16 / 9;
  }
  .item-title {
    font-size: 1.35rem;
  }
  .item-desc {
    -webkit-line-clamp: 3;
  }
  .detail-media {
    aspect-ratio: 4 / 3;
  }
  .detail-panel {
    width: 100vw;
    max-height: 94dvh;
    border-radius: 14px 14px 0 0;
    border-inline: none;
    border-bottom: none;
  }
  dialog.detail[open] {
    align-items: end;
  }
}

/* ------------------------------------------------------ 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;
  }
  .ticker-track {
    animation: none;
  }
}
