/* Restorative Reflections
   Palette: basalt ink, limestone ground, a single gold seam.
   The gold seam is the one bold element on the page. Everything else stays quiet. */

:root {
  --basalt: #1e2a2c;
  --slate: #3d4b4a;
  --muted: #6e7b78;
  --limestone: #edeae4;
  --paper: #f7f5f1;
  --line: #d6d1c8;
  --seam: #a9823f;
  --balm: #2f6f62;
  --balm-dark: #24564c;
  --alert: #7a2f2f;

  --measure: 64ch;
  --shell: 1120px;
  --gap: clamp(3.5rem, 8vw, 7rem);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;
}

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

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

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

body {
  margin: 0;
  background: var(--limestone);
  color: var(--basalt);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--balm-dark); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--basalt); }

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

.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
.measure { max-width: var(--measure); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--basalt); color: var(--paper);
  padding: .75rem 1.25rem; font-weight: 700;
}
.skip:focus { left: 0; }

/* Faith layer. Body carries .faith-on or .faith-off; nothing else changes. */
body.faith-off .faith { display: none !important; }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--basalt);
  letter-spacing: -.012em;
  margin: 0 0 .6em;
  line-height: 1.12;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); line-height: 1.18; }
h3 { font-size: 1.3rem; line-height: 1.3; }

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.15rem, 1.9vw, 1.35rem);
  line-height: 1.55;
  color: var(--slate);
  max-width: 56ch;
}

.quiet { color: var(--muted); font-size: .95rem; }

/* ---------- Seam: the gold line that runs through the site ---------- */

.seam {
  height: 2px;
  background: var(--line);
  border: 0;
  margin: 0;
  position: relative;
}
.seam::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: clamp(72px, 14%, 190px);
  height: 2px;
  background: var(--seam);
}

/* ---------- Crisis bar ---------- */

.crisis {
  background: var(--basalt);
  color: #e7e3db;
  font-size: .9rem;
  line-height: 1.5;
  padding: .7rem 0;
}
.crisis p { max-width: none; margin: 0; }
.crisis a { color: #f0d9a8; font-weight: 700; }
.crisis a:hover { color: #fff; }

/* ---------- Header ---------- */

.masthead { padding: 1.4rem 0 1.2rem; }
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.15;
  color: var(--basalt);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .7rem;
}
.wordmark img { height: 52px; width: auto; }
.wordmark span { display: block; }
.wordmark small {
  display: block;
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--muted);
  margin-top: .18rem;
}

.nav { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.nav a {
  font-size: .97rem;
  color: var(--slate);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--basalt); border-bottom-color: var(--line); }
