/* Sue's Sprouts — design language drawn from the logo.
   Layout concept: a seedling grows up the page — soil-colored ground bands
   anchor each section, leaf-green marks where things are growing. */
:root {
  /* Color — sampled from the logo */
  --leaf: #588c21;          /* logo leaves & "Learning" */
  --leaf-strong: #3f6e17;   /* buttons & links (AA contrast on white) */
  --forest: #12481f;        /* "Sue's Sprouts" wordmark — headings */
  --soil: #603e1b;          /* soil mound — warm secondary accent */
  --soil-tint: #f3ebdf;     /* light soil — alternate section ground */
  --sprout-tint: #eaf2dc;   /* light leaf — highlight ground */
  --paper: #fbfcf8;         /* page ground, faint green bias */
  --surface: #ffffff;
  --ink: #1e2a1b;
  --muted: #56634f;
  --line: #dde5d0;

  /* Type */
  --font-display: "Fredoka", "Baloo 2", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Scale */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 3.6rem);

  --radius: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Keep the footer at the bottom of the window on short pages */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; display: flex; flex-direction: column; }
/* If the page ends on a colored band, stretch it down to the footer */
body > main > section:last-child { flex-grow: 1; }
body:has(main > section.section-sprout:last-child:not([hidden])) .footer-ground { background: var(--sprout-tint); }
body:has(main > section.section-soil:last-child:not([hidden])) .footer-ground { background: var(--soil-tint); }
body > .footer-ground, body > .site-footer { flex-shrink: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-strong); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--forest); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--forest);
  line-height: 1.12;
  font-weight: 600;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0; }
.prose { display: grid; gap: 1em; max-width: 64ch; }
.prose p { text-wrap: pretty; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--forest); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Eyebrow with a little leaf */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--leaf-strong);
}
.eyebrow::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: var(--leaf);
  -webkit-mask: url("../img/favicon.svg") center / contain no-repeat;
          mask: url("../img/favicon.svg") center / contain no-repeat;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: 0.01em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.98rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--sprout-tint); color: var(--forest); }
.nav a[aria-current="page"] { color: var(--forest); background: var(--sprout-tint); }
.nav .btn { margin-left: 8px; }
.nav a.btn-primary, .nav a.btn-primary:hover, .nav a.btn-primary[aria-current="page"] { color: #fff; }
.nav a.btn-primary:hover, .nav a.btn-primary[aria-current="page"] { background: var(--forest); }
.menu-btn { display: none; background: none; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; font: 600 0.95rem var(--font-body); color: var(--forest); cursor: pointer; }

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px;
         background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--font-body); text-decoration: none;
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--leaf-strong); color: #fff; box-shadow: 0 3px 0 var(--forest); }
.btn-primary:hover { background: var(--forest); color: #fff; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--forest); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 0.95rem; box-shadow: 0 2px 0 var(--forest); }
.btn-lg { padding: 18px 30px; font-size: 1.1rem; }

/* ---------- Soil ground band (the logo's soil mound, stretched) ---------- */
.ground { display: block; width: 100%; height: 36px; color: var(--soil-tint); }
.ground-top { margin-bottom: -1px; }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-soil { background: var(--soil-tint); }
.section-sprout { background: var(--sprout-tint); }
.section-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 60ch; }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(32px, 6vw, 72px) clamp(24px, 4vw, 48px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-logo { width: 100%; max-width: 560px; margin-inline: auto; animation: grow .9s cubic-bezier(.2,.8,.2,1) both; transform-origin: 50% 80%; }
@keyframes grow { from { transform: scale(.94) translateY(10px); opacity: .4; } to { transform: none; opacity: 1; } }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.hero-copy .lede { font-size: var(--step-1); color: var(--muted); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero-copy { text-align: center; justify-items: center; } .hero-actions { justify-content: center; } }

/* ---------- In memory strip ---------- */
.memory { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.memory-photo { position: relative; }
.memory-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 200px 200px var(--radius) var(--radius); box-shadow: 0 18px 40px -22px rgba(18,72,31,.45); }
.memory-photo figcaption { margin-top: 12px; font-size: var(--step--1); color: var(--muted); text-align: center; }
@media (max-width: 760px) { .memory { grid-template-columns: 1fr; } .memory-photo { max-width: 340px; margin-inline: auto; } }


/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(18,72,31,.4); color: inherit; }
.post-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--sprout-tint); }
.post-card .body { display: grid; gap: 8px; padding: 18px 20px 22px; align-content: start; min-width: 0; }
.post-card h3 { font-size: 1.2rem; }
.post-card p { color: var(--muted); font-size: 0.98rem; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--step--1); color: var(--muted); }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--soil-tint); color: var(--soil); }

