/* Healing the Healers — public site: tokens, base, header, footer.
   Direction: warm editorial. Palette "Teal & Coral": teal = support & actions, coral (--saffron tokens) = events & the Declaration. */

:root {
  --paper: #F7FAF9;
  --paper-2: #E9F2F0;
  --card: #FFFFFF;
  --line: #D6E3E0;
  --line-soft: #E4EEEC;

  --ink: #0F2F3A;
  --text: #24383F;
  --muted: #4F646B;

  --teal: #0E7C86;
  --teal-hover: #0A6169;
  --teal-bright: #1BA3AE;
  --sage: #86CDBA;
  --sage-deep: #1F7A64;
  --sage-soft: #DDF3EC;

  --saffron: #F48C73;
  --saffron-deep: #A8402B;
  --saffron-soft: #FDE4DC;
  --saffron-hover: #F7A28E;

  /* Text and surfaces on dark (ink) backgrounds */
  --ink-deep: #0A222B;
  --on-ink: #BFD6DB;
  --on-ink-strong: #E4F0F2;
  --on-ink-link: #D3E5E8;
  --on-ink-soft: #A9C5CB;
  --on-ink-muted: #92B2B9;
  --on-ink-faint: #7BA0A8;

  /* Misc roles */
  --teal-tint: #E2F2F3;
  --dash: #B8CFCB;
  --control-border: #A5B9BD;
  --placeholder: #839AA0;
  --warn-text: #6B2A1B;
  --danger-bg: #FDECEC;
  --danger-text: #7A1F1F;

  /* RGB triplets, for translucent versions of the above */
  --saffron-rgb: 244, 140, 115;
  --teal-rgb: 14, 124, 134;
  --ink-rgb: 15, 47, 58;
  --paper-rgb: 247, 250, 249;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 128px);
  --radius: 22px;
  --radius-lg: 32px;
  --shadow-soft: 0 24px 48px -28px rgba(var(--ink-rgb), 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-hover); }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
p { margin: 0 0 1em; color: var(--muted); text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 500; color: var(--ink);
  font-variation-settings: 'opsz' 72; letter-spacing: -0.01em; text-wrap: balance; margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.75rem); line-height: 1.06; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.25rem); line-height: 1.1; }
