:root {
    --plum: #432C4C;
    --plum-dark: #2f1e36;
    --pink: #B36B91;
    /* #B36B91 is only 3.6:1 on the page background, so pink text uses this darker shade. */
    --pink-text: #94456f;
    --pink-on-plum: #e9c3d8;
    --bg: #FAF4F8;
    --lavender: #EEE4EF;
    --rose: #F3E2E9;
    --mauve: #EDE0EA;
    --surface: #ffffff;
    --text: #2c2230;
    /* The mockup's #6f6573 drops below 4.5:1 on the lavender and pink cards. */
    --muted: #655a69;
    --line: #e3d6e2;
    --input-line: #8f7f8c;
    --danger: #a3263c;
    --ok: #2f6b45;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --s-1: .25rem;
    --s-2: .5rem;
    --s-3: .75rem;
    --s-4: 1rem;
    --s-5: 1.5rem;
    --s-6: 2rem;
    --s-7: 3rem;
    --s-8: 4rem;
    --section-y: clamp(3rem, 6vw, 4.5rem);
    --gutter: 1.25rem;

    --fs-xs: .8125rem;
    --fs-sm: .9375rem;
    --fs-md: 1.0625rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: clamp(1.75rem, 3vw, 2.25rem);
    --fs-3xl: clamp(2.25rem, 5vw, 3.25rem);
    --fs-display: clamp(2.75rem, 7vw, 4.75rem);

    --control-md: 2.75rem;
    --control-lg: 3rem;
    --radius-sm: 2px;
    --radius: 6px;
    --arch: 50% 50% 1.25rem 1.25rem / 40% 40% 1.25rem 1.25rem;
    --wrap: 1120px;
    --measure: 42rem;
    --form: 40rem;
    --card-pad: var(--s-6);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: var(--fs-md)/1.6 var(--sans); }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
