/* ==========================================================================
   HeartLink Circle — styles.css
   Design notes
   - Audience includes many older adults: 19px base size, generous line-height,
     high contrast, large tap targets (min 48px), no tiny all-caps labels.
   - Palette: evergreen ink + marigold warmth + rose heart (from the logo).
   - Type: Literata (book serif, headings) + Atkinson Hyperlegible (body; designed
     by the Braille Institute for low-vision readers).
   - The one bold idea: "the circle" — round photos seated around a ring with
     one empty seat waiting for the visitor (home hero).
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #1d3a32;
  --ink-2: #2a4d42;
  --sage: #5f8a72;
  --sage-dark: #3f6b55;
  --mist: #eaf0e9;
  --mist-2: #dce6db;
  --paper: #fafbf7;
  --white: #ffffff;
  --marigold: #f1b33c;
  --marigold-dark: #d9971a;
  --marigold-soft: #fdf1d8;
  --rose: #d6455f;
  --rose-light: #f38ba0;
  --rose-soft: #fbe6ea;
  --muted: #4b6158;
  --line: #cfdccf;

  --font-head: "Literata", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible", "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 1rem;                                        /* 16px: smallest text we use */
  --step-0: 1.1875rem;                                    /* 19px body */
  --step-1: clamp(1.3rem, 1.18rem + 0.5vw, 1.55rem);
  --step-2: clamp(1.6rem, 1.32rem + 1.1vw, 2.15rem);
  --step-3: clamp(2rem, 1.5rem + 2vw, 3rem);
  --step-4: clamp(2.45rem, 1.6rem + 3.6vw, 4.5rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.25rem;
  --space-5: 3.5rem;
  --space-6: clamp(4rem, 3rem + 4vw, 7rem);

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --pill: 999px;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 66ch;

  --shadow-seat: 0 10px 30px -12px rgba(29, 58, 50, 0.45);
  --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--mist); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; }
h4 { font-size: var(--step-0); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
li + li { margin-top: 0.35em; }

a { color: var(--sage-dark); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

strong { font-weight: 700; }
small, .small { font-size: var(--step--1); }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

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

.skip-link {
  position: absolute; left: var(--space-2); top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1.25rem; border-radius: var(--radius-s);
}
.skip-link:focus { top: var(--space-2); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.section { padding-block: var(--space-6); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--tight { padding-block: var(--space-5); }

.section-head { max-width: 46rem; margin-bottom: var(--space-4); }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.section--ink .section-head p { color: #c9d8cf; }

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 52px; padding: 0.7em 1.4em;
  border: 2px solid transparent; border-radius: var(--pill);
  font: 700 var(--step-0)/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--marigold); color: var(--ink); }
.btn--primary:hover { background: var(--marigold-dark); color: var(--ink); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink-2); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--mist); color: var(--ink); }
.btn--small { min-height: 44px; padding: 0.45em 1.05em; font-size: var(--step--1); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

.text-link { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 700; }

/* ---------- 4. Utility bar + header ---------- */
.utility-bar { background: var(--ink); color: var(--paper); font-size: var(--step--1); }
.utility-bar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 0.55rem; }
.utility-bar a { color: var(--paper); }
.utility-bar a:hover { color: var(--marigold); }
.utility-bar__crisis { display: inline-flex; gap: 0.45em; align-items: center; }
.utility-bar__crisis .icon { color: var(--marigold); }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 84px; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand img { width: 58px; height: auto; background: none; }
.brand__name { font-family: var(--font-head); font-size: 1.45rem; font-weight: 650; letter-spacing: -0.015em; line-height: 1; white-space: nowrap; }
.brand__name span { font-weight: 400; }

.nav { display: flex; align-items: center; gap: var(--space-3); }
.nav__list { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav__list li + li { margin-top: 0; }
.nav__list a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 0.8rem;
  color: var(--ink); text-decoration: none; font-weight: 700; border-radius: var(--pill);
}
.nav__list a:hover { background: var(--mist); }
.nav__list a[aria-current="page"] { background: var(--mist-2); }
.nav__actions { display: flex; gap: 0.6rem; }

.nav-toggle {
  display: none; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0 1rem;
  background: var(--mist); color: var(--ink); border: 0; border-radius: var(--pill);
  font: 700 var(--step--1) var(--font-body); cursor: pointer;
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: var(--space-2);
    padding: var(--space-3) var(--gutter) var(--space-4);
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(29, 58, 50, 0.35);
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; }
  .nav__list a { width: 100%; padding: 0 1rem; font-size: var(--step-1); }
  .nav__actions { flex-direction: column; }
  .nav__actions .btn { width: 100%; }
}
@media (max-width: 420px) {
  .brand img { width: 46px; }
  .brand__name { font-size: 1.2rem; }
}

