/* =============================================================================
   Rebecca Burger-Caplan, PhD — Clinical Psychologist
   Single shared stylesheet. No build step, no dependencies.

   Design intent (from the architecture spec):
   - Warm, understated, authoritative. Premium by restraint.
   - Typographic identity only (no logo). Generous white space. Calm.
   - Design quality itself is the premium signal.

   Structure:
   1. Tokens (color, type, space)
   2. Reset & base
   3. Typography
   4. Layout primitives
   5. Header / navigation
   6. Footer
   7. Components (buttons, eyebrow, hero, cards, affiliations, form, badge…)
   8. Utilities, motion, print
   ========================================================================== */

/* Self-hosted fonts (privacy + speed; Fraunces + Karla are open-source/OFL).
   ⚑ The .woff2 files must live in /assets/fonts/ with these exact names. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/fraunces-400.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/fraunces-600.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/karla-400.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/karla-500.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/karla-600.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/karla-700.woff2") format("woff2"); }

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Color — warm paper, soft ink, a single restrained pine-green accent */
  --paper:       #ffffff;  /* page background                            */
  --surface:     #f6faf7;  /* alternating section / quiet panels         */
  --surface-2:   #edf5f0;  /* subtle inset                               */
  --ink:         #2f3a37;  /* primary text, soft dark                    */
  --ink-soft:    #6a746f;  /* secondary text, captions, meta             */
  --line:        #e8eeea;  /* hairlines, borders                         */
  --brand:       #1c8f68;  /* green — links, buttons, headings accents   */
  --brand-deep:  #157254;  /* hover / pressed                            */
  --brand-tint:  #e8f7f0;  /* faint green wash                           */
  --on-brand:    #ffffff;  /* text on brand background                   */

  /* warm accent + light colour fields (the motif + offset blocks)       */
  --accent:      #f2825c;  /* coral — halftone dots, small marks         */
  --accent-deep: #c85f3c;  /* coral for small text (eyebrows)            */
  --accent-tint: #ffeee7;  /* pale coral field                           */
  --tint-green:  #e8f7f0;
  --tint-sky:    #eaf2fc;
  --tint-butter: #fff6e3;
  --sun:         #f2b544;
  --sun-tint:    #ffeec4;

  /* Type — serif headings (warm, faculty-profile authority) + sans body  */
  --font-serif: "Fraunces", Charter, "Iowan Old Style", Palatino, Georgia, serif;
  --font-sans:  "Karla", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Fluid type scale (~1.22 ratio, clamps for graceful mobile→desktop)   */
  --fs-eyebrow: 0.78rem;
  --fs-sm:   0.92rem;
  --fs-base: clamp(1.0625rem, 1.0rem + 0.3vw, 1.1875rem);
  --fs-lg:   clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --fs-xl:   clamp(1.45rem, 1.25rem + 1vw, 1.85rem);
  --fs-2xl:  clamp(1.8rem, 1.45rem + 1.7vw, 2.55rem);
  --fs-3xl:  clamp(2.2rem, 1.7rem + 2.5vw, 3.3rem);

  /* Space scale */
  --sp-1: 0.5rem;  --sp-2: 0.875rem; --sp-3: 1.25rem; --sp-4: 1.75rem;
  --sp-5: 2.5rem;  --sp-6: 3.5rem;   --sp-7: 5rem;    --sp-8: 7rem;

  /* Measure & widths */
  --measure: 64ch;          /* comfortable reading width */
  --container: 70rem;       /* page max width */
  --container-narrow: 48rem;

  --radius: 3px;
  --radius-lg: 4px;
  --shadow-soft: 0 1px 2px rgba(38,35,30,.04), 0 8px 28px rgba(38,35,30,.06);
}

