/* Forma — dark studio board. Poppy-orange on kiln-black, condensed display, mono ledger data. */
:root {
  --bg: #14110e;
  --surface: #1e1a15;
  --surface-2: #28221b;
  --line: #3f372c;
  --ink: #f1eadb;
  --muted: #b5aa94;
  --accent: #ff6a3d;
  --accent-ink: #14110e;
  --cream: #efe6d2;
  --cream-ink: #17130f;
  --cream-muted: #5a5043;

  --display: "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Impact, sans-serif;
  --body: Optima, Candara, "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100%, 1360px); margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.label {
  font: 600 12px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 12px 20px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--pad);
  min-height: 64px;
  background: rgba(20, 17, 14, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 26px; height: 26px; fill: var(--accent); transition: transform 250ms var(--ease); }
.brand-word { font: 800 28px/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 14px;
  color: var(--ink); text-decoration: none;
  font: 600 13px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 150ms var(--ease), background-color 150ms var(--ease), transform 150ms var(--ease);
}
.site-nav a:active, .btn:active, .saved-toggle:active, .d-close:active, .row-btn:active, .reset:active { transform: scale(0.97); }
.count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
  background: var(--accent); color: var(--accent-ink); font: 700 12px/1 var(--mono);
}

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(32px, 5vw, 64px) var(--pad) clamp(40px, 5vw, 72px);
  width: min(100%, 1480px); margin-inline: auto;
  align-items: stretch;
}
.hero-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-width: 0; }
.hero-title {
  font: 800 clamp(76px, 12.4vw, 190px)/0.84 var(--display);
  letter-spacing: -0.025em; text-transform: uppercase;
  margin-top: 16px;
}
.hero-title .line { display: block; animation: rise 700ms var(--ease) both; }
.hero-title .l2 { animation-delay: 80ms; }
.hero-title .l3 { animation-delay: 160ms; }
.hero-title .accent { color: var(--accent); }
.hero-lede { max-width: 46ch; font-size: 19px; color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font: 700 14px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease);
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.mosaic {
  display: grid; gap: 12px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.25fr 1fr 0.8fr;
  grid-template-areas: "pot flo" "num pai" "bre pai";
  min-height: 560px;
}
.tile { position: relative; overflow: hidden; background: var(--surface); animation: settle 800ms var(--ease) both; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.t-pottery { grid-area: pot; } .t-flowers { grid-area: flo; animation-delay: 80ms; }
.t-num { grid-area: num; animation-delay: 160ms; }
.t-paint { grid-area: pai; animation-delay: 240ms; } .t-bread { grid-area: bre; animation-delay: 320ms; }
.chip {
  position: absolute; left: 10px; bottom: 10px;
  background: var(--bg); color: var(--ink); padding: 4px 10px;
  font: 600 11px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
}
.t-num {
  background: var(--accent); color: var(--accent-ink);
  display: flex; flex-direction: column; justify-content: space-between; padding: 14px 16px;
}
.t-num .label { color: var(--accent-ink); }
.num { font: 800 clamp(96px, 11vw, 168px)/0.8 var(--display); letter-spacing: -0.04em; }

.ticker { overflow: hidden; border-block: 2px solid var(--line); background: var(--surface); }
.ticker-track { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.ticker-track span { padding: 14px 0; white-space: pre; font: 800 clamp(22px, 3vw, 34px)/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ---------- workshops ---------- */
.workshops { padding-block: clamp(64px, 8vw, 128px) clamp(64px, 7vw, 112px); }
.section-head { display: grid; gap: 8px; margin-bottom: 40px; }
.section-head h2, .sl-head h2 {
  font: 800 clamp(48px, 7vw, 104px)/0.92 var(--display);
  letter-spacing: -0.02em; text-transform: uppercase;
}

.controls {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 16px; align-items: end;
  padding: 20px; background: var(--surface); border: 2px solid var(--line);
}
.field { display: grid; gap: 6px; }
.field label { font: 600 12px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 10px 14px;
  background: var(--bg); border: 2px solid var(--line); border-radius: 0;
  font-size: 16px; color: var(--ink);
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.field select { appearance: none; padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input::placeholder { color: #8a7f6b; }
.saved-toggle {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 20px;
  background: transparent; border: 2px solid var(--ink); border-radius: 0;
  font: 700 14px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease);
}
.tick { width: 18px; height: 18px; border: 2px solid currentColor; position: relative; flex: none; }
.saved-toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.saved-toggle[aria-pressed="true"] .tick::after { content: ""; position: absolute; inset: 2px; background: currentColor; }
.status { margin: 16px 0 8px; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; min-height: 22px; }

.board { border-bottom: 2px solid var(--line); }
.board.intro .row { animation: rise 600ms var(--ease) both; }
.board.intro .row:nth-child(2) { animation-delay: 70ms; }
.board.intro .row:nth-child(3) { animation-delay: 140ms; }
.board.intro .row:nth-child(4) { animation-delay: 210ms; }
.board.intro .row:nth-child(5) { animation-delay: 280ms; }
.board.intro .row:nth-child(6) { animation-delay: 350ms; }

.row {
  position: relative;
  display: grid; align-items: center; column-gap: 24px;
  grid-template-columns: 104px 132px minmax(0, 1fr) 170px 84px 140px;
  padding: 20px 8px;
  border-top: 2px solid var(--line);
  transition: grid-template-columns 300ms var(--ease), background-color 200ms var(--ease);
}
.row-date { display: grid; line-height: 1; }
.row-date .d { font: 800 72px/0.85 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.row-date .m { margin-top: 8px; font: 600 12px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.row-img { height: 104px; overflow: hidden; background: var(--surface); }
.row-img img { width: 100%; height: 100%; object-fit: cover; }
.row-main { min-width: 0; display: grid; gap: 4px; }
.row-cat { display: flex; align-items: center; gap: 10px; }
.row-main h3 { font: 800 clamp(30px, 3vw, 42px)/1 var(--display); letter-spacing: -0.01em; text-transform: uppercase; }
.row-main .desc { color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 52ch; }
.saved-tag {
  display: none; padding: 2px 8px; background: var(--accent); color: var(--accent-ink);
  font: 700 11px/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
}
.row.is-saved .saved-tag { display: inline-block; }
.row-meta { display: grid; gap: 2px; font: 500 14px/1.5 var(--mono); }
.row-meta .seats { color: var(--muted); }
.row-price { font: 800 44px/1 var(--display); letter-spacing: -0.01em; text-align: right; }
.row-btn {
  position: static; justify-self: end;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 8px 18px;
  background: transparent; border: 2px solid var(--ink); border-radius: 0;
  font: 700 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease);
}
/* stretch the button's hit area over the whole row */
.row-btn::after { content: ""; position: absolute; inset: 0; }
.row:has(.row-btn:focus-visible) { outline: 3px solid var(--accent); outline-offset: -3px; }

.empty { padding: 48px 24px; text-align: left; border: 2px dashed var(--line); margin-top: 24px; display: grid; gap: 12px; justify-items: start; }
.empty[hidden] { display: none; }
.empty-title { font: 800 clamp(34px, 5vw, 56px)/1 var(--display); text-transform: uppercase; }
.empty-text { color: var(--muted); max-width: 48ch; margin-bottom: 8px; }
.noscript { padding: 24px 0; color: var(--muted); }

/* ---------- hosts ---------- */
.hosts { background: var(--surface); border-block: 2px solid var(--line); padding-block: clamp(64px, 7vw, 112px); }
.host-list { display: grid; }
.host {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 24px; align-items: center;
  padding: 18px 8px; border-top: 2px solid var(--line);
  transition: background-color 200ms var(--ease), padding-left 250ms var(--ease);
}
.host:last-child { border-bottom: 2px solid var(--line); }
.host-name { font: 800 clamp(40px, 6vw, 88px)/0.95 var(--display); letter-spacing: -0.02em; text-transform: uppercase; }
.host-cats { font: 500 14px/1.5 var(--mono); color: var(--muted); }
.host-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.link-btn {
  min-height: 44px; padding: 0; background: none; border: 0; border-bottom: 2px solid transparent;
  font: 600 15px/1.3 var(--body); color: var(--ink); text-align: left; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; text-decoration-thickness: 2px;
  transition: color 150ms var(--ease), transform 150ms var(--ease);
}
.link-btn:active { transform: scale(0.97); }

/* ---------- shortlist (inverted band) ---------- */
.shortlist { background: var(--cream); color: var(--cream-ink); padding-block: clamp(72px, 9vw, 144px); }
.shortlist .label { color: var(--cream-muted); }
.shortlist-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.sl-head { display: grid; gap: 12px; }
.sl-total { display: grid; gap: 4px; margin-top: 16px; }
.sl-total .mono { font: 800 clamp(64px, 8vw, 120px)/0.9 var(--display); letter-spacing: -0.03em; }
.sl-empty { font-size: 19px; max-width: 44ch; padding-top: 12px; border-top: 2px solid var(--cream-ink); }
.sl-empty[hidden] { display: none; }
.sl-list { display: grid; border-bottom: 2px solid var(--cream-ink); }
.sl-list:empty { display: none; }
.sl-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center;
  padding: 14px 8px; border-top: 2px solid var(--cream-ink);
  transition: background-color 150ms var(--ease);
}
.sl-row h3 { font: 800 32px/1 var(--display); text-transform: uppercase; letter-spacing: -0.01em; }
.sl-row .sl-meta { grid-column: 1; font: 500 13px/1.5 var(--mono); color: var(--cream-muted); }
.sl-row .sl-price { grid-column: 2; grid-row: 1; font: 800 32px/1 var(--display); text-align: right; }
.sl-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.shortlist .link-btn { color: var(--cream-ink); text-decoration-color: var(--cream-ink); }

/* ---------- footer ---------- */
.site-foot { border-top: 2px solid var(--line); padding-block: 40px 56px; }
.foot-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.foot-brand { font: 800 48px/1 var(--display); text-transform: uppercase; color: var(--accent); }
.foot-note { color: var(--muted); font-size: 15px; max-width: 60ch; }
.to-top { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); font: 600 13px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }

/* ---------- detail dialog ---------- */
.detail {
  width: min(1080px, calc(100vw - 48px)); max-height: calc(100dvh - 48px);
  padding: 0; border: 2px solid var(--ink); background: var(--bg); color: var(--ink); overflow: auto;
}
.detail::backdrop { background: rgba(8, 6, 4, 0.78); }
.detail[open] { animation: fade 200ms var(--ease) both; }
.d-bar {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 0 0 20px; min-height: 56px; background: var(--bg); border-bottom: 2px solid var(--line);
}
.d-close {
  min-height: 56px; padding: 0 22px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 0;
  font: 700 14px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  transition: background-color 150ms var(--ease), transform 150ms var(--ease);
}
.d-close:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; }
.d-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.d-photo { position: relative; min-height: 380px; background: var(--surface); }
.d-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.d-main { padding: clamp(24px, 3vw, 40px); display: grid; gap: 20px; align-content: start; }
.d-title { font: 800 clamp(48px, 6vw, 88px)/0.9 var(--display); letter-spacing: -0.025em; text-transform: uppercase; }
.d-body { font-size: 19px; line-height: 1.6; max-width: 46ch; }
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--line); }
.facts > div { padding: 12px 0; border-bottom: 2px solid var(--line); }
.facts > div:nth-child(odd) { padding-right: 16px; }
.facts dt { font: 600 11px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.facts dd { font: 600 20px/1.3 var(--body); }
.facts .big { font: 800 40px/1 var(--display); color: var(--accent); }
.save-btn { width: 100%; min-height: 60px; font-size: 15px; }
.save-btn[aria-pressed="false"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.save-btn[aria-pressed="true"] { background: transparent; border-color: var(--accent); color: var(--accent); }
.save-note { font-size: 13px; color: var(--muted); min-height: 20px; }

/* ---------- hover (pointer devices only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { background: var(--ink); color: var(--bg); }
  .site-nav a:hover .count { background: var(--bg); color: var(--ink); }
  .brand:hover .brand-mark { transform: rotate(-12deg) scale(1.1); }
  .btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
  .tile:hover img { transform: scale(1.05); }
  .field input:hover, .field select:hover { border-color: var(--muted); }
  .saved-toggle:hover { background: var(--ink); color: var(--bg); }
  .saved-toggle[aria-pressed="true"]:hover { background: var(--ink); border-color: var(--ink); }
  .row:hover { background: var(--surface); grid-template-columns: 104px 248px minmax(0, 1fr) 170px 84px 140px; }
  .row:hover .row-btn { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
  .host:hover { background: var(--bg); padding-left: 20px; }
  .link-btn:hover { color: var(--accent); }
  .shortlist .link-btn:hover { color: var(--cream-muted); }
  .sl-row:hover { background: rgba(23, 19, 15, 0.07); }
  .to-top:hover { color: var(--accent); }
  .d-close:hover { background: var(--ink); }
  .save-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
}

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes scroll { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title .line, .tile, .board.intro .row { animation: fade 300ms linear both; }
  .ticker-track { animation: none; }
  .row, .brand-mark, .tile img, .host { transition: none; }
  .row:hover { grid-template-columns: 104px 132px minmax(0, 1fr) 170px 84px 140px; }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .row, .row:hover { grid-template-columns: 96px 120px minmax(0, 1fr) 140px 120px; grid-template-areas: "date img main meta btn" "date img main price btn"; row-gap: 8px; }
  .row-date { grid-area: date; } .row-img { grid-area: img; } .row-main { grid-area: main; }
  .row-meta { grid-area: meta; } .row-price { grid-area: price; text-align: left; font-size: 36px; } .row-btn { grid-area: btn; }
  .hero { grid-template-columns: 1fr; }
  .mosaic { min-height: 520px; }
  .shortlist-grid { grid-template-columns: 1fr; }
}

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .site-head { min-height: 60px; }
  .site-nav a { padding: 0 8px; font-size: 12px; letter-spacing: 0.06em; }
  .brand-word { font-size: 24px; }
  .hero-title { font-size: clamp(64px, 21vw, 120px); }
  .mosaic { min-height: 0; grid-template-rows: 190px 130px 150px; }
  .num { font-size: 84px; }
  .controls { grid-template-columns: 1fr; padding: 16px; }
  .saved-toggle { justify-content: flex-start; }
  .row, .row:hover {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    grid-template-areas: "img img img" "date main main" "meta meta meta" "price price btn";
    row-gap: 14px; column-gap: 16px; padding: 20px 0;
  }
  .row-img { height: 168px; }
  .row-date .d { font-size: 56px; }
  .row-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }
  .row-price { font-size: 40px; }
  .host { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .host:hover { padding-left: 0; }
  .foot-row { grid-template-columns: 1fr; gap: 12px; }
  .detail { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; }
  .d-grid { grid-template-columns: 1fr; }
  .d-photo { min-height: 0; height: 220px; }
  .facts dd { font-size: 18px; }
  .d-main { padding: 24px 20px 40px; }
}