/* ---------- 5. Home hero: the circle ---------- */
.hero { padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem) var(--space-6); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { max-width: 12ch; margin-bottom: 0.35em; }
.hero .lede { margin-bottom: var(--space-4); }
.hero__note { margin-top: var(--space-3); color: var(--muted); font-size: var(--step--1); display: flex; gap: 0.5em; align-items: flex-start; }
.hero__note .icon { color: var(--rose); margin-top: 0.15em; }

.ring { position: relative; width: min(100%, 560px); aspect-ratio: 1; margin-inline: auto; container-type: inline-size; }
.ring__track { position: absolute; inset: 0; }
.ring__track circle { fill: none; stroke: var(--mist-2); }
.ring__center {
  position: absolute; left: 50%; top: 50%; width: 34cqi; aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%; background: var(--mist);
}
.ring__center img { width: 72%; background: none; }

.seat {
  --a: 0deg;
  position: absolute; left: 50%; top: 50%; width: 24cqi; aspect-ratio: 1; margin: -12cqi 0 0 -12cqi;
  transform: rotate(var(--a)) translate(39cqi) rotate(calc(var(--a) * -1));
  animation: gather 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 90ms + 150ms);
}
.seat img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 5px solid var(--paper); box-shadow: var(--shadow-seat);
}
.seat--you {
  display: grid; place-items: center; text-align: center; border-radius: 50%;
  border: 3px dashed var(--ink); background: var(--marigold-soft);
  font-family: var(--font-head); font-weight: 600; font-size: clamp(0.95rem, 4cqi, 1.35rem); line-height: 1.1; color: var(--ink);
}
.seat--you span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.75em; margin-top: 0.2em; }

@keyframes gather {
  from { opacity: 0; transform: rotate(var(--a)) translate(0) rotate(calc(var(--a) * -1)) scale(0.5); }
}

/* ---------- 6. Doors (where to start) ---------- */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.door {
  display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4);
  border-radius: var(--radius-l); text-decoration: none; color: var(--ink);
  background: var(--white); border: 2px solid var(--line);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.door:hover { border-color: var(--ink); color: var(--ink); }
.door__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--mist); }
.door__icon .icon { width: 30px; height: 30px; }
.door--talk .door__icon { background: var(--rose-soft); color: var(--rose); }
.door--join .door__icon { background: var(--marigold-soft); color: #8a5a00; }
.door--help .door__icon { background: var(--mist-2); color: var(--sage-dark); }
.door h3 { font-size: var(--step-2); margin: 0; }
.door p { margin: 0; color: var(--muted); }
.door__go { margin-top: auto; padding-top: var(--space-2); font-weight: 700; display: inline-flex; gap: 0.4em; align-items: center; }

/* ---------- 7. Why it matters ---------- */
.why { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.facts li + li { margin-top: 0; }
.fact { padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: 0; }
.fact__figure { font-family: var(--font-head); font-size: var(--step-3); font-weight: 600; line-height: 1; color: var(--ink); display: block; margin-bottom: 0.3em; }
.fact p { margin: 0 0 0.4em; }
.fact cite { font-style: normal; font-size: var(--step--1); color: var(--muted); }

/* ---------- 8. Programs ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.feature__media { position: relative; }
.feature__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-l); }
.feature__badge {
  position: absolute; right: -14px; bottom: -14px; width: 132px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center; padding: 1rem;
  background: var(--marigold); color: var(--ink); font-weight: 700; font-size: var(--step--1); line-height: 1.2;
}
.feature h3 { font-size: var(--step-3); }
.meta-list { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: grid; gap: 0.5rem; }
.meta-list li { display: flex; gap: 0.6em; align-items: flex-start; margin: 0; }
.meta-list .icon { margin-top: 0.2em; color: var(--sage-dark); }

.program-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); margin-top: var(--space-5); }
.program { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.program img { width: 112px; height: 112px; object-fit: cover; border-radius: 50%; }
.program h3 { margin-bottom: 0.25em; }
.program p { margin: 0 0 0.4em; color: var(--muted); }
.program__when { font-size: var(--step--1); font-weight: 700; color: var(--sage-dark); }

/* Program catalog page */
.catalog-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-3); }
.catalog-group { scroll-margin-top: 120px; }
.catalog-group + .catalog-group { margin-top: var(--space-6); }
.catalog-group__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3); align-items: end; margin-bottom: var(--space-4); padding-bottom: var(--space-3); border-bottom: 2px solid var(--ink); }
.catalog-group__head p { margin: 0; color: var(--muted); }
.catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); }
.entry { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--space-2) var(--space-3); scroll-margin-top: 120px; }
.entry__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--sage-dark); }
.entry__icon .icon { width: 26px; height: 26px; }
.entry h3 { margin-bottom: 0.3em; }
.entry p { margin: 0 0 0.6em; }
.entry__facts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.6em; padding: 0; list-style: none; }
.entry__facts li { margin: 0; padding: 0.15em 0.75em; border-radius: var(--pill); background: var(--mist); font-size: var(--step--1); }
.entry__source { font-size: var(--step--1); color: var(--muted); margin: 0; }

