/* ==========================================================================
   Mia Jennings Memorial Fund
   Single stylesheet. No preprocessor, no build step.
   Edit this file directly; the browser loads it as-is.
   ========================================================================== */

/* --- 1. Design tokens ---------------------------------------------------- */

:root {
  /* Colour. All text/background pairs below meet WCAG 2.2 AA (4.5:1+). */
  --ink:          #16242c; /* body text on cream/white — 13.8:1 */
  --ink-soft:     #4a5c66; /* secondary text on cream — 5.9:1  */
  --sea:          #1d4557; /* headings, header bar — 10.2:1 on white */
  --sea-dark:     #143240; /* hover state for --sea */
  --clay:         #a8503f; /* primary action — white text on it is 7.5:1 */
  --clay-dark:    #8b402f; /* hover state for --clay */
  --cream:        #fbf8f4; /* page background */
  --paper:        #ffffff; /* cards */
  --line:         #e2dbd2; /* hairlines */
  --line-strong:  #c9bfb3;
  --focus:        #b8541c; /* focus ring — visible on cream and on --sea */

  /* Mia liked bluebells and sweet peas (James, Sept 2026). Accents only. */
  --bluebell:       #4b4f9e; /* 7.2:1 on white, 6.4:1 on its tint */
  --bluebell-tint:  #eef0fa; /* body text on it 14.0:1 */
  --sweetpea:       #a3326b; /* 6.5:1 on white, 5.8:1 on its tint */
  --sweetpea-tint:  #fbeef4; /* body text on it 14.1:1 */

  /* Type. Headings use Fraunces, self-hosted (fonts/, 41KB for both files,
     OFL licence in fonts/OFL.txt). Body text stays on system fonts. */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-head: "Fraunces", Georgia, "Iowan Old Style", "Times New Roman", serif;

  /* Spacing scale */
  --s1: 0.25rem; --s2: 0.5rem;  --s3: 0.75rem; --s4: 1rem;
  --s5: 1.5rem;  --s6: 2rem;    --s7: 3rem;    --s8: 4.5rem;

  --radius: 6px;
  --measure: 34rem;      /* comfortable reading width */
  --wrap: 68rem;         /* page max width */
  --shadow: 0 1px 2px rgba(22,36,44,.06), 0 4px 14px rgba(22,36,44,.06);
}

/* Fraunces: semibold for headings, italic for the pull-quote and sign-off.
   swap = text shows straight away in Georgia, then changes when the font arrives. */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("../fonts/fraunces-latin-500-italic.woff2") format("woff2");
}

/* --- 2. Reset ------------------------------------------------------------ */

*, *::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(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* --- 3. Typography ------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--sea);
  line-height: 1.2;
  margin: 0 0 var(--s4);
  font-weight: 600;
}
h1 { font-size: clamp(1.9rem, 5.5vw, 2.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 3.6vw, 1.9rem); margin-top: var(--s7); }
h3 { font-size: 1.2rem; margin-top: var(--s5); }
h4 { font-size: 1.05rem; font-family: var(--font-body); margin-top: var(--s5); }

p, ul, ol, dl { margin: 0 0 var(--s4); }
p, li { max-width: var(--measure); }

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink);
}

small, .small { font-size: .9rem; line-height: 1.55; }

a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--sea-dark); }

/* Visible focus everywhere, on every interactive element. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --- 4. Layout ----------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s5);
}

main { display: block; }

.section { padding-block: var(--s7); }
.section--tight { padding-block: var(--s6); }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }

.section > .wrap > h2:first-child { margin-top: 0; }

.grid {
  display: grid;
  gap: var(--s5);
  grid-template-columns: 1fr;
}
@media (min-width: 46em) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- 5. Skip link -------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: var(--s4);
  top: -6rem;
  z-index: 100;
  background: var(--paper);
  color: var(--sea);
  padding: var(--s3) var(--s4);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: var(--s4); }

/* --- 6. Header and navigation -------------------------------------------- */

.site-header {
  background: var(--sea);
  color: #fff;
  border-bottom: 3px solid var(--clay);
}
.site-header a { color: #fff; }

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  padding-block: var(--s4);
}
.logo {
  width: 163px;
  height: auto;
 }
