/* ============================================================
   Melanie K. Lindell Counseling — "Benevolent Witness"
   Editorial / literary system. Newsreader + Hanken Grotesk.
   ============================================================ */

:root {
  --paper:   #F3EEE4;
  --paper-2: #EBE3D4;
  --paper-3: #E3DAC8;
  --ink:     #2B2722;
  --ink-soft:#413B33;
  --muted:   #71685B;
  --muted-2: #8A8071;
  --rule:    #D9D0BF;
  --rule-2:  #CDC2AD;

  --accent:      #5F7059;   /* sage */
  --accent-deep: #4B5C46;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', system-ui, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(26px, 5vw, 72px);
  --base: 17px;
  --topbar-h: 65px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

::selection { background: color-mix(in oklab, var(--accent) 28%, var(--paper)); }

a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

.label {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.label-muted { color: var(--muted-2); }

/* editorial two-column block: sticky label | flowing content */
.editorial {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1.85fr);
  gap: clamp(28px, 6vw, 96px);
  padding: clamp(48px, 7vw, 90px) 0;
}
.editorial + .editorial { border-top: 1px solid var(--rule); }
.editorial .col-label { position: sticky; top: calc(var(--topbar-h) + 32px); align-self: start; }
.editorial h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 14px 0 0;
}
.editorial .col-label .label { display: block; }
.prose p { margin: 0 0 1.15em; max-width: 64ch; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 500; color: var(--ink); }
.prose em { font-style: italic; }
.prose .lede { font-size: clamp(20px, 2.3vw, 25px); line-height: 1.5; color: var(--ink); }
.prose a { text-decoration: none; border-bottom: 1px solid var(--rule-2); transition: border-color .25s; }
.prose a:hover { border-color: var(--accent); }

/* legal pages (privacy, terms) */
.legal-date { font-family: var(--sans); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); margin: 28px 0 0; }

/* the-work grid (home) */
.workgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.workgrid .num { color: var(--muted-2); }
.workgrid h3 { font-family: var(--serif); font-weight: 300; font-size: 24px; margin: 14px 0 10px; letter-spacing: -0.01em; }
.workgrid p { color: var(--muted); margin: 0; font-size: 16.5px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--rule);
}
.topbar .bar {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-size: 17px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400;
  white-space: nowrap; color: var(--ink); text-decoration: none;
}
.navlinks { display: flex; gap: clamp(16px, 2.4vw, 34px); align-items: center; }
.navlink {
  font-family: var(--sans); font-size: 13.5px; letter-spacing: 0.03em;
  color: var(--muted); background: none; border: 0; cursor: pointer; padding: 4px 0;
  position: relative; transition: color .25s ease; text-decoration: none;
}
.navlink:hover { color: var(--ink); }
.navlink.active { color: var(--ink); }
.navlink.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent);
}
.topbar .tel { font-family: var(--sans); font-size: 13.5px; letter-spacing: 0.04em; color: var(--ink); white-space: nowrap; text-decoration: none; }
.topbar .tel:hover { color: var(--accent); }