/* ---------- 9. Events ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: var(--space-4); }
.chip {
  display: inline-flex; align-items: center; gap: 0.4em; min-height: 48px; padding: 0 1.15rem;
  border: 2px solid var(--line); border-radius: var(--pill); background: var(--white); color: var(--ink);
  font: 700 var(--step--1) var(--font-body); cursor: pointer; text-decoration: none;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.event-month { font-family: var(--font-head); font-size: var(--step-2); margin: var(--space-5) 0 var(--space-3); }
.event-month:first-child { margin-top: 0; }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.event-list li + li { margin-top: 0; }

.event {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: var(--space-3); align-items: center;
  padding: var(--space-3); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
}
.event__date {
  display: grid; place-items: center; align-content: center; width: 92px; aspect-ratio: 1; border-radius: 50%;
  background: var(--mist); text-align: center; line-height: 1.05;
}
.event__date-day { font-size: var(--step--1); font-weight: 700; }
.event__date-num { font-family: var(--font-head); font-size: 2rem; font-weight: 600; }
.event--generations .event__date { background: var(--marigold-soft); }
.event--talk .event__date { background: var(--rose-soft); }
.event--together .event__date { background: var(--mist-2); }
.event--home .event__date { background: #e6eef6; }
.event__title { font-family: var(--font-head); font-size: var(--step-1); font-weight: 600; line-height: 1.2; margin: 0 0 0.3em; }
.event__meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; margin: 0 0 0.4em; padding: 0; list-style: none; font-size: var(--step--1); color: var(--muted); }
.event__meta li { display: inline-flex; gap: 0.4em; align-items: flex-start; margin: 0; }
.event__meta .icon { margin-top: 0.2em; }
.more-row { display: flex; justify-content: center; margin-top: var(--space-4); }
.event__desc { margin: 0; font-size: var(--step--1); }
.event__actions { display: flex; flex-direction: column; gap: 0.5rem; align-items: stretch; }
.event__tag { display: inline-block; font-size: var(--step--1); font-weight: 700; color: var(--sage-dark); }

.empty-state { padding: var(--space-4); border: 2px dashed var(--line); border-radius: var(--radius-m); text-align: center; }
.empty-state p { margin-inline: auto; }

/* ---------- 10. Steps (a real sequence) ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.steps li { counter-increment: step; margin: 0; position: relative; padding-top: 4.5rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 3.4rem; height: 3.4rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--paper);
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 600;
}
.steps h3 { margin-bottom: 0.3em; }
.steps p { color: var(--muted); margin: 0; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.section--ink .steps li::before { background: var(--marigold); color: var(--ink); }
.section--ink .steps p { color: #c9d8cf; }

/* ---------- 11. Bands, panels, split layouts ---------- */
.band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.band h2 { color: var(--paper); }
.band p { color: #c9d8cf; }
.roles-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.roles-mini li { margin: 0; display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: center; padding: 0.9rem 1rem; border-radius: var(--radius-m); background: var(--ink-2); }
.roles-mini .icon-dot { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--marigold); color: var(--ink); }
.roles-mini strong { display: block; color: var(--paper); }
.roles-mini span { color: #c9d8cf; font-size: var(--step--1); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split--wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.panel--mist { background: var(--mist); border-color: transparent; }
.panel--rose { background: var(--rose-soft); border-color: transparent; }
.panel h2, .panel h3 { margin-top: 0; }

.inspired { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); list-style: none; padding: 0; margin: 0; }
.inspired li { margin: 0; padding-top: var(--space-2); border-top: 3px solid var(--ink); }
.inspired h3 { font-size: var(--step-0); font-family: var(--font-body); font-weight: 700; margin-bottom: 0.3em; }
.inspired p { margin: 0 0 0.5em; font-size: var(--step--1); color: var(--muted); }

