/* Maren Kestwick Psychotherapy (sample). Hand-built, five pages, one stylesheet.
   Built to look nothing like the new-grad sample: a dark sidebar instead of a top bar,
   serif type, square corners, full-bleed photo, index lists and ledgers instead of cards. */
:root {
  --white: #FFFFFF;
  --ink: #16201D;
  --muted: #36423E;
  --clay: #A4553B;
  --forest: #12302B;
  --sage: #EDEBE3;
  --soft: #B9C8C2;
  --line: rgba(22, 32, 29, .2);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(24px, 5vw, 72px);
  --sec: clamp(48px, 6vw, 80px);
  --rail: 288px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 20px/1.6 var(--serif); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.1; margin-bottom: 32px; }
h3 { font-size: 24px; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dark a:focus-visible, .rail a:focus-visible, .rail button:focus-visible, .footer a:focus-visible { outline-color: #fff; }
img { display: block; width: 100%; height: auto; object-fit: cover; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 16px; z-index: 20; }

/* ---------- Shell: sidebar left, page right ---------- */
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); }
.stage { min-width: 0; }
.sample { margin: 0; background: var(--ink); color: #fff; font: 14px/1.4 var(--sans); padding: 8px var(--pad); }
.sample a { color: #fff; }

.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 40px 32px 32px; background: var(--forest); color: #fff; overflow-y: auto; }
.name { display: block; text-decoration: none; }
.name-main { display: block; font: 500 30px/1.1 var(--serif); letter-spacing: -0.01em; }
.name-sub { display: block; margin-top: 8px; font: 400 15px/1.4 var(--sans); color: var(--soft); }
.rail nav { margin-top: 48px; }
.rail ul { margin: 0; padding: 0; list-style: none; }
.rail nav a { display: flex; align-items: center; min-height: 48px; padding-left: 16px; border-left: 2px solid rgba(255, 255, 255, .22); font: 500 16px/1.3 var(--sans); text-decoration: none; color: var(--soft); }
.rail nav a:hover { color: #fff; border-left-color: #fff; }
.rail nav a[aria-current="page"] { color: #fff; border-left-color: #fff; font-weight: 600; }
.rail-foot { margin-top: auto; display: grid; gap: 12px; }
.rail-phone { display: inline-flex; align-items: center; min-height: 44px; font: 500 17px/1 var(--sans); color: #fff; }
.rail-note { font: 400 14px/1.4 var(--sans); color: var(--soft); }
.rail .bar-book, .rail .menu-button { display: none; }

/* ---------- Buttons: square ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; background: var(--forest); color: #fff; border: 0; border-radius: 0; font: 600 16px/1.2 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { background: #0B211D; }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: var(--sage); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font: 600 16px/1.2 var(--sans); text-decoration-color: var(--clay); text-decoration-thickness: 2px; }

/* ---------- Page rhythm ---------- */
.pad { padding-inline: var(--pad); }
.pad > * { max-width: 1120px; }
.sec { padding-block: var(--sec); }
.band { background: var(--sage); }
.dark { background: var(--forest); color: #fff; }
.dark h2 { color: #fff; }
.eyebrow { font: 600 14px/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.eyebrow-light { color: var(--soft); }
.prose { max-width: 32em; }
.prose p + p { margin-top: 16px; }
.prose p { color: var(--muted); }
.prose-wide { max-width: 33em; }

/* ---------- Cover: full-bleed photo, headline on a slab ---------- */
.cover { position: relative; min-height: min(88vh, 820px); background: #CFD6D2; display: flex; align-items: flex-end; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-position: center 40%; }
/* A white tab that rises from the page into the photo, inset so the photo shows around it */
.cover-slab { position: relative; max-width: 600px; margin-left: clamp(24px, 4vw, 56px); padding: 36px 40px 36px; background: #fff; color: var(--ink); }
.cover-slab .eyebrow-light { color: var(--muted); }
.cover-slab h1 { font-size: clamp(32px, 3vw, 44px); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 24px; text-wrap: balance; }
.cover-slab .btn { background: var(--forest); color: #fff; }
.cover-slab .btn:hover { background: #0B211D; }
.slab-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
.slab-phone { display: inline-flex; align-items: center; min-height: 44px; font: 600 17px/1 var(--sans); color: var(--ink); }

.lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 32px 72px; align-items: start; }
.lead-text { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.3; letter-spacing: -0.01em; }
.lead-side { font: 400 16px/1.5 var(--sans); color: var(--muted); border-top: 2px solid var(--clay); padding-top: 12px; }
.lead-side strong { display: block; color: var(--ink); margin-bottom: 4px; font-weight: 600; }

/* ---------- Index list: whole rows are links ---------- */
.index { border-top: 2px solid var(--ink); }
.index-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 56px; gap: 24px; align-items: center; padding: 32px 16px; margin-inline: -16px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: background .15s; }
.index-row:hover { background: var(--sage); }
.index-num { font: 400 20px/1 var(--serif); color: var(--clay); }
.index-main h3 { font-size: clamp(30px, 3vw, 42px); line-height: 1.1; }
.index-desc { display: block; margin-top: 10px; color: var(--muted); font-size: 19px; max-width: 32em; }
.index-meta { font: 500 15px/1.3 var(--sans); text-align: right; white-space: nowrap; }
.index-arrow { display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--ink); font: 400 22px/1 var(--sans); }
.index-row:hover .index-arrow { background: var(--ink); color: #fff; }

/* ---------- Practice: text left, offset photo right ---------- */
.practice { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px 72px; align-items: start; }
.practice-text h2 { margin-bottom: 24px; }
.practice-text > p { color: var(--muted); max-width: 32em; }
.practice-text > p + p { margin-top: 16px; }
.belief { margin: 32px 0; padding: 0 0 0 24px; border-left: 3px solid var(--clay); font: italic 400 clamp(26px, 2.4vw, 32px)/1.3 var(--serif); max-width: 22em; }
.practice-photo { margin: 64px 0 0; }
.practice-photo img, .bio-photo img { aspect-ratio: 4 / 5; }
.practice-photo figcaption, .bio-photo figcaption { margin-top: 8px; font: 400 14px/1.4 var(--sans); color: var(--muted); }

/* ---------- Dark columns (no boxes) ---------- */
.cols4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.cols4 > div { padding: 0 24px; border-left: 1px solid rgba(255, 255, 255, .28); }
.cols4 > div:first-child { padding-left: 0; border-left: 0; }
.cols4 dt { font: 600 14px/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); margin-bottom: 8px; }
.cols4 dd { margin: 0; font-size: 19px; line-height: 1.5; }

/* ---------- Inner pages ---------- */
.title { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 0; }
.title h1 { font-size: clamp(46px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -0.025em; }
.lede { margin-top: 24px; max-width: 28em; font-size: clamp(22px, 2vw, 26px); line-height: 1.4; color: var(--muted); }
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 48px 0 0; border-top: 2px solid var(--ink); }
.facts-row > div { padding: 16px 24px 0 0; }
.facts-row dt { font: 600 14px/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts-row dd { margin: 6px 0 0; font: 500 24px/1.25 var(--serif); }

.sentences { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 72px; }
.sentences li { break-inside: avoid; padding: 16px 0; border-top: 1px solid var(--line); font-size: 22px; line-height: 1.35; }
.points { margin: 0; padding: 0; list-style: none; max-width: 40em; }
.points li { position: relative; padding: 14px 0 14px 32px; border-top: 1px solid var(--line); color: var(--muted); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points li::before { content: ""; position: absolute; left: 0; top: 28px; width: 16px; height: 2px; background: var(--clay); }

.band-intro { max-width: 34em; color: var(--muted); margin: -16px 0 0; }
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 48px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.stages li { padding: 24px 32px 0 0; }
.stages li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.roman { display: block; font: 400 56px/1 var(--serif); color: var(--clay); margin-bottom: 16px; }
.stages h3 { margin-bottom: 8px; }
.stages p { color: var(--muted); font-size: 19px; }

.emdr { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px 72px; align-items: center; max-width: none; }
.emdr-photo { margin: 0; }
.emdr-photo img { aspect-ratio: 1 / 1; }
.emdr h2 { margin-bottom: 24px; }

.qa { display: grid; grid-template-columns: 1fr 1fr; column-gap: 72px; border-top: 2px solid var(--ink); }
.qa-item { padding: 24px 0 28px; border-bottom: 1px solid var(--line); }
.qa-item h3 { font-size: 22px; margin-bottom: 8px; }
.qa-item p { color: var(--muted); font-size: 19px; max-width: 30em; }

/* ---------- About ---------- */
.bio { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px 72px; align-items: start; margin-top: 48px; padding-bottom: var(--sec); }
.bio-photo { margin: 0; }
.ledgers { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 72px; }
.ledgers h3 { font: 600 14px/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.ledger { margin: 0; border-top: 2px solid var(--ink); }
.ledger > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ledger dt { font: 600 14px/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ledger-years dt { font: 400 32px/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--clay); }
.ledger dd { margin: 0; font-size: 20px; line-height: 1.4; }
.steps-v { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); max-width: 860px; }
.steps-v li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.step-num { font: 400 64px/0.9 var(--serif); color: var(--clay); }
.steps-v h3 { margin-bottom: 6px; }
.steps-v p { color: var(--muted); max-width: 32em; }

/* ---------- Fees ---------- */
.rates { width: 100%; border-collapse: collapse; margin-top: 48px; max-width: 1000px; }
.rates thead th { padding: 0 0 12px; border-bottom: 2px solid var(--ink); font: 600 14px/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: left; }
.rates th, .rates td { padding: 20px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; font-size: 21px; }
.rates tbody th { font-weight: 500; }
.rates td:nth-child(2) { color: var(--muted); }
.rates td:last-child, .rates thead th:last-child { text-align: right; }
.rates td:last-child { font: 500 30px/1.1 var(--serif); white-space: nowrap; }
.table-note { margin-top: 16px; font: 400 16px/1.5 var(--sans); color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 72px; }
.two h2 { font-size: clamp(28px, 2.8vw, 38px); margin-bottom: 16px; }
.two p { color: var(--muted); }
.two p + p { margin-top: 12px; }
.two .strong { color: var(--ink); font: 600 16px/1.4 var(--sans); margin-top: 24px; }
.insurers { font: 500 22px/1.4 var(--serif); color: var(--ink) !important; margin: 4px 0 20px !important; }
.plain { margin: 0; }
.plain > div { padding: 16px 0; border-top: 1px solid var(--line); }
.plain > div:first-child { border-top: 2px solid var(--ink); }
.plain dt { font: 600 14px/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.plain dd { margin: 0; font-size: 20px; }

/* ---------- Booking, crisis, footer ---------- */
.book { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 72px; align-items: end; max-width: none; }
.book h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.04; margin-bottom: 20px; }
.book p { color: var(--muted); max-width: 30em; }
.book-list { margin: 24px 0 0; padding: 0; list-style: none; }
.book-list li { display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--line); font: 500 17px/1 var(--sans); }
.book-list span { width: 64px; font-size: 14px; font-weight: 600; color: var(--muted); }
.book-list a { display: inline-flex; align-items: center; min-height: 48px; }
.crisis { padding-block: 32px 0; }
.crisis p { border-left: 3px solid var(--forest); padding-left: 20px; font: 400 17px/1.5 var(--sans); max-width: 40em; }
.footer { margin-top: 56px; background: #0E1A17; color: #D3DCD8; }
.footer a { color: #fff; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); gap: 32px 48px; padding-block: 48px 32px; font: 400 15px/1.55 var(--sans); max-width: none; }
.footer-name { font: 500 22px/1.3 var(--serif); color: #fff; margin-bottom: 8px; }
.footer-nav { margin: 0; padding: 0; list-style: none; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-fine { padding-block: 16px 24px; border-top: 1px solid rgba(255, 255, 255, .16); font: 400 14px/1.5 var(--sans); max-width: none; }

/* ---------- Narrower screens: the sidebar becomes a top bar ---------- */
@media (max-width: 1100px) {
  html { scroll-padding-top: 72px; }
  .shell { display: block; }
  .rail { height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 16px; overflow: visible; z-index: 10; }
  .name { margin-right: auto; }
  .name-main { font-size: 22px; }
  .name-sub { display: none; }
  .rail-foot { display: none; }
  .rail .bar-book { display: inline-flex; }
  .rail .menu-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6); border-radius: 0; font: 600 15px/1 var(--sans); cursor: pointer; }
  .rail nav { order: 3; width: 100%; margin: 0; display: none; padding-bottom: 8px; }
  .rail nav.open { display: block; }
  .rail nav a { min-height: 48px; }
}
@media (max-width: 900px) {
  .lead, .practice, .bio, .emdr, .ledgers, .two, .book, .footer-inner { grid-template-columns: 1fr; }
  .practice-photo { margin-top: 0; }
  .cols4 { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .cols4 > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts-row { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .sentences { columns: 1; }
  .stages { grid-template-columns: 1fr; }
  .stages li, .stages li + li { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .qa { grid-template-columns: 1fr; }
  .index-row { grid-template-columns: 40px minmax(0, 1fr) 48px; }
  .index-meta { grid-column: 2; text-align: left; }
}
@media (max-width: 640px) {
  body { font-size: 19px; }
  .cover { display: block; min-height: 0; }
  .cover-img { position: static; aspect-ratio: 4 / 3; height: auto; }
  .cover-slab { max-width: none; margin-left: 0; padding: 28px 20px 32px; }
  .cover-slab .btn, .title .btn { width: 100%; }
  .cols4 { grid-template-columns: 1fr; }
  .cols4 > div, .cols4 > div:first-child { padding: 0 0 0 16px; border-left: 2px solid rgba(255, 255, 255, .28); }
  .facts-row { grid-template-columns: 1fr; }
  .ledger > div { grid-template-columns: 1fr; gap: 4px; }
  .steps-v li { grid-template-columns: 56px minmax(0, 1fr); }
  .step-num { font-size: 44px; }
  .rates th, .rates td { padding: 16px 0; font-size: 18px; }
  .rates thead th:nth-child(2), .rates td:nth-child(2) { display: none; }
  .rates td:last-child { font-size: 24px; }
  .book .btn { width: 100%; }
}
@media (max-width: 1100px) { .name { display: flex; align-items: center; min-height: 44px; } }

/* One warm treatment for every photograph */
.cover-img, .practice-photo img, .emdr-photo img { filter: saturate(0.92) sepia(0.07) contrast(1.02); }
.cover-img { object-position: center 55%; }

/* Headshot placeholder: a framed portrait spot, not a stock photo */
.portrait { aspect-ratio: 4 / 5; display: grid; place-items: center; background: linear-gradient(160deg, #E6E1D4, #D6CFBE); outline: 1px solid rgba(22, 32, 29, .3); outline-offset: -14px; }
.portrait span { font: 400 clamp(72px, 9vw, 120px)/1 var(--serif); color: #8A4530; letter-spacing: 0.02em; }

/* Compact booking band for inner pages: a single calm row, no tinted block */
.compact-book { padding-block: 0 var(--sec); }
.cb { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 48px; align-items: center; padding-top: 32px; border-top: 2px solid var(--ink); max-width: none; }
.cb h2 { font-size: clamp(28px, 2.8vw, 38px); margin-bottom: 8px; }
.cb p { color: var(--muted); }
.cb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.cb-link { display: inline-flex; align-items: center; min-height: 44px; font: 500 17px/1 var(--sans); }
@media (max-width: 900px) { .cb { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cb-actions .btn { width: 100%; } }