/* 2. RESET & BASE --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-deep); }

:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

/* 3. TYPOGRAPHY ----------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); line-height: 1.08; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); letter-spacing: -0.005em; }
h4 { font-size: var(--fs-lg); }

p, ul, ol { font-size: var(--fs-base); }
p + p { margin-top: 1em; }

/* Readable prose block */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.4em; }
.prose strong { font-weight: 650; }

/* Lead paragraph — slightly larger, set in serif for warmth */
.lead {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--ink);
  max-width: 54ch;
}

/* 4. LAYOUT --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
.narrow { max-width: var(--container-narrow); }

main { flex: 1 0 auto; }

.section { padding-block: clamp(3rem, 7vw, var(--sp-8)); }
.section--tint { background: var(--surface); }
.section--brand-tint { background: var(--brand-tint); }
.section--tight { padding-block: clamp(2.5rem, 5vw, var(--sp-6)); }

.hr { border: 0; border-top: 1px solid var(--line); margin-block: var(--sp-6); }

/* Simple responsive two-column split (text + portrait, etc.) */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 56rem) {
  .split { grid-template-columns: 1.15fr 0.85fr; }
  .split--even { grid-template-columns: 1fr 1fr; }
}

/* 5. HEADER / NAV --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  /* NB: do not add transform/filter/backdrop-filter here — it would make the
     header a containing block for the position:fixed mobile drawer and break
     its height. Keep the header free of those properties. */
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-3);
}
.brand-mark { display: flex; flex-direction: column; gap: 1px; text-decoration: none; color: var(--ink); }
.brand-mark:hover { color: var(--ink); }
.brand-name { font-family: var(--font-serif); font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }
.brand-creds { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

/* Primary navigation */
.nav { display: flex; align-items: center; gap: clamp(0.5rem, 1.5vw, 1.6rem); }
.nav-list { list-style: none; padding: 0; display: flex; align-items: center; gap: clamp(0.5rem, 1.5vw, 1.6rem); }
.nav-link {
  font-size: 0.95rem; text-decoration: none; color: var(--ink);
  padding: 0.35rem 0; position: relative; white-space: nowrap;
}
.nav-link:hover { color: var(--brand); }
.nav-link[aria-current="page"] { color: var(--brand); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--brand);
}

/* Services dropdown (works via :focus-within / :hover with no JS; JS adds click + aria) */
.has-sub { position: relative; }
.sub-toggle {
  font: inherit; font-size: 0.95rem; color: var(--ink); background: none; border: 0;
  cursor: pointer; padding: 0.35rem 0; display: inline-flex; align-items: center; gap: 0.3rem;
}
.sub-toggle:hover { color: var(--brand); }
.sub-toggle .chev { width: 0.6em; height: 0.6em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.submenu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 16rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-soft);
  padding: 0.5rem; list-style: none; margin: 0.5rem 0 0;
  opacity: 0; visibility: hidden; transition: opacity .16s ease;
  z-index: 40;
}
.has-sub:hover .submenu,
.has-sub:focus-within .submenu,
.submenu[data-open="true"] { opacity: 1; visibility: visible; }
/* Invisible bridge across the gap so hovering from "Services" down to the
   submenu doesn't pass through a dead zone that closes the menu. */
.has-sub .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -0.6rem; height: 0.6rem; }
@media (max-width: 60rem) { .has-sub .submenu::before { content: none; } }
.has-sub:hover .chev, .has-sub:focus-within .chev { transform: rotate(225deg) translateY(2px); }
.submenu a {
  display: block; padding: 0.55rem 0.7rem; border-radius: 4px;
  text-decoration: none; color: var(--ink); font-size: 0.95rem; line-height: 1.3;
}
.submenu a:hover, .submenu a:focus-visible { background: var(--surface); color: var(--brand); }

/* Mobile menu toggle */
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.5rem 0.7rem; cursor: pointer; font: inherit; font-size: 0.9rem; color: var(--ink);
  align-items: center; gap: 0.5rem; position: relative; z-index: 60;
}
.menu-toggle .bars { width: 18px; height: 12px; position: relative; display: inline-block; }
.menu-toggle .bars::before, .menu-toggle .bars::after, .menu-toggle .bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink);
}
.menu-toggle .bars::before { top: 0; } .menu-toggle .bars span { top: 5px; } .menu-toggle .bars::after { bottom: 0; }

