/* ============================================================
   St. Peters Mental Health  -  "At first light"
   A premium local almanac / field guide for St. Charles County.
   Signature: a dawn-over-the-river horizon + rising-sun mark.
   Type: Newsreader (literary serif) + Hanken Grotesk (wayfinding grotesk).
   ============================================================ */

:root {
  /* limestone paper */
  --paper:      #f0ebe0;
  --paper-2:    #e7dfce;
  --paper-3:    #ddd2ba;
  /* warm ink */
  --ink:        #231f18;
  --ink-soft:   #59503f;
  --ink-faint:  #857a63;
  /* deep pine-teal brand */
  --pine:       #234b40;
  --pine-mid:   #1c3f36;
  --pine-deep:  #14312a;
  --pine-ink:   #0f2620;
  /* burnished ochre  -  precious accent */
  --gold:       #bd7c2c;
  --gold-bright:#d79a45;
  --gold-soft:  #e3c78d;
  /* dawn */
  --dawn-hi:    #f6ead3;
  --dawn-mid:   #ecc9a0;
  --dawn-glow:  #e6a86b;
  /* structure */
  --line:       #d6ccb6;
  --line-soft:  #e2dac8;
  --paper-on-dark: #efe7d6;

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

  --shell: 1080px;
  --measure: 40rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 520px at 50% -240px, rgba(214,168,107,0.20), transparent 70%),
    linear-gradient(180deg, #f4efe4 0%, var(--paper) 240px);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.1875rem;      /* 19px */
  line-height: 1.72;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1, "calt" 1;
  position: relative;
}
/* barely-there paper grain for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

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

::selection { background: var(--gold-soft); color: var(--pine-ink); }

/* ---------- Links (body copy) ---------- */
a { color: var(--pine); text-decoration: none; }
main article a,
.prose a {
  color: var(--pine);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
main article a:hover,
.prose a:hover { color: var(--gold); text-decoration-color: var(--gold); }

/* ---------- Headings ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0;
  font-optical-sizing: auto;
}

/* ---------- Shared label / eyebrow voice ---------- */
.eyebrow, .locale-badge, .mainnav a, .btn, .group-label,
.provider-box .tag, .lead-kicker, .lead-more, .lcity, .footer-brand__meta,
.crisis-strip, .byline, .index-sub, .readmore, .footer-nav a, .entry-dek {
  font-family: var(--font-sans);
}

.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ============================================================
   Crisis strip
   ============================================================ */
.crisis-strip {
  background: var(--pine-ink);
  color: #e9e0cd;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 0.6rem 1rem;
  font-weight: 400;
}
.crisis-strip a {
  color: var(--gold-soft);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(227,199,141,0.5);
  text-underline-offset: 2px;
}
.crisis-strip a:hover { color: #fff; }

/* ============================================================
   Masthead
   ============================================================ */
.masthead {
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 1.9rem 1.5rem 0;
}
.brandrow {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  text-decoration: none;
  color: inherit;
  width: fit-content;
}
.brandmark { display: inline-flex; flex: none; text-decoration: none; }
.sun-mark { display: block; }
.sun-mark .sun-body { fill: var(--pine); }
.sun-mark .sun-ray  { stroke: var(--gold); }
.sun-mark .sun-water{ stroke: var(--gold); }

.brandtext { display: flex; flex-direction: column; line-height: 1; }
.locale-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.42rem;
}
.wordmark {
  font-family: var(--font-serif);
  font-size: 1.72rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--pine-deep);
  line-height: 1;
  text-decoration: none;
}
a.wordmark:hover, .brandrow:hover .wordmark { color: var(--pine); }
.tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 0.5rem 0 0;
  max-width: 42ch;
}

/* section nav bar */
nav.mainnav {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0;
  border-top: 1px solid var(--line);
}
nav.mainnav a {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.85rem 1.05rem;
  position: relative;
  transition: color .2s var(--ease);
}
nav.mainnav a:first-child { padding-left: 0; }
nav.mainnav a::after {
  content: "";
  position: absolute;
  left: 1.05rem; right: 1.05rem; bottom: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
nav.mainnav a:first-child::after { left: 0; }
nav.mainnav a:hover { color: var(--pine); }
nav.mainnav a:hover::after { transform: scaleX(1); }
nav.mainnav a[aria-current="page"] { color: var(--pine-deep); }
nav.mainnav a[aria-current="page"]::after { transform: scaleX(1); }

/* ============================================================
   Layout shells
   ============================================================ */
main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3.4rem 1.5rem 1rem;
}
.shell { max-width: var(--shell); margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }

/* ============================================================
   Hero  -  the dawn (signature)
   ============================================================ */
.hero {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hero-frame {
  position: relative;
  margin-top: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(180deg, #fbf5e9 0%, #f7ecd6 46%, #f3ddc0 100%);
  box-shadow: 0 24px 60px -38px rgba(20,49,42,0.55);
}
.hero-sky {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}
.hero-content {
  position: relative;
  padding: clamp(2.6rem, 5vw, 4.8rem) clamp(1.6rem, 4vw, 3.4rem) clamp(9rem, 20vw, 12rem);
  max-width: 35rem;
}
.hero-content .eyebrow { color: var(--gold); }
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--pine-ink);
  margin: 0 0 1.15rem;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--pine); }
.hero .lede {
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.6;
  color: #3a4b40;
  margin: 0 0 1.8rem;
  max-width: 40ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  border: 1px solid var(--pine);
  background: var(--pine);
  color: #f4efe4;
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease),
              transform .22s var(--ease), box-shadow .22s var(--ease);
}
.btn:hover {
  background: var(--pine-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -14px rgba(20,49,42,0.8);
}
.btn.ghost {
  background: transparent;
  color: var(--pine-deep);
  border-color: var(--pine);
}
.btn.ghost:hover { background: var(--pine); color: #f4efe4; }
.btn.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #241704;
}
.btn.gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: #241704; }
.btn .arr { transition: transform .22s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ============================================================
   Horizon rule (recurring signature divider)
   ============================================================ */
.horizon-rule {
  border: 0;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 3rem 0;
}
.horizon-rule::before, .horizon-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 22%, var(--line) 78%, transparent);
}
.horizon-rule .node {
  flex: none;
  width: 11px; height: 11px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  position: relative;
}
.horizon-rule .node::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gold);
}

/* ============================================================
   Homepage  -  editorial contents index
   ============================================================ */
.index { max-width: var(--shell); margin: 0 auto; padding: 3.6rem 1.5rem 0; }
.index-head { max-width: 52ch; margin-bottom: 2.2rem; }
.index-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--pine-deep);
}
.index-sub {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin: 0.5rem 0 0;
}

/* lead feature */
.lead {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.6rem 2.6rem;
  align-items: end;
  padding: 1.9rem 0 2.1rem;
  border-top: 2px solid var(--pine);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  margin-bottom: 2.6rem;
}
.lead-kicker {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.lead-kicker::before {
  content: ""; width: 1.4rem; height: 1px; background: var(--gold);
}
.lead h3 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--pine-ink);
  transition: color .2s var(--ease);
}
.lead:hover h3 { color: var(--gold); }
.lead p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.6;
}
.lead-more {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin-top: 1.1rem;
  font-size: 0.76rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--pine);
}
.lead-more .arr { transition: transform .22s var(--ease); }
.lead:hover .lead-more { color: var(--gold); }
.lead:hover .lead-more .arr { transform: translateX(3px); }

/* two-column index groups */
.index-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.6rem 3.4rem;
}
.group-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--ink-faint);
  padding-bottom: 0.9rem;
  margin: 0 0 0.4rem;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 0.55rem;
}
.group-label::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); flex: none;
}
.entry-list { list-style: none; margin: 0; padding: 0; }
.entry-list li { border-bottom: 1px solid var(--line-soft); }
.entry-list a {
  display: block;
  padding: 1.05rem 0.2rem 1.05rem 0;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: padding-left .25s var(--ease);
}
.entry-list a::before {
  content: "";
  position: absolute;
  left: -0.9rem; top: 1.45rem;
  width: 0; height: 1px; background: var(--gold);
  transition: width .25s var(--ease);
}
.entry-list a:hover { padding-left: 0.9rem; }
.entry-list a:hover::before { width: 0.55rem; }
.entry-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
  transition: color .2s var(--ease);
}
.entry-list a:hover .entry-title { color: var(--pine); }
.entry-dek {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: 0.3rem;
  font-family: var(--font-serif);
}