.brand { margin-left:auto; text-decoration: none; text-align: right; line-height: 1.1; }
.brand strong {
  display: block;
  margin-left: auto;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.1;
}
.brand span {
  display: block;
  font-size: .8rem;
  line-height: 1.1;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #cfe0e8;   /* 9.4:1 on --sea */
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--radius);
  font: inherit;
  font-size: .95rem;
  padding: var(--s3) var(--s4);
  min-height: 44px;
  cursor: pointer;
}
.nav-toggle:hover { background: rgba(255,255,255,.12); }

.nav-toggle-bars { display: block; width: 18px; height: 2px; background: #fff; position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #fff;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}
.site-nav li { max-width: none; }
.site-nav a {
  display: block;
  padding: var(--s3) var(--s2);
  min-height: 44px;
  text-decoration: none;
  border-radius: var(--radius);
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.site-nav a:hover { background: rgba(255,255,255,.12); text-decoration: underline; }
.site-nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }

/* Collapsed on small screens; JS sets hidden. Without JS the menu stays open. */
.site-nav[hidden] { display: none; }

@media (min-width: 52em) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav[hidden] { display: block; }
  .header-bar { padding-block: var(--s5); }
  .site-nav ul { flex-direction: row; align-items: center; gap: var(--s2); padding: 0; flex-wrap: wrap; }
  .site-nav a { border-bottom: 0; padding: var(--s2) var(--s3); }
}

/* --- 7. Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: var(--s3) var(--s5);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--clay); color: #fff; }
.btn--primary:hover { background: var(--clay-dark); color: #fff; }

.btn--secondary { background: var(--sea); color: #fff; }
.btn--secondary:hover { background: var(--sea-dark); color: #fff; }

.btn--ghost { background: transparent; color: var(--sea); border-color: var(--line-strong); }
.btn--ghost:hover { background: #fff; border-color: var(--sea); color: var(--sea-dark); }

.btn--small { min-height: 44px; padding: var(--s2) var(--s4); font-size: .95rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-bottom: var(--s4);
}
.btn-row .btn { flex: 1 1 15rem; }
@media (min-width: 40em) { .btn-row .btn { flex: 0 1 auto; } }

/* --- 8. Hero ------------------------------------------------------------- */

.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-inner { padding-block: var(--s7); }

@media (min-width: 52em) {
  .hero-inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: var(--s7);
    align-items: center;
    padding-block: var(--s8);
  }
}

.hero h1 { margin-bottom: var(--s4); }
.hero .lede { margin-bottom: var(--s5); }

/* --- 9. Photograph placeholders ------------------------------------------ */
/* Replace the <div class="photo-placeholder"> with a real <img> — see README. */

.photo,
.photo-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  background: #efe9e1;
}
.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s5);
  border: 2px dashed var(--line-strong);
  color: var(--ink-soft);
  font-size: .9rem;
  min-height: 14rem;
  aspect-ratio: 4 / 3;
}
.photo-placeholder p { max-width: 22rem; margin: 0; }
.photo figcaption,
figure figcaption {
  font-size: .9rem;
  color: var(--ink-soft);
  margin-top: var(--s2);
}
figure { margin: 0 0 var(--s5); }

/* --- 10. Cards ----------------------------------------------------------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s5);
  box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-top: 0; }

/* --- 11. Counter / key figures ------------------------------------------- */

.figures { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 40em) { .figures { grid-template-columns: repeat(3, 1fr); } }

.figure-stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--clay);
  border-radius: var(--radius);
  padding: var(--s5);
}
.figure-stat .num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.3rem;
  line-height: 1.1;
  color: var(--sea);
  margin-bottom: var(--s2);
}
.figure-stat p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* --- 12. Screening list -------------------------------------------------- */

.screening-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.screening-list > li { max-width: none; }

.screening {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s5);
  box-shadow: var(--shadow);
}
.screening h3 { margin: 0 0 var(--s2); font-size: 1.25rem; }
.screening .venue { font-weight: 600; margin-bottom: var(--s1); }
.screening address {
  font-style: normal;
  color: var(--ink-soft);
  margin-bottom: var(--s3);
  font-size: .98rem;
}
.screening .meta {
  margin: 0 0 var(--s4);
  color: var(--ink-soft);
  font-size: .95rem;
}
.screening .btn-row { margin-bottom: 0; }

.screening--past { opacity: .95; background: transparent; box-shadow: none; }

.tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: var(--s3);
  border: 1px solid;
}
.tag--open { color: #1f5136; background: #e6f4ec; border-color: #9cc9b1; }
.tag--awaiting { color: #7a4310; background: #fbeee0; border-color: #ddb98c; }
.tag--past { color: #4a5c66; background: #eef1f3; border-color: #c3ccd1; }

/* Past-dates disclosure */
.past-dates { margin-top: var(--s7); }
.past-dates summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--sea);
  padding: var(--s3) 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* --- 13. Empty / status states ------------------------------------------- */

.empty-state {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sea);
  border-radius: var(--radius);
  padding: var(--s5);
}
.empty-state h3 { margin-top: 0; }
.empty-state > :last-child { margin-bottom: 0; }

.loading { color: var(--ink-soft); font-style: italic; }

/* --- 14. Testimony cards ------------------------------------------------- */

.testimony-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); }
.testimony-list > li { max-width: none; }
@media (min-width: 52em) { .testimony-list { grid-template-columns: repeat(2, 1fr); } }

.testimony {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s5);
  box-shadow: var(--shadow);
  height: 100%;
}
.testimony blockquote {
  margin: 0 0 var(--s4);
  font-family: var(--font-head);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink);
  border-left: 3px solid var(--clay);
  padding-left: var(--s4);
}
.testimony blockquote p:last-child { margin-bottom: 0; }
.testimony .attribution { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.testimony .attribution strong { color: var(--ink); display: block; }

/* --- 15. Callout --------------------------------------------------------- */

.callout {
  background: #eef3f5;
  border: 1px solid #cfdde3;
  border-radius: var(--radius);
  padding: var(--s5);
  margin-bottom: var(--s5);
}
.callout > :last-child { margin-bottom: 0; }
.callout h2, .callout h3 { margin-top: 0; }

/* Editor-only marker for facts awaiting confirmation. */
.verify {
  background: #fff3cd;
  border-bottom: 2px dotted #a8790a;
  padding: 0 3px;
  font-weight: 600;
  color: #5c4405;
}

/* --- 16. Steps / numbered lists ------------------------------------------ */

.steps { list-style: none; counter-reset: step; margin: 0 0 var(--s5); padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: var(--s4);
  max-width: var(--measure);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--sea);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}

/* --- 17. Footer ---------------------------------------------------------- */

.site-footer {
  background: var(--sea);
  color: #e8eff2;   /* 11.2:1 on --sea */
  margin-top: var(--s8);
  padding-block: var(--s7) var(--s6);
}
.site-footer a { color: #fff; }
.site-footer h2, .site-footer h3 {
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: 0 0 var(--s3);
}
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
@media (min-width: 46em) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: var(--s2); max-width: none; }
.footer-grid a { display: inline-block; padding: var(--s1) 0; min-height: 32px; }

.footer-legal {
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid rgba(255,255,255,.25);
  font-size: .9rem;
  color: #dbe6ea;
}
.footer-legal p { max-width: 46rem; }
.footer-legal p:last-child { margin-bottom: 0; }

/* --- 18. Utilities ------------------------------------------------------- */

.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;
}
.flow > * + * { margin-top: var(--s4); }
.text-center { text-align: center; }
.text-center p, .text-center li { margin-inline: auto; }
.mb-0 { margin-bottom: 0; }

/* External-link marker, applied by js/main.js */
.ext::after {
  content: " ↗";
  font-size: .85em;
  vertical-align: baseline;
}

/* --- 19. Print ----------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .btn, .nav-toggle { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
}

/* --- 19. Single-page layout (v2) ------------------------------------------ */

/* Two in-page links: always visible, no toggle needed. */
.site-nav--simple ul { flex-direction: row; padding: 0; gap: var(--s1); }
.site-nav--simple a { border-bottom: 0; padding: var(--s3) var(--s3); font-size: .95rem; }
.header-bar { flex-wrap: wrap; }

/* Portrait photograph beside the intro on wide screens, below it on phones. */
.portrait { margin: var(--s5) auto 0; max-width: 22rem; }
.portrait .photo { width: 100%; }
@media (min-width: 52em) {
  .hero-inner--portrait { grid-template-columns: 1.4fr 1fr; }
  .portrait { margin: 0; justify-self: end; }
}