p { margin: 0 0 var(--s-4); }
a { color: var(--plum); text-underline-offset: .2em; }
a:hover { color: var(--pink-text); }
:focus-visible { outline: 3px solid var(--pink-text); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); color: var(--plum); line-height: 1.2; font-weight: 500; }
h1 { font-size: var(--fs-3xl); margin: 0 0 var(--s-5); }
h2 { font-size: var(--fs-2xl); margin: 0 0 var(--s-5); }
h3, .h3 { font-size: var(--fs-xl); margin: 0 0 var(--s-3); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap > h2:not(:first-child) { margin-top: var(--s-7); }
.section { padding: var(--section-y) 0; }
/* Two plain sections in a row would otherwise stack both paddings into one double gap. */
.hero + .section:not(.section--plum, .cta-band),
.section:not(.section--plum, .cta-band) + .section:not(.section--plum, .cta-band) { padding-top: 0; }
.muted { color: var(--muted); }
.lead { font-size: var(--fs-lg); color: var(--muted); margin-bottom: var(--s-5); }
.eyebrow, .badge, .facts dt { font: 600 var(--fs-xs)/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: block; margin: 0 0 var(--s-3); color: var(--pink-text); }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
.measure { max-width: var(--measure); }
.spaced { margin-top: var(--s-7); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s-4); top: var(--s-4); z-index: 10; background: var(--surface); padding: var(--s-2) var(--s-4); }
.crumbs { list-style: none; padding: 0; margin: 0 0 var(--s-4); }
.crumbs li { display: inline; }
.crumbs li + li::before { content: " › "; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 4.75rem; }
.brand { display: flex; flex-shrink: 0; align-items: center; gap: var(--s-3); white-space: nowrap; text-decoration: none; font-family: var(--serif); font-size: var(--fs-lg); color: var(--plum); }
.brand img { width: 2rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--s-5); }
.nav a { text-decoration: none; font-size: var(--fs-sm); white-space: nowrap; }
.nav a:not(.btn)[aria-current="page"] { color: var(--pink-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }
.nav-toggle { display: none; }
/* The logo must not shrink while the full menu is measured, else it wraps under the menu instead of switching to compact. */
.is-compact .brand { flex-shrink: 1; white-space: normal; }
.is-compact .nav-toggle { display: inline-flex; align-items: center; min-height: var(--control-md); padding: 0 var(--s-4); background: none; border: 1px solid var(--plum); border-radius: var(--radius-sm); font: 600 var(--fs-sm)/1.25 var(--sans); color: var(--plum); cursor: pointer; }
.is-compact .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); }
.is-compact .nav.is-open { display: block; }
.is-compact .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--s-2) var(--gutter) var(--s-5); }
.is-compact .nav li a { display: block; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-md); white-space: normal; }
.is-compact .nav li:last-child a { display: flex; border: 0; margin-top: var(--s-4); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--control-lg); padding: 0 var(--s-5); border-radius: var(--radius-sm); background: var(--plum); color: #fff; text-decoration: none; border: 1px solid var(--plum); cursor: pointer; font: 600 var(--fs-sm)/1.25 var(--sans); letter-spacing: .03em; text-align: center; }
.btn:hover { background: var(--plum-dark); border-color: var(--plum-dark); color: #fff; }
.btn--small { min-height: var(--control-md); padding: 0 var(--s-4); }
.btn--ghost { background: transparent; color: var(--plum); }
.btn--ghost:hover { background: var(--plum); color: #fff; }
.btn--danger { background: var(--danger); border-color: var(--danger); }
.btn[disabled], .btn--disabled { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-top: var(--s-6); }

/* Hero */
.hero { padding: var(--section-y) 0; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(var(--s-5), 6vw, var(--s-8)); align-items: center; }
.hero h1 { font-size: var(--fs-display); line-height: 1.05; margin: 0 0 var(--s-4); }
.hero__intro { overflow-wrap: anywhere; }
.hero .lead { font-family: var(--serif); font-size: clamp(var(--fs-lg), 2.2vw, var(--fs-xl)); color: var(--text); line-height: 1.4; margin: 0 0 var(--s-4); }
.values { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); padding: 0; margin: 0 0 var(--s-4); color: var(--plum); font-weight: 600; }
.values li { display: flex; align-items: center; gap: var(--s-2); }
.values li::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--pink); }
.hero__photo img { width: 100%; max-width: 440px; margin-left: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: var(--arch); }
@media (max-width: 760px) {
    .hero__grid { grid-template-columns: 1fr; }
    /* Mobile order requested by the client: name and intro, portrait, then the main call to action. */
    .hero__text { display: contents; }
    .hero__intro { order: 1; }
    .hero__photo { order: 2; }
    .hero__cta { order: 3; margin-top: 0; }
    .hero__photo img { max-width: 260px; margin: 0 auto; }
}

