/* ==========================================================================
   Hilary Rieman · Counseling & Art Therapy
   No external fonts or scripts: fast, private, works offline.
   ========================================================================== */

/* Palette: deep forest-teal greens (sampled from Hilary's office and headshot)
   with orange as a limited accent. Contrast checked against WCAG AA:
   --orange is decorative only (strokes, dots, ticks); --orange-ink is the
   orange used for small text (5.1:1 on --bg). */
:root {
  --bg: #faf7f1;
  --bg-tint: #f1ece2;
  --surface: #ffffff;
  --ink: #1f2d27;
  --ink-soft: #4c5a53;
  --line: #e3dccf;
  --green: #2a5a4c;
  --green-deep: #1f4438;
  --green-mid: #7fa391;
  --green-soft: #e3ece5;
  --orange: #e2712f;
  --orange-ink: #b04a17;
  --orange-soft: #fbe6d8;
  --orange-on-dark: #f6a066;
  --on-accent: #ffffff;
  --contact-bg: #1f4438;
  --contact-ink: #f5f0e6;

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(35 48 42 / .06), 0 8px 24px rgb(35 48 42 / .07);
  --gutter: clamp(16px, 4vw, 40px);
  --section-pad: clamp(56px, 9vw, 112px);
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121a17;
    --bg-tint: #18211d;
    --surface: #1c2622;
    --ink: #ece7de;
    --ink-soft: #b2bab3;
    --line: #2f3d36;
    --green: #9cc8b0;
    --green-deep: #b5d8c4;
    --green-mid: #5f8a76;
    --green-soft: #22302a;
    --orange: #f28a4c;
    --orange-ink: #f28a4c;
    --orange-soft: #3a2619;
    --orange-on-dark: #f6a066;
    --on-accent: #0f1f19;
    --contact-bg: #1a2f26;
    --contact-ink: #ece7de;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 1.4rem + 4vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--green-deep); text-underline-offset: 3px; }
a:hover { color: var(--orange-ink); }

:focus-visible {
  outline: 3px solid var(--orange-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--bg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid var(--green);
  background: var(--green);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: background .2s, border-color .2s, transform .2s, color .2s;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--on-accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--green-deep); }
.btn-ghost:hover { background: var(--green-soft); color: var(--green-deep); }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: .95rem; }
.btn-light { background: var(--contact-ink); border-color: var(--contact-ink); color: var(--contact-bg); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--contact-bg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; }
.brand-sub { font-size: .8rem; color: var(--ink-soft); letter-spacing: .02em; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}
.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: .97rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--orange-ink); color: var(--ink); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  color: var(--ink);
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 13px;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
  content: "";
}
.nav-toggle-bar { top: 23px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); background: var(--ink); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); background: var(--ink); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border-bottom: 0; padding-top: 16px; }
  .site-nav a:not(.btn) { display: block; padding: 14px 0; border-bottom: 0; }
  .site-nav .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 10vw, 128px) clamp(64px, 10vw, 120px);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 360px);
}
.hero-art {
  position: absolute;
  inset: -20% -28% -16% -26%;
  width: auto;
  height: auto;
  pointer-events: none;
}
.hero-photo {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px var(--radius) var(--radius);
  border: 6px solid var(--surface);
  box-shadow: var(--shadow);
}

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { width: min(72%, 280px); margin-top: 8px; }
}
.blob-1 { fill: var(--green-soft); }
.blob-2 { fill: var(--green-mid); opacity: .2; }
.stroke { fill: none; stroke: var(--green); stroke-width: 6; stroke-linecap: round; opacity: .55; }
.stroke-2 { stroke: var(--orange); opacity: .85; }
.dot { fill: var(--orange); }
.dot-2 { fill: var(--green-mid); opacity: .6; }

.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--green-deep); }
.lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--ink-soft); max-width: 46ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta { margin-top: 24px; font-size: .92rem; color: var(--ink-soft); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .9rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow);
}
.status-dot {
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #4caf6e;
  box-shadow: 0 0 0 4px rgb(76 175 110 / .2);
}

@media (max-width: 720px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .status-pill { border-radius: var(--radius-sm); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); }
.section-tint { background: var(--bg-tint); }

.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-ink);
  margin-bottom: .75em;
}
.eyebrow-light { color: var(--orange-on-dark); }

.h-small {
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
  margin-bottom: .8em;
}
.spaced { margin-top: clamp(40px, 6vw, 64px); }

.muted { color: var(--ink-soft); }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
}

.prose { max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }

.approach-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); margin-top: 8px; }
@media (max-width: 820px) { .approach-grid { grid-template-columns: 1fr; } }

