/* ============================================================
   Forma — a workshop programme set like a printed catalogue
   Type: Fraunces (display) / Instrument Sans (UI) / Space Mono (data)
   ============================================================ */

:root {
  --paper: #f4eee3;
  --paper-2: #fbf7ee;
  --paper-3: #e9dfce;
  --ink: #1a1814;
  --ink-2: #50493e;
  --ink-3: #746b5d;
  --rule: rgba(26, 24, 20, 0.2);
  --rule-soft: rgba(26, 24, 20, 0.12);
  --rust: #b23a20;
  --rust-deep: #8e2c17;
  --rust-light: #e58b72;
  --blue: #6f8f96;
  --gold: #c28a1c;
  --rose: #a94b52;
  --green: #5b6b4a;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1240px;
  --gutter: clamp(20px, 3.2vw, 36px);
  --radius: 2px;
  --focus: 2px solid var(--rust);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

html.detail-open,
html.detail-open body {
  overflow: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: currentColor;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--rust);
  color: var(--paper-2);
}

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper-2);
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

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

/* ---------- Shared small type ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.icon-star {
  width: 11px;
  height: 11px;
  flex: none;
  fill: var(--rust);
}

.eyebrow-light {
  color: rgba(251, 247, 238, 0.7);
}

.eyebrow-light .icon-star {
  fill: var(--rust-light);
}

.slash {
  color: var(--rust);
}

.control-label {
  display: block;
  margin: 0 0 7px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.wordmark {
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.wordmark-mark {
  width: 12px;
  height: 12px;
  margin-top: 2px;
  fill: var(--rust);
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.wordmark:hover .wordmark-mark {
  transform: rotate(90deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
}

.nav-link {
  padding: 6px 0;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.nav-link:hover {
  color: var(--rust);
  border-bottom-color: var(--rust);
}

.shortlist-jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.shortlist-jump:hover {
  background: var(--ink);
  color: var(--paper-2);
}

.shortlist-jump .count {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--rust);
  color: var(--paper-2);
  font-size: 9px;
  letter-spacing: 0;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(36px, 5vw, 76px);
  padding-top: clamp(44px, 5.2vw, 76px);
  padding-bottom: clamp(48px, 5vw, 76px);
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  margin: 24px 0 26px;
  font-family: var(--display);
  font-size: clamp(44px, 5.7vw, 82px);
  font-weight: 430;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1 .line {
  display: block;
}

.hero h1 em {
  color: var(--rust);
  font-weight: 430;
  font-style: italic;
  letter-spacing: -0.03em;
}

.hero-lede {
  max-width: 46ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button .icon-arrow {
  width: 15px;
  height: 15px;
  transition: transform 180ms ease;
}

.button:hover .icon-arrow {
  transform: translate(2px, -2px);
}

.button-primary {
  border-color: var(--rust);
  background: var(--rust);
  color: var(--paper-2);
}

.button-primary:hover {
  border-color: var(--rust-deep);
  background: var(--rust-deep);
}

.text-link {
  padding: 6px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 180ms ease;
}

.text-link:hover {
  color: var(--rust);
}

.hero-facts {
  display: flex;
  align-items: stretch;
  max-width: 480px;
  margin: 40px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.hero-facts > div {
  flex: 1;
  padding: 0 20px;
  border-left: 1px solid var(--rule);
}

.hero-facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-facts dt {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 3px 0 0;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 450;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-plate {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 510px;
  justify-self: end;
}

.plate-frame {
  padding: 8px 8px 0;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  box-shadow: 0 30px 60px -36px rgba(26, 24, 20, 0.45);
  transform: rotate(-0.6deg);
}

.plate-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 42% 50%;
}

.plate-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px 11px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.45;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.stamp {
  position: absolute;
  right: -14px;
  bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 92px;
  height: 92px;
  border: 1.5px solid var(--rust);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--rust);
  font-family: var(--mono);
  font-size: 7.5px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(8deg);
  box-shadow: 0 8px 24px -12px rgba(26, 24, 20, 0.4);
}

.stamp .icon-star {
  width: 18px;
  height: 18px;
  fill: var(--rust);
}

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-3);
  color: var(--ink-2);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  height: 44px;
  padding-left: var(--gutter);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-star {
  color: var(--rust);
  font-size: 11px;
}

/* ---------- Programme ---------- */

