/* =========================================================
   Finley's Green Leap Forward — site styles
   ========================================================= */

:root {
  --cream: #f8f6e8;
  --cream-dark: #ecead4;
  --sage-tint: #e6efd6;       /* pale, fresh, leaf-like */
  --leaf: #5fa14a;            /* bright spring green — accent */
  --leaf-dark: #4a8138;
  --forest: #2f7548;          /* livelier than before */
  --forest-dark: #1f4f2e;
  --sage: #9bbf83;
  --gold: #e1b25c;
  --gold-dark: #b58836;
  --ink: #233028;             /* dark green-black, less stark */
  --muted: #5e6b58;
  --border: #d7d8b8;

  --font-serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-w: 1100px;
  --max-w-text: 680px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-color: var(--sage);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover { color: var(--leaf-dark); text-decoration-color: var(--leaf); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem;
}
.container--narrow { max-width: var(--max-w-text); }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 237, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark { width: 40px; height: 40px; border-radius: 50%; }
.brand__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.1;
}
.brand__name span { display: block; color: var(--forest); font-style: italic; }

.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--leaf-dark); }
.nav .btn {
  font-size: 0.92rem;
  padding: 0.55rem 1.1rem;
  background: var(--gold);
  border-color: var(--gold-dark);
  color: var(--ink);
  box-shadow: 0 2px 0 var(--gold-dark);
}
.nav .btn:hover { background: var(--gold-dark); color: var(--cream); box-shadow: 0 4px 0 var(--gold-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { display: block; }

@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.is-open .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--cream);
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  background: var(--leaf);
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--leaf-dark);
  transition: transform 0.15s cubic-bezier(.4,1.4,.6,1), background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 0 var(--leaf-dark);
}
.btn:hover {
  background: var(--leaf-dark);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--leaf-dark);
}
.btn--gold { background: var(--gold); border-color: var(--gold-dark); color: var(--ink); box-shadow: 0 2px 0 var(--gold-dark); }
.btn--gold:hover { background: var(--gold-dark); color: var(--cream); box-shadow: 0 4px 0 var(--gold-dark); }

.btn--outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 0 2px 0 var(--border);
}
.btn--outline:hover { background: var(--ink); color: var(--cream); box-shadow: 0 4px 0 var(--border); }

.btn--lg { padding: 1rem 1.8rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--forest-dark);
  color: var(--cream);
  overflow: hidden;
}
.hero__image {
  position: absolute;
  inset: 0;
  background: url('images/finley-leap.jpg') center/cover no-repeat;
  background-position: 30% center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31,79,46,0.05) 0%, rgba(47,117,72,0.35) 55%, rgba(31,79,46,0.7) 100%);
}
.hero__content {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) 1.5rem clamp(4rem, 10vw, 7rem);
  display: flex;
  justify-content: flex-end;
}
.hero__text { max-width: 460px; text-align: right; }
.hero__eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--cream-dark);
  margin-bottom: 0.75rem;
  opacity: 0.9;
}
.hero h1 { color: var(--cream); font-weight: 300; }
.hero__lede {
  font-size: 1.1rem;
  color: var(--cream-dark);
  margin: 1rem 0 1.75rem;
  line-height: 1.55;
}
.hero__cta { display: flex; gap: 0.75rem; justify-content: flex-end; flex-wrap: wrap; }

@media (max-width: 720px) {
  .hero__content { justify-content: center; }
  .hero__text { text-align: left; }
  .hero__cta { justify-content: flex-start; }
  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(31,79,46,0.1) 0%, rgba(47,117,72,0.5) 50%, rgba(31,79,46,0.8) 100%);
  }
}

/* ---------- Sections ---------- */

/* section { padding: clamp(3.5rem, 8vw, 6rem) 0; } */
section.alt { background: var(--sage-tint); }