/* ============================================================
   "Why this exists" editorial column
   ============================================================ */
.about {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.about h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 500;
  color: var(--pine-deep);
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.about p { margin: 0 0 1.15rem; }
.about > p:first-of-type:not(.local-note)::first-letter {
  font-family: var(--font-serif);
  float: left;
  font-size: 3.55em;
  line-height: 0.76;
  font-weight: 500;
  padding: 0.08em 0.12em 0 0;
  color: var(--pine);
}

/* ============================================================
   Article typography
   ============================================================ */
article { max-width: var(--measure); }
.article-title {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--pine-ink);
  margin: 0 0 1rem;
}
.byline {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--ink-faint);
  padding-bottom: 1.3rem;
  margin: 0 0 1.9rem;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 0.7rem;
}
.byline::before {
  content: "";
  width: 9px; height: 9px; flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3.5px var(--gold);
}

article > p, .about p { margin: 0 0 1.2rem; }
.byline + p::first-letter {
  font-family: var(--font-serif);
  float: left;
  font-size: 3.55em;
  line-height: 0.76;
  font-weight: 500;
  padding: 0.06em 0.14em 0 0;
  color: var(--pine);
}
.byline + p { }

article h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 500;
  color: var(--pine-deep);
  letter-spacing: -0.015em;
  margin: 2.7rem 0 0.85rem;
  padding-top: 0.9rem;
  position: relative;
}
article h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 2rem; height: 2px;
  background: var(--gold);
}
article h3 { font-size: 1.3rem; font-weight: 600; margin: 1.9rem 0 0.6rem; color: var(--ink); }

article ul, article ol { margin: 0 0 1.3rem; padding: 0; list-style: none; }
article ol { counter-reset: li; }
article li {
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: 0.7rem;
}
article ul li::before {
  content: "";
  position: absolute;
  left: 0.1rem; top: 0.72em;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
article ol li { counter-increment: li; }
article ol li::before {
  content: counter(li);
  position: absolute;
  left: 0; top: 0.12em;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
}
article li strong, article p strong { color: var(--pine-deep); font-weight: 600; }

/* ---------- Pull-quote (was .callout) ---------- */
.callout {
  margin: 2.4rem 0;
  padding: 1.9rem 0 1.7rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  position: relative;
}
.callout::before {
  content: "";
  display: block;
  width: 26px; height: 26px;
  margin: 0 auto 1rem;
  background: var(--gold);
  -webkit-mask: var(--sun-mask) center / contain no-repeat;
  mask: var(--sun-mask) center / contain no-repeat;
}
.callout {
  --sun-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 8a5 5 0 0 1 5 5H7a5 5 0 0 1 5-5Z'/%3E%3Cg stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cline x1='3' y1='13' x2='21' y2='13'/%3E%3Cline x1='12' y1='2' x2='12' y2='4.5'/%3E%3Cline x1='4.2' y1='5.2' x2='6' y2='7'/%3E%3Cline x1='19.8' y1='5.2' x2='18' y2='7'/%3E%3C/g%3E%3C/svg%3E");
}
.callout strong { color: var(--pine); font-weight: 600; }
.callout {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 34ch;
  margin-left: auto; margin-right: auto;
}

/* ---------- Fine print / local note ---------- */
.local-note::first-letter {
  font-family: inherit;
  float: none;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  padding: 0;
  color: inherit;
}
.local-note {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-soft);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 0.95rem 1.2rem;
  border-radius: 0 3px 3px 0;
  margin: 2.4rem 0 0;
}

/* ============================================================
   Recommended provider module
   ============================================================ */