.programme {
  padding-top: clamp(56px, 6vw, 84px);
  padding-bottom: clamp(64px, 7vw, 100px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: clamp(28px, 5vw, 76px);
  margin-bottom: clamp(36px, 4.5vw, 60px);
}

.section-head h2 {
  margin: 18px 0 0;
  font-family: var(--display);
  font-size: clamp(44px, 5.4vw, 74px);
  font-weight: 430;
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-head h2 em {
  color: var(--rust);
  font-style: italic;
}

.section-lede {
  max-width: 42ch;
  margin: 0 0 4px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.58;
}

/* Controls */

.controls {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 218px auto;
  align-items: end;
  gap: 16px;
  padding: 16px 0 17px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.control {
  min-width: 0;
}

.control-search label {
  cursor: pointer;
}

.search-field {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 17px;
  height: 17px;
  color: var(--ink-3);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 40px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-2);
  font-size: 15px;
  line-height: 1.2;
  transition: border-color 180ms ease, background 180ms ease;
}

.search-field input::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

.search-field input:hover {
  border-color: rgba(26, 24, 20, 0.4);
}

.search-field input:focus {
  border-color: var(--rust);
  outline: none;
  box-shadow: inset 0 0 0 1px var(--rust);
}

.search-field input:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

/* Hide the native search clear control, we provide our own. */
.search-field input::-webkit-search-decoration,
.search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.clear-search {
  position: absolute;
  right: 8px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  transform: translateY(-50%);
}

.clear-search svg {
  width: 13px;
  height: 13px;
}

.clear-search:hover {
  background: var(--paper-3);
  color: var(--rust);
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  width: 100%;
  height: 46px;
  padding: 0 36px 0 13px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-2);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 180ms ease;
}

.select-wrap select:hover {
  border-color: rgba(26, 24, 20, 0.4);
}

.select-wrap select:focus {
  border-color: var(--rust);
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

.select-chevron {
  position: absolute;
  right: 13px;
  top: 50%;
  width: 12px;
  height: 12px;
  color: var(--ink-2);
  transform: translateY(-50%);
  pointer-events: none;
}

.control-saved {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.control-saved .control-label {
  cursor: default;
}

.saved-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.saved-toggle .icon-star {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.saved-toggle:hover {
  background: var(--paper-3);
}

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

.saved-toggle-count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--rust);
  color: var(--paper-2);
  font-size: 9px;
  letter-spacing: 0;
}

.saved-toggle[aria-pressed="true"] .saved-toggle-count {
  background: var(--rust-light);
  color: var(--ink);
}

/* Results */

.results-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 15px 0 0;
}

.result-count,
.results-note {
  margin: 0;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-count {
  color: var(--ink);
}

/* ---------- Workshop rows ---------- */

.workshop-list {
  border-bottom: 1px solid var(--rule);
}

.workshop {
  display: grid;
  grid-template-columns: 54px minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(22px, 3.2vw, 48px);
  padding: clamp(30px, 3.4vw, 46px) 0;
  border-top: 1px solid var(--rule);
}

.workshop:first-child {
  grid-template-columns: 54px minmax(0, 0.98fr) minmax(0, 1.02fr);
  padding-top: clamp(32px, 3.8vw, 52px);
  padding-bottom: clamp(34px, 4vw, 56px);
}

.workshop-rail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding-top: 5px;
}

.plate-no {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 380;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.plate-label {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workshop-media {
  margin: 0;
  min-width: 0;
}

.workshop-media .frame {
  overflow: hidden;
  padding: 7px;
  border: 1px solid var(--rule);
  background: var(--paper-2);
}

.workshop-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
  transition: transform 700ms cubic-bezier(0.2, 0.65, 0.2, 1);
}

.workshop:hover .workshop-media img {
  transform: scale(1.028);
}

.workshop-media figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.45;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.workshop-body {
  min-width: 0;
  padding-top: 2px;
}

.item-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 10px;
  margin: 0;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.category-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
}

.category-dot[data-category="Baking"] {
  background: var(--gold);
}

.category-dot[data-category="Ceramics"] {
  background: var(--blue);
}

.category-dot[data-category="Floristry"] {
  background: var(--green);
}

.category-dot[data-category="Painting"] {
  background: var(--rose);
}

.kicker-divider {
  color: var(--rule);
}

.item-kicker .saved-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--rust);
  font-weight: 700;
}