.section-eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--leaf-dark);
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}
.section-eyebrow::before {
  content: '✿ ';
  color: var(--leaf);
  font-style: normal;
  margin-right: 0.15rem;
}
.section-head { margin-bottom: 2.5rem; max-width: var(--max-w-text); }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* ---------- Mission cards ---------- */

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.mission-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  transition: transform 0.2s cubic-bezier(.4,1.4,.6,1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.mission-card:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 14px 32px -16px rgba(31,79,46,0.25);
  border-color: var(--leaf);
}
.mission-card__icon {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sage-tint);
  border-radius: 50%;
  margin-bottom: 1rem;
  color: var(--leaf-dark);
}
.mission-card:hover .mission-card__icon { background: var(--leaf); color: var(--cream); }
.mission-card h3 { color: var(--forest-dark); margin-bottom: 0.4rem; }
.mission-card p { color: var(--muted); font-size: 0.97rem; margin: 0; }
@media (max-width: 720px) {
  .mission-grid { grid-template-columns: 1fr; }
}

/* ---------- Grantees ---------- */

.grantees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .grantees-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .grantees-grid { grid-template-columns: 1fr; } }

.grantee {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s cubic-bezier(.4,1.4,.6,1), border-color 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  position: relative;
}
.grantee::before {
  content: '';
  position: absolute;
  top: 0; left: 1.5rem; right: 1.5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--leaf), var(--sage));
  border-radius: 0 0 3px 3px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.grantee:hover {
  transform: translateY(-4px) rotate(0.3deg);
  border-color: var(--leaf);
  box-shadow: 0 14px 32px -16px rgba(31,79,46,0.25);
}
.grantee:hover::before { opacity: 1; }
.grantee__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--forest-dark);
  margin-bottom: 0.35rem;
}
.grantee__tag {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.grantee__desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}
.grantee__amount {
  margin-top: 1rem;
  font-family: var(--font-serif);
  color: var(--forest);
  font-size: 1rem;
  font-weight: 500;
  font-style: italic;
}

/* ---------- Impact stats ---------- */

.impact {
  background: var(--forest-dark);
  color: var(--cream);
}
.impact .section-eyebrow { color: var(--sage); }
.impact h2 { color: var(--cream); }
.impact .section-head p { color: var(--cream-dark); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  color: var(--gold);
  font-weight: 400;
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}
.stat__label { color: var(--cream-dark); font-size: 1rem; }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
}

/* ---------- Donate CTA ---------- */

.donate-cta {
  background: var(--cream-dark);
  text-align: center;
}
.donate-cta__inner { max-width: 640px; margin: 0 auto; }
.donate-cta p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Page-specific (Finley, donate) ---------- */

.page-hero {
  margin-bottom: 3rem;
  background: var(--sage-tint);
  padding: clamp(2rem, 7vw, 3rem) 0 clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.page-hero--banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: clamp(5rem, 14vw, 9rem) 0 clamp(4rem, 10vw, 7rem);
  color: var(--cream);
  overflow: hidden;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(31,79,46,0.25) 0%, rgba(31,79,46,0.55) 100%);
}
.page-hero__content { position: relative; z-index: 1; }
.page-hero--banner h1 { color: var(--cream); }
.page-hero--banner .section-eyebrow {
  color: var(--cream);
  opacity: 0.92;
}
.page-hero--banner .section-eyebrow::before { color: var(--sage); }
.page-hero--banner p:not(.section-eyebrow) {
  color: var(--cream-dark);
  text-shadow: 0 1px 12px rgba(31,79,46,0.55);
  max-width: 600px;
  margin: 0 auto;
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

.prose { max-width: var(--max-w-text); margin: 0 auto; }
.prose p { font-size: 1.075rem; color: var(--ink); }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; color: var(--forest-dark); }
.prose blockquote {
  border-left: 3px solid var(--sage);
  background: var(--cream-dark);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--forest-dark);
  border-radius: 0 8px 8px 0;
}
.prose figure { margin: 2.5rem 0; }
.prose figure img { border-radius: 12px; }
.prose figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.6rem;
  font-style: italic;
}

/* ---------- Donate page ---------- */

