:root {
  --paper: #f4f0e7;
  --ink: #19344b;
  --coral: #ef6a4c;
  --yellow: #f0c94e;
  --soft-blue: #b9d4d4;
  --line: rgba(25, 52, 75, 0.3);
  --sans: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body:has(dialog[open]) { overflow: hidden; }
button, input, select, a { font: inherit; touch-action: manipulation; -webkit-tap-highlight-color: rgba(239, 106, 76, 0.2); }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { scroll-margin-top: 7rem; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
  transition: transform 150ms ease;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }

.site-header {
  height: 86px;
  padding: 0 4.2vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  width: max-content;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}
.wordmark span { color: var(--coral); font-size: 0.45em; margin-left: 0.15rem; vertical-align: top; }
.header-note, .header-link { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.header-link { justify-self: end; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 0.2rem; }
.header-link:hover { color: var(--coral); }

.hero {
  min-height: 720px;
  padding: 4.8rem 4.2vw 5.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
}
.eyebrow { display: flex; align-items: center; gap: 0.75rem; font-size: 0.71rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow span { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--ink); border-radius: 50%; font-size: 0.65rem; letter-spacing: 0; }
.hero h1 { max-width: 760px; margin: 2.4rem 0 1.9rem; font-size: clamp(4.7rem, 7.2vw, 7.2rem); line-height: 0.83; letter-spacing: -0.068em; font-weight: 800; }
h1 em, h2 em { font-family: var(--serif); font-weight: 400; color: var(--coral); }
.hero-intro { max-width: 32rem; font-family: var(--serif); font-size: clamp(1.15rem, 1.55vw, 1.42rem); line-height: 1.48; text-wrap: pretty; }
.text-link { display: inline-flex; gap: 2.7rem; margin-top: 2rem; padding-bottom: 0.32rem; border-bottom: 1px solid; text-decoration: none; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.text-link span { transition: transform 180ms ease; }
.text-link:hover span { transform: translate(0.22rem, 0.22rem); }
.hero-visual { position: relative; justify-self: end; width: min(100%, 590px); }
.hero-visual::before { content: ""; position: absolute; z-index: -1; width: 42%; aspect-ratio: 1; right: -7%; top: -8%; border-radius: 50%; background: var(--yellow); }
.hero-visual img { width: 100%; height: min(530px, 42vw); object-fit: cover; filter: saturate(0.84); }
.hero-visual figcaption { position: absolute; right: -2.2rem; bottom: -2.2rem; width: 11.5rem; height: 11.5rem; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; background: var(--coral); color: #fff8ec; font-size: 1.05rem; font-weight: 800; line-height: 1.1; text-transform: uppercase; transform: rotate(2deg); }
.hero-visual figcaption span:last-child { align-self: flex-end; font-size: 2rem; }

.workshops { padding: 7rem 4.2vw 8rem; background: var(--ink); color: var(--paper); }
.section-heading { display: flex; justify-content: space-between; align-items: end; border-bottom: 1px solid rgba(244, 240, 231, 0.28); padding-bottom: 3.4rem; }
.section-heading .eyebrow span { border-color: currentColor; }
.section-heading h2 { margin-top: 2rem; font-size: clamp(4rem, 6vw, 6.3rem); line-height: 0.86; letter-spacing: -0.06em; }
.section-heading h2 em { color: var(--yellow); }
.section-note { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.45; text-align: right; }

.filter-bar { display: grid; grid-template-columns: minmax(270px, 1fr) minmax(190px, 0.42fr) auto; gap: 2rem; align-items: end; padding: 2.5rem 0; }
.filter-bar label { display: block; margin-bottom: 0.65rem; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.input-wrap { position: relative; }
.input-wrap svg { position: absolute; left: 0; top: 50%; width: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.6; transform: translateY(-50%); pointer-events: none; }
.filter-bar input, .filter-bar select {
  width: 100%;
  height: 3rem;
  border: 0;
  border-bottom: 1px solid rgba(244, 240, 231, 0.6);
  border-radius: 0;
  background-color: transparent;
  color: var(--paper);
  font-size: 1rem;
}
.filter-bar input { padding: 0 0.5rem 0 1.8rem; }
.filter-bar input::placeholder { color: rgba(244, 240, 231, 0.55); }
.filter-bar input::-webkit-search-cancel-button { filter: invert(1); }
.filter-bar select { padding: 0 2rem 0 0; cursor: pointer; }
.filter-bar select option { background: var(--ink); color: var(--paper); }
.input-wrap:focus-within svg { color: var(--yellow); }
.saved-filter { min-width: 8.5rem; height: 3rem; padding: 0 1rem; display: flex; gap: 0.55rem; align-items: center; justify-content: center; border: 1px solid rgba(244, 240, 231, 0.6); border-radius: 0; background: transparent; color: var(--paper); cursor: pointer; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease; }
.saved-filter svg { width: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.saved-filter:hover, .saved-filter[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.saved-count { min-width: 1.3rem; height: 1.3rem; padding: 0 0.25rem; display: grid; place-items: center; border-radius: 2rem; background: rgba(244, 240, 231, 0.16); font-variant-numeric: tabular-nums; }
.saved-filter[aria-pressed="true"] .saved-count { background: rgba(25, 52, 75, 0.14); }
.results-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; color: rgba(244, 240, 231, 0.7); font-size: 0.67rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.results-meta span { height: 1px; flex: 1; background: rgba(244, 240, 231, 0.18); }

.workshop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: 4.5rem; }
.workshop-card { min-width: 0; }
.card-image { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #c5c0b5; }
.card-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.82); transition: transform 500ms cubic-bezier(.2,.75,.25,1), filter 300ms ease; }
.card-index { position: absolute; left: 0.8rem; top: 0.8rem; min-width: 2.25rem; height: 2.25rem; display: grid; place-items: center; padding: 0 0.35rem; background: var(--paper); color: var(--ink); border-radius: 50%; font-size: 0.68rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.card-saved { position: absolute; right: 0.8rem; top: 0.8rem; width: 2.25rem; height: 2.25rem; display: none; place-items: center; background: var(--coral); color: white; border-radius: 50%; }
.card-saved svg { width: 1rem; fill: currentColor; stroke: currentColor; }
.workshop-card.is-saved .card-saved { display: grid; }
.card-copy { padding-top: 1.2rem; }
.card-topline { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.card-topline span:first-child { color: var(--yellow); }
.card-copy h3 { margin: 1rem 0 0.8rem; font-family: var(--serif); font-size: clamp(1.75rem, 2.3vw, 2.3rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1; }
.card-description { min-height: 3.2em; max-width: 95%; color: rgba(244, 240, 231, 0.7); font-family: var(--serif); font-size: 0.96rem; line-height: 1.55; text-wrap: pretty; }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(244, 240, 231, 0.2); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.card-meta strong { font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.card-open { width: 100%; margin-top: 0.85rem; padding: 0.85rem 0; display: flex; justify-content: space-between; border: 0; border-bottom: 1px solid rgba(244, 240, 231, 0.3); background: transparent; color: var(--paper); text-align: left; cursor: pointer; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; transition: color 180ms ease, border-color 180ms ease; }
.card-open span:last-child { font-size: 1rem; transition: transform 180ms ease; }
.card-open:hover { color: var(--yellow); border-color: var(--yellow); }
.card-open:hover span:last-child { transform: translate(0.18rem, -0.18rem); }
.workshop-card:has(.card-open:hover) .card-image img { transform: scale(1.035); filter: saturate(1); }
.workshop-card:has(.card-open:hover) h3 { color: var(--yellow); }

.empty-state { padding: 5rem 1rem; text-align: center; border: 1px solid rgba(244, 240, 231, 0.25); }
.empty-state > span { color: var(--yellow); font-size: 2rem; }
.empty-state h3 { margin: 1rem 0 0.6rem; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.empty-state p { color: rgba(244, 240, 231, 0.7); }
.empty-state button { margin-top: 1.5rem; padding: 0.8rem 1rem; border: 1px solid currentColor; background: transparent; color: var(--paper); cursor: pointer; font-weight: 800; text-transform: uppercase; }
.empty-state button:hover { background: var(--paper); color: var(--ink); }

.manifesto { min-height: 410px; padding: 7rem 4.2vw; display: grid; align-content: center; justify-items: center; position: relative; overflow: hidden; text-align: center; background: var(--yellow); color: var(--ink); }
.manifesto::before, .manifesto::after { content: ""; position: absolute; width: 16rem; height: 16rem; border: 1px solid rgba(25, 52, 75, 0.3); border-radius: 50%; }
.manifesto::before { left: -5rem; top: -5rem; }
.manifesto::after { right: -5rem; bottom: -5rem; }
.manifesto p { font-size: clamp(3rem, 6vw, 6rem); line-height: 0.98; letter-spacing: -0.06em; font-weight: 800; }
.manifesto p:nth-child(2) { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--coral); }
.manifesto span { margin-top: 2rem; font-size: 1.5rem; }

footer { min-height: 160px; padding: 2.5rem 4.2vw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; background: var(--paper); }
footer p { font-size: 0.67rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
footer p:last-child { justify-self: end; }

.detail-dialog { width: min(1160px, calc(100vw - 5rem)); max-width: none; height: min(780px, calc(100dvh - 4rem)); max-height: none; padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow: hidden; }
.detail-dialog::backdrop { background: rgba(10, 27, 40, 0.78); backdrop-filter: blur(5px); }
.detail-shell { position: relative; height: 100%; display: grid; grid-template-columns: 0.94fr 1.06fr; }
.close-detail { position: absolute; z-index: 2; right: 1.4rem; top: 1.4rem; height: 2.7rem; padding: 0 0.9rem; display: flex; gap: 0.6rem; align-items: center; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.close-detail:hover { background: var(--ink); color: var(--paper); }
.close-detail svg { width: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.detail-image-wrap { position: relative; min-height: 0; background: #c5c0b5; }
.detail-image-wrap img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.83); }
.detail-image-wrap > p { position: absolute; left: 1.5rem; bottom: 1.5rem; padding: 0.65rem 0.85rem; background: var(--yellow); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.detail-content { padding: clamp(4.5rem, 7vh, 6.4rem) clamp(2.5rem, 4.5vw, 5rem) 3rem; overflow-y: auto; overscroll-behavior: contain; }
.detail-kicker { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); }
.detail-content h2 { margin: 1.2rem 0 1.1rem; max-width: 540px; font-family: var(--serif); font-size: clamp(3rem, 5vw, 5.1rem); line-height: 0.88; font-weight: 400; letter-spacing: -0.06em; }
.detail-body { max-width: 31rem; font-family: var(--serif); font-size: 1.1rem; line-height: 1.5; text-wrap: pretty; }
.detail-facts { margin: 2.3rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, 1fr); }
.detail-facts div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.detail-facts div:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 1rem; }
.detail-facts div:nth-child(even) { padding-left: 1rem; }
.detail-facts dt { margin-bottom: 0.4rem; color: rgba(25, 52, 75, 0.6); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.detail-facts dd { font-family: var(--serif); font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.save-item { width: 100%; min-height: 3.5rem; padding: 0.8rem 1.2rem; display: flex; gap: 0.8rem; align-items: center; justify-content: center; border: 0; background: var(--coral); color: white; cursor: pointer; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; transition: background-color 180ms ease, color 180ms ease; }
.save-item:hover { background: var(--ink); }
.save-item[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.save-item svg { width: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.7; }
.save-item[aria-pressed="true"] svg { fill: currentColor; }
.save-note { margin-top: 0.65rem; color: rgba(25, 52, 75, 0.62); text-align: center; font-family: var(--serif); font-size: 0.83rem; font-style: italic; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr 0.85fr; gap: 3rem; }
  .hero h1 { font-size: clamp(4.3rem, 9vw, 5.8rem); }
  .workshop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar { grid-template-columns: 1fr 0.65fr; }
  .saved-filter { grid-column: 1 / -1; justify-self: end; }
  .detail-dialog { width: calc(100vw - 2rem); }
  .detail-content { padding-left: 2rem; padding-right: 2rem; }
}

@media (max-width: 640px) {
  .site-header { height: 68px; padding: 0 1.15rem; grid-template-columns: 1fr auto; }
  .header-note { display: none; }
  .header-link { font-size: 0.63rem; }
  .hero { min-height: 0; padding: 3rem 1.15rem 4rem; display: flex; flex-direction: column; gap: 3.4rem; align-items: stretch; }
  .hero h1 { margin-top: 2rem; font-size: clamp(4.15rem, 19vw, 5.25rem); line-height: 0.84; }
  .hero-intro { font-size: 1.08rem; }
  .hero-visual { width: calc(100% - 1.2rem); align-self: flex-start; }
  .hero-visual img { height: 114vw; max-height: 460px; }
  .hero-visual figcaption { width: 8.7rem; height: 8.7rem; right: -1.2rem; bottom: -1.6rem; padding: 1rem; font-size: 0.8rem; }
  .hero-visual::before { right: -10%; top: -5%; }
  .workshops { padding: 5rem 1.15rem; }
  .section-heading { align-items: start; padding-bottom: 2.6rem; }
  .section-heading h2 { font-size: 3.65rem; }
  .section-note { display: none; }
  .filter-bar { grid-template-columns: 1fr; gap: 1.4rem; padding: 2rem 0; }
  .saved-filter { width: 100%; grid-column: auto; justify-self: stretch; }
  .workshop-grid { grid-template-columns: 1fr; row-gap: 3.7rem; }
  .card-image { aspect-ratio: 1.08; }
  .card-copy h3 { font-size: 2rem; }
  .card-description { min-height: 0; }
  .manifesto { min-height: 330px; padding: 5rem 1.15rem; }
  footer { min-height: 190px; padding: 2rem 1.15rem; grid-template-columns: 1fr 1fr; gap: 2rem; }
  footer p:nth-child(2) { display: none; }
  footer p:last-child { text-align: right; }
  .detail-dialog { width: 100%; height: 100dvh; margin: 0; }
  .detail-shell { display: block; overflow-y: auto; overscroll-behavior: contain; }
  .close-detail { position: fixed; right: 0.8rem; top: max(0.8rem, env(safe-area-inset-top)); }
  .detail-image-wrap { height: min(62vh, 480px); }
  .detail-content { padding: 2.7rem 1.15rem calc(2rem + env(safe-area-inset-bottom)); overflow: visible; }
  .detail-content h2 { font-size: 3.5rem; }
  .detail-facts { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