.item-kicker .saved-badge .icon-star {
  width: 8px;
  height: 8px;
}

.workshop-title {
  margin: 11px 0 13px;
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 440;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.workshop:first-child .workshop-title {
  font-size: clamp(34px, 3.65vw, 55px);
}

.workshop-title button {
  all: unset;
  display: inline;
  cursor: pointer;
  color: inherit;
  border-radius: 1px;
  transition: color 180ms ease;
}

.workshop-title button:hover {
  color: var(--rust);
}

.workshop-title button:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 5px;
}

.workshop-title .icon-arrow {
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.18em;
  color: var(--rust);
  vertical-align: 0.12em;
  transition: transform 180ms ease;
}

.workshop-title button:hover .icon-arrow {
  transform: translate(3px, -3px);
}

.workshop-desc {
  max-width: 50ch;
  margin: 0 0 20px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.58;
}

.item-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.item-facts > div {
  min-width: 0;
  padding: 9px 12px 10px;
  border-left: 1px solid var(--rule);
}

.item-facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.item-facts dt {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.item-facts dd {
  margin: 3px 0 0;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.35;
  white-space: nowrap;
}

.item-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 14px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.item-footer strong {
  color: var(--ink-2);
  font-weight: 400;
}

/* ---------- Empty state ---------- */

.empty-state {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
  margin: 28px 0 0;
  padding: clamp(28px, 4vw, 46px);
  border: 1px dashed var(--rust);
  background: var(--paper-2);
}

.empty-star {
  width: 58px;
  height: 58px;
  margin-top: 4px;
  fill: var(--rust);
}

.empty-state h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 440;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.empty-state p {
  max-width: 52ch;
  margin: 0 0 20px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Studio band ---------- */

.studio-band {
  position: relative;
  overflow: hidden;
  margin-top: clamp(24px, 3vw, 40px);
  padding: clamp(64px, 7.5vw, 100px) 0;
  background: var(--ink);
  color: var(--paper-2);
}

.studio-star {
  position: absolute;
  right: -80px;
  top: -100px;
  width: 380px;
  height: 380px;
  fill: var(--paper-2);
  opacity: 0.055;
  pointer-events: none;
}

.studio-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.studio-statement h2 {
  max-width: 19ch;
  margin: 22px 0 0;
  font-family: var(--display);
  font-size: clamp(34px, 4.1vw, 59px);
  font-weight: 380;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.studio-statement h2 em {
  color: var(--rust-light);
  font-style: italic;
}

.studio-details {
  display: grid;
  gap: 30px;
  padding-top: 4px;
}

.house-rules {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(251, 247, 238, 0.28);
}

.house-rules li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(251, 247, 238, 0.28);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.house-rules li span:first-child {
  color: rgba(251, 247, 238, 0.62);
}

.house-rules li span:last-child {
  text-align: right;
}

.studio-address .control-label {
  color: rgba(251, 247, 238, 0.55);
}

.studio-address p:last-child {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.studio-band :focus-visible {
  outline-color: var(--paper-2);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(40px, 5vw, 64px) 0 26px;
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
}

.footer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: clamp(28px, 4vw, 46px);
}

.footer-brand {
  min-width: 0;
}

.footer-wordmark {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-family: var(--display);
  font-size: clamp(72px, 10vw, 132px);
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.footer-mark {
  width: 0.17em;
  height: 0.17em;
  margin-top: 0.08em;
  fill: var(--rust);
}

.footer-tagline {
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 4px;
}

.footer-links a,
.footer-links button {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--rust);
  border-bottom-color: var(--rust);
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.footer-bottom p {
  margin: 0;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.footer-bottom p:first-child {
  max-width: 72ch;
}

.footer-copyright {
  white-space: nowrap;
}

.site-footer :focus-visible {
  outline-color: var(--rust);
}

/* ---------- Detail dialog ---------- */

.detail-dialog {
  width: min(1080px, calc(100vw - 48px));
  max-width: none;
  max-height: min(900px, calc(100vh - 48px));
  max-height: min(900px, calc(100dvh - 48px));
  margin: auto;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 40px 100px -20px rgba(10, 9, 7, 0.5);
}

.detail-dialog::backdrop {
  background: rgba(22, 20, 17, 0.6);
  backdrop-filter: blur(2px);
}

.detail-dialog[open] {
  animation: dialog-in 280ms cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

.detail-dialog[open]::backdrop {
  animation: backdrop-in 220ms ease both;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.detail-topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px clamp(16px, 2.4vw, 28px);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.detail-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-label .icon-star {
  width: 9px;
  height: 9px;
}

.close-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.close-detail:hover {
  background: var(--ink);
  color: var(--paper-2);
}

.close-detail svg {
  width: 12px;
  height: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(26px, 4vw, 54px);
  padding: clamp(22px, 3.4vw, 42px);
}

.detail-media {
  margin: 0;
  align-self: start;
}

.detail-media .frame {
  padding: 8px;
  border: 1px solid var(--rule);
  background: var(--paper-2);
}

.detail-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.detail-media figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 9px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-copy {
  min-width: 0;
  padding-top: 4px;
}

.detail-copy h2 {
  margin: 14px 0 16px;
  font-family: var(--display);
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 430;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.detail-body {
  max-width: 45ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 26px 0 24px;
  border-top: 1px solid var(--rule);
}

.detail-facts > div {
  padding: 10px 0 11px;
  border-bottom: 1px solid var(--rule);
}

.detail-facts dt {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-facts dd {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.4;
}

.save-ticket {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  border: 1px dashed var(--rust);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--rust);
  text-align: left;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.save-ticket::before,
.save-ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 1px solid var(--rust);
  border-radius: 50%;
  background: var(--paper);
  transform: translateY(-50%);
  transition: background 180ms ease, border-color 180ms ease;
}

.save-ticket::before {
  left: -9px;
}

.save-ticket::after {
  right: -9px;
}

.save-ticket:hover {
  background: #f6e8dc;
}

.save-ticket .icon-star {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
  transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.save-ticket:hover .icon-star {
  transform: rotate(60deg);
}

.save-ticket-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.save-ticket-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.save-ticket-hint {
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.35;
}

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

.save-ticket[aria-pressed="true"]::before,
.save-ticket[aria-pressed="true"]::after {
  border-color: var(--ink);
}

.save-ticket[aria-pressed="true"] .save-ticket-hint {
  color: rgba(251, 247, 238, 0.68);
}

.save-ticket[aria-pressed="true"]:hover {
  background: #2a2721;
}

.save-note {
  min-height: 1.5em;
  margin: 9px 0 0;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.detail-practical {
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.detail-practical li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
}

.detail-practical li + li {
  margin-top: 5px;
}

.detail-practical li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--rust);
  border-radius: 50%;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .workshop {
    grid-template-columns: 48px minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: clamp(20px, 2.8vw, 34px);
  }

  .workshop:first-child {
    grid-template-columns: 48px minmax(0, 0.96fr) minmax(0, 1.04fr);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    padding-top: 42px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero h1 {
    font-size: clamp(48px, 8.4vw, 76px);
  }

  .hero-plate {
    justify-self: start;
    max-width: 590px;
  }

  .plate-frame img {
    aspect-ratio: 5 / 4;
    object-position: 42% 50%;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .section-lede {
    max-width: 58ch;
    padding-top: 14px;
  }

  .controls {
    position: static;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 14px;
  }

  .control-search {
    grid-column: 1 / -1;
  }

  .control-saved {
    grid-column: 2;
    grid-row: 2;
  }

  .control-filter {
    grid-column: 1;
    grid-row: 2;
  }

  .studio-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .studio-statement h2 {
    max-width: 24ch;
  }

  .studio-details {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
  }

  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .detail-media img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 820px) {
  .workshop,
  .workshop:first-child {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    grid-template-areas:
      "rail rail"
      "media body";
    gap: 16px 26px;
    padding: 30px 0 34px;
  }

  .workshop-rail {
    grid-area: rail;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    padding-top: 0;
  }

  .workshop-media {
    grid-area: media;
  }

  .workshop-body {
    grid-area: body;
  }

  .plate-no {
    font-size: 30px;
  }

  .workshop-title,
  .workshop:first-child .workshop-title {
    font-size: clamp(27px, 3.7vw, 36px);
  }

  .item-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .item-facts > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .item-facts > div:nth-child(4) {
    border-top: 1px solid var(--rule);
  }

  .item-facts dd {
    white-space: normal;
  }

  .workshop-desc {
    font-size: 15px;
  }

  .detail-dialog {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
}

@media (max-width: 700px) {
  .header-inner {
    min-height: 66px;
  }

  .wordmark {
    font-size: 28px;
  }

  .nav-link-studio {
    display: none;
  }

  .site-nav {
    gap: 16px;
  }

  .nav-link {
    font-size: 13px;
  }

  .shortlist-jump {
    padding: 8px 9px;
  }

  .hero {
    gap: 34px;
    padding-bottom: 54px;
  }

  .hero h1 {
    margin: 20px 0 20px;
    font-size: clamp(40px, 11.2vw, 52px);
  }

  .hero-lede {
    font-size: 16.5px;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .button {
    min-height: 46px;
    padding: 12px 17px;
    font-size: 13.5px;
  }

  .hero-facts {
    margin-top: 32px;
  }

  .hero-facts > div {
    padding: 0 14px;
  }

  .hero-facts dd {
    font-size: 22px;
  }

  .stamp {
    right: 8px;
    bottom: 46px;
    width: 78px;
    height: 78px;
    font-size: 6.5px;
  }

  .stamp .icon-star {
    width: 15px;
    height: 15px;
  }

  .plate-frame {
    transform: none;
  }

  .search-field input,
  .select-wrap select {
    font-size: 16px;
  }

  .plate-caption {
    font-size: 8.5px;
  }

  .section-head h2 {
    font-size: clamp(40px, 12vw, 58px);
  }

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

  .control-search,
  .control-filter,
  .control-saved {
    grid-column: 1;
    grid-row: auto;
  }

  .control-saved {
    margin-top: 2px;
  }

  .saved-toggle {
    justify-content: flex-start;
    width: 100%;
    padding-left: 13px;
  }

  .results-bar {
    padding-top: 13px;
  }

  .workshop,
  .workshop:first-child {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "rail"
      "media"
      "body";
    gap: 14px;
  }

  .workshop-title,
  .workshop:first-child .workshop-title {
    font-size: clamp(31px, 9vw, 40px);
    margin-top: 10px;
  }

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

  .empty-star {
    width: 40px;
    height: 40px;
  }

  .studio-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }

  .footer-wordmark {
    font-size: clamp(66px, 19vw, 100px);
  }

  .detail-topbar {
    padding: 10px 16px;
  }

  .detail-grid {
    padding: 18px 16px 28px;
    gap: 24px;
  }

  .detail-copy h2 {
    font-size: clamp(35px, 10vw, 46px);
  }

  .detail-body {
    font-size: 16px;
  }

  .detail-facts {
    margin-top: 22px;
  }
}

@media (max-width: 430px) {
  .nav-link {
    display: none;
  }

  .hero h1 {
    font-size: clamp(41px, 11.8vw, 54px);
  }

  .hero-facts > div {
    padding: 0 11px;
  }

  .hero-facts dd {
    font-size: 20px;
  }

  .plate-frame {
    padding: 6px 6px 0;
  }

  .stamp {
    right: 4px;
    bottom: 42px;
    width: 70px;
    height: 70px;
  }

  .detail-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .save-ticket {
    padding: 15px 16px;
  }
}

@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;
    scroll-behavior: auto !important;
  }
}
