:root {
  color-scheme: light;
  --paper: #f4f5f2;
  --surface: #ffffff;
  --ink: #19211d;
  --muted: #53615a;
  --line: #cbd2cc;
  --accent: #247a51;
  --accent-dark: #17613d;
  --font: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shell { width: min(100% - 80px, 1360px); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark { font-size: 32px; font-weight: 800; letter-spacing: -.085em; line-height: 1; text-decoration: none; }
.wordmark span, .accent-period { color: var(--accent); }
.header-inner nav { display: flex; gap: 38px; margin-left: auto; }
.header-inner nav a, .header-link { text-decoration: none; font-size: 14px; font-weight: 650; }
.header-inner nav a:hover, .header-link:hover { color: var(--accent-dark); }
.header-link { border-bottom: 1px solid currentColor; padding-bottom: 5px; margin-left: 42px; white-space: nowrap; }
.header-link span { margin-left: 15px; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); min-height: 540px; border-bottom: 1px solid var(--line); }
.hero-copy { align-self: center; padding: 54px 70px 62px 0; }
.eyebrow { margin: 0 0 25px; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-dark); }
.hero h1 { font-size: clamp(52px, 5.2vw, 78px); line-height: 1.02; letter-spacing: -.068em; font-weight: 750; max-width: 650px; margin: 0; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-intro { max-width: 440px; font-size: 18px; line-height: 1.5; margin: 27px 0 32px; color: var(--muted); }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; padding: 0 19px; border: 1px solid var(--accent-dark); text-decoration: none; font-size: 14px; font-weight: 750; white-space: nowrap; transition: background .18s, color .18s, transform .18s; }
.button-primary { color: #fff; background: var(--accent-dark); }
.button-primary:hover { background: var(--ink); border-color: var(--ink); }
.button:active, .saved-filter:active, .open-item:active { transform: translateY(1px); }
.hero-media { min-height: 540px; overflow: hidden; }
.hero-media img { height: 100%; object-fit: cover; object-position: center 55%; }

.browse { padding-top: 76px; padding-bottom: 110px; scroll-margin-top: 30px; }
.browse-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.browse h2 { font-size: clamp(35px, 3.4vw, 50px); line-height: 1.12; letter-spacing: -.055em; margin: 0 0 9px; }
.browse-heading p { margin: 0; color: var(--muted); font-size: 16px; }
.browse-heading .result-count { font-size: 13px; font-weight: 700; white-space: nowrap; padding-bottom: 7px; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; align-items: end; gap: 12px; margin-bottom: 32px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; font-weight: 750; color: var(--ink); }
.field input, .field select, .saved-filter { width: 100%; min-height: 50px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 0; }
.field input { padding: 0 16px; }
.field input::placeholder { color: #65746b; opacity: 1; }
.field select { padding: 0 13px; }
.saved-filter { min-width: 142px; padding: 0 15px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; transition: background .18s, border-color .18s, transform .18s; }
.saved-filter:hover { border-color: var(--accent); }
.saved-filter[aria-pressed="true"] { color: #fff; background: var(--accent-dark); border-color: var(--accent-dark); }
.saved-icon { font-size: 24px; line-height: 0; transform: translateY(-1px); }
.saved-filter[aria-pressed="true"] .saved-icon { color: #fff; }

.workshop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px 24px; }
.workshop { min-width: 0; }
.workshop-photo { width: 100%; aspect-ratio: 1.42; object-fit: cover; background: #d9e0da; }
.workshop-info { padding-top: 17px; }
.workshop-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--accent-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .075em; }
.workshop-meta time { color: var(--muted); white-space: nowrap; }
.workshop h3 { font-size: 27px; line-height: 1.15; letter-spacing: -.045em; margin: 11px 0 8px; }
.workshop-description { margin: 0; min-height: 50px; color: var(--muted); line-height: 1.47; font-size: 14px; }
.workshop-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 15px; margin-top: 18px; }
.workshop-price { font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.open-item { color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 4px 0; font-size: 13px; font-weight: 750; transition: color .18s, transform .18s; }
.open-item:hover { color: var(--accent-dark); border-color: currentColor; }
.status { padding: 36px; border: 1px solid var(--line); color: var(--muted); }
.status button { margin-left: 10px; border: 0; background: transparent; text-decoration: underline; color: var(--accent-dark); font-weight: 700; }
.empty-state { text-align: center; padding: 68px 24px 76px; border: 1px solid var(--line); }
.empty-symbol { font-size: 48px; color: var(--accent); }
.empty-state h3 { font-size: 30px; letter-spacing: -.04em; margin: 12px 0; }
.empty-state p { color: var(--muted); margin: 0 auto 24px; max-width: 320px; line-height: 1.5; }

.about { background: #e7ede8; }
.about-inner { padding-top: 78px; padding-bottom: 88px; }
.about-kicker { margin: 0 0 18px; font-size: 13px; font-weight: 750; color: var(--accent-dark); }
.about h2 { max-width: 710px; margin: 0; font-size: clamp(42px, 5vw, 68px); line-height: 1.05; letter-spacing: -.06em; }
.about-inner > p:last-child { max-width: 550px; line-height: 1.6; font-size: 17px; color: var(--muted); margin: 20px 0 0; }
.site-footer { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer > span:last-child { color: var(--muted); font-size: 13px; }

.detail-dialog { width: min(1000px, calc(100% - 48px)); max-height: min(800px, calc(100dvh - 48px)); padding: 0; border: 0; background: var(--surface); color: var(--ink); box-shadow: 0 25px 80px rgb(16 34 23 / .22); overflow: auto; }
.detail-dialog::backdrop { background: rgb(12 27 18 / .62); }
.detail-layout { display: grid; grid-template-columns: 43% 57%; min-height: 650px; }
.detail-media { background: #d9e0da; }
.detail-media img { height: 100%; min-height: 650px; object-fit: cover; }
.detail-content { padding: 31px 42px 40px; display: flex; flex-direction: column; }
.detail-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.detail-category { color: var(--accent-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.close-button { padding: 5px 0 5px 12px; border: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 700; }
.close-button span { font-size: 24px; vertical-align: -2px; margin-left: 7px; font-weight: 400; }
.detail-content h2 { font-size: clamp(38px, 4vw, 55px); line-height: 1.05; letter-spacing: -.06em; margin: 42px 0 19px; }
.detail-body { font-size: 17px; line-height: 1.55; color: var(--muted); margin: 0 0 34px; }
.detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 25px; row-gap: 24px; margin: 0 0 34px; }
.detail-facts div { border-top: 1px solid var(--line); padding-top: 10px; }
.detail-facts dt { color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.detail-facts dd { margin: 0; font-size: 16px; font-weight: 750; }
.detail-save { align-self: stretch; margin-top: auto; justify-content: center; }

@media (max-width: 900px) {
  .shell { width: min(100% - 48px, 1360px); }
  .hero { min-height: 480px; }
  .hero-copy { padding-right: 36px; }
  .hero h1 { font-size: clamp(45px, 5.5vw, 60px); }
  .hero-media { min-height: 480px; }
  .workshop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-content { padding: 28px; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { height: 64px; gap: 16px; }
  .wordmark { font-size: 29px; }
  .header-inner nav { margin-left: auto; gap: 18px; }
  .header-inner nav a { font-size: 13px; }
  .header-inner nav a:last-child, .header-link { display: none; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { padding: 45px 0 40px; }
  .eyebrow { margin-bottom: 19px; font-size: 10px; }
  .hero h1 { font-size: clamp(43px, 12vw, 58px); max-width: 440px; }
  .hero-intro { margin: 18px 0 24px; font-size: 16px; line-height: 1.45; }
  .hero-media { min-height: 0; height: 210px; }
  .hero-media img { object-position: center; }
  .browse { padding-top: 54px; padding-bottom: 70px; }
  .browse-heading { align-items: start; margin-bottom: 27px; }
  .browse h2 { font-size: 36px; }
  .browse-heading p { font-size: 14px; }
  .browse-heading .result-count { display: none; }
  .filters { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin-bottom: 29px; }
  .search-field { grid-column: 1 / -1; }
  .saved-filter { min-width: 107px; }
  .workshop-grid { grid-template-columns: 1fr; gap: 38px; }
  .workshop-photo { aspect-ratio: 1.42; }
  .workshop h3 { font-size: 27px; }
  .workshop-description { min-height: 0; }
  .about-inner { padding-top: 65px; padding-bottom: 70px; }
  .about h2 { font-size: 45px; }
  .about-inner > p:last-child { font-size: 16px; }
  .site-footer { min-height: 100px; }
  .detail-dialog { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; }
  .detail-layout { display: block; min-height: 0; }
  .detail-media img { height: 250px; min-height: 0; }
  .detail-content { padding: 22px 22px 30px; }
  .close-button { position: fixed; right: 16px; top: 16px; z-index: 2; background: var(--surface); border: 1px solid var(--line); padding: 8px 12px; }
  .detail-content h2 { margin: 28px 0 14px; font-size: 42px; }
  .detail-body { font-size: 16px; margin-bottom: 26px; }
  .detail-facts { row-gap: 20px; margin-bottom: 28px; }
}

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