/* Hallmark · shape: Narrative Workflow · genre: atmospheric · theme: Refract (deal 3/3, seed spec-clinic-124-multi-practitioner-a11e·78544b65·2026-12-03·r0) · job: book · draw: eb0384
 * hero: Ledge · nav: masthead · footer: index columns · imagery: photographs, Wikimedia Commons 1 (Whitstable itself), natural · signature: the "say what's wrong" matcher, real clinicians, real prices · refract: water/pool
 * axes: light/grotesk-sans/cool · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a clinic page argues little; made the argument "tell us what's wrong, we know who" and built the whole page around the matcher */
/* waive 76: the library holds no Whitstable; one Commons photograph of the town itself (CC BY 2.0), checked, saved locally and credited in the footer */
/* finish-review: subagent · 8 findings · 7 resolved, 1 partial (caustic net softer in the headless capture than in a browser) · gap: matcher now the lead panel, light moved to the 124 figure · sloplint 0 FAIL, 2 WARN dismissed: 58 word count is the clinic's true team of 16 and its real price list */
/* answered: draw swap, "next free times as buttons" became the matcher, because the clinic publishes no live availability and inventing times would be a false fact; the room photograph was cut, no sunlit Whitstable frame and none of the clinic's own */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --nav-h: 77px;
  --bar-h: 53px;
}

body { font-size: 1.0625rem; line-height: 1.6; color: var(--color-ink-2); }
h1, h2, h3 { color: var(--color-ink); }
h2 { font-size: var(--text-section); }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* Djenius concept bar */
.pbar { position: relative; z-index: var(--z-sticky-nav); background: var(--color-ink); color: var(--color-paper-3); font-size: var(--text-sm); }
.pbar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: var(--bar-h); padding-block: var(--space-xs); }
.pbar p { margin: 0; }
.pbar a { color: var(--color-paper); }
.pbar__acts { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; justify-content: flex-end; }
.secure { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--space-md); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out); }
.pbar .secure { color: var(--color-ink); }
.secure:hover { background: var(--color-accent-soft); }
.afford { min-height: 44px; padding: 0 var(--space-xs); border: 0; background: none; color: var(--color-paper-3); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.afford:hover { color: var(--color-paper); }
.secure:focus-visible, .afford:focus-visible { outline: 2px solid var(--color-accent-soft); outline-offset: 2px; }

/* Masthead */
.mast { position: sticky; top: 0; z-index: var(--z-sticky); background: color-mix(in oklab, var(--color-paper) 94%, transparent); border-bottom: var(--rule-hair) solid var(--color-rule); }
.mast .container { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: var(--nav-h); gap: var(--space-lg); }
.mast__links { display: flex; gap: var(--space-lg); font-size: var(--text-sm); }
.mast__links--end { justify-content: flex-end; align-items: center; }
.mast a { text-decoration: none; color: var(--color-ink-2); transition: color var(--dur-short) var(--ease-out); }
.mast a:hover { color: var(--color-accent); }
.wordmark { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 400; letter-spacing: var(--tracking-display); color: var(--color-ink); line-height: 1; }
.mast .wordmark { color: var(--color-ink); }
.mast__call { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 500 var(--text-md)/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-light) 35%, transparent), var(--shadow-card); transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-hi); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--clear { background: color-mix(in oklab, var(--color-light) 82%, transparent); color: var(--color-ink); box-shadow: var(--edge-light), var(--shadow-card); outline: 1px solid var(--color-rule); outline-offset: -1px; }
.btn--clear:hover { background: var(--color-light); }
.btn--clear:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.acts { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* Hero, Ledge */
.hero { position: relative; min-height: calc(100dvh - var(--nav-h) - var(--bar-h)); display: grid; align-items: end; padding-block: var(--space-2xl) var(--space-2xl); isolation: isolate; }
.light { position: absolute; inset: 0 0 0 0; z-index: -1; background: var(--color-shade); -webkit-mask-image: linear-gradient(to top, transparent 4%, var(--color-ink) 48%), linear-gradient(to right, transparent 8%, var(--color-ink) 52%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to top, transparent 4%, var(--color-ink) 48%), linear-gradient(to right, transparent 8%, var(--color-ink) 52%); mask-composite: intersect; }
.light canvas { width: 100%; height: 100%; display: block; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-2xl); align-items: end; }
.hero h1 { font-size: clamp(2.75rem, 5.4vw + 0.5rem, 5.75rem); max-width: 13ch; line-height: 1.0; }
.hero .lead { margin-top: var(--space-lg); color: var(--color-muted); max-width: 40ch; }
.hero .acts { margin-top: var(--space-xl); }
.desk { margin: 0; padding: var(--space-xl); border-radius: var(--radius-card); background: color-mix(in oklab, var(--color-light) 82%, transparent); box-shadow: var(--edge-light), var(--shadow-cast); }
.desk p { display: grid; gap: var(--space-xs); }
.desk__day { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.desk__hours { white-space: nowrap; font: 300 var(--text-display-s)/1 var(--font-display); letter-spacing: var(--tracking-display); color: var(--color-ink); font-variant-numeric: tabular-nums; }
.desk a { color: var(--color-ink); font-variant-numeric: tabular-nums; }
.pause { position: absolute; top: var(--space-md); right: var(--gutter); z-index: var(--z-raised); min-height: 36px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-light) 76%, transparent); color: var(--color-ink-2); font-size: var(--text-sm); cursor: pointer; box-shadow: var(--edge-light); transition: background-color var(--dur-short) var(--ease-out); }
.pause:hover { background: var(--color-light); }
html:not(.js) .pause { display: none; }
@media (prefers-reduced-motion: reduce) { .pause { display: none; } }