/* ---------- Quote band ---------- */
.quote-band {
  background: var(--green);
  color: var(--on-accent);
  padding-block: clamp(48px, 7vw, 88px);
  text-align: center;
}
.quote-band blockquote { margin: 0 auto; max-width: 24ch; }
.quote-band p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: .5em;
}
.quote-band p::before { content: "\201C"; }
.quote-band p::after { content: "\201D"; }
.quote-band footer { font-size: .95rem; letter-spacing: .06em; opacity: .85; }
.quote-band footer::before { content: "\2014\00a0"; }

/* ---------- Chips ---------- */
.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: .92rem;
  font-weight: 500;
}
.chips-soft li {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: 12px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow);
}
.card p { color: var(--ink-soft); margin: 0; }
.card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--green-soft);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.card-icon svg {
  width: 30px; height: 30px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.who {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px 40px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.who p { margin: 0; color: var(--ink-soft); }

/* ---------- Fees ---------- */
.fee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  margin: 12px 0 clamp(36px, 5vw, 56px);
}
.fee-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  background: var(--surface);
}
.fee-card-accent { background: var(--green-soft); border-color: transparent; }
.fee-label { font-size: .9rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .25em; }
.fee-amount {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  color: var(--green-deep);
}
.fee-amount-text { font-size: 1.9rem; padding-block: .17em; }
.fee-note { font-size: .9rem; color: var(--ink-soft); margin: .5em 0 0; }

.fee-details { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .fee-details { grid-template-columns: 1fr; } }

.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 8px;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .45em;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--orange);
  border-bottom: 2.5px solid var(--orange);
  transform: rotate(-45deg);
}

.fine-print {
  margin-top: clamp(32px, 4vw, 48px);
  padding: 16px 20px;
  border-left: 3px solid var(--orange);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .9rem;
  color: var(--ink-soft);
  max-width: 75ch;
}

/* ---------- Credentials ---------- */
.cred-list { margin: 0; display: grid; gap: 16px; }
.cred-list > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.cred-list dt { font-weight: 700; margin-bottom: 2px; }
.cred-list dd { margin: 0; color: var(--ink-soft); }

/* ---------- Endorsements ---------- */
.endorse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: 12px;
}
.endorse {
  margin: 0;
  padding: clamp(28px, 3vw, 36px);
  padding-top: clamp(48px, 5vw, 56px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}
.endorse::before {
  content: "\201C";
  position: absolute;
  top: 4px;
  left: clamp(24px, 3vw, 32px);
  font-family: var(--font-serif);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--orange);
}
.endorse blockquote { margin: 0 0 16px; }
.endorse blockquote p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 0;
}
.endorse blockquote p::before { content: "\201C"; }
.endorse blockquote p::after { content: "\201D"; }
.endorse figcaption { font-size: .92rem; color: var(--ink-soft); }
.endorse figcaption strong { color: var(--ink); }

/* ---------- The space (photo gallery) ---------- */
.space-intro { max-width: 60ch; color: var(--ink-soft); }

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, clamp(200px, 24vw, 300px));
  gap: clamp(12px, 1.6vw, 20px);
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding: 0;
  list-style: none;
}
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-tint); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .tall { grid-column: 2; grid-row: 1 / span 2; }
.gallery .tall img { object-position: 60% 40%; }
.gallery figcaption {
  position: absolute;
  left: 12px; bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgb(20 32 27 / .72);
  color: #fff;
  font-size: .85rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery .tall { grid-column: auto; grid-row: auto; }
  .gallery figure { aspect-ratio: 4 / 3; }
}

/* ---------- Contact ---------- */
.contact { background: var(--contact-bg); color: var(--contact-ink); }
.contact h2 { color: var(--contact-ink); }
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 820px) { .contact-inner { grid-template-columns: 1fr; } }

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius);
  background: rgb(255 255 255 / .07);
  border: 1px solid rgb(255 255 255 / .15);
}
.contact-phone {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem);
  font-weight: 600;
  color: var(--contact-ink);
  text-decoration: none;
}
.contact-phone:hover { color: var(--orange-on-dark); }
.contact-alt { color: var(--contact-ink); font-size: .95rem; }
.contact-alt:hover { color: var(--orange-on-dark); }
.contact address { font-style: normal; line-height: 1.6; opacity: .9; }
.muted-light { opacity: .75; font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 32px calc(32px + env(safe-area-inset-bottom));
  font-size: .9rem;
  color: var(--ink-soft);
}
.footer-inner p { margin: 0 0 .5em; }
.crisis {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-tint);
  margin-bottom: 16px !important;
}

/* ---------- Simple pages (offline / 404) ---------- */
.simple-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--gutter);
}
.simple-page img { margin: 0 auto 24px; }
.simple-page .btn { margin-top: 8px; }

.learn-more {
  margin-top: 1.25em;
  padding-top: 1em;
  border-top: 1px solid var(--line);
  font-size: .95rem;
  color: var(--ink-soft);
}