.nav a[aria-current="page"] { color: var(--basalt); border-bottom-color: var(--seam); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  padding: .85rem 1.6rem;
  border: 2px solid var(--balm-dark);
  background: var(--balm-dark);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.btn:hover { background: var(--basalt); border-color: var(--basalt); color: #fff; }

.btn-quiet { background: transparent; color: var(--balm-dark); }
.btn-quiet:hover { background: var(--balm-dark); color: #fff; }

.btn-row { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- Hero with strata ---------- */

.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 0; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 1.4rem; }

.strata {
  margin-top: clamp(3rem, 7vw, 5rem);
  display: block;
  width: 100%;
}
.strata-band { display: block; width: 100%; }

.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { max-width: 18ch; }

/* ---------- Sections ---------- */

.section { padding: var(--gap) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-paper { background: var(--paper); }
.section-ink { background: var(--basalt); color: #ddd9d1; }
.section-ink h2, .section-ink h3 { color: var(--paper); }
.section-ink a { color: #f0d9a8; }
.section-ink .lede { color: #c6c0b6; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- Reach: how addiction spreads ---------- */

.reach { list-style: none; margin: 0; padding: 0; }
.reach li {
  padding: .95rem 0;
  border-top: 1px solid var(--line);
  font-size: 1.08rem;
  display: flex; gap: 1rem; align-items: baseline;
}
.reach li:last-child { border-bottom: 1px solid var(--line); }
.reach b { font-weight: 700; min-width: 11ch; color: var(--basalt); }
.reach span { color: var(--slate); }

/* ---------- Layers (the restoration idea) ---------- */

.layers { display: grid; gap: 1.6rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.layers li {
  padding-left: 1.6rem;
  border-left: 3px solid var(--line);
  max-width: var(--measure);
}
.layers li.gilded { border-left-color: var(--seam); }
.layers h3 { margin-bottom: .35em; }
.layers p { color: var(--slate); }

/* ---------- Service entries ---------- */

.service { padding: 2rem 0; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: .7rem;
}
.service-head h3 { margin: 0; }
.service .time {
  font-size: .92rem;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid var(--seam);
  padding-bottom: 2px;
}

/* ---------- Modalities ---------- */

.modalities { margin: 2rem 0 0; padding: 0; }
.modalities dt {
  font-family: var(--serif);
  font-size: 1.22rem;
  margin-top: 1.8rem;
  color: var(--basalt);
}
.modalities dt:first-child { margin-top: 0; }
.modalities dd { margin: .45rem 0 0; color: var(--slate); max-width: var(--measure); }

/* ---------- Scripture ---------- */

.scripture {
  border-left: 3px solid var(--seam);
  padding: .3rem 0 .3rem 1.6rem;
  margin: 2.2rem 0;
  max-width: 54ch;
}
.scripture p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--basalt);
  margin-bottom: .5rem;
}
.scripture cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: .88rem;
  color: var(--muted);
}
.section-ink .scripture p { color: var(--paper); }
.section-ink .scripture cite { color: #a9a49a; }

/* ---------- Portrait ---------- */

.portrait {
  background: var(--paper);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
  padding: 1rem;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Resource lists ---------- */

.res-group { margin-top: 2.5rem; }
.res-list { list-style: none; margin: 1.2rem 0 0; padding: 0; column-gap: 3rem; }
@media (min-width: 760px) { .res-list { columns: 2; } }
.res-list li {
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}
.res-list a { text-decoration: none; font-weight: 500; }
.res-list a:hover { text-decoration: underline; }
.res-list .host { display: block; font-size: .82rem; color: var(--muted); }

/* ---------- Contact / form ---------- */

.detail-list { list-style: none; margin: 0; padding: 0; }
.detail-list li { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.detail-list li:first-child { border-top: 1px solid var(--line); }
.detail-list b { display: block; font-size: .82rem; letter-spacing: .04em; color: var(--muted); font-weight: 700; }

.form { margin-top: 1rem; max-width: 34rem; }
.field { margin-bottom: 1.35rem; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.field .help { display: block; font-size: .86rem; color: var(--muted); margin-bottom: .45rem; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--basalt);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: .7rem .8rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--balm-dark);
  outline: 2px solid var(--balm-dark);
  outline-offset: 1px;
}
.field textarea { min-height: 8rem; resize: vertical; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  border-left: 3px solid var(--seam);
  background: var(--paper);
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
}
.notice p { font-size: .97rem; }
.notice-warn { border-left-color: var(--alert); }

.formmsg { padding: 1rem 1.25rem; margin-bottom: 1.75rem; border-left: 3px solid; }
.formmsg-ok { border-color: var(--balm); background: #eaf1ef; }
.formmsg-bad { border-color: var(--alert); background: #f6ecec; }
.formmsg p { margin: 0; }

/* ---------- Footer ---------- */

.footer { background: var(--basalt); color: #b4afa6; padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; font-size: .93rem; }
.footer h2 { font-size: 1.35rem; color: var(--paper); margin-bottom: .5em; }
.footer a { color: #ddd9d1; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: .3rem 0; }
.footer .colhead {
  font-family: var(--sans); font-weight: 700; font-size: .82rem;
  letter-spacing: .05em; color: var(--paper); margin: 0 0 .7rem;
}
.footer p { max-width: 46ch; }
.legal {
  border-top: 1px solid #34403f;
  padding-top: 1.6rem;
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  font-size: .86rem;
}
.legal p { margin: 0; max-width: 60ch; }

/* ---------- Long-form legal ---------- */

.prose h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8rem; }
.prose ul { max-width: var(--measure); padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }

/* ---------- Spacing utilities (no inline styles, so the CSP can stay strict) ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 2.5rem; }


/* ---------- Logo ---------- */
.footer-logo { width: 190px; height: auto; margin-bottom: 1.2rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Telehealth callout ---------- */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 2.5rem; }
@media (max-width: 720px) { .modes { grid-template-columns: 1fr; } }
.mode { padding: 1.8rem 1.9rem; background: var(--paper); border-top: 3px solid var(--line); }
.mode:first-child { border-top-color: var(--seam); }
.mode h3 { margin-bottom: .4em; }
.mode p { color: var(--slate); font-size: 1rem; }
.section-paper .mode { background: #fff; }
