:root {
  --ink: #222222;
  --muted: #6d6d6d;
  --paper: #f1f1f1;
  --paper-deep: #e3e3e3;
  --white: #fafafa;
  --moss: #595959;
  --moss-dark: #343434;
  --moss-pale: #dedede;
  --accent: #c96f52;
  --accent-dark: #ad5840;
  --accent-deep: #8d4433;
  --accent-pale: #f0d8cf;
  --line: rgba(34, 34, 34, 0.16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: min(1240px, calc(100vw - 64px));
}

* { 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.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 16px; }

.site-header {
  width: var(--page);
  height: 94px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.site-header nav { display: flex; gap: 34px; }
.site-header nav a, .text-link {
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.site-header nav a:hover, .text-link:hover { color: var(--accent-dark); }
.site-header > .button { justify-self: end; }
.brand { display: inline-flex; width: max-content; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { position: relative; width: 34px; height: 34px; border: 1.25px solid var(--accent); border-radius: 50%; }
.brand-name { font-size: 11px; font-weight: 750; line-height: 1.05; letter-spacing: .07em; text-transform: uppercase; }
.brand-name em { font-family: var(--serif); font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 0 21px;
  border: 1px solid var(--accent-dark);
  border-radius: 2px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.button:hover { background: var(--accent-deep); transform: translateY(-1px); }
.button:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible, .programme-item:focus-visible {
  outline: 3px solid rgba(89, 89, 89, .35);
  outline-offset: 3px;
}
.button:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.button-small { min-height: 42px; padding: 0 18px; gap: 18px; }
.button-secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.button-secondary:hover { background: var(--paper-deep); }

.hero { width: var(--page); margin: 0 auto; padding: 74px 0 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); column-gap: 8vw; }
.hero-copy { padding-top: 26px; }
.eyebrow, .section-kicker { color: var(--accent-dark); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 760px;
  margin: 25px 0 28px;
  font-family: var(--serif);
  font-size: clamp(62px, 7vw, 112px);
  font-weight: 400;
  line-height: .83;
  letter-spacing: -.055em;
}
h1 span { color: var(--accent); font-style: italic; }
.hero-lede { max-width: 615px; margin-bottom: 34px; color: #505050; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 29px; }
.event-facts { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 600px; margin: 62px 0 0; border-top: 1px solid var(--line); }
.event-facts div { padding: 18px 18px 10px 0; }
.event-facts div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.event-facts dt { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.event-facts dd { margin: 5px 0 0; font-family: var(--serif); font-size: 17px; }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 0;
  overflow: hidden;
  background: #4a4a4a;
}
.workshop-flyer { display: block; width: 100%; height: 100%; object-fit: cover; }

.availability-card {
  grid-column: 2;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 13px 13px 13px 19px;
  background: var(--white);
  border: 1px solid var(--line);
}
.availability-dot { width: 9px; height: 9px; border-radius: 50%; background: #686868; box-shadow: 0 0 0 5px rgba(104,104,104,.12); }
.availability-copy { display: flex; flex-direction: column; line-height: 1.25; }
.availability-copy small { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.availability-copy strong { margin-top: 4px; font-family: var(--serif); font-size: 17px; font-weight: 400; }
.availability-count { color: var(--accent-dark); font-size: 12px; font-weight: 700; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.25; }
.status-low .availability-dot { background: #3f3f3f; box-shadow: 0 0 0 5px rgba(63,63,63,.12); }
.status-waitlist .availability-dot, .status-full .availability-dot { background: #909090; box-shadow: 0 0 0 5px rgba(144,144,144,.12); }

.purpose-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 90px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.purpose-grid article { min-height: 318px; padding: 34px 42px 36px 0; }
.purpose-grid article + article { padding-left: 42px; border-left: 1px solid var(--line); }
.purpose-grid .outcome-card { padding-right: 36px; background: var(--moss-pale); }
.card-number { color: var(--accent); font-family: var(--serif); font-size: 17px; }
.purpose-grid h2 { margin: 54px 0 16px; font-family: var(--serif); font-size: 31px; font-weight: 400; letter-spacing: -.025em; }
.purpose-grid p { max-width: 345px; color: #565656; font-size: 15px; }

.section-shell { width: var(--page); margin: 0 auto; padding: 140px 0; }
.programme { display: grid; grid-template-columns: .72fr 1.28fr; gap: 8vw; }
.section-intro { position: sticky; top: 56px; align-self: start; }
.section-intro h2, .faq-panel > h2 { margin: 18px 0 24px; font-family: var(--serif); font-size: clamp(48px, 5.4vw, 78px); font-weight: 400; line-height: .93; letter-spacing: -.045em; }
.section-intro p { max-width: 440px; color: var(--muted); font-size: 16px; }
.programme-list { border-top: 1px solid var(--line); }
.programme-item { display: grid; grid-template-columns: 55px 1fr; gap: 15px; padding: 31px 8px 31px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.programme-index { color: var(--accent-dark); font-family: var(--serif); font-size: 15px; }
.programme-heading { display: flex; justify-content: space-between; gap: 20px; }
.programme-heading h3 { margin-bottom: 13px; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.programme-heading span { color: var(--accent-dark); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.programme-content > p { max-width: 560px; margin: 0; color: var(--muted); }
.programme-content ul { display: grid; grid-template-rows: 0fr; margin: 0; padding: 0; overflow: hidden; opacity: 0; transition: grid-template-rows .25s ease, margin .25s ease, opacity .25s ease; }
.programme-content ul::before { content: ""; min-height: 0; }
.programme-content li { margin-left: 18px; padding: 4px 0; color: #555555; font-size: 14px; }
.programme-item.is-active .programme-content ul { grid-template-rows: 1fr; margin-top: 21px; opacity: 1; }
.method-note { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-top: 90px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); }
.method-note strong { color: var(--accent); font-family: var(--serif); font-size: clamp(28px, 3.2vw, 48px); font-weight: 400; font-style: italic; }

.fit { padding-top: 0; }
.fit-layout { display: grid; grid-template-columns: 1.05fr .95fr; }
.fit-panel { padding: 100px 8vw 100px 0; border-top: 1px solid var(--line); }
.section-intro.compact { position: static; }
.section-intro.compact h2 { font-size: clamp(48px, 5vw, 70px); }
.fit-form { margin-top: 52px; }
.quiz-step { display: none; min-height: 360px; }
.quiz-step.is-active { display: block; animation: reveal .3s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
fieldset { margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 24px; font-family: var(--serif); font-size: 25px; }
.choice { position: relative; display: flex; align-items: center; min-height: 58px; margin: -1px 0 0; padding: 13px 50px 13px 17px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { font-size: 14px; }
.choice::after { content: ""; position: absolute; right: 18px; width: 16px; height: 16px; border: 1px solid #9a9a9a; border-radius: 50%; }
.choice:hover { background: rgba(255,255,255,.45); }
.choice:has(input:focus-visible) { outline: 3px solid rgba(89,89,89,.35); outline-offset: 2px; z-index: 1; }
.choice:has(input:checked) { background: var(--accent-pale); }
.choice:has(input:checked)::after { border: 5px solid var(--accent); }
.quiz-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 25px; }
.progress-dots { display: flex; gap: 7px; }
.progress-dots span { width: 24px; height: 2px; background: #c6c6c6; }
.progress-dots span.is-active { background: var(--accent); }
.quiz-result { min-height: 420px; padding: 45px; background: var(--moss); color: white; animation: reveal .35s ease; }
.result-mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 68px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; }
.result-kicker { margin-bottom: 8px; color: rgba(255,255,255,.65); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.quiz-result h3 { max-width: 510px; margin-bottom: 18px; font-family: var(--serif); font-size: clamp(36px, 4vw, 56px); font-weight: 400; line-height: 1; }
.quiz-result > p:not(.result-kicker) { max-width: 540px; color: rgba(255,255,255,.78); }
.result-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.quiz-result .button { color: var(--moss-dark); background: white; border-color: white; }
.text-button { padding: 8px 2px; border: 0; border-bottom: 1px solid rgba(255,255,255,.55); background: transparent; color: white; font-size: 12px; cursor: pointer; }

.faq-panel { padding: 100px 0 100px 8vw; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.faq-panel > h2 { font-size: clamp(48px, 5vw, 70px); }
.faq-list { margin-top: 53px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 20px 35px 20px 0; font-size: 14px; font-weight: 650; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary span { position: absolute; right: 3px; font-family: var(--serif); font-size: 24px; font-weight: 400; transition: transform .2s ease; }
details[open] summary span { transform: rotate(45deg); }
details p { padding: 0 30px 20px 0; color: var(--muted); font-size: 13px; }
.booking-note { margin-top: 42px; padding: 26px; background: var(--moss-pale); }
.booking-note span { display: block; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.booking-note strong { display: block; margin-top: 8px; color: var(--moss-dark); font-family: var(--serif); font-size: 25px; font-weight: 400; }
.booking-note p { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.booking-button { width: 100%; margin-top: 20px; }
.contact-note { margin-top: 16px; padding: 26px; border: 1px solid var(--line); background: var(--white); }
.contact-note > span { color: var(--accent-dark); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.contact-note p { margin: 13px 0 17px; color: var(--muted); font-size: 13px; }
.contact-note .text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }

.site-footer { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 46px; padding-top: 54px; margin-top: 10px; border-top: 1px solid var(--line); }
.site-footer p { margin: 0; color: var(--muted); font-size: 11px; }
.site-footer strong { color: var(--ink); font-weight: 650; }

.settings-dialog { width: min(540px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 3px; background: var(--white); color: var(--ink); box-shadow: 0 24px 80px rgba(25,25,25,.3); }
.settings-dialog::backdrop { background: rgba(30,30,30,.62); backdrop-filter: blur(3px); }
.settings-dialog form { padding: 34px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; }
.dialog-heading h2 { margin: 5px 0 0; font-family: var(--serif); font-size: 36px; font-weight: 400; }
.settings-dialog form > p { color: var(--muted); font-size: 13px; }
.close-button { border: 0; background: transparent; font-family: var(--serif); font-size: 31px; cursor: pointer; }
.settings-dialog label:not(.toggle) { display: grid; gap: 7px; margin-top: 21px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.settings-dialog select, .settings-dialog input[type="number"] { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.toggle { display: flex; align-items: center; gap: 10px; margin-top: 25px; font-size: 13px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle span { position: relative; width: 37px; height: 21px; border-radius: 20px; background: #c6c6c6; transition: background .2s ease; }
.toggle span::after { content: ""; position: absolute; width: 15px; height: 15px; left: 3px; top: 3px; border-radius: 50%; background: white; transition: transform .2s ease; }
.toggle input:checked + span { background: var(--accent); }
.toggle input:checked + span::after { transform: translateX(16px); }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.copy-link { display: block; margin: 17px auto 0; padding: 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.copy-feedback { display: block; min-height: 18px; margin-top: 5px; color: var(--accent-dark); font-size: 11px; text-align: center; }

@media (max-width: 980px) {
  :root { --page: min(100% - 40px, 760px); }
  .site-header { grid-template-columns: 1fr auto; height: 80px; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-copy { padding-bottom: 48px; }
  .hero-visual { min-height: 0; }
  .availability-card { grid-column: 1; }
  .purpose-grid { grid-template-columns: 1fr; margin-top: 64px; }
  .purpose-grid article, .purpose-grid article + article { min-height: auto; padding: 30px 0 32px; border-left: 0; border-bottom: 1px solid var(--line); }
  .purpose-grid .outcome-card { margin: 0 -20px; padding: 30px 20px 32px; border-bottom: 0; }
  .purpose-grid h2 { margin-top: 26px; }
  .programme { grid-template-columns: 1fr; gap: 55px; }
  .section-intro { position: static; }
  .fit-layout { grid-template-columns: 1fr; }
  .fit-panel { padding: 85px 0; }
  .faq-panel { padding: 85px 0; border-left: 0; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --page: calc(100% - 32px); }
  .site-header { height: 72px; }
  .site-header > .button { display: none; }
  h1 { margin-top: 19px; font-size: clamp(52px, 16vw, 74px); line-height: .87; }
  .hero-copy { padding-top: 12px; }
  .hero-lede { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-actions .button { width: 100%; }
  .event-facts { margin-top: 44px; grid-template-columns: 1fr 1fr; }
  .event-facts div + div { padding-left: 12px; }
  .event-facts div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .hero-visual { min-height: 0; }
  .availability-card { min-height: 72px; padding-left: 15px; }
  .availability-count { display: none; }
  .section-shell { padding: 90px 0; }
  .section-intro h2, .faq-panel > h2 { font-size: 48px; }
  .programme { padding-bottom: 100px; }
  .programme-item { grid-template-columns: 36px 1fr; gap: 8px; }
  .programme-heading { display: block; }
  .programme-heading span { display: block; margin-bottom: 12px; }
  .programme-content ul { grid-template-rows: 1fr; margin-top: 20px; opacity: 1; }
  .method-note { align-items: flex-start; flex-direction: column; margin-top: 55px; }
  .fit-panel, .faq-panel { padding: 72px 0; }
  .quiz-step { min-height: 405px; }
  .quiz-result { padding: 30px 24px; }
  .result-mark { margin-bottom: 50px; }
  .result-actions { align-items: stretch; flex-direction: column; }
  .quiz-controls { gap: 16px; }
  .quiz-controls .button { padding: 0 17px; gap: 16px; }
  .site-footer { grid-template-columns: 1fr; gap: 16px; }
  .settings-dialog form { padding: 25px 20px; }
  .input-row { grid-template-columns: 1fr; }
}

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