:root {
  --paper: #f0eadf;
  --paper-deep: #e3dacb;
  --ink: #20241e;
  --muted: #64675f;
  --rule: #9e9c8f;
  --red: #bd2f20;
  --yellow: #f0b933;
  --dark: #1e2c27;
  --white: #fffdf7;
  --display: Georgia, "Times New Roman", serif;
  --sans: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2,.75,.25,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

body:has(dialog[open]) { overflow: hidden; }

a { color: inherit; }
button, input, select { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
}

.skip-link:focus { transform: none; }

.site-header {
  max-width: 1380px;
  margin: 0 auto;
  min-height: 88px;
  padding: 16px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--ink);
}

.wordmark, .footer-mark {
  width: max-content;
  font: 900 30px/1 var(--sans);
  letter-spacing: -.07em;
  text-decoration: none;
}

.wordmark span { color: var(--red); margin-left: 5px; }

.header-note {
  margin: 0;
  text-align: center;
  font: 700 10px/1.25 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.programme-link {
  justify-self: end;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-underline-offset: 5px;
}

.hero {
  position: relative;
  max-width: 1380px;
  margin: 0 auto;
  min-height: 520px;
  padding: 56px 28px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr);
  gap: clamp(40px, 5vw, 70px);
  align-items: center;
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  margin: 0 0 22px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.eyebrow span { color: var(--red); }

h1 {
  max-width: 780px;
  margin: 0;
  font: 400 clamp(62px, 6.5vw, 94px)/.84 var(--display);
  letter-spacing: -.065em;
}

h1 em, .big-note em {
  color: var(--red);
  font-weight: 400;
}

.hero-intro {
  max-width: 490px;
  margin: 32px 0 0 16%;
  font: 400 18px/1.55 var(--sans);
}

.hero-image-wrap {
  position: relative;
  margin: 0;
  align-self: stretch;
  min-height: 390px;
  padding: 0 0 27px 27px;
}

.hero-image-wrap::before {
  content: "";
  position: absolute;
  inset: 27px 27px 0 0;
  background: var(--yellow);
}

.hero-image-wrap img {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  filter: saturate(.82) contrast(1.06);
}

.hero-image-wrap figcaption {
  position: absolute;
  bottom: 5px;
  left: 39px;
  right: 13px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.seal {
  position: absolute;
  z-index: 3;
  left: calc(57% - 65px);
  top: 54px;
  width: 126px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  transform: rotate(8deg);
  box-shadow: inset 0 0 0 5px var(--red), inset 0 0 0 6px rgba(255,255,255,.7);
}

.seal span { font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.seal b { font: 400 44px/.85 var(--display); }

.programme {
  background: var(--dark);
  color: var(--white);
  padding: 72px max(28px, calc((100vw - 1324px) / 2)) 96px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}

.section-heading .eyebrow { color: #c8c9bf; margin-bottom: 12px; }

.section-heading h2 {
  margin: 0;
  font: 400 clamp(48px, 6vw, 82px)/.95 var(--display);
  letter-spacing: -.055em;
}

.result-count {
  margin: 0 0 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #c8c9bf;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  border-top: 1px solid #727a73;
  border-bottom: 1px solid #727a73;
  margin-bottom: 50px;
}

.search-field, .select-field {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 12px;
  align-content: center;
  padding: 13px 24px 11px 0;
}

.search-field { border-right: 1px solid #727a73; }
.select-field { padding-left: 24px; border-right: 1px solid #727a73; }
.search-field label, .select-field label {
  grid-column: 1 / -1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
  color: #aeb4ad;
  text-transform: uppercase;
}

.search-field span { align-self: center; font-size: 24px; color: var(--yellow); }

input, select {
  width: 100%;
  min-width: 0;
  align-self: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-size: 18px;
}

input::placeholder { color: #9ba29c; opacity: 1; }
select { appearance: auto; cursor: pointer; }
select option { color: var(--ink); background: var(--white); }
input:focus, select:focus { outline: 0; }
.search-field:focus-within, .select-field:focus-within {
  outline: 3px solid var(--yellow);
  outline-offset: -3px;
}

.saved-toggle {
  min-width: 205px;
  padding: 15px 0 15px 24px;
  border: 0;
  background: transparent;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.saved-toggle .heart { font: 26px/1 var(--sans); color: var(--yellow); }
.saved-toggle[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.saved-toggle[aria-pressed="true"] .heart::before { content: "♥"; }
.saved-toggle[aria-pressed="true"] .heart { font-size: 0; color: var(--red); }
.saved-toggle[aria-pressed="true"] .heart::before { font-size: 24px; }
.saved-count {
  margin-left: auto;
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 26px;
  row-gap: 54px;
}

.workshop-card { min-width: 0; }

.card-open {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.card-image {
  position: relative;
  aspect-ratio: 1.28;
  margin-bottom: 20px;
  overflow: hidden;
  background: #57615b;
}

.card-image::after {
  content: "View workshop ↗";
  position: absolute;
  inset: auto 0 0;
  padding: 12px 15px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: translateY(101%);
  transition: transform .25s var(--ease);
}

.card-open:hover .card-image::after,
.card-open:focus-visible .card-image::after { transform: none; }

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78) contrast(1.06);
  transition: transform .6s var(--ease), filter .3s ease;
}

.card-open:hover img { transform: scale(1.025); filter: saturate(1) contrast(1.03); }

.date-stamp {
  position: absolute;
  right: 13px;
  top: 13px;
  width: 58px;
  height: 67px;
  display: grid;
  align-content: center;
  justify-items: center;
  background: var(--red);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.6);
  outline: 4px solid var(--red);
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: rotate(2deg);
}

.date-stamp b { font: 400 31px/.9 var(--display); letter-spacing: -.05em; }

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #bfc2bb;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.card-topline .saved-status { color: var(--yellow); }

.workshop-card h3 {
  margin: 8px 0 10px;
  font: 400 clamp(31px, 3vw, 43px)/1 var(--display);
  letter-spacing: -.045em;
}

.card-description {
  max-width: 38ch;
  margin: 0 0 18px;
  color: #d0d2cc;
  font-size: 14px;
  line-height: 1.55;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 13px;
  border-top: 1px solid #657069;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.empty-state {
  min-height: 360px;
  padding: 70px 20px;
  text-align: center;
  border: 1px solid #657069;
}

.empty-state[hidden] { display: none; }
.empty-mark { display: block; color: var(--yellow); font: 400 72px/1 var(--display); }
.empty-state h3 { margin: 8px 0; font: 400 42px/1 var(--display); }
.empty-state p { color: #c8c9bf; }
.empty-state button {
  margin-top: 14px;
  padding: 13px 22px;
  border: 1px solid var(--yellow);
  background: transparent;
  color: var(--yellow);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.load-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 48px 20px;
  border: 1px solid #657069;
  color: #d0d2cc;
  text-align: center;
}

.studio-note {
  padding: 88px max(28px, calc((100vw - 1324px) / 2)) 92px;
  background: var(--yellow);
}

.big-note {
  margin: 0;
  max-width: 1000px;
  font: 400 clamp(48px, 6.8vw, 94px)/.93 var(--display);
  letter-spacing: -.055em;
}

.big-note em { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 9px; }

.note-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}

.note-grid p {
  margin: 0;
  min-height: 138px;
  padding: 18px 22px 0 0;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-content: start;
  border-right: 1px solid var(--ink);
}

.note-grid p + p { padding-left: 22px; }
.note-grid p:last-child { border-right: 0; }
.note-grid b { grid-row: span 2; font: 400 28px/1 var(--display); }
.note-grid span { font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.note-grid small { max-width: 29ch; margin-top: 9px; font-size: 13px; line-height: 1.45; }

footer {
  min-height: 200px;
  padding: 48px max(28px, calc((100vw - 1324px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  background: var(--red);
  color: var(--white);
}

.footer-mark { font-size: clamp(48px, 7vw, 90px); }
footer p { margin: 0; font: italic 20px var(--display); }
footer > a:last-child { justify-self: end; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.detail-dialog {
  width: min(1180px, calc(100vw - 64px));
  height: min(780px, calc(100vh - 64px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 90px rgba(0,0,0,.38);
  overflow: hidden;
}

.detail-dialog::backdrop { background: rgba(12, 18, 15, .78); backdrop-filter: blur(3px); }
.detail-dialog[open] { animation: dialog-in .35s var(--ease); }

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(18px) scale(.99); }
}

.detail {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: 52% 48%;
}

.close-detail {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.close-detail span { font-size: 21px; font-weight: 400; line-height: .6; }

.detail-visual { position: relative; min-height: 0; background: var(--dark); overflow: hidden; }
.detail-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.48)); pointer-events: none; }
.detail-visual img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.detail-index {
  position: absolute;
  z-index: 2;
  left: 26px;
  bottom: 4px;
  margin: 0;
  color: var(--white);
  font: 400 128px/.8 var(--display);
  letter-spacing: -.08em;
}
.detail-category {
  position: absolute;
  z-index: 2;
  top: 23px;
  left: 25px;
  margin: 0;
  padding: 7px 10px;
  background: var(--red);
  color: var(--white);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.detail-copy {
  min-width: 0;
  padding: 72px clamp(36px, 4vw, 62px) 42px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.detail-kicker { color: var(--red); margin-bottom: 15px; }
.detail-copy h2 { margin: 0; font: 400 clamp(50px, 5.2vw, 76px)/.9 var(--display); letter-spacing: -.06em; }
.detail-body { max-width: 44ch; margin: 26px 0 0; font-size: 17px; line-height: 1.6; }

.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: auto 0 28px;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.detail-facts div { min-height: 79px; padding: 12px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.detail-facts dt { font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.detail-facts dd { margin: 4px 0 0; font: 400 17px/1.2 var(--display); }

.save-item {
  width: 100%;
  min-height: 58px;
  border: 0;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.save-item:hover { background: var(--red); }
.save-item[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.save-icon { font-size: 24px; line-height: 1; }
.save-item[aria-pressed="true"] .save-icon { color: var(--red); }
.save-note { margin: 8px 0 0; text-align: center; font-size: 11px; color: var(--muted); }
.noscript { position: fixed; inset: auto 12px 12px; background: var(--red); color: white; padding: 12px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 34px; }
  .hero-image-wrap { min-height: 390px; }
  .seal { left: auto; right: 35px; top: 330px; width: 100px; }
  .workshop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .saved-toggle { grid-column: 1 / -1; padding: 14px 16px; border-top: 1px solid #727a73; }
  .detail-dialog { width: calc(100vw - 36px); }
  .detail { grid-template-columns: 45% 55%; }
  .detail-facts { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  footer { grid-template-columns: 1fr 1fr; }
  footer p { display: none; }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 66px;
    padding: 13px 20px;
    grid-template-columns: 1fr auto;
  }
  .wordmark { font-size: 25px; }
  .header-note { display: none; }
  .programme-link { font-size: 9px; }
  .hero {
    min-height: 0;
    padding: 38px 20px 48px;
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .hero .eyebrow { max-width: 270px; line-height: 1.5; }
  h1 { font-size: 47px; line-height: .9; }
  .hero-intro { margin: 24px 0 0 12%; max-width: 320px; font-size: 16px; }
  .hero-image-wrap { min-height: 295px; padding: 0 0 18px 18px; }
  .hero-image-wrap::before { inset: 18px 18px 0 0; }
  .hero-image-wrap img { min-height: 295px; }
  .hero-image-wrap figcaption { left: 26px; font-size: 8px; }
  .seal { left: auto; right: 12px; top: 340px; width: 88px; }
  .seal b { font-size: 31px; }

  .programme { padding: 54px 20px 68px; }
  .section-heading { align-items: start; flex-direction: column; gap: 13px; margin-bottom: 27px; }
  .section-heading h2 { font-size: 48px; }
  .result-count { margin: 0; }
  .filter-bar { grid-template-columns: 1fr; margin-bottom: 36px; }
  .search-field, .select-field { min-height: 69px; padding: 9px 5px 8px 0; }
  .search-field { border-right: 0; border-bottom: 1px solid #727a73; }
  .select-field { padding-left: 0; border-right: 0; }
  .saved-toggle { grid-column: auto; padding: 13px 0; }
  input, select { font-size: 16px; }
  .workshop-grid { grid-template-columns: 1fr; row-gap: 44px; }
  .card-image { aspect-ratio: 1.2; }
  .workshop-card h3 { font-size: 38px; }
  .card-description { font-size: 14px; max-width: 42ch; }
  .card-image::after { transform: none; width: max-content; }

  .studio-note { padding: 62px 20px 64px; }
  .big-note { font-size: 47px; }
  .note-grid { grid-template-columns: 1fr; margin-top: 48px; }
  .note-grid p, .note-grid p + p { min-height: 112px; padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--ink); }
  .note-grid p:last-child { border-bottom: 0; }
  footer { min-height: 170px; padding: 38px 20px; grid-template-columns: 1fr; gap: 32px; }
  .footer-mark { font-size: 54px; }
  footer > a:last-child { justify-self: start; }

  .detail-dialog {
    width: 100vw;
    height: 100dvh;
    margin: 0;
    max-width: none;
    max-height: none;
    overflow-y: auto;
  }
  .detail { height: auto; min-height: 100%; grid-template-columns: 1fr; }
  .detail-visual { height: 34vh; min-height: 255px; }
  .detail-index { font-size: 84px; }
  .close-detail { position: fixed; top: 12px; right: 12px; }
  .detail-copy { overflow: visible; padding: 37px 20px 34px; }
  .detail-copy h2 { font-size: 52px; }
  .detail-body { margin-top: 20px; font-size: 16px; }
  .detail-facts { margin: 34px 0 22px; grid-template-columns: repeat(2, 1fr); }
  .detail-facts div { min-height: 73px; }
}

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