.provider { max-width: var(--shell); margin: 4rem auto 0; padding: 0 1.5rem; }
.provider-box {
  position: relative;
  background:
    radial-gradient(760px 320px at 82% -60px, rgba(189,124,44,0.28), transparent 62%),
    linear-gradient(165deg, var(--pine-mid), var(--pine-ink));
  color: #dcd3bf;
  border-radius: 6px;
  padding: 2.6rem clamp(1.6rem, 4vw, 3rem) 2.2rem;
  overflow: hidden;
  border: 1px solid rgba(189,124,44,0.28);
}
.provider-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft), transparent 70%);
}
.provider-box .tag {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}
.provider-box .tag::before {
  content: ""; width: 1.4rem; height: 1px; background: var(--gold);
}
.provider-box h2 {
  color: #fbf5e9;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 0.8rem;
  max-width: 24ch;
}
.provider-box p {
  color: #cfc6b1;
  font-size: 1.04rem;
  line-height: 1.62;
  margin: 0 0 1.4rem;
  max-width: 62ch;
}
.provider-box a.btn { background: var(--gold); border-color: var(--gold); color: #241704; }
.provider-box a.btn:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.provider-box .disclose {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.55;
  color: #9b937e;
  margin: 1.3rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(227,199,141,0.22);
  max-width: 66ch;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  margin-top: 4.5rem;
  background: var(--pine-ink);
  color: #b7ad97;
  font-family: var(--font-sans);
}
.footer-inner { max-width: var(--shell); margin: 0 auto; padding: 3rem 1.5rem 2.4rem; }
.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 2rem 3rem;
  align-items: start;
}
.footer-brand { display: flex; gap: 0.95rem; align-items: flex-start; }
.footer-brand .sun-mark .sun-body { fill: var(--gold-soft); }
.footer-brand .sun-mark .sun-ray  { stroke: var(--gold); }
.footer-brand .sun-mark .sun-water{ stroke: var(--gold); }
.footer-brand__text { display: flex; flex-direction: column; }
.footer-brand__name {
  font-family: var(--font-serif);
  font-size: 1.24rem;
  font-weight: 500;
  color: #f0e7d4;
  letter-spacing: -0.01em;
  line-height: 1;
}
.footer-brand__meta {
  font-size: 0.8rem;
  color: #8f866f;
  line-height: 1.5;
  margin-top: 0.55rem;
  max-width: 34ch;
}
.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 1.4rem;
  align-content: start;
}
.footer-nav a {
  color: #c9bfa8;
  text-decoration: none;
  font-size: 0.82rem;
  padding: 0.32rem 0;
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: color .2s var(--ease);
}
.footer-nav a:hover { color: var(--gold-soft); }
.footer-divider {
  border: 0;
  height: 1px;
  background: rgba(227,199,141,0.16);
  margin: 2.1rem 0 1.5rem;
}
.disclaimer {
  font-size: 0.76rem;
  line-height: 1.6;
  color: #857c67;
  max-width: 92ch;
}

/* ============================================================
   Comparison table  -  "at a glance" (Spravato vs TMS)
   ============================================================ */
.cmp-figure { margin: 2.6rem 0 2.8rem; }
.cmp-cap {
  font-family: var(--font-sans);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em;
  font-weight: 600; color: var(--gold);
  display: flex; align-items: center; gap: 0.6rem;
  margin: 0 0 1rem;
}
.cmp-cap::before { content: ""; width: 1.6rem; height: 1px; background: var(--gold); flex: none; }
.cmp-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper-2);
  box-shadow: 0 22px 50px -36px rgba(20,49,42,0.55);
  -webkit-overflow-scrolling: touch;
}
.cmp {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.5;
}
.cmp thead th {
  vertical-align: bottom;
  text-align: left;
  padding: 1.15rem 1.2rem 1.05rem;
  background: linear-gradient(168deg, var(--pine-mid), var(--pine-ink));
  color: #f6ecd6;
  font-weight: 500;
  font-size: 1.16rem;
  letter-spacing: -0.012em;
  border-bottom: 3px solid var(--gold);
}
.cmp thead th .th-kind {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.16em;
  font-weight: 600; color: var(--gold-soft);
  margin-bottom: 0.4rem;
}
.cmp thead th:first-child {
  background: var(--pine-ink);
  width: 8rem;
  color: var(--gold-soft);
  font-family: var(--font-sans);
  font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600;
  vertical-align: bottom;
}
.cmp th[scope="row"] {
  text-align: left;
  vertical-align: top;
  padding: 0.95rem 1.2rem;
  background: var(--paper-3);
  border-top: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; color: var(--ink-soft);
  line-height: 1.35;
}
.cmp td {
  vertical-align: top;
  padding: 0.95rem 1.2rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line-soft);
}
.cmp tbody tr:nth-child(even) th[scope="row"] { background: var(--paper-2); }
.cmp tbody tr:nth-child(even) td { background: rgba(221,210,186,0.28); }
.cmp tbody tr:hover td { background: rgba(189,124,44,0.09); }
.cmp td strong { color: var(--pine-deep); font-weight: 600; }
.cmp-foot {
  font-family: var(--font-sans);
  font-size: 0.78rem; line-height: 1.55; color: var(--ink-faint);
  margin: 0.85rem 0 0; font-style: normal;
}