.site-footer .footer-legal:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* School screenings: an extra tag beside the status. */
.tag--school { color: #1d4557; background: #e7eff3; border-color: #a9c1cc; margin-left: var(--s2); }

/* The "Anchor" targets sit under nothing sticky, but leave a little air. */
#dates, #donate { scroll-margin-top: var(--s4); }
.tags { margin: 0 0 var(--s3); }
.tags .tag { margin-bottom: 0; }

/* --- 20. Admin page (/admin/) --------------------------------------------- */

.admin-card { max-width: 40rem; margin-bottom: var(--s6); }
.admin h1 { margin-bottom: var(--s4); }
.field { margin: 0 0 var(--s5); border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: var(--s2); color: var(--ink); }
.field .choice { display: flex; align-items: center; gap: var(--s3); font-weight: 400; min-height: 44px; margin: 0; }
.field .choice input { width: 1.25rem; height: 1.25rem; accent-color: var(--sea); }
.field .hint { font-size: .9rem; color: var(--ink-soft); margin: calc(-1 * var(--s1)) 0 var(--s2); }
.field .req { font-weight: 400; color: var(--ink-soft); font-size: .9rem; }
.field input[type="text"], .field input[type="url"], .field input[type="date"],
.field input[type="time"], .field input[type="password"] {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid var(--line-strong); border-radius: var(--radius);
  padding: var(--s3); min-height: 48px;
}
.field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--sea); }
.field-row { display: grid; gap: 0 var(--s4); grid-template-columns: 1fr; }
@media (min-width: 36em) { .field-row { grid-template-columns: 2fr 1fr 1fr; } }

.admin-msg { padding: var(--s3) var(--s4); border-radius: var(--radius); border: 1px solid; max-width: 40rem; }
.admin-msg--error { color: #7a2418; background: #fbeae6; border-color: #e0a79b; }
.admin-msg--ok { color: #1f5136; background: #e6f4ec; border-color: #9cc9b1; }
.admin-msg:not(.admin-msg--error):not(.admin-msg--ok) { border-color: var(--line); }

.admin-list { list-style: none; padding: 0; margin: 0 0 var(--s5); }
.admin-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s4); margin-bottom: var(--s3); max-width: none;
}
.admin-row p { margin: 0 0 var(--s1); }
.admin-row-when { font-weight: 700; color: var(--sea); }
.admin-row-actions { display: flex; gap: var(--s2); align-items: flex-start; flex-wrap: wrap; }
.admin-remove { color: #8b2e1f; }
.admin-empty { color: var(--ink-soft); max-width: none; }
button:disabled { opacity: .6; cursor: progress; }
.field input:focus-visible { outline-color: var(--focus); }
[hidden] { display: none !important; }

/* --- 21. Full one-page layout (v2.4, James's outline) ---------------------- */

/* Every section heading is an anchor target: leave a little air above it. */
[id] { scroll-margin-top: var(--s4); }

/* Header: brand + menu button on one row, the menu below on phones and a
   wrapping row on wide screens. */
.site-nav a.nav-donate { background: var(--clay); border-bottom: 0; font-weight: 600; }
.site-nav a.nav-donate:hover { background: var(--clay-dark); }
@media (min-width: 52em) {
  .site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: var(--s5); }
  .header-bar { width: 100%; }
  .site-nav { width: 100%; padding-bottom: var(--s4); }
  .site-nav li:last-child { margin-left: auto; }
  .site-nav a { font-size: .95rem; }
}

.eyebrow {
  font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--bluebell); margin-bottom: var(--s2);
}

.hero { position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; }

.section--bluebell { background: var(--bluebell-tint); border-block: 1px solid #d9dcf1; }
.section--sweetpea { background: var(--sweetpea-tint); border-block: 1px solid #f1d3e1; }

.big-statement {
  font-family: var(--font-head); font-size: clamp(1.3rem, 3.4vw, 1.7rem); line-height: 1.35;
  color: var(--sea); max-width: 40rem; margin-bottom: var(--s2);
  border-left: 4px solid var(--bluebell); padding-left: var(--s4);
}
.source { color: var(--ink-soft); padding-left: calc(var(--s4) + 4px); }
.urgent { font-size: .95rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s3) var(--s4); max-width: 40rem; }

.two-col { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
@media (min-width: 52em) { .two-col { grid-template-columns: 1.4fr 1fr; align-items: start; } }

ul.figures { list-style: none; padding: 0; margin: 0 0 var(--s4); }
ul.figures > li { max-width: none; }
.figure-stat--sweetpea { border-left-color: var(--sweetpea); }
.figure-stat--bluebell { border-left-color: var(--bluebell); }


.callout--donate { background: var(--paper); border: 2px solid var(--clay); box-shadow: var(--shadow); }
.impact { list-style: none; padding: 0; }
.impact li { padding-left: 1.5rem; position: relative; margin-bottom: var(--s2); }
.impact li::before { content: ""; position: absolute; left: 0; top: .55em; width: .6rem; height: .6rem;
  border-radius: 50%; background: var(--sweetpea); }

.item-list { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; gap: var(--s4); }
.item-list > li { max-width: none; }
@media (min-width: 52em) { .item-list { grid-template-columns: repeat(2, 1fr); } }
.item {
  background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--bluebell);
  border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow); height: 100%;
}
#news .item, .section--sweetpea .item { border-top-color: var(--sweetpea); }
.item > :last-child { margin-bottom: 0; }
.item h3, .item h4 { margin: 0 0 var(--s2); font-family: var(--font-head); font-size: 1.2rem; }
.item-date { font-size: .9rem; font-weight: 600; color: var(--ink-soft); margin-bottom: var(--s1); }
.item-where { color: var(--ink-soft); margin-bottom: var(--s3); }
.item--past { box-shadow: none; }
.empty-line { color: var(--ink-soft); }