/* ---------- 12. Sub-page hero ---------- */
.page-hero { background: var(--mist); padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--step-4); max-width: 16ch; }
.page-hero .lede { max-width: 40rem; margin-bottom: 0; }
.page-hero__rings { position: absolute; right: -120px; top: 50%; width: 520px; transform: translateY(-50%); opacity: 0.9; }
.page-hero__rings circle { fill: none; stroke: var(--mist-2); }
.page-hero--rose { background: var(--rose-soft); }
.page-hero--rose .page-hero__rings circle { stroke: #f5cfd6; }

/* ---------- 13. Talk page ---------- */
.reassure { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: grid; gap: 0.75rem; }
.reassure li { display: flex; gap: 0.75em; align-items: flex-start; margin: 0; }
.reassure .icon { color: var(--sage-dark); margin-top: 0.2em; }

.crisis {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); align-items: start;
  padding: var(--space-4); border-radius: var(--radius-l); background: var(--ink); color: var(--paper);
}
.crisis .icon { width: 44px; height: 44px; color: var(--marigold); }
.crisis h2 { font-size: var(--step-2); color: var(--paper); margin-bottom: 0.3em; }
.crisis p { color: #dbe6df; margin-bottom: 0.4em; }
.crisis a { color: var(--marigold); }
.crisis strong { color: var(--paper); }

.lines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.lines li { margin: 0; padding: var(--space-3); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); }
.lines h3 { margin-bottom: 0.25em; }
.lines p { margin: 0 0 0.5em; color: var(--muted); font-size: var(--step--1); }
.lines__number { font-family: var(--font-head); font-size: var(--step-1); font-weight: 600; color: var(--ink); text-decoration: none; display: inline-block; margin-bottom: 0.25em; }
.lines__number:hover { text-decoration: underline; }
.lines__who { display: inline-block; font-size: var(--step--1); font-weight: 700; color: var(--sage-dark); margin-bottom: 0.25em; }

.faq details { border-bottom: 1px solid var(--line); padding-block: var(--space-2); }
.faq summary { cursor: pointer; font-weight: 700; font-size: var(--step-1); font-family: var(--font-head); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 0.2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { margin: 0.75em 0 0.25em; }

/* ---------- 14. Get involved / about / donate ---------- */
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.roles > li { margin: 0; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--space-2) var(--space-3); padding: var(--space-3); border-radius: var(--radius-m); background: var(--white); border: 1px solid var(--line); }
.roles h3 { margin: 0 0 0.25em; }
.roles p { margin: 0 0 0.5em; font-size: var(--step--1); color: var(--muted); }
.roles__time { font-size: var(--step--1); font-weight: 700; color: var(--sage-dark); }

.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.partners li { margin: 0; display: flex; gap: 0.8rem; align-items: flex-start; }
.partners .icon { width: 28px; height: 28px; color: var(--sage-dark); margin-top: 0.1em; }
.partners strong { display: block; }
.partners span { color: var(--muted); font-size: var(--step--1); }

.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); list-style: none; padding: 0; margin: 0; }
.values li { margin: 0; }
.values h3 { display: flex; gap: 0.6rem; align-items: center; }
.values h3 .icon { color: var(--rose); }
.values p { margin: 0; color: var(--muted); }

.photo-band { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: var(--space-2); }
.photo-band img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m); }
.photo-band img:first-child { grid-row: 1 / span 2; aspect-ratio: auto; min-height: 100%; }

.amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: var(--space-3); }
.amount {
  min-height: 64px; border: 2px solid var(--line); background: var(--white); color: var(--ink); border-radius: var(--radius-m);
  font: 700 var(--step-1) var(--font-head); cursor: pointer;
}
.amount:hover { border-color: var(--ink); }
.amount[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gift-uses { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.gift-uses li { margin: 0; display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--space-2); align-items: baseline; padding-bottom: var(--space-2); border-bottom: 1px solid var(--line); }
.gift-uses strong { font-family: var(--font-head); font-size: var(--step-2); font-weight: 600; }

.prose h2 { font-size: var(--step-2); margin-top: var(--space-4); }
.prose h2:first-child { margin-top: 0; }

/* ---------- 15. Forms ---------- */
.form { display: grid; gap: var(--space-3); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); align-items: start; }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field label, .field legend { font-weight: 700; }
.field__hint { font-size: var(--step--1); color: var(--muted); margin: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 0.7rem 0.95rem;
  font: var(--step-0) var(--font-body); color: var(--ink);
  background: var(--white); border: 2px solid #9fb3a6; border-radius: var(--radius-s);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--ink); box-shadow: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--rose); background: #fff8f9; }
.field__error { color: #a3243b; font-weight: 700; font-size: var(--step--1); margin: 0; }
.field__error:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: grid; gap: 0.5rem; }
.check, .field .check { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 0.15em 0 0; accent-color: var(--ink); flex: none; }
.form__note { font-size: var(--step--1); color: var(--muted); margin: 0; }
.form__status { margin: 0; font-weight: 700; }
.form__status[data-state="error"] { color: #a3243b; }
.form__status[data-state="success"] { color: var(--sage-dark); }
.section--ink .field label, .section--ink .field legend { color: var(--paper); }

/* ---------- 16. Dialog + toast ---------- */
dialog.modal {
  width: min(560px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: var(--radius-l);
  background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45);
}
dialog.modal::backdrop { background: rgba(20, 38, 33, 0.6); }
.modal__inner { padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
.modal__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: var(--space-3); }
.modal__head h2 { font-size: var(--step-2); margin: 0; }
.modal__head p { margin: 0.3em 0 0; color: var(--muted); }
.modal__close { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--mist); color: var(--ink); cursor: pointer; }
.modal__close:hover { background: var(--mist-2); }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 60; width: min(560px, calc(100% - 2rem));
  transform: translate(-50%, 150%); visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
  display: flex; gap: 0.9rem; align-items: flex-start; padding: 1rem 1.25rem;
  background: var(--ink); color: var(--paper); border-radius: var(--radius-m); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; transition: transform 0.3s ease, visibility 0s; }
.toast .icon { color: var(--marigold); margin-top: 0.15em; }
.toast p { margin: 0; }
.toast strong { display: block; }

/* ---------- 17. Footer ---------- */
.site-footer { background: #142b25; color: #c9d8cf; padding-block: var(--space-5) var(--space-4); font-size: var(--step--1); }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--marigold); text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: var(--space-4); padding-bottom: var(--space-4); border-bottom: 1px solid var(--ink-2); }
.footer__brand img { width: 260px; background: none; margin-bottom: var(--space-2); }
.footer__brand p { max-width: 32ch; }
.footer__crisis { color: var(--paper); }
.footer__crisis strong { color: var(--marigold); }
.site-footer h2 { font-family: var(--font-body); font-size: var(--step-0); font-weight: 700; color: var(--paper); margin-bottom: 0.8em; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 0.55em; }
.footer__news .field input { min-height: 50px; border-color: var(--ink-2); }
.footer__news .form { gap: var(--space-2); }
.footer__news label { color: var(--paper); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: var(--space-3); }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__bottom li + li { margin-top: 0; }

/* ---------- 18. Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .why, .feature, .band, .split, .split--wide-left { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .ring { width: min(100%, 460px); }
  .doors { grid-template-columns: 1fr; }
  .program-grid, .catalog, .roles, .lines, .values { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps--4 { grid-template-columns: 1fr 1fr; }
  .inspired { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .feature__badge { right: 12px; bottom: -18px; width: 112px; }
  .page-hero__rings { width: 360px; right: -180px; opacity: 0.6; }
}
@media (max-width: 640px) {
  .event { grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: var(--space-2); padding: var(--space-2) var(--space-2) var(--space-3); }
  .event__date { width: 64px; }
  .event__date-day { font-size: 0.9rem; }
  .event__date-num { font-size: 1.45rem; }
  .event__meta { flex-direction: column; }
  .event__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .event__actions .btn { flex: 1 1 auto; }
  .form__row { grid-template-columns: 1fr; }
  .inspired, .partners, .steps--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .photo-band { grid-template-columns: 1fr 1fr; }
  .photo-band img:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
  .program { grid-template-columns: 84px minmax(0, 1fr); }
  .program img { width: 84px; height: 84px; }
  .catalog-group__head { grid-template-columns: 1fr; }
  .utility-bar__call { display: none; }
}

/* ---------- 19. Motion & print preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .utility-bar, .site-header, .site-footer, .btn, .filters, dialog, .toast { display: none !important; }
  body { font-size: 12pt; }
}