@media (max-width: 60rem) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 22rem);
    background: var(--paper); border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 5rem var(--sp-4) var(--sp-4); gap: 0;
    transform: translateX(100%); transition: transform .24s ease;
    box-shadow: var(--shadow-soft); overflow-y: auto; z-index: 50;
  }
  .nav[data-open="true"] { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link, .sub-toggle { display: block; width: 100%; padding: 0.85rem 0; font-size: 1.05rem; }
  .nav-link[aria-current="page"]::after { display: none; }
  .submenu {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    border: 0; border-radius: 0; min-width: 0; margin: 0 0 0.5rem; padding: 0 0 0.5rem 0.75rem;
  }
  .has-sub:hover .chev, .has-sub:focus-within .chev { transform: rotate(45deg) translateY(-2px); }
  .nav .btn { margin-top: var(--sp-3); text-align: center; }
}

/* 6. FOOTER --------------------------------------------------------------- */
.site-footer {
  background: var(--brand);
  color: var(--on-brand);
  margin-top: var(--sp-7);
  padding-block: clamp(2.5rem, 5vw, var(--sp-6));
  font-size: 0.95rem;
}
.site-footer a { color: var(--on-brand); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: var(--sp-4) var(--sp-5); }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-name { font-family: var(--font-serif); font-size: 1.25rem; }
.footer-creds { color: color-mix(in srgb, var(--on-brand) 78%, transparent); margin-top: 0.4rem; font-size: 0.9rem; }
.footer-h { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: color-mix(in srgb, var(--on-brand) 80%, transparent); margin-bottom: 0.6rem; }
.footer-list { list-style: none; padding: 0; display: grid; gap: 0.4rem; }
.footer-affil { color: color-mix(in srgb, var(--on-brand) 80%, transparent); font-size: 0.85rem; line-height: 1.6; }
.footer-bottom { margin-top: var(--sp-5); padding-top: var(--sp-3); border-top: 1px solid color-mix(in srgb, var(--on-brand) 22%, transparent); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.82rem; color: color-mix(in srgb, var(--on-brand) 82%, transparent); }
.footer-affil { margin-top: 1rem; }

/* 7. COMPONENTS ----------------------------------------------------------- */

/* Eyebrow / kicker label */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: inherit; font-size: 0.98rem; font-weight: 500; line-height: 1;
  padding: 0.85rem 1.5rem; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 1.5px solid var(--brand);
  background: var(--brand); color: var(--on-brand);
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--on-brand); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: var(--on-brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.btn .arrow { transition: transform .16s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 6.5rem); }
.hero h1 { max-width: 18ch; }
.hero .lead { margin-top: var(--sp-3); }

/* Portrait / headshot placeholder frame */
.portrait {
  aspect-ratio: 4 / 5; width: 100%; border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .monogram { font-family: var(--font-serif); font-size: clamp(2.5rem, 6vw, 4rem); color: color-mix(in srgb, var(--brand) 55%, var(--surface)); letter-spacing: 0.05em; }
.portrait .ph-note { position: absolute; bottom: 0.75rem; left: 0; right: 0; text-align: center; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); opacity: 0.7; }

/* Pathway cards (Home → services) */
.cards { display: grid; gap: var(--sp-3); }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: var(--sp-4); background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); text-decoration: none; color: var(--ink);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-soft); color: var(--ink); }
.card h3 { font-size: var(--fs-lg); }
.card p { font-size: 0.95rem; color: var(--ink-soft); }
.card .card-go { margin-top: auto; padding-top: 0.5rem; color: var(--brand); font-size: 0.9rem; font-weight: 500; }