/* Offer overview */
.section-head { max-width: var(--measure); margin-bottom: var(--s-6); }
.areas { display: grid; gap: var(--s-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .areas { grid-template-columns: 1fr; } }
/* Subgrid lines up eyebrows, headings, lists and links across cards even when some of them wrap. */
.area-card { background: var(--lavender); padding: var(--card-pad); border-radius: var(--radius); display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
.area-card--nutrition { background: var(--rose); }
.area-card--teaching { background: var(--mauve); }
.area-card h3 { margin-bottom: var(--s-4); }
.area-card ul { list-style: none; padding: 0; margin: 0 0 var(--s-5); }
.area-card li { padding: var(--s-2) 0; border-top: 1px solid var(--line); }
.area-card li a { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); text-decoration: none; }
.area-card li a::after { content: "›"; color: var(--pink-text); font-size: 1.3em; line-height: 1; transition: transform .15s ease-out; }
.area-card li a:hover { color: var(--pink-text); }
.area-card li a:hover span { text-decoration: underline; }
.area-card li a:hover::after { transform: translateX(.25rem); }
@media (prefers-reduced-motion: reduce) { .area-card li a::after { transition: none; } }
.area-card__plain li { color: var(--muted); }
.area-card .more { align-self: end; justify-self: start; }

/* Dark plum band */
.section--plum { background: var(--plum); color: #f3e9ef; }
.section--plum h2 { color: #fff; }
.section--plum a { color: #fff; }
.section--plum .eyebrow { color: var(--pink-on-plum); }
.section--plum p:not(.eyebrow) { font-size: var(--fs-lg); }

/* Process */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--line); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem minmax(0, var(--measure)); gap: var(--s-4); align-items: baseline; padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: var(--fs-xl); color: var(--pink-text); }

/* Final CTA */
.cta-band { background: var(--mauve); }
.cta-band__inner { max-width: var(--measure); }
.cta-band__contact { margin: var(--s-6) 0 0; color: var(--muted); font-size: var(--fs-sm); }

/* Cards */
.grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--lavender); border-radius: var(--radius); padding: var(--card-pad); display: flex; flex-direction: column; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-top: auto; margin-bottom: 0; }
.card h3 a, .card h2 a { text-decoration: none; }
.card h3 a:hover, .card h2 a:hover { text-decoration: underline; }
.card__meta { color: var(--muted); font-size: var(--fs-sm); margin: 0 0 var(--s-4); }
.card__foot > :last-child { margin-bottom: 0; }
.card > p:empty { margin: 0; }
/* Photo runs to the card edges; a card without one gets a soft branded placeholder so every row keeps the same shape. */
.card > .card__media { margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) var(--s-5); aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: url("/logo.svg") center / 3rem no-repeat, linear-gradient(135deg, var(--rose), var(--mauve)); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease-out; }
.card:hover .card__media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .card__media img { transition: none; } .card:hover .card__media img { transform: none; } }
/* Subgrid keeps photos, titles, dates and links on the same lines across a row of cards, whatever wraps. */
.card--event, .card--service { display: grid; grid-template-rows: subgrid; row-gap: 0; }
.card--event { grid-row: span 6; }
.card--service { grid-row: span 4; }
.card--event > :last-child, .card--service > :last-child { align-self: end; }
.badge { display: block; margin: 0 0 var(--s-2); color: var(--pink-text); }
.area { margin-top: var(--s-7); }
@media (max-width: 760px) {
    :root { --card-pad: var(--s-5); }
}