.donate-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0;
}
@media (max-width: 720px) { .donate-options { grid-template-columns: 1fr; } }
.donate-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
}
.donate-card h3 { color: var(--forest-dark); margin-bottom: 0.75rem; }
.donate-card .btn { margin-top: 0.5rem; }
.address {
  font-family: var(--font-serif);
  font-style: normal;
  color: var(--ink);
  background: var(--cream-dark);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin: 0.75rem 0;
  display: inline-block;
}

/* ---------- Grants page ---------- */

.year-block {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.year-block:first-of-type { border-top: 0; padding-top: 0; }
.year-block__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.year-block__year {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--forest);
  font-weight: 400;
  line-height: 1;
}
.year-block__total {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
}
.year-block__list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.year-block__list li {
  padding: 0.85rem 0;
  border-top: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.year-block__list li:first-child { border-top: 0; }
.year-block__list strong { color: var(--forest-dark); font-weight: 600; font-family: var(--font-serif); font-size: 1.05rem; }
.year-block__list .amount { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Blog index ---------- */

.year-section { margin-bottom: 1.25rem; }
.year-section:last-child { margin-bottom: 0; }
.year-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--forest);
  font-weight: 500;
  font-style: italic;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.year-heading::before {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235fa14a'><path d='M17 8C8 10 5.9 16.17 3.82 21.34l1.89.66.95-2.3c.48.17.98.3 1.34.3C19 20 22 3 22 3c-1 2-8 2.25-13 3.25S2 11.5 2 13.5s1.75 3.75 1.75 3.75C7 8 17 8 17 8z'/></svg>") center/contain no-repeat;
  flex-shrink: 0;
}
.year-section:first-of-type .year-heading { margin-top: 0; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list__item a {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1rem;
  padding: 0.4rem 0.5rem;
  text-decoration: none;
  color: var(--ink);
  border-radius: 4px;
  align-items: baseline;
  transition: background 0.12s ease;
}
.post-list__item a:hover { background: var(--cream-dark); }
.post-list__item a:hover .post-list__title { color: var(--forest); }
.post-list__date {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.post-list__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.35;
  transition: color 0.12s ease;
}
@media (max-width: 540px) {
  .post-list__item a { grid-template-columns: 56px 1fr; gap: 0.6rem; padding: 0.35rem 0.25rem; }
  .post-list__date { font-size: 0.82rem; }
  .post-list__title { font-size: 0.98rem; }
}

/* ---------- Blog post page ---------- */

.post-hero {
  background: var(--sage-tint);
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
}
.post-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0;
  color: var(--forest-dark);
}
.post-hero__date {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.post-featured {
  margin: 2rem 0 0;
}
.post-featured img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--sage-tint);
}
.post-body {
  padding: 2.5rem 0 2rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink);
}
.post-body p { margin-bottom: 1.25em; font-size: 1.15rem; line-height: 1.7; }
.post-body li { font-size: 1.1rem; line-height: 1.65; }
.post-body h2, .post-body h3 { color: var(--forest-dark); }
.post-body img { border-radius: 12px; margin: 1.75rem 0; box-shadow: 0 6px 20px -10px rgba(31,79,46,0.25); }
.post-body a { font-weight: 500; }
.post-body strong { color: var(--forest-dark); }
.post-body em { color: var(--forest); }
.post-body blockquote {
  border-left: 3px solid var(--leaf);
  background: var(--sage-tint);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  color: var(--forest-dark);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--forest-dark);
  color: var(--cream-dark);
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.site-footer h4 {
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.site-footer a { color: var(--cream-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer__brand p {
  color: var(--cream-dark);
  font-size: 0.95rem;
  max-width: 360px;
  opacity: 0.85;
}
.site-footer__legal {
  border-top: 1px solid rgba(225, 218, 191, 0.15);
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem 0;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  font-size: 0.85rem;
  color: var(--cream-dark);
  opacity: 0.7;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; font-size: 0.95rem; }
@media (max-width: 720px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}