/* ============================================================
   FAQ  -  numbered almanac entries
   ============================================================ */
article.faq { counter-reset: faq; }
article.faq h2 {
  counter-increment: faq;
  padding: 2.5rem 0 0 3.9rem;
  margin: 2.9rem 0 0.85rem;
  border-top: 1px solid var(--line-soft);
  min-height: 2.6rem;
}
article.faq h2::before {
  content: counter(faq, decimal-leading-zero);
  position: absolute;
  left: 0; top: 2.15rem;
  width: 2.6rem; height: 2.6rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 38%, var(--paper) 0%, var(--paper-2) 100%);
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--gold);
  box-shadow: inset 0 0 0 3px var(--paper);
}

/* ============================================================
   Accessibility  -  focus
   ============================================================ */
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
nav.mainnav a:focus-visible { outline-offset: -2px; }

/* ============================================================
   Hero atmosphere  -  slow dawn (signature motion)
   ============================================================ */
.hero-sky .sun-disc { transform-box: fill-box; transform-origin: center; animation: sunGlow 9s var(--ease) infinite; }
.hero-sky .sun-halo { transform-box: fill-box; transform-origin: center; animation: haloBreathe 9s var(--ease) infinite; }
.hero-sky .star { animation: twinkle 6s ease-in-out infinite; }
.hero-sky .star.two { animation-delay: 2.4s; }
.hero-sky .bird { animation: drift 22s linear infinite; }
.hero-sky .bird.two { animation-delay: 5s; }
@keyframes sunGlow { 0%,100% { opacity: 0.9; } 50% { opacity: 1; } }
@keyframes haloBreathe { 0%,100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 0.72; transform: scale(1.045); } }
@keyframes twinkle { 0%,100% { opacity: 0.25; } 50% { opacity: 0.85; } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-26px); } }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .hero-sky .sun-halo { opacity: 0.55; }
  .hero-sky .star { opacity: 0.6; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr; }
  .lead { grid-template-columns: 1fr; align-items: start; gap: 1.1rem; }
  .lead p { max-width: 52ch; }
}

@media (max-width: 720px) {
  .index-cols { grid-template-columns: 1fr; gap: 2.2rem; }
}

@media (max-width: 560px) {
  body { font-size: 1.09rem; }
  main { padding-top: 2.6rem; }
  .masthead-inner { padding: 1.4rem 1.2rem 0; }
  .brandrow { gap: 0.85rem; }
  .wordmark { font-size: 1.42rem; }
  nav.mainnav { margin-top: 1rem; }
  nav.mainnav a { padding: 0.6rem 0.75rem 0.6rem 0; font-size: 0.7rem; letter-spacing: 0.1em; }
  nav.mainnav a::after { left: 0; right: auto; width: 1.4rem; }
  .hero-content { padding-bottom: 8rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    letter-spacing: 0.04em;
    font-size: 0.76rem;
    line-height: 1.35;
  }
  .footer-nav { grid-template-columns: 1fr; }
  .callout { font-size: 1.16rem; }
  .cmp { font-size: 0.92rem; }
  .cmp thead th { font-size: 1.02rem; padding: 0.9rem 0.85rem; }
  .cmp thead th:first-child { width: 5.5rem; }
  .cmp th[scope="row"], .cmp td { padding: 0.8rem 0.85rem; }
  article.faq h2 { padding-left: 3.4rem; }
  article.faq h2::before { width: 2.3rem; height: 2.3rem; }
}