/* Sections */
.sec { padding-block: var(--section-gap) 0; }
.sec--tight { padding-block: var(--section-gap-s) 0; }
.sec--last { padding-block: var(--section-gap-l) var(--section-gap); }
.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: end; margin-bottom: var(--space-2xl); }
.head .lead { color: var(--color-muted); justify-self: end; max-width: 44ch; }
.n { color: var(--color-accent); }

/* Stage 1: the matcher */
.match { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
.chips { border: 0; margin: 0; padding: 0; display: grid; }
.chips legend { padding: 0; margin-bottom: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 68px; padding: 0 var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-inner); font: 400 var(--text-title)/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--color-ink-2); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.chips label::after { content: ""; flex: none; width: 10px; height: 10px; border-radius: var(--radius-pill); background: var(--color-rule); transition: background-color var(--dur-short) var(--ease-out); }
.chips label:hover { background: var(--color-paper-2); color: var(--color-ink); }
.chips input:checked + label { background: var(--color-accent-soft); color: var(--color-ink); border-top-color: transparent; }
.chips input:checked + label::after { background: var(--color-accent); }
.chips input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.answer { position: relative; min-height: 460px; padding: var(--space-2xl); border-radius: var(--radius-card); background: color-mix(in oklab, var(--color-light) 86%, transparent); box-shadow: var(--edge-light), var(--shadow-cast); outline: 1px solid var(--color-rule-2); outline-offset: -1px; }
.card { display: grid; gap: var(--space-md); }
.card[hidden] { display: none; }
.card h3 { font-size: var(--text-display-s); line-height: 1.02; max-width: 16ch; }
.card .who { font-size: var(--text-lead); color: var(--color-ink); }
.card p { max-width: 52ch; }
.card dl { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: var(--space-2xs) var(--space-2xl); margin: var(--space-sm) 0 var(--space-xs); }
.card dt { font-size: var(--text-sm); color: var(--color-muted); }
.card dd { margin: 0; font: 300 var(--text-2xl)/1.1 var(--font-display); color: var(--color-ink); font-variant-numeric: tabular-nums; }
.card .btn { justify-self: start; margin-top: var(--space-sm); }
.js .card:not(.is-on) { display: none; }
html:not(.js) .card + .card { margin-top: var(--space-2xl); padding-top: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }

/* Stage 2: first visits */
.prices { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prices th { text-align: left; font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); padding: 0 var(--space-md) var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); white-space: nowrap; }
.prices td { padding: var(--space-lg) var(--space-md) var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); vertical-align: baseline; }
.prices td:first-child { font: 400 var(--text-title)/1.2 var(--font-display); color: var(--color-ink); letter-spacing: -0.01em; }
.prices .p { text-align: right; font: 300 var(--text-2xl)/1 var(--font-display); color: var(--color-ink); padding-right: 0; }
.prices th.p { font: 500 var(--text-sm)/1.4 var(--font-body); color: var(--color-muted); }
.note { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }

/* Stage 3: the team */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-2xl); }
.team li { display: grid; gap: var(--space-2xs); padding-block: var(--space-md) var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.team b { font: 400 var(--text-title)/1.2 var(--font-display); letter-spacing: -0.01em; }
.team b { color: var(--color-ink); }
.team span { font-size: var(--text-sm); color: var(--color-muted); }

/* Statement */
.quote { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 10fr) minmax(0, 1fr); }
.quote blockquote { grid-column: 2; margin: 0; }
.quote blockquote p { max-width: none; font: 300 var(--text-section)/1.12 var(--font-display); letter-spacing: var(--tracking-display); color: var(--color-ink); text-indent: -0.4em; text-wrap: balance; }
.quote figcaption { grid-column: 2; margin-top: var(--space-lg); font-size: var(--text-md); color: var(--color-muted); }