.involved-grid { margin-top: var(--s6); }


/* Admin: events and updates */
.admin-jump { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-bottom: var(--s5); }
.admin-jump a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.admin-list-section { margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--line); }
.hint-para { color: var(--ink-soft); }
.field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid var(--line-strong); border-radius: var(--radius);
  padding: var(--s3); min-height: 7rem; resize: vertical;
}
.field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--sea); }

/* --- 22. Look and feel (v2.5) ------------------------------------------------
   Softer shapes, a proper heading face, hand-drawn icons, a sticky header and
   gentle motion. Everything here is decoration: the page reads the same without it. */

:root { --radius: 12px; --header-h: 4.25rem; }
[id] { scroll-margin-top: calc(var(--header-h) + var(--s3)); }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.005em; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.3rem); }

/* A small ECG trace above each section heading. */
.section > .wrap > h2:first-child::before,
.section > .wrap > .two-col > div > h2:first-child::before {
  content: ""; display: block; width: 72px; height: 20px; margin-bottom: var(--s3);
  background: url("../images/ecg-mark.svg") no-repeat left center / contain;
}

.btn { border-radius: 999px; padding-inline: var(--s6); }
.btn--small { padding-inline: var(--s5); }
.card, .screening, .item, .figure-stat, .empty-state, .callout { border-radius: var(--radius); }

/* Sticky, slim header. */
.site-header { position: sticky; top: 0; z-index: 50; transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(20, 50, 64, .28); }
.header-bar { padding-block: var(--s3); gap: var(--s3); }
.header-bar .brand { margin-left: auto; }
.header-donate {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4);
  background: var(--clay); color: #fff; border-radius: 999px; font-weight: 600;
  text-decoration: none; font-size: .95rem;
}
.header-donate:hover { background: var(--clay-dark); color: #fff; }
.site-nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
@media (min-width: 52em) {
  .header-donate { display: none; }        /* the menu has its own Donate button */
  .header-bar { padding-block: var(--s3); }
  .site-nav { max-height: none; overflow: visible; padding-bottom: var(--s3); }
  .site-nav a.nav-donate { border-radius: 999px; padding-inline: var(--s4); }
}

/* Welcome: bluebell wash, big headline, framed photo with flowers at its foot. */
.hero {
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(163, 50, 107, .07), transparent 70%),
    linear-gradient(170deg, var(--bluebell-tint) 0%, var(--paper) 75%);
}
.hero h1 { font-size: clamp(2.4rem, 8vw, 4rem); line-height: 1.05; margin-bottom: var(--s5); }
.hero .lede { font-size: clamp(1.15rem, 2.4vw, 1.3rem); }
.portrait { position: relative; max-width: 24rem; margin-bottom: var(--s6); }
.portrait .photo {
  border-radius: 20px; border: 8px solid #fff;
  box-shadow: 0 2px 4px rgba(22,36,44,.08), 0 18px 40px rgba(29,69,87,.18);
}
.portrait-flowers {
  position: absolute; left: -34px; bottom: -40px; width: 170px; height: auto; z-index: 2;
  pointer-events: none;
}
@media (min-width: 52em) {
  .portrait { max-width: 26rem; margin-bottom: 0; }
  .portrait-flowers { width: 210px; left: -70px; bottom: -44px; }
}