h3 { font-size: 1.375rem; line-height: 1.25; font-variation-settings: 'opsz' 36; }
em { font-style: italic; }
h1 em, h2 em { color: var(--teal); font-weight: 400; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.section { padding-block: var(--section); }
.section-tint { background: var(--paper-2); }
.eyebrow {
  display: block; margin-bottom: 18px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal);
}
.eyebrow::before { content: ''; display: inline-block; vertical-align: middle; width: 28px; height: 1.5px; margin: -2px 12px 0 0; background: currentColor; }
.eyebrow-warm { color: var(--saffron-deep); }
.lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3rem); line-height: 1.6; max-width: 62ch; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font-body); letter-spacing: 0.005em; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px -12px rgba(var(--teal-rgb), 0.7); }
.btn-primary:hover { background: var(--teal-hover); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--saffron-soft); color: var(--ink); transform: translateY(-2px); }
.btn-saffron { background: var(--saffron); color: var(--ink); }
.btn-saffron:hover { background: var(--saffron-hover); color: var(--ink); transform: translateY(-2px); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, 0.45); background: transparent; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-sm { padding: 11px 22px; font-size: 0.9rem; }
.btn-arrow::after { content: '→'; transition: transform 0.25s var(--ease); }
.btn-arrow:hover::after { transform: translateX(4px); }
.text-link { font-weight: 600; color: var(--teal); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.text-link:hover { color: var(--teal-hover); }

/* Announcement bar */
.announce-bar {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 14px;
  background: var(--ink); color: #fff; padding: 10px var(--gutter); font-size: 0.875rem; text-align: center; line-height: 1.4;
}
.announce-bar:hover { color: #fff; background: var(--ink-deep); }
.announce-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); background: var(--saffron); padding: 3px 10px; border-radius: 999px;
}
.announce-text { font-weight: 500; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(var(--paper-rgb), 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 16px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap;
  font-variation-settings: 'opsz' 36;
}
.brand:hover { color: var(--ink); }
.brand svg { fill: var(--teal-bright); }
.site-footer .brand svg { fill: var(--sage); }
.brand-mid { color: var(--teal-bright); font-style: italic; font-weight: 400; }
.header-right { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.header-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.header-nav a { position: relative; padding: 6px 0; color: var(--text); font-size: 0.97rem; font-weight: 500; }
.header-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--saffron); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.header-nav a:hover { color: var(--ink); }
.header-nav a:hover::after, .header-nav a:focus-visible::after, .header-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-nav a[aria-current="page"] { color: var(--ink); }
.nav-external { display: inline-flex; align-items: center; gap: 6px; }
.nav-external svg { opacity: 0.65; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink); padding: clamp(56px, 7vw, 96px) 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.site-footer .brand { color: #fff; font-size: 1.6rem; }
.site-footer .brand-mid { color: var(--sage); }
.footer-lead { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.35; color: #fff; margin: 20px 0 8px; max-width: 22ch; }
.footer-sub { font-size: 0.95rem; color: var(--on-ink-muted); }
.footer-sub a { color: var(--sage); text-decoration: underline; text-underline-offset: 3px; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--saffron); margin: 0 0 18px; }
.footer-col a { display: block; color: var(--on-ink-link); padding: 5px 0; font-size: 1rem; }
.footer-col a:hover { color: #fff; }
.footer-col a.btn { display: inline-flex; padding: 11px 22px; color: var(--ink); }
.footer-col a.btn:hover { color: var(--ink); }
.footer-help { margin-top: 8px; }
.footer-note { color: var(--on-ink-muted); font-size: 0.95rem; margin: 0 0 14px; }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); color: var(--sage); transition: background 0.25s, color 0.25s;
}
.social-icon:hover { background: var(--sage); color: var(--ink); }
.footer-crisis {
  margin: clamp(36px, 5vw, 56px) 0 24px; padding: 20px 24px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 18px;
  font-size: 0.9rem; line-height: 1.6; color: var(--on-ink-soft);
}
.footer-crisis strong { color: #fff; }
.footer-copy { font-size: 0.85rem; color: var(--on-ink-faint); margin: 0; }

/* Shared: event tag + split layout */
.spot-tag {
  display: inline-block; margin-bottom: 22px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(var(--saffron-rgb), 0.6); color: var(--saffron);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.upcoming-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(32px, 7vw, 112px); align-items: start; }
.upcoming-intro .lede { font-size: 1.1rem; margin-bottom: 28px; }
@media (max-width: 960px) { .upcoming-grid { grid-template-columns: 1fr; } }

/* Schedule rows (home + events) */
.schedule { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.schedule-row { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.schedule-date { display: flex; flex-direction: column; line-height: 1; }
.schedule-date strong { font-family: var(--font-display); font-weight: 500; font-size: 2.4rem; color: var(--ink); letter-spacing: -0.02em; }
.schedule-date span { margin-top: 8px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; color: var(--saffron-deep); }
.schedule-row h3 { margin-bottom: 0.15em; }
.schedule-row p { margin: 0; font-size: 0.95rem; }
@media (max-width: 640px) {
  .schedule-row { grid-template-columns: 72px 1fr; gap: 16px; }
  .schedule-date strong { font-size: 2rem; }
}

/* Flash messages */
.flash { max-width: 760px; margin: 20px auto 0; padding: 14px 20px; border-radius: 14px; font-size: 0.97rem; }
.flash-error { background: var(--danger-bg); color: var(--danger-text); }
.flash-success { background: var(--sage-soft); color: var(--ink); }

/* Scroll reveal — only when JS has opted in */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 12px; padding-block: 12px; }
  .brand { font-size: 1.2rem; }
  .header-right { display: contents; }
  .header-right .btn { grid-column: 2; grid-row: 1; padding: 10px 18px; }
  .header-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
  .header-nav a { font-size: 0.9rem; white-space: nowrap; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