/* Feature list with hanging marks */
.marklist { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.marklist li { position: relative; padding-left: 1.5rem; }
.marklist li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.5rem; height: 0.5rem; border: 1.5px solid var(--brand); border-radius: 50%; }

/* Definition-style blocks (e.g., the two parenting modes, eval steps) */
.steps { display: grid; gap: var(--sp-3); counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: start; }
.step .num {
  counter-increment: step; font-family: var(--font-serif); font-size: 1.1rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1.5px solid var(--brand);
  color: var(--brand); display: grid; place-items: center;
}
.step .num::before { content: counter(step); }
.step h3 { font-size: var(--fs-lg); }
.step p { color: var(--ink-soft); margin-top: 0.2rem; }

/* Affiliations */
.affiliations { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }
.affil-item { font-family: var(--font-serif); font-size: 1.05rem; color: var(--ink); }
.affil-sep { color: var(--line); }

/* "Accepting new patients" badge */
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 0.35rem 0.8rem; border-radius: 100px;
  background: var(--brand-tint); color: var(--brand-deep); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
}
.badge .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--brand); }

/* Page header (interior pages) */
.page-head { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { max-width: 20ch; }
.page-head .lead { margin-top: var(--sp-3); }

/* Centered variant — used by the 404 page */
.page-head--center { text-align: center; }
.page-head--center h1 { max-width: none; }
.page-head--center .lead { margin-inline: auto; }
.page-head--center .btn-row { justify-content: center; }

/* Closing CTA band (repeated at foot of each page) */
.cta-band { background: var(--brand); color: var(--on-brand); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.cta-band h2 { color: var(--on-brand); max-width: 22ch; margin-inline: auto; }
.cta-band p { color: color-mix(in srgb, var(--on-brand) 85%, transparent); max-width: 46ch; margin: var(--sp-2) auto 0; }
.cta-band .btn { margin-top: var(--sp-4); background: var(--paper); color: var(--brand); border-color: var(--paper); }
.cta-band .btn:hover { background: #fff; border-color: #fff; color: var(--brand-deep); }

/* Contact details list */
.contact-list { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.contact-list .label { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.2rem; }
.contact-list .value { font-size: var(--fs-lg); font-family: var(--font-serif); }
.contact-list .value a { text-decoration: none; }
.contact-list .value a:hover { text-decoration: underline; }

/* Form */
.form { display: grid; gap: var(--sp-3); }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field .req { color: var(--brand); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.field textarea { min-height: 8rem; resize: vertical; }
.form-note { font-size: 0.86rem; color: var(--ink-soft); background: var(--surface); border-left: 3px solid var(--brand); padding: 0.85rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; }
/* Contact form: paired name/email row + full-width submit */
.form-row { display: grid; gap: var(--sp-3); }
@media (min-width: 32rem) { .form-row { grid-template-columns: 1fr 1fr; } }
.form .btn { width: 100%; justify-content: center; }

/* Small print / disclaimers */
.fineprint { font-size: 0.86rem; color: var(--ink-soft); }

/* Quiet panel — affiliations box, About "at a glance", contact form surround */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, var(--sp-5));
}
/* Small uppercase label, used above lists/panels throughout the body */
.kicker { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.6rem; }
.kicker--brand { color: var(--brand); }
.h-sm { font-size: var(--fs-xl); }

/* Home hero — name-forward: headline eased down a step so the name reads clearly beneath it */
.hero--home h1 { font-size: clamp(2rem, 1.55rem + 1.5vw, 2.6rem); }
.name-line { font-family: var(--font-serif); font-size: var(--fs-xl); color: var(--ink); letter-spacing: -0.005em; line-height: 1.2; margin-top: 0.5rem; }

/* Calm wayfinding — one quiet panel divided by hairlines (replaces the busier card grid) */
.calm-cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: var(--sp-3); }
@media (min-width: 38rem) { .calm-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .calm-cards { grid-template-columns: repeat(4, 1fr); } }
.calm-card { background: var(--paper); padding: 1.2rem 1.3rem; text-decoration: none; color: var(--ink); display: block; transition: background .15s ease; }
.calm-card:hover { background: var(--surface); }
.calm-card h3 { font-size: 1.1rem; line-height: 1.2; }
.calm-card p { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.3rem; }

/* Quiet credentials list (About) */
.creds { list-style: none; padding: 0; display: grid; gap: 0.55rem; margin-top: var(--sp-3); }
.creds li { padding-left: 0; }
.creds .cred-title { font-weight: 600; }
.creds .cred-org { color: var(--ink-soft); }

/* Auto-fitting card grid + non-interactive card variant */
.cards--auto { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card--static { cursor: default; }
.card--static:hover { transform: none; border-color: var(--line); box-shadow: none; }

/* Split that aligns columns to the top instead of centering */
.split--top { align-items: start; }
/* a heading that leads a side-by-side column shouldn't carry its own top margin,
   or it drops below the label in the adjacent column */
.split .prose > :first-child { margin-top: 0; }

/* Honeypot field (spam trap) — off-screen, hidden from assistive tech */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Breadcrumb (nested service pages) */
.breadcrumb { margin-bottom: var(--sp-3); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; font-size: 0.85rem; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb .sep { color: var(--line); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* FAQ — native <details> accordion, fully usable without JavaScript */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-3) 0;
  font-family: var(--font-serif); font-size: var(--fs-lg); line-height: 1.3; color: var(--ink);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin-right: 0.25rem;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] > summary::after { transform: rotate(225deg); }
.faq-item > summary:hover { color: var(--brand); }
.faq-a { padding: 0 0 var(--sp-3); max-width: var(--measure); color: var(--ink-soft); }
.faq-a > * + * { margin-top: 0.8em; }

/* 8. UTILITIES ------------------------------------------------------------ */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 0.75rem; top: -3rem; z-index: 100;
  background: var(--brand); color: var(--on-brand); padding: 0.6rem 1rem; border-radius: var(--radius);
  text-decoration: none; transition: top .16s ease;
}
.skip-link:focus { top: 0.75rem; color: var(--on-brand); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--sp-1); } .mt-3 { margin-top: var(--sp-3); } .mt-4 { margin-top: var(--sp-4); }
.muted { color: var(--ink-soft); }
.maxw-prose { max-width: var(--measure); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =============================================================================
   9. DESIGN LANGUAGE — light colour fields, print geometry, halftone dot motif
   Type: Fraunces (display) + Karla (text). Palette + radii are in the tokens.
   ========================================================================== */

/* Type — confident but readable; personality comes from the face, not the size */
h1, h2, h3 { font-weight: 600; }
h1 { letter-spacing: -0.02em; line-height: 1.06; }
h2 { letter-spacing: -0.012em; }
.hero--home h1 { font-size: clamp(2.5rem, 2rem + 2.4vw, 3.5rem); }
.page-head h1 { font-size: clamp(2.2rem, 1.8rem + 1.9vw, 3rem); line-height: 1.08; }
.lead { font-size: clamp(1.14rem, 1.04rem + 0.45vw, 1.3rem); line-height: 1.55; }
.eyebrow { color: var(--accent-deep); letter-spacing: 0.18em; }
.kicker--brand { color: var(--accent-deep); }
.brand-creds { letter-spacing: 0.1em; }
.btn { font-weight: 600; }
.faq-item > summary { font-weight: 600; }

/* Light colour fields + flat offset depth */
.hero { background: radial-gradient(55rem 34rem at 88% -12%, var(--tint-green) 0%, transparent 62%); }
.page-head { background: radial-gradient(50rem 28rem at 92% -20%, var(--tint-sky) 0%, transparent 60%); }
.section--tint { background: var(--tint-green); }
.section--brand-tint { background: var(--tint-butter); }
.portrait { border-color: transparent; box-shadow: 16px 16px 0 var(--sun-tint); }
.panel { background: #fff; border: 1px solid var(--line); box-shadow: 9px 9px 0 var(--tint-sky); }

/* Areas of practice — separate tiles on flat offset blocks */
.calm-cards { background: transparent; border: 0; gap: var(--sp-3); border-radius: 0; overflow: visible; }
.calm-card { background: #fff; border: 1px solid var(--line); padding: 1.4rem; box-shadow: 7px 7px 0 var(--tint-sky); }
.calm-card:nth-child(2) { box-shadow: 7px 7px 0 var(--accent-tint); }
.calm-card:nth-child(3) { box-shadow: 7px 7px 0 var(--sun-tint); }
.calm-card:nth-child(4) { box-shadow: 7px 7px 0 var(--tint-green); }
.calm-card h3 { font-size: 1.12rem; }
.calm-card:hover { background: #fff; border-color: var(--line); box-shadow: 10px 10px 0 var(--brand-tint); }

/* Numbered steps + list marks */
.step .num { border: 0; background: var(--tint-sky); color: var(--brand); }
.steps .step:nth-child(2) .num { background: var(--accent-tint); color: var(--accent-deep); }
.steps .step:nth-child(3) .num { background: var(--sun-tint); color: #8a6a12; }
.marklist li::before { border: 0; background: var(--accent); width: 0.5rem; height: 0.5rem; top: 0.68em; }

/* Light footer (replaces the dark slab that anchored every page) */
.site-footer { background: var(--tint-green); color: var(--ink); }
.site-footer a { color: var(--brand); }
.site-footer a:hover { color: var(--brand-deep); }
.footer-creds, .footer-h { color: var(--ink-soft); }
.footer-bottom { color: var(--ink-soft); border-top-color: rgba(47, 58, 55, .14); }

/* Credentials list (About) */
.creds li { position: relative; padding-left: 1.15rem; }
.creds li::before { content: ""; position: absolute; left: 0; top: 0.66em; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--accent); }

/* Asymmetry — offset hero columns, staggered tiles */
@media (min-width: 56rem) {
  .hero .split { grid-template-columns: 1.55fr 1fr; align-items: start; }
  .hero .portrait { margin-top: 3.25rem; }
}
@media (min-width: 64rem) {
  .calm-card:nth-child(even) { transform: translateY(26px); }
  .calm-card:nth-child(odd):hover { transform: translateY(-3px); }
  .calm-card:nth-child(even):hover { transform: translateY(23px); }
}

/* Signature motif — coral halftone dots, cropped by the page edge.
   Placement varies per page (body class) so it reads as a gesture, not a stamp. */
.hero, .page-head { position: relative; overflow: hidden; }
.hero > .container, .page-head > .container { position: relative; z-index: 1; }
.hero::before, .page-head::after {
  content: ""; position: absolute; pointer-events: none;
  background-image: radial-gradient(var(--accent) 2.2px, transparent 2.4px);
  background-size: 15px 15px;
}
.hero::before   { left: -30px; bottom: -18px; width: 78px; height: 215px; opacity: .5; }
.page-head::after { right: -30px; top: 20%; width: 74px; height: 200px; opacity: .45; }
.p-about   .page-head::after { top: 12%; height: 240px; }
.p-yc      .page-head::after { top: 32%; height: 175px; }
.p-adults  .page-head::after { left: -30px; right: auto; top: auto; bottom: -14px; height: 165px; }
.p-parents .page-head::after { top: 22%; height: 205px; }
.p-testing .page-head::after { right: -34px; top: 8%; width: 92px; height: 265px; opacity: .5; }
.p-faq     .page-head::after { left: -30px; right: auto; top: auto; bottom: -16px; height: 150px; }
.p-contact .page-head::after { top: 28%; height: 185px; }

@media print {
  .site-header, .site-footer, .cta-band, .menu-toggle, .nav .btn { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