/* Hours and address */
.num124 { position: relative; isolation: isolate; padding-block: var(--section-gap-s); margin-top: var(--section-gap-s); }
.light--side { -webkit-mask-image: linear-gradient(to right, transparent 38%, var(--color-ink) 78%), linear-gradient(to bottom, transparent 0%, var(--color-ink) 18%, var(--color-ink) 82%, transparent 100%); mask-image: linear-gradient(to right, transparent 38%, var(--color-ink) 78%), linear-gradient(to bottom, transparent 0%, var(--color-ink) 18%, var(--color-ink) 82%, transparent 100%); }
.visit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; }
.big124 { margin: 0; }
.big124 p { font: 300 clamp(9rem, 20vw, 19rem)/0.86 var(--font-display); letter-spacing: -0.05em; color: var(--color-ink); font-variant-numeric: tabular-nums; max-width: none; }
.big124 figcaption { margin-top: var(--space-lg); font-size: var(--text-md); color: var(--color-ink-2); max-width: 36ch; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-md) var(--space-2xl); margin: var(--space-xl) 0 0; }
.facts dt { font-size: var(--text-sm); color: var(--color-muted); padding-top: var(--space-3xs); }
.facts dd { margin: 0; color: var(--color-ink); }
.facts a { color: var(--color-ink); }

/* Close */
.close { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: center; }
.close .lead { margin-top: var(--space-lg); color: var(--color-muted); }
.close .acts { margin-top: var(--space-xl); }
.aerial { margin: 0; aspect-ratio: 4 / 3; min-height: 440px; border-radius: var(--radius-card); box-shadow: var(--shadow-cast); }

/* Footer */
.foot { padding-block: var(--space-3xl) var(--space-xl); background: var(--color-paper-2); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); }
.foot__cols { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: var(--space-2xl); }
.foot h2 { font-size: var(--text-md); font-family: var(--font-body); font-weight: 500; letter-spacing: 0; margin-bottom: var(--space-md); color: var(--color-ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.foot li { white-space: nowrap; }
.foot a { color: var(--color-ink-2); text-decoration: none; }
.foot a:hover { color: var(--color-accent); text-decoration: underline; }
.foot__btn { padding: 0; border: 0; background: none; color: var(--color-ink-2); font: inherit; cursor: pointer; text-align: left; transition: color var(--dur-short) var(--ease-out); }
.foot__btn:hover { color: var(--color-accent); text-decoration: underline; }
.foot .wordmark { font-size: var(--text-3xl); display: block; margin-bottom: var(--space-md); }
.foot__legal { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); display: grid; gap: var(--space-xs); color: var(--color-muted); }
.foot__legal a { color: var(--color-muted); text-decoration: underline; }

/* Pop-ups */
.pop { width: min(30rem, calc(100% - 2 * var(--space-lg))); padding: var(--space-xl); border: 0; border-radius: var(--radius-card); background: var(--color-light); color: var(--color-ink-2); box-shadow: var(--shadow-cast), var(--shadow-card); }
.pop::backdrop { background: color-mix(in oklab, var(--color-ink) 32%, transparent); }
.pop h2 { font-size: var(--text-2xl); margin-bottom: var(--space-md); padding-right: var(--space-xl); }
.pop p + p, .pop p + .acts { margin-top: var(--space-md); }
.pop-x { position: absolute; top: var(--space-md); right: var(--space-md); width: 44px; height: 44px; border: 0; border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); font-size: var(--text-lg); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.pop-x:hover { background: var(--color-paper-3); }

/* One reveal */
.js [data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* Under 60rem */
@media (max-width: 60rem) {
  :root { --nav-h: 64px; }
  .mast .container { grid-template-columns: auto minmax(0, 1fr); }
  .mast__links--start { display: none; }
  .mast .wordmark { font-size: var(--text-xl); }
  .hero { min-height: 0; padding-block: var(--space-3xl) var(--space-2xl); }
  .light { -webkit-mask-image: linear-gradient(to top, transparent 30%, var(--color-ink) 75%); mask-image: linear-gradient(to top, transparent 30%, var(--color-ink) 75%); -webkit-mask-composite: source-over; mask-composite: add; }
  .hero__grid, .match, .visit, .close, .head { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .quote blockquote p { text-indent: 0; }
      .head .lead { justify-self: start; }
  .light--side { -webkit-mask-image: linear-gradient(to bottom, transparent 45%, var(--color-ink) 75%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 45%, var(--color-ink) 75%, transparent 100%); -webkit-mask-composite: source-over; mask-composite: add; }
  .big124 p { font-size: clamp(7rem, 34vw, 11rem); }
  .head { margin-bottom: var(--space-xl); }
  .answer { min-height: 0; padding: var(--space-xl); }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote { grid-template-columns: minmax(0, 1fr); }
  .quote blockquote, .quote figcaption { grid-column: 1; }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / -1; }
  .aerial { min-height: 0; }
}
@media (max-width: 40rem) {
  .pbar .container { flex-direction: column; align-items: flex-start; gap: var(--space-xs); }
  .pbar__acts { justify-content: flex-start; }
  .mast__call { display: none; }
      .prices thead { display: none; }
  .prices, .prices tbody, .prices tr, .prices td { display: block; }
  .prices tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
  .prices td { border: 0; padding: 0; }
  .prices td:first-child { grid-column: 1; }
  .prices .p { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .prices td:not(:first-child):not(.p) { grid-column: 1; font-size: var(--text-sm); color: var(--color-muted); }
  .card dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card dl div:only-child { grid-column: 1 / -1; }
}