/* Detail pages */
.detail { display: grid; grid-template-columns: 1fr 20rem; gap: var(--s-6); align-items: start; }
.facts { background: var(--lavender); border-radius: var(--radius); padding: var(--card-pad); position: sticky; top: 6.5rem; }
.facts__title { margin: 0 0 var(--s-4); }
.facts dl { margin: 0 0 var(--s-4); }
.facts .btn { display: flex; width: 100%; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0 0 var(--s-3); font-weight: 600; }
.prose { max-width: 70ch; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: var(--fs-xl); margin: var(--s-6) 0 var(--s-2); }
.prose h3 { font-size: var(--fs-lg); margin: var(--s-5) 0 var(--s-2); }
.prose ul, .prose ol { margin: 0 0 var(--s-4); padding-left: var(--s-5); }
.prose img { border-radius: var(--radius); max-width: 100%; height: auto; margin-bottom: var(--s-5); }
.prose table, .prose pre, .prose iframe, .prose video { max-width: 100%; overflow-x: auto; }
.prose blockquote { margin: 0 0 var(--s-6); padding-left: var(--s-5); border-left: 3px solid var(--pink); }
.prose blockquote p:first-child { font: var(--fs-lg)/1.5 var(--serif); color: var(--plum); margin-bottom: var(--s-2); }
.prose blockquote p:last-child:not(:first-child) { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
@media (max-width: 860px) {
    .detail { grid-template-columns: 1fr; }
    .facts { position: static; }
    /* On offer pages the price and the main button would otherwise sit below the whole description. */
    .detail--offer .facts { order: -1; }
}

/* Forms */
.form { max-width: var(--form); }
/* Narrow pages put .form on .wrap; keep them left-aligned like the other forms instead of centring the column. */
.wrap.form { max-width: var(--wrap); }
.wrap.form > :not(h1) { max-width: var(--form); }
.form h2 { font-size: var(--fs-xl); margin: var(--s-7) 0 var(--s-4); }
.form h2:first-of-type { margin-top: var(--s-5); }
.form p.muted { font-size: var(--fs-sm); }
.lead + .form { margin-top: var(--s-6); }
.field { margin: 0 0 var(--s-5); }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: var(--s-2); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
    width: 100%; min-height: var(--control-lg); padding: 0 var(--s-3); border: 1px solid var(--input-line); border-radius: var(--radius-sm); font: var(--fs-md)/1.5 var(--sans); background: var(--surface); color: var(--text);
}
.field textarea { min-height: 8rem; padding: var(--s-3); display: block; }
.field .hint, .error { font-size: var(--fs-sm); margin: var(--s-1) 0 0; }
.field .hint { color: var(--muted); }
.error { color: var(--danger); }
.field--check label { display: flex; gap: var(--s-3); font-weight: 400; align-items: flex-start; }
.field--check input { flex: none; margin: .125rem 0 0; width: 1.5rem; height: 1.5rem; accent-color: var(--plum); }
.form .btn[type=submit] { margin-top: var(--s-2); }
.form form + * { margin-top: var(--s-4); }
.hp { position: absolute; left: -9999px; }
.alert { border-radius: var(--radius); padding: var(--s-4) var(--s-5); margin: 0 0 var(--s-5); border: 1px solid; }
.alert--ok { background: #eaf5ee; border-color: #b6d9c2; color: var(--ok); }
.alert--error { background: #fbecef; border-color: #eab6c0; color: var(--danger); }
.alert > p { margin: 0; }
.alert--info { background: var(--rose); border-color: #e3c4d5; color: var(--plum); }
.alert ul { margin: var(--s-2) 0 0; padding-left: var(--s-5); }
.alert--error a { color: var(--danger); font-weight: 600; }
.alert--preview { background: #fff4d6; border-color: #e0c36a; color: #5a4300; }
.summary { background: var(--lavender); border-radius: var(--radius); padding: var(--s-5); margin: 0 0 var(--s-5); }
.summary ul { margin: 0; padding-left: var(--s-5); }
.summary > p { margin: var(--s-3) 0 0; }
.summary .h3 { margin: 0 0 var(--s-2); }

/* Slot picker */
.days { display: grid; gap: var(--s-4); margin: 0 0 var(--s-5); }
.day { margin: 0; padding: var(--s-4) var(--s-5) var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-inline-size: 0; }
/* A floated legend sits inside the box like a normal block instead of cutting through the border. */
@media (max-width: 480px) { .day { padding: var(--s-3) var(--s-4) var(--s-4); } }
.day legend { float: left; width: 100%; padding: 0; margin: 0 0 var(--s-3); font-weight: 600; color: var(--plum); }
.day legend::first-letter { text-transform: uppercase; }
.slots { clear: both; display: grid; grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr)); gap: var(--s-2); }
.slot input { position: absolute; opacity: 0; }
.slot span { display: flex; align-items: center; justify-content: center; min-height: var(--control-lg); padding: 0 var(--s-2); border: 1px solid var(--input-line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-variant-numeric: tabular-nums; }
.slot span:hover { border-color: var(--plum); }
.slot input:checked + span { background: var(--plum); border-color: var(--plum); color: #fff; }
.slot input:focus-visible + span { outline: 3px solid var(--pink-text); outline-offset: 2px; }

/* Footer */
.footer { background: var(--plum); color: #f3e9ef; padding: var(--s-7) 0; }
.footer a { color: #fff; }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-5) var(--s-7); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: var(--s-1) 0; }
.footer__name { font-family: var(--serif); font-size: var(--fs-lg); font-weight: 500; }
.page-image { max-width: min(420px, 100%); border-radius: var(--arch); margin-bottom: var(--s-6); }
