/* Mike Austin Counselling — "Paper and Sage"
 * Cream paper ground, sage sections, rich purple for actions and the logo.
 * Fraunces for headings, Atkinson Hyperlegible Next for reading (chosen for
 * neurodivergent readers). 2px corners. No motion: the page behaves like paper.
 *
 * To change a colour across the whole site, edit the values in :root below.
 */

:root {
  --cream: rgb(250 247 241);
  --raised: rgb(244 240 231);
  --sage: rgb(205 216 197);
  --ink: rgb(43 34 26);
  --ink-soft: rgb(52 47 38);
  --muted: rgb(96 87 75);
  --purple: rgb(112 62 122);
  --white: rgb(255 255 255);
  --border: rgb(43 34 26 / 16%);

  --bg: var(--cream);
  --fg: var(--ink);
  --line: var(--border);
  --fg-muted: var(--muted);

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: 1440px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  font-feature-settings: "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, address { margin: 0; }
ul { padding: 0; list-style: none; }
main { flex: 1; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Section grounds */
section { background: var(--bg); color: var(--fg); border-top: 1px solid var(--line); }
.ground-sage { --bg: var(--sage); --fg: var(--ink-soft); --line: rgb(43 34 26 / 20%); --fg-muted: var(--ink-soft); }
.ground-raised { --bg: var(--raised); }
.page-book { background: var(--raised); }
.page-book main > .intro { background: var(--raised); }

.wrap { max-width: var(--page); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.pad { padding-top: 80px; padding-bottom: 80px; }
.pad-sm { padding-top: 56px; padding-bottom: 56px; }

/* Type */
.display, h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h-hero { font-size: 40px; line-height: 1.05; }
.h-xl { font-size: 52px; line-height: 0.98; letter-spacing: -0.02em; max-width: 14ch; }
.h-lg { font-size: 40px; line-height: 1.02; max-width: 18ch; }
.h-md { font-size: 30px; line-height: 1.05; max-width: 18ch; }
.lead { font-size: 18px; line-height: 30px; text-wrap: pretty; }
.strong { font-weight: 600; }
.overline { font-size: 12px; line-height: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.24em; color: var(--fg-muted); }
.muted { color: var(--fg-muted); }
.small { font-size: 14px; line-height: 20px; }
.link { color: var(--purple); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.icon { width: 16px; height: 16px; flex-shrink: 0; vertical-align: -2px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 32px;
  background: var(--purple); color: var(--white);
  font: 500 18px/1 var(--font-body);
  text-decoration: none; border-radius: 2px;
}
.button:hover { background: rgb(112 62 122 / 90%); }
.button:focus-visible, a:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--border); }
.site-header .wrap { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-badge { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wordmark { display: block; width: clamp(180px, calc(100vw - 200px), 300px); height: auto; max-width: none; }
.brand-email { display: none; padding-left: 12px; font-size: 14px; line-height: 20px; color: var(--purple); text-decoration: none; }
.brand-email:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-right { display: flex; align-items: center; gap: 16px; }
.nav-desktop { display: none; gap: 24px; }
.nav-desktop a, .nav-mobile a.nav-item { font-size: 18px; line-height: 30px; color: var(--muted); text-decoration: none; }
.nav-desktop a:hover, .nav-mobile a.nav-item:hover { color: var(--ink); }
.nav-desktop a[aria-current="page"], .nav-mobile a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.phone { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 600; color: var(--purple); text-decoration: none; }
.phone:hover { color: rgb(112 62 122 / 80%); }
.phone-number { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.menu-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 2px; }
.menu-button:hover { background: var(--raised); }
.menu-button svg { width: 20px; height: 20px; }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgb(0 0 0 / 50%); z-index: 60; }
.nav-mobile {
  position: fixed; top: 0; right: 0; bottom: 0; width: 288px; z-index: 70;
  background: var(--cream); padding: 24px; border-left: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px; padding-top: 64px;
}
.nav-mobile .close { position: absolute; top: 16px; right: 16px; }
.nav-mobile a.nav-item { padding: 8px 0; }
.nav-mobile .phone { margin-top: 16px; }
.nav-mobile .email { margin-top: 8px; font-size: 14px; color: var(--purple); word-break: break-all; text-decoration: none; }
[hidden] { display: none !important; }

/* Hero */
.hero { border-top: 0; }
.hero .wrap { padding-top: 40px; padding-bottom: 40px; }
.hero .sub { margin-top: 16px; font-size: 18px; line-height: 30px; font-weight: 600; }
.hero .intro-text { margin-top: 24px; max-width: 56rem; font-size: 18px; line-height: 1.65; text-wrap: pretty; }
.hero-photo { width: 100%; height: 36vh; object-fit: cover; object-position: center 70%; }

/* About band */
.band-grid { display: grid; }
.band-body { margin-top: 32px; }
.band-body p + p, .band-body .overline + p { margin-top: 16px; }
.band-body p:not(.overline) { font-size: 18px; line-height: 30px; text-wrap: pretty; }
.band-image { margin-top: 40px; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }

/* Areas grid */
.areas { margin-top: 40px; display: grid; grid-template-columns: 1fr; gap: 16px 32px; }
.areas li { border-top: 1px solid var(--line); padding-top: 12px; }
.areas h3 { font-size: 20px; line-height: 32px; letter-spacing: -0.005em; }
.after-areas { margin-top: 32px; font-size: 18px; line-height: 30px; }

/* Consultation */
.prose { margin-top: 40px; max-width: 48rem; }
.prose p { font-size: 18px; line-height: 1.65; text-wrap: pretty; }
.prose p + p { margin-top: 20px; }
.cta-row { margin-top: 40px; }

/* Two-column editorial lists (credentials, how it works, location) */
.split { display: block; }
.split > :last-child { margin-top: 40px; }
.list-lines li, .details > div { border-top: 1px solid var(--line); padding: 20px 0; }
.list-lines li:first-child, .details > div:first-child { border-top: 0; padding-top: 0; }
.list-lines span { font-family: var(--font-heading); font-size: 18px; line-height: 1.375; font-weight: 500; display: block; letter-spacing: -0.01em; }
.h-short { max-width: 12ch; }
.h-tight { max-width: 10ch; line-height: 1; }
.details dt { font-size: 12px; line-height: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--fg-muted); }
.details dd { margin-top: 8px; font-size: 18px; line-height: 1.65; text-wrap: pretty; }

.more-link { padding: 64px var(--gutter); text-align: center; }
.more-link a { font-size: 18px; text-decoration: underline; text-underline-offset: 4px; }

/* Booking page */
.book-intro { padding: 64px 0 48px; }
.book-intro h1 { text-align: center; font-size: 40px; line-height: 1.02; margin: 0 auto; max-width: var(--page); padding: 0 var(--gutter); }
.value { margin-top: 48px; }
.value ul { margin-top: 40px; }
.value li { display: flex; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; }
.value li + li { margin-top: 24px; }
.value li svg { width: 24px; height: 24px; margin-top: 4px; flex-shrink: 0; }
.value li span { font-size: 18px; line-height: 1.65; text-wrap: pretty; }
.calendar { margin-top: 48px; }
.calendar-frame { border: 1px solid var(--border); background: var(--cream); }
.calendly-inline-widget { min-width: 280px; height: 760px; }
.calendar-help { margin-top: 16px; }
.exterior { margin: 0 auto; width: 100%; max-width: 48rem; aspect-ratio: 4 / 5; object-fit: cover; }
.map { width: 100%; height: 320px; border: 1px solid var(--border); }
.loc-body { margin-top: 24px; }
.address-lg { font-style: normal; font-size: 18px; line-height: 1.65; }
.directions { display: inline-flex; align-items: center; gap: 4px; margin-top: 24px; }
.contact-grid { display: grid; gap: 48px; }
.contact-intro { margin-top: 32px; max-width: 28rem; }
.contact-intro p:first-child { font-size: 20px; line-height: 1.65; }
.contact-intro p + p { margin-top: 24px; }
.form-card { background: var(--white); border: 1px solid var(--border); padding: 24px; box-shadow: 0 1px 2px rgb(0 0 0 / 5%); }
.form-card iframe { width: 100%; border: 0; min-height: 560px; }
.scroll-target { scroll-margin-top: 112px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--cream); }
.site-footer .wrap { padding-top: 48px; padding-bottom: 48px; }
.footer-top { display: flex; flex-direction: column; gap: 32px; }
.footer-top address { margin-top: 20px; font-style: normal; font-size: 14px; line-height: 1.65; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
.footer-line { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.site-footer .wordmark { width: 300px; max-width: 100%; }

/* 404 */
.notfound { text-align: center; padding: 120px var(--gutter); }
.notfound h1 { font-size: 52px; line-height: 1; }
.notfound p { margin-top: 16px; }

/* ≥520px: room to show the phone number text beside the logo */
@media (min-width: 520px) {
  .phone-number { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .wordmark { width: clamp(180px, calc(100vw - 300px), 300px); }
}

/* ≥640px */
@media (min-width: 640px) {
  .brand-badge { width: 64px; height: 64px; }
  .brand-email { display: block; }
  .wordmark { width: clamp(180px, calc(100vw - 340px), 340px); }
  .areas { grid-template-columns: repeat(2, 1fr); }
  .details > div { display: flex; gap: 32px; }
  .details dt { width: 176px; flex-shrink: 0; padding-top: 4px; }
  .details dd { margin-top: 0; }
}

/* ≥768px */
@media (min-width: 768px) {
  .h-hero { font-size: 52px; letter-spacing: -0.02em; }
  .book-intro h1 { font-size: 52px; }
}

/* ≥1024px: desktop */
@media (min-width: 1024px) {
  :root { --gutter: 32px; }
  .pad { padding-top: 112px; padding-bottom: 112px; }
  .pad-sm { padding-top: 80px; padding-bottom: 80px; }
  .nav-desktop { display: flex; }
  .menu-button { display: none; }
  .header-right { gap: 32px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 56px; }
  .h-hero { font-size: 64px; line-height: 1.05; letter-spacing: -0.022em; }
  .hero .sub { font-size: 20px; line-height: 32px; }
  .hero-photo { height: 48vh; }
  .h-xl { font-size: 76px; letter-spacing: -0.025em; }
  .h-lg { font-size: 64px; letter-spacing: -0.022em; }
  .h-md { font-size: 40px; }

  .band-grid { grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr; column-gap: 48px; }
  .band-grid .h-xl { grid-column: 6 / span 7; grid-row: 1; }
  .band-body { grid-column: 1 / span 5; grid-row: 1 / span 2; margin-top: 0; }
  .band-image-wrap { grid-column: 6 / span 7; grid-row: 2; position: relative; margin-top: 40px; min-height: 0; }
  .band-image { margin-top: 0; position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }

  .areas { grid-template-columns: repeat(3, 1fr); }

  .split { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 48px; align-items: start; }
  .split > :first-child { grid-column: 1 / span 4; }
  .split > :last-child { grid-column: 5 / span 8; margin-top: 0; }
  .split.creds { column-gap: 32px; }
  .split.creds > :first-child { grid-column: 1 / span 5; }
  .split.creds > :last-child { grid-column: 7 / span 6; }
  .list-lines span { font-size: 20px; }
  .h-loc { font-size: 52px; line-height: 1.02; }
  .map { height: 420px; }

  .book-intro { padding: 80px 0 64px; }
  .book-intro h1 { font-size: 64px; }
  .value { margin-top: 64px; }
  .value ul { margin-top: 48px; }
  .value li + li { margin-top: 32px; }
  .value li span { font-size: 20px; }
  .calendar { margin-top: 64px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .form-card { padding: 40px; }

  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