.post-list { display: grid; gap: clamp(40px, 6vw, 72px); }
.post { display: grid; gap: 18px; scroll-margin-top: 90px; }
.post-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--sprout-tint); }
.post-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.post-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.post + .post { border-top: 1px dashed var(--line); padding-top: clamp(40px, 6vw, 72px); }
.updates-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: start; }
.updates-index { position: sticky; top: 96px; display: grid; gap: 4px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.updates-index h2 { font-size: 1rem; margin-bottom: 6px; }
.updates-index a { text-decoration: none; color: var(--ink); font-size: 0.95rem; padding: 6px 0; display: grid; }
.updates-index a small { color: var(--muted); }
.updates-index a:hover { color: var(--leaf-strong); }
@media (max-width: 900px) { .updates-layout { grid-template-columns: 1fr; } .updates-index { display: none; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(20px, 3vw, 32px); }
.page-head .wrap { display: grid; gap: 14px; }
.page-head p { font-size: var(--step-1); color: var(--muted); max-width: 52ch; }

/* ---------- About ---------- */
.funds-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.funds-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.funds-list svg { width: 28px; height: 28px; margin-top: 2px; }
.fact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery figure { margin: 0; display: grid; gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 14px; background: var(--sprout-tint); }
.gallery figcaption { font-size: var(--step--1); color: var(--muted); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .form-layout { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; background: var(--surface); padding: clamp(20px, 4vw, 32px); border-radius: var(--radius); border: 1px solid var(--line); }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: 0.95rem; color: var(--forest); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px color-mix(in srgb, var(--leaf) 25%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.form-status.ok { background: var(--sprout-tint); color: var(--forest); }
.form-status.err { background: #fbe9e4; color: #8a2a12; }
.notice { font-size: var(--step--1); color: var(--soil); background: var(--soil-tint); padding: 10px 14px; border-radius: 10px; }

/* ---------- Donate ---------- */
.donate-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: center; background: var(--surface); border-radius: 28px; padding: clamp(24px, 5vw, 48px); border: 1px solid var(--line); }
@media (max-width: 820px) { .donate-panel { grid-template-columns: 1fr; } }
.amounts { display: flex; flex-wrap: wrap; gap: 10px; }
.amounts button { font: 600 1.05rem var(--font-display); color: var(--forest); background: var(--paper); border: 2px solid var(--line); border-radius: 999px; padding: 10px 20px; cursor: pointer; font-variant-numeric: tabular-nums; }
.amounts button[aria-pressed="true"] { border-color: var(--leaf-strong); background: var(--sprout-tint); }
.donate-box { display: grid; gap: 18px; }
.impact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.impact li { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.impact li:last-child { border-bottom: 0; padding-bottom: 0; }
.impact b { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--leaf-strong); font-variant-numeric: tabular-nums; }



/* ---------- Remembering Sue ---------- */
.obit { max-width: 64ch; }
.obit p:first-child { font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); line-height: 1.4; color: var(--forest); }
.gallery-title { margin-bottom: 16px; }


/* ---------- Events, update pages, feed ---------- */
.btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.wrap.narrow { max-width: 820px; }
.crumb { margin-bottom: 20px; font-weight: 600; }
.crumb a { text-decoration: none; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: .35em; }
.prose h2, .prose h3, .prose h4 { margin-top: .4em; }
.prose blockquote { margin: 0; padding-left: 16px; border-left: 3px solid var(--leaf); color: var(--forest); }
.prose img { border-radius: 12px; }

.card-fill { aspect-ratio: 3 / 2; display: grid; place-items: center; background: var(--sprout-tint); }
.card-fill svg { width: 64px; height: 64px; }
.tag-event { background: var(--sprout-tint); color: var(--leaf-strong); text-decoration: none; }
a.tag-event:hover { background: var(--leaf-strong); color: #fff; }
.tag-past { background: #eceee8; color: var(--muted); }
.small-link { font-size: var(--step--1); font-weight: 600; color: var(--leaf-strong) !important; }
.event-head { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.date-block { display: grid; justify-items: center; width: 52px; padding: 6px 0 4px; border-radius: 12px; background: var(--forest); color: #fff; line-height: 1; }
.date-block span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #cfe0b4; }
.date-block b { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; margin-top: 3px; font-variant-numeric: tabular-nums; }
.event-when { font-weight: 600; color: var(--forest) !important; font-size: .95rem !important; }
.list-heading { font-size: var(--step-2); margin-bottom: 20px; }
.empty-note { padding: 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); }

.event-page { padding-top: clamp(28px, 4vw, 48px); }
.event-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 880px) { .event-layout { grid-template-columns: 1fr; } }
.event-main { display: grid; gap: 18px; min-width: 0; }
.event-main .lede { font-size: var(--step-1); color: var(--muted); }
.event-side { display: grid; gap: 18px; position: sticky; top: 96px; }
@media (max-width: 880px) { .event-side { position: static; } }
.fact-line { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.fact-line svg { width: 22px; height: 22px; color: var(--leaf-strong); margin-top: 2px; }
.fact-line > div { display: grid; gap: 2px; }
.fact-line .label { font-size: var(--step--1); color: var(--muted); }
.fact-line b { color: var(--forest); }
.fact-line a { font-size: .95rem; font-weight: 600; }
.cal-links { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.cal-links .btn { box-shadow: none; }
.rsvp { background: var(--surface); border: 2px solid var(--leaf); border-radius: var(--radius); padding: clamp(20px, 4vw, 28px); display: grid; gap: 10px; scroll-margin-top: 90px; }
.rsvp h2 { font-size: var(--step-2); }
.form-plain { background: none; border: 0; padding: 0; margin-top: 8px; }
.opt { font-weight: 400; color: var(--muted); }

.post h1 { font-size: var(--step-4); }
.post h3 { font-size: var(--step-2); }
.post h3 a { color: inherit; text-decoration: none; }
.post h3 a:hover { color: var(--leaf-strong); }
.from-event { margin-top: 40px; padding: 20px 24px; background: var(--sprout-tint); border-radius: var(--radius); display: grid; gap: 8px; }
.from-event a { display: grid; gap: 2px; text-decoration: none; color: var(--forest); }
.from-event a span { color: var(--muted); font-size: .95rem; }
.section-soil .post { background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); border: 1px solid var(--line); }
.section-soil .post + .post { border-top: 1px solid var(--line); padding-top: clamp(20px, 4vw, 32px); }
.post-list { gap: 24px; }

/* ---------- Footer (compact) ---------- */
.footer-ground { display: block; width: 100%; height: 24px; color: var(--soil); margin-bottom: -1px; }
.site-footer { background: var(--soil); color: #f3ebdf; padding-block: 14px 18px; font-size: var(--step--1); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; }
.footer-row p { margin: 0; }
.footer-id b { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: #fff; margin-right: 8px; }
.footer-id span { color: #e0d2bd; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; color: #e0d2bd; }
.site-footer a { color: #fff; }
.memory .prose { margin-top: 14px; }
.section-sprout .obit { margin-bottom: 40px; }
