:root {
  --paper: #f4f5eb;
  --ink: #1d3928;
  --muted: #476152;
  --line: #9bab9a;
  --quiet: #e6ecde;
  --focus: #286047;
  --button: #244634;
  --button-ink: #fffdf5;
  --button-radius: 3rem;
  --field-radius: 0.5rem;
  --serif: Georgia, 'Times New Roman', serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --max-width: 78rem;
}

.masthead { border-bottom: 1px solid #c4d0c1; }
.wordmark { font: italic clamp(1.55rem, 3vw, 2.03rem)/1.1 var(--serif); letter-spacing: -0.055em; text-decoration: none; }
.hero { background: radial-gradient(ellipse at 77% 30%, #d9e1ca 0, #eff1e5 48%, var(--paper) 78%); }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  min-height: 0;
  align-items: center;
  gap: clamp(1.2rem, 3.8vw, 3.7rem);
  padding-block: clamp(1.1rem, 2.45vw, 2.25rem);
}
.hero-copy { min-width: 0; padding-block: 1.3rem; }
.hero-location {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-weight: 620;
  font-size: 0.9rem;
  text-decoration-color: #829581;
}
.hero-location::before {
  width: 0.47rem;
  height: 0.47rem;
  border-radius: 50%;
  background: #75905c;
  content: "";
}
.hero h1 {
  padding-bottom: 0.03em;
  margin-top: 0.4rem;
  font: 400 clamp(4rem, 7.65vw, 7.15rem)/0.94 var(--serif);
  letter-spacing: -0.07em;
}
.headline-line { display: block; overflow: clip; padding-block: 0.045em 0.105em; }
.headline-line > * { display: block; }
.hero h1 em {
  color: #42664b;
  font: italic 400 clamp(2.5rem, 4.5vw, 4.45rem)/1.06 var(--serif);
  letter-spacing: -0.062em;
}
.hero-summary { margin: 0.93rem 0 1.4rem; max-width: 31ch; color: var(--muted); font-size: clamp(1.02rem, 1.53vw, 1.3rem); }
.hero .button { min-height: 3.1rem; padding-inline: 1.55rem; }
.hero-price { display: inline-flex; min-height: 2.75rem; align-items: center; color: var(--muted); font-size: 0.9rem; }
.next-class {
  display: grid;
  width: min(100%, 29rem);
  min-height: 4.65rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.5rem 0.8rem;
  align-items: center;
  margin-top: clamp(1.25rem, 3.4vw, 2.9rem);
  padding: 0.7rem 0.8rem;
  border: 1px solid #9fae97;
  border-radius: 0.65rem;
  background: #f9faf2;
  color: var(--ink);
  text-align: left;
  transition: background 220ms ease, border-color 220ms ease;
}
.next-class:hover { border-color: #42664b; background: #edf3e2; }
.next-time {
  display: grid;
  place-items: center;
  min-height: 2.8rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.35rem;
  background: #e3eccf;
  font-weight: 720;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.next-description { display: grid; gap: 0.2rem; min-width: 0; line-height: 1.2; }
.next-description > span { color: var(--muted); font-size: 0.79rem; }
.next-description strong { font-size: 0.94rem; }
.next-action { font-size: 0.85rem; text-decoration: underline; text-underline-offset: 0.2em; }
.hero-stage {
  position: relative;
  isolation: isolate;
  min-width: 0;
  height: clamp(29rem, 41.8vw, 39rem);
  overflow: hidden;
  border-radius: clamp(4.8rem, 11vw, 11rem) 1.3rem 1.3rem 1.3rem;
  background: #8a9980;
  box-shadow: 0 13px 35px #314a301c;
}
.hero-image, #motion-trace { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image {
  object-position: 50% 57%;
  transform: scale(1.035);
  translate: var(--image-x, 0px) var(--image-y, 0px);
  transition: translate 420ms var(--ease-out);
}
#motion-trace { pointer-events: none; }
.motion-toggle {
  position: absolute;
  z-index: 1;
  inset: auto 0.95rem 0.95rem auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.78rem;
  border: 1px solid #f0f4d994;
  border-radius: 3rem;
  background: #213825e8;
  color: #fafbed;
  font-size: 0.875rem;
}
.motion-toggle:hover { background: #1c3022; }
.motion-toggle:focus-visible { outline-color: #f2f7db; }
.motion-icon { display: inline-block; width: 0.6rem; height: 0.72rem; border-inline: 2px solid currentColor; }
.motion-off .motion-icon { width: 0; height: 0; border: 0; border-top: 0.36rem solid transparent; border-bottom: 0.36rem solid transparent; border-left: 0.55rem solid currentColor; }
.motion-intro:not(.motion-off) .headline-line > * { animation: headline-in 1000ms var(--ease-out) both; }
.motion-intro:not(.motion-off) .headline-line + .headline-line > * { animation-delay: 120ms; }
.motion-intro:not(.motion-off) .hero-stage { animation: art-in 1100ms var(--ease-out) both; }
.motion-intro:not(.motion-off) .hero-summary,
.motion-intro:not(.motion-off) .hero-actions,
.motion-intro:not(.motion-off) .next-class { animation: copy-in 750ms var(--ease-out) both; }
.motion-intro:not(.motion-off) .hero-summary { animation-delay: 220ms; }
.motion-intro:not(.motion-off) .hero-actions { animation-delay: 295ms; }
.motion-intro:not(.motion-off) .next-class { animation-delay: 370ms; }
.motion-off { scroll-behavior: auto; }
.motion-off .hero-image { translate: 0 0; transition: none; }
@keyframes headline-in { from { opacity: 0; transform: translateY(75%); } to { opacity: 1; transform: translateY(0); } }
@keyframes art-in { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes copy-in { from { opacity: 0; transform: translateY(0.6rem); } to { opacity: 1; transform: translateY(0); } }
h2 { font: 400 clamp(2.15rem, 4.8vw, 4.2rem)/1.02 var(--serif); letter-spacing: -0.054em; text-wrap: balance; }
h3 { font-weight: 650; line-height: 1.24; }
.schedule {
  padding-block: clamp(1.3rem, 3.4vw, 2.75rem);
  border-block: 1px solid #b4c4b5;
  background: #e8eddf;
}
.schedule-head, .schedule-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.25rem 2.1rem; }
.schedule-head { align-items: end; margin-bottom: 1.2rem; }
.schedule-head .filter { width: min(100%, 17.5rem); justify-self: end; }
.schedule-layout { align-items: start; }
.days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.day { display: flex; justify-content: center; }
.day > span {
  position: relative;
  display: grid;
  min-height: 2.75rem;
  min-width: 100%;
  place-items: center;
  font-weight: 600;
}
.day input:checked + span::after {
  position: absolute;
  bottom: 0;
  width: 1.5rem;
  height: 3px;
  background: var(--ink);
  content: '';
}
.slots { display: grid; gap: 0.5rem; margin-block: 0.75rem; }
.slot {
  display: grid;
  grid-template-columns: 3.3rem minmax(0, 1fr) auto;
  gap: 0.25rem 0.875rem;
  align-items: center;
  min-height: 3.8rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid #b5c3b3;
  border-radius: 0.5rem;
  background: #f7f7ef;
  color: var(--ink);
  text-align: left;
}
.slot:hover, .slot[aria-pressed="true"] { border-color: var(--ink); background: #fdfcf4; }
.slot[aria-pressed="true"] { box-shadow: inset 4px 0 0 #78985b; background: #f8faf0; }
.motion-enabled .slot {
  animation: copy-in 420ms var(--ease-out) both;
  animation-delay: calc(var(--slot-index, 0) * 65ms);
  transition: box-shadow 220ms ease, background 220ms ease;
}
.slot-time { font-weight: 650; font-variant-numeric: tabular-nums; }
.slot strong { display: block; font-weight: 650; line-height: 1.25; }
.slot small { display: block; font-size: 0.8rem; color: var(--muted); }
.slot-action { font-size: 0.875rem; text-decoration: underline; text-underline-offset: 0.2em; }
.empty-state { display: grid; gap: 0.7rem; justify-items: start; margin-block: 1rem; }
.official { display: inline-flex; align-items: center; min-height: 2.5rem; }
.draft { min-width: 0; padding: clamp(0.95rem, 2vw, 1.4rem); border: 1px solid #b4c4b4; border-radius: 0.65rem; background: #f9faf1; }
.draft.has-selection { border-color: #6c8b6b; }
.draft h3 { font: 400 1.75rem/1.05 var(--serif); letter-spacing: -0.035em; }
.selection { margin: 0.38rem 0 0.9rem; color: var(--muted); font-size: 0.9rem; }
.draft textarea { background: #fbfaf3; }
.draft .actions { margin-top: 0.75rem; }
.draft .button { font-size: 0.875rem; }
.booking-note { margin-top: 0.75rem; }
.copy-status:empty { margin: 0; min-height: 0; }
.content-section { padding-block: clamp(2rem, 5vw, 4.3rem); border-bottom: 1px solid #c4cfc2; }
.directions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.45rem; }
.directions > div { padding-top: 0.9rem; border-top: 1px solid var(--line); }
.directions p, .prices p, .coach p { margin-top: 0.55rem; color: var(--muted); }
.directions a { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: 0.25rem; font-size: 0.92rem; }
.prices, .studio { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.4rem 3.25rem; align-items: center; }
.prices dl { margin: 0; }
.prices dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.85rem; padding: 0.75rem 0; border-bottom: 1px solid #cbd4c7; }
.prices dd { margin: 0; white-space: nowrap; font-weight: 650; }
.coach { display: flex; gap: 1.15rem; align-items: center; }
.coach img { width: clamp(5.125rem, 12vw, 9rem); height: auto; border-radius: 50%; }
.coach h2 { font-size: clamp(1.75rem, 3.1vw, 3.1rem); }
.location .actions { margin-top: 0.6rem; }
.location .actions a { min-height: 2.75rem; display: inline-flex; align-items: center; }
.footer { padding-block: 1.1rem; color: var(--muted); font-size: 0.875rem; }

@media (max-width: 51rem) {
  .hero-layout { grid-template-columns: 1fr; gap: 1rem; }
  .hero-copy { padding-block: 0.7rem 0; }
  .hero-stage { height: clamp(20rem, 78vw, 32rem); border-start-start-radius: 6rem; }
  .hero-image { object-position: 50% 60%; }
  .schedule-layout, .studio, .prices { grid-template-columns: 1fr; }
  .draft { margin-top: 0.2rem; }
}
@media (max-width: 36rem) {
  .topbar { flex-wrap: wrap; gap: 0.28rem 0.65rem; min-height: auto; padding-block: 0.85rem 0.15rem; }
  .topbar nav { gap: 0.3rem 0.85rem; }
  .hero h1 { font-size: clamp(3.4rem, 14vw, 4.85rem); }
  .hero h1 em { font-size: clamp(2.14rem, 10.1vw, 3.2rem); }
  .hero-summary { margin-block: 0.5rem 0.9rem; }
  .hero-actions { gap: 0.3rem 0.75rem; }
  .hero .button { padding-inline: 1rem; }
  .hero-price { font-size: 0.83rem; }
  .hero-stage { height: clamp(16.5rem, 74vw, 22.5rem); border-radius: 4.5rem 0.9rem 0.9rem 0.9rem; }
  .hero-image { object-position: 50% 59%; }
  .next-class { margin-top: 0.85rem; min-height: 3.9rem; padding: 0.5rem; gap: 0.3rem 0.5rem; }
  .next-action { font-size: 0.8rem; }
  .schedule-head { grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 0.7rem; }
  .schedule-head .filter { justify-self: start; width: 100%; }
  .directions { grid-template-columns: 1fr; }
  .slot { gap: 0.45rem; padding-inline: 0.58rem; grid-template-columns: 3rem minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image { translate: 0 0; }
}