/* hamburger — hidden on desktop */
.menu-btn {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; margin: -10px -10px -10px 0;
  align-items: center; justify-content: center;
  color: var(--ink);
}
.menu-btn svg { display: block; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

/* ---------- buttons / links ---------- */
.btn {
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  cursor: pointer; border: 0; background: none; color: var(--ink);
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  line-height: 1.2;
}
.btn .arrow { transition: transform .3s cubic-bezier(.2,.7,.3,1); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-line { border-bottom: 1px solid var(--accent); padding-bottom: 7px; }
.btn-solid {
  background: var(--ink); color: var(--paper); padding: 15px 26px; border-radius: 2px;
  transition: background .25s ease;
}
.btn-solid:hover { background: var(--accent-deep); }
.btn-quiet { color: var(--accent); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .25s; }
.btn-quiet:hover { border-color: var(--accent); }

/* ---------- imagery ---------- */
/* Feature photos are treated as matted, framed prints on the paper wall:
   mat (border) + frame line + inner plate keyline + a soft lift shadow. */
.photo {
  background-size: cover; background-position: center; background-repeat: no-repeat;
  background-color: var(--paper-3); background-clip: padding-box;
  filter: saturate(0.93) contrast(1.01);
  width: 100%; height: 100%;
  border: clamp(10px, 1.5vw, 18px) solid #FAF7F0;   /* mat board */
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 1px rgba(43,39,34,0.12),             /* plate keyline at image edge */
    0 0 0 1px var(--rule-2),                          /* frame line around the mat */
    0 2px 4px rgba(43,39,34,0.05),
    0 22px 48px -24px rgba(43,39,34,0.30);            /* soft lift off the wall */
}
.ph { position: relative; overflow: hidden; background-color: #cfc8b8; }
.ph::after {
  content: attr(data-label);
  position: absolute; left: 12px; bottom: 11px;
  font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.9); background: rgba(40,38,32,0.34); padding: 3px 9px; border-radius: 2px;
  backdrop-filter: blur(2px);
}
.ph-portrait{ background: linear-gradient(155deg, oklch(0.74 0.045 65) 0%, oklch(0.56 0.05 55) 55%, oklch(0.42 0.045 50) 100%); }
.ph-stone   { background: radial-gradient(110% 130% at 30% 18%, oklch(0.72 0.035 75) 0%, oklch(0.52 0.045 62) 62%, oklch(0.4 0.04 56) 100%); }

/* ---------- hero ---------- */
/* vertical padding only — keep .wrap's horizontal gutter intact */
.hero { padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(40px, 6vw, 64px); }
.hero .kicker { margin-bottom: 28px; }
.hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 6.6vw, 78px); line-height: 1.04; letter-spacing: -0.015em;
  margin: 0; max-width: 15ch; text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .sub {
  font-size: clamp(18px, 2.1vw, 22px); line-height: 1.6; color: var(--muted);
  max-width: 52ch; margin: 30px 0 0;
}
.hero .actions { margin-top: 40px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }

/* quote + image band */
.quoteband { display: grid; grid-template-columns: 1fr 0.86fr; gap: clamp(32px, 5vw, 72px); align-items: center; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(48px, 6.5vw, 88px) 0; }
.quoteband .qcell { display: flex; flex-direction: column; justify-content: center; }
.quoteband blockquote {
  margin: 0; position: relative;
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(25px, 3.4vw, 40px); line-height: 1.28; letter-spacing: -0.015em;
  max-width: 17ch; color: var(--ink);
}
.quoteband blockquote::before {
  content: '\201C'; position: absolute; top: -0.34em; left: -0.06em;
  font-size: 2.4em; line-height: 1; color: var(--accent); opacity: 0.32; z-index: -1;
}
.quoteband cite { display: block; margin-top: 26px; font-style: normal; font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.quoteband .icell { align-self: stretch; min-height: clamp(280px, 32vw, 400px); }

/* ---------- page header (inner pages) ---------- */
.pagehead { padding-top: clamp(48px, 7vw, 92px); padding-bottom: clamp(30px, 4vw, 48px); }
.pagehead h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.015em; margin: 18px 0 0; }
.pagehead .sub { font-size: clamp(18px, 2vw, 21px); color: var(--muted); margin: 24px 0 0; max-width: 56ch; }
.banner { height: clamp(220px, 34vw, 360px); margin-top: 8px; }

/* ---------- credentials list ---------- */
.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.creds li { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.creds li:first-child { border-top: 0; }
.creds .yr { font-family: var(--sans); font-size: 13px; letter-spacing: 0.06em; color: var(--accent); font-weight: 600; }
.creds .what { color: var(--ink-soft); }

/* ---------- testimonials ---------- */
.tlist { display: grid; gap: 0; }
.tquote { padding: clamp(34px, 4.4vw, 52px) 0; border-top: 1px solid var(--rule); }
.tquote:first-child { border-top: 0; }
.tquote p { font-family: var(--serif); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; font-style: italic; color: var(--ink-soft); margin: 0; max-width: 70ch; }
.tquote p.strong { font-style: normal; font-weight: 400; color: var(--ink); }
.tquote .who { margin-top: 20px; font-family: var(--sans); font-style: normal; }
.tquote .who .name { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--ink); }
.tquote .who .role { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.4; }

/* ---------- fees ---------- */
.feecard { border: 1px solid var(--rule-2); border-radius: 3px; padding: clamp(28px, 3.6vw, 40px); background: color-mix(in oklab, var(--paper-2) 60%, var(--paper)); }
.feecard .price { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.feecard .price .amt { font-family: var(--serif); font-size: clamp(40px, 5.5vw, 60px); font-weight: 300; line-height: 1; letter-spacing: -0.02em; }
.feecard .price .per { font-family: var(--sans); font-size: 14px; color: var(--muted); letter-spacing: 0.02em; }
.feecard .note { font-family: var(--sans); font-size: 13.5px; color: var(--muted); margin: 18px 0 0; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.06em; color: var(--accent-deep); background: color-mix(in oklab, var(--accent) 16%, var(--paper)); padding: 6px 12px; border-radius: 100px; margin-top: 22px; }

/* ---------- closing CTA row ---------- */
.cta-row { border-top: 1px solid var(--rule); padding-top: clamp(36px, 5vw, 56px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-row .line { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.6vw, 30px); max-width: 26ch; }

/* ---------- contact ---------- */
.contactgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); padding: clamp(44px,6vw,80px) 0; }
.cinfo { display: grid; gap: 36px; align-content: start; }
.cinfo .block .label { display: block; margin-bottom: 12px; }
.cinfo .block .big { font-family: var(--serif); font-size: clamp(20px, 2.3vw, 26px); font-weight: 300; }
.cinfo .block a.big { text-decoration: none; border-bottom: 1px solid var(--rule-2); transition: border-color .25s; }
.cinfo .block a.big:hover { border-color: var(--accent); }
.cinfo .block address { font-style: normal; font-family: var(--serif); font-size: clamp(18px,2vw,21px); line-height: 1.5; color: var(--ink-soft); }

/* full-width location map */
.mapband { padding-bottom: clamp(44px, 6vw, 80px); }
.mapband > .label { display: block; margin-bottom: 16px; }
/* matches the framed-print treatment on .photo */
.mapframe {
  position: relative; overflow: hidden;
  border: clamp(10px, 1.5vw, 18px) solid #FAF7F0;   /* mat board */
  border-radius: 2px;
  background: var(--paper-3);
  box-shadow:
    inset 0 0 0 1px rgba(43,39,34,0.12),             /* keyline at image edge */
    0 0 0 1px var(--rule-2),                          /* frame line around the mat */
    0 2px 4px rgba(43,39,34,0.05),
    0 22px 48px -24px rgba(43,39,34,0.30);            /* soft lift */
}
.mapcanvas {
  width: 100%; height: clamp(300px, 40vw, 420px);
  background: var(--paper-3);
  filter: saturate(0.84) sepia(0.06) contrast(0.97) brightness(1.03);
}
.maplink {
  display: inline-block; margin-top: 16px;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.06em;
  color: var(--ink-soft); text-decoration: none;
  border-bottom: 1px solid var(--rule-2); transition: border-color .25s;
}
.maplink:hover { border-color: var(--accent); }
.maplink .arrow { color: var(--muted-2); }

/* ---------- form ---------- */
.form { display: grid; gap: 20px; }
/* honeypot — off-screen, unreachable by keyboard, invisible to real users */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
/* The widget is interaction-only: for almost every visitor it draws nothing and
   leaves behind just a hidden token input, which would still cost a row in the
   form grid. Turnstile only injects an iframe when it needs a click — so give
   the container space only then. */
.cf-turnstile:not(:has(iframe)) { display: none; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { font-family: var(--sans); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field label .opt { text-transform: none; letter-spacing: 0; color: var(--muted-2); }
.field input, .field textarea, .field select {
  font-family: var(--serif); font-size: 17px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule-2); border-radius: 2px;
  padding: 13px 14px; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 118px; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 20%, transparent);
}
.field.err input, .field.err textarea { border-color: #a85a48; }
.field .msg { font-family: var(--sans); font-size: 12px; color: #a85a48; }
.form-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 4px; }
.formnote { font-family: var(--sans); font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.form-error { font-family: var(--sans); font-size: 13.5px; line-height: 1.5; color: #8c4534; background: color-mix(in oklab, #a85a48 12%, var(--paper)); border: 1px solid color-mix(in oklab, #a85a48 40%, var(--paper)); border-radius: 2px; padding: 12px 14px; }
.confirm { padding: clamp(30px,4vw,44px); border: 1px solid var(--accent); border-radius: 3px; background: color-mix(in oklab, var(--accent) 9%, var(--paper)); }
.confirm .label { display: block; }
.confirm h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(24px,3vw,32px); margin: 10px 0 12px; }
.confirm p { margin: 0; color: var(--ink-soft); }
[hidden] { display: none !important; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); margin-top: 8px; }
.foot .inner { padding-top: clamp(48px,6vw,76px); padding-bottom: 40px; display: grid; gap: 44px; }
.foot .fbrand { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.01em; }
.foot .frow { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-end; }
.foot .fnav { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--sans); font-size: 13.5px; color: var(--muted); }
.foot .fnav a { color: var(--muted); text-decoration: none; transition: color .2s; }
.foot .fnav a:hover { color: var(--ink); }
.foot .fmeta { font-family: var(--sans); font-size: 13px; color: var(--muted); text-align: right; line-height: 1.7; }
.foot .lic { font-weight: 600; letter-spacing: 0.08em; color: var(--ink-soft); }
.foot .fcopy { font-family: var(--sans); font-size: 12.5px; color: var(--muted-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .editorial { grid-template-columns: 1fr; gap: 18px; }
  .editorial .col-label { position: static; }
  .quoteband { grid-template-columns: 1fr; gap: clamp(28px, 6vw, 40px); }
  .quoteband .icell { min-height: 240px; }
  .contactgrid { grid-template-columns: 1fr; }
}

/* ---- mobile nav drawer (<= 760px) ---- */
@media (max-width: 760px) {
  .topbar .tel { display: none; }
  .menu-btn { display: inline-flex; }

  .navlinks {
    position: fixed;
    top: var(--topbar-h);
    left: 0; right: 0;
    /* .topbar's backdrop-filter makes it the containing block for this
       fixed child, so `bottom:0` would resolve to the bar, not the viewport.
       Use a viewport-relative height instead. */
    height: calc(100vh - var(--topbar-h));
    height: calc(100dvh - var(--topbar-h));
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 40px;
    background: var(--paper);
    border-top: 1px solid var(--rule);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    overflow-y: auto;
    z-index: 49;
  }
  .navlinks.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .navlinks .navlink {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 30px;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--ink);
    padding: 18px 0;
    width: 100%;
    border-bottom: 1px solid var(--rule);
  }
  .navlinks .navlink.active { color: var(--accent); }
  .navlinks .navlink.active::after { display: none; }
  .navlinks .tel-mobile {
    display: inline-flex;
    margin-top: 28px;
    font-family: var(--sans);
    font-size: 15px;
    letter-spacing: 0.04em;
    color: var(--ink);
    text-decoration: none;
  }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 761px) {
  .navlinks .tel-mobile { display: none; }
}

@media (max-width: 600px) {
  .brand { font-size: 15px; letter-spacing: 0.14em; }
  .field-row { grid-template-columns: 1fr; }
  .foot .frow { flex-direction: column; align-items: flex-start; }
  .foot .fmeta { text-align: left; }
  .cta-row { flex-direction: column; align-items: flex-start; }
  .hero .actions { gap: 22px; }
}