/* Pull-quote in Fraunces italic. */
.big-statement { font-style: italic; font-weight: 400; font-size: clamp(1.4rem, 3.8vw, 2rem); }

/* Stats: icon, big number, label. */
.figure-stat { position: relative; padding-top: var(--s5); box-shadow: var(--shadow); }
.stat-icon { width: 44px; height: 44px; margin-bottom: var(--s3); }
.figure-stat .num { font-size: clamp(2.4rem, 7vw, 3.1rem); font-weight: 600; }

/* Screening steps: icon in place of the number circle (the <ol> keeps the order). */
.steps--icons { counter-reset: none; }
.steps--icons li { counter-increment: none; padding-left: 4.25rem; min-height: 3.5rem; padding-bottom: var(--s2); }
.steps--icons li::before { content: none; }
.steps--icons .step-icon {
  position: absolute; left: 0; top: -4px; width: 52px; height: 52px; padding: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 50%;
}
.section--paper .steps--icons .step-icon { background: var(--bluebell-tint); border-color: #d9dcf1; }

/* Closing line before the footer. */
.signoff { text-align: center; padding-block: var(--s7) 0; }
.signoff img { margin: 0 auto var(--s2); width: 200px; height: auto; }
.signoff p {
  font-family: var(--font-head); font-style: italic; font-weight: 400; color: var(--sea);
  font-size: clamp(1.5rem, 4.5vw, 2.1rem); margin: 0 auto; max-width: none;
}
.signoff p span { color: var(--sweetpea); }
.site-footer { margin-top: var(--s6); }

/* Gentle reveal. js/main.js adds .js-motion to <html> only when the visitor
   hasn't asked for reduced motion, so without JS nothing is ever hidden. */
.js-motion .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js-motion .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-motion .reveal { opacity: 1; transform: none; }
}
@media print {
  .js-motion .reveal { opacity: 1 !important; transform: none !important; }
  .site-header { position: static; }
}

/* Phone header: one slim row. The brand wraps to two short lines and the
   strapline is dropped, so the sticky bar stays about 64px tall. */
@media (max-width: 51.99em) {
  .header-bar { flex-wrap: nowrap; padding-block: var(--s2); }
  .brand strong { font-size: 1rem; max-width: 9.5rem; }
  .brand span { display: none; }
  .header-donate { padding: 0 var(--s3); font-size: .9rem; }
  .nav-toggle { padding: 0 var(--s3); font-size: .9rem; }
}
/* Very narrow phones (under 360px): the menu button shows just its icon.
   The word stays available to screen readers. */
@media (max-width: 22.49em) {
  .nav-toggle { min-width: 44px; justify-content: center; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand strong { max-width: 8.5rem; }
  .wrap { padding-inline: var(--s4); }
}

@media (max-width: 30em) {
  .header-bar { flex-wrap: wrap; }
  .header-bar .logo { flex: 0 0 100px; }
  .header-bar .brand { flex: 1 0 160px; margin-left: 0; }
  .header-donate { margin-left: auto; }
}

/* --- 23. James's content (v2.6) ------------------------------------------- */

/* Running total under the welcome buttons. */
.hero-stat {
  display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 var(--s2);
  margin: var(--s2) 0 0; padding: var(--s3) var(--s4);
  background: var(--paper); border: 1px solid #d9dcf1; border-left: 4px solid var(--sweetpea);
  border-radius: var(--radius); color: var(--ink-soft); font-size: .98rem;
}
.hero-stat strong {
  font-family: var(--font-head); font-weight: 600; font-size: 1.6rem; color: var(--sea); line-height: 1.1;
}

/* James's words about Mia. */
.family-words { margin: 0 0 var(--s5); }
.family-words blockquote {
  margin: 0; padding: var(--s4) var(--s5);
  background: var(--sweetpea-tint); border-left: 4px solid var(--sweetpea);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-head); font-style: italic; font-weight: 400;
  font-size: 1.1rem; line-height: 1.6; color: var(--ink);
}
.family-words blockquote p:last-child { margin-bottom: 0; }
.family-words figcaption { margin-top: var(--s2); font-weight: 600; color: var(--ink-soft); }

/* CRY's mission, in their words. */
.cry-quote {
  margin: 0 0 var(--s3); padding-left: var(--s4); border-left: 4px solid var(--bluebell);
  font-family: var(--font-head); font-style: italic; font-size: 1.2rem; line-height: 1.45; color: var(--sea);
}
.cry-quote p { margin: 0; max-width: 36rem; }
