/* -------------------------- Design tokens -------------------------- */
:root {
  /* Color */
  --ink: #1b241e;         /* primary text  */
  --ink-soft: #55635b;    /* secondary text */
  --paper: #fbf8f3;       /* page background */
  --paper-dim: #efe7d8;   /* card / section-alt background */

  --green: #2c5f43;       /* brand green — primary accent */
  --green-deep: #1f422f;  /* accent hover/active */
  --green-light: #a7c2b3; /* soft tint, used on dark hero backgrounds */

  --focus: #c98a2e;       /* focus-ring only — kept distinct from the brand
                              accent on purpose, so keyboard focus is always
                              visually unambiguous against either green or
                              photo hero backgrounds */

  --line: #ddd2b8;        /* hairline rule color */
  --white: #ffffff;
  --overlay: 27, 36, 30;  /* rgb of --ink, used in hero photo overlays */

  /* Type */
  --font-header: "Assistant", Helvetica, Arial, sans-serif;
  --font-body: "Futura", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --content-width: 1120px;
  --content-width-narrow: 760px;
  --gutter: 1.5rem;
  --header-height: 84px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------- Reset -------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  background: var(--paper-dim); /* graceful box if an image hasn't been downloaded yet */
}

a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.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;
}

/* -------------------------- Accessibility helpers -------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: var(--white);
  padding: 0.85em 1.25em;
  z-index: 300;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  left: var(--gutter);
  top: var(--gutter);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* -------------------------- Typography -------------------------- */
h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 4.4vw + 1rem, 3.75rem); }
h2 { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1vw + 1rem, 1.5rem); font-weight: 600; }

p { max-width: 68ch; }
p + p { margin-top: 1rem; }

.lede {
  font-size: clamp(1.1rem, 0.8vw + 1rem, 1.35rem);
  color: var(--ink-soft);
  max-width: 62ch;
}

.quote {
  font-family: var(--font-header);
  font-size: clamp(1.4rem, 1.6vw + 1rem, 2rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--green-deep);
  max-width: 42ch;
  border-left: 3px solid var(--green);
  padding-left: 1.25rem;
}

.text-link {
  color: var(--green-deep);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s var(--ease);
}
.text-link:hover { text-decoration-color: currentColor; }

/* -------------------------- Layout -------------------------- */
.container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--content-width-narrow); }

.section { padding-block: clamp(3rem, 5vw, 5.5rem); }
.section--tight { padding-block: clamp(1.75rem, 3vw, 3rem); }
.section--alt { background: var(--paper-dim); }

.stack > * + * { margin-top: 1.1rem; }
.stack-lg > * + * { margin-top: clamp(1.5rem, 3vw, 2.5rem); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.split { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
@media (min-width: 800px) {
  .split { grid-template-columns: 1.1fr 1fr; }
  .split--reverse { grid-template-columns: 1fr 1.1fr; }
  .split--reverse > :first-child { order: 2; }
}

/* Signature motif: a quiet nod to a blank music staff, used as a divider. */
.staff {
  height: 26px;
  background-image: repeating-linear-gradient(
    to bottom, var(--line) 0, var(--line) 1px, transparent 1px, transparent 6.5px
  );
}

/* -------------------------- Buttons -------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85em 1.6em;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }

.btn--primary { background: var(--green); border-color: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--white); }

/* For use over a photo/dark hero background. */
.btn--ghost { border-color: rgba(255, 255, 255, 0.75); color: var(--white); background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--white); color: var(--white); }

.btn--block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.cta-group { display: flex; flex-wrap: wrap; gap: 1rem; }

/* -------------------------- Site header / nav -------------------------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

/* .site-header--transparent {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
} */
/* .site-header .brand,
.site-header .nav-list > li > a,
.site-header .nav-list details summary { color: var(--white); }
.site-header .nav-toggle { border-color: rgba(255, 255, 255, 0.6); }
.site-header .nav-toggle__bars,
.site-header .nav-toggle__bars::before,
.site-header .nav-toggle__bars::after { background: var(--white); }
.site-header .social-link { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
/* .site-header--transparent .brand,
.site-header--transparent .nav-list > li > a,
.site-header--transparent .nav-list details summary { color: var(--white); }
.site-header--transparent .nav-toggle { border-color: rgba(255, 255, 255, 0.6); }
.site-header--transparent .nav-toggle__bars,
.site-header--transparent .nav-toggle__bars::before,
.site-header--transparent .nav-toggle__bars::after { background: var(--white); }
.site-header--transparent .social-link { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.site-header--transparent .nav-list > li > a:hover { color: var(--white); } */ */
.site-header--solid {
  background: var(--paper);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.site-header--solid .brand,
.site-header--solid .nav-list > li > a,
.site-header--solid .nav-list details summary { color: var(--ink); }

/* .site-header .brand,
.site-header .nav-list > li > a,
.site-header .nav-list details summary { 
  text-decoration: none;
  font-family: var(--font-header); 
} */
.site-header--solid .nav-toggle { border-color: var(--line); }
.site-header--solid .nav-toggle__bars,
.site-header--solid .nav-toggle__bars::before,
.site-header--solid .nav-toggle__bars::after { background: var(--ink); }
.site-header--solid .social-link { border-color: var(--line); color: var(--ink); }

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
  background-color: var(--paper);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-header);
  font-size: 1.2rem;
  font-weight: 700; /* bolded, per brand request */
  flex-shrink: 0;
}
.brand img { width: 38px; height: 38px; object-fit: contain; background: transparent; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
}
.nav-toggle__bars::before { transform: translateY(-6px); position: relative; }
.nav-toggle__bars::after { transform: translateY(4px); position: relative; }

.primary-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s var(--ease);
}
.primary-nav.is-open { max-height: 480px; }

.nav-list { display: flex; flex-direction: column; padding: 0.5rem var(--gutter) 1.25rem; }
.nav-list li { border-top: 1px solid var(--line); }
.nav-list li:first-child { border-top: none; }
.nav-list > li > a { display: block; padding: 0.85rem 0.1rem; text-decoration: none; font-weight: 500; color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--green); }

.nav-list .submenu { padding-left: 1rem; }
.nav-list details summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 0.1rem; font-weight: 500; list-style: none; cursor: pointer; color: var(--ink);
}
.nav-list details summary::-webkit-details-marker { display: none; }
.nav-list details summary::after { content: "+"; font-family: var(--font-display); color: var(--green); }
.nav-list details[open] summary::after { content: "\2212"; }
.nav-list .submenu a { padding-block: 0.6rem; color: var(--ink-soft); }

.nav-cta { color: var(--green-deep) !important; font-weight: 700 !important; }
.site-header--solid .nav-cta { color: var(--green-deep) !important; }

.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--line); color: var(--ink);
  text-decoration: none; flex-shrink: 0;
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { border-color: var(--green); color: var(--green); }

.site-header__right { display: flex; align-items: center; gap: 0.6rem; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { position: static; max-height: none; overflow: visible; border-bottom: none; background: transparent; }
  .nav-list { flex-direction: row; align-items: center; gap: 1.75rem; padding: 0; }
  .nav-list li { border-top: none; }
  .nav-list > li > a { padding: 0.3rem 0.1rem; border-bottom: 2px solid transparent; font-size: 0.96rem; }
  .nav-list > li > a:hover,
  .nav-list a[aria-current="page"] { border-bottom-color: var(--green); }
  /* .site-header .nav-list > li > a:hover { color: var(--white); } */
  .site-header--solid .nav-list > li > a:hover { color: var(--ink); }

  .nav-list .has-submenu { position: relative; }
  .nav-list details summary { padding: 0.3rem 0.1rem; border-bottom: 2px solid transparent; font-size: 0.96rem; }
  .nav-list details summary::after { content: none; }
  .nav-list .submenu {
    display: none; position: absolute; top: 100%; left: 0; min-width: 190px;
    background: var(--paper); border: 1px solid var(--line); padding: 0.4rem; margin-top: 0.6rem;
  }
  .nav-list .has-submenu:hover .submenu,
  .nav-list .has-submenu:focus-within .submenu,
  .nav-list details[open] .submenu { display: block; }
  .nav-list .submenu a { padding: 0.6rem 0.6rem; color: var(--ink); }
  .nav-list .submenu a:hover { background: var(--paper-dim); }
}

/* -------------------------- Hero (homepage) -------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* avoids mobile browser-chrome jump; ignored by browsers that lack svh */
  display: flex;
  align-items: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--overlay), 0.2) 0%, rgba(var(--overlay), 0.55) 60%, rgba(var(--overlay), 0.85) 100%);
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(6.5rem, 14vh, 10rem) clamp(3rem, 8vh, 5rem);
}
.hero__content { max-width: 640px; }
.hero__eyebrow {
  display: block;
  font-family: var(--font-header);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--green-light);
}
.hero h1 { color: var(--white); margin-top: 0.75rem; }
.hero .lede { color: rgba(255, 255, 255, 0.9); margin-top: 1.1rem; }
.hero .cta-group { margin-top: 2rem; }

/* This is for the animated line in the main/hero page. */
.hero-deco {
  position: absolute;
  right: 4%;
  bottom: 12%;
  width: min(42vw, 620px);
  color: var(--white);
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
  display: none;
}
@media (min-width: 860px) { .hero-deco { display: block; } }

.hero-deco__path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: mfpDrawPath 1.8s var(--ease) 0.3s forwards;
}
.hero-deco__dot { fill: var(--green-light); opacity: 0; transform-origin: center; animation: mfpPopIn 0.5s var(--ease) forwards; }
.hero-deco__dot--1 { animation-delay: 1.5s; }
.hero-deco__dot--2 { animation-delay: 2s; }

@keyframes mfpDrawPath { to { stroke-dashoffset: 0; } }
@keyframes mfpPopIn { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }

/* Entrance animation for hero text — reinforces the eyebrow -> heading ->
   subheading -> CTA reading order. */
.hero-fade { opacity: 0; transform: translateY(16px); animation: mfpFadeUp 0.7s var(--ease) forwards; }
.hero-fade--1 { animation-delay: 0.05s; }
.hero-fade--2 { animation-delay: 0.2s; }
.hero-fade--3 { animation-delay: 0.35s; }
.hero-fade--4 { animation-delay: 0.5s; }
@keyframes mfpFadeUp { to { opacity: 1; transform: none; } }

/* -------------------------- Page hero (all other pages) -------------------------- */
.page-hero {
  position: relative;
  min-height: 44vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-size: cover;
  background-position: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--overlay), 0.15) 0%, rgba(var(--overlay), 0.82) 100%);
}
.page-hero__inner { position: relative; z-index: 2; padding-block: clamp(2.75rem, 8vh, 4.5rem); width: 100%; }
.page-hero__eyebrow { display: block; font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--green-light); }
.page-hero h1 { color: var(--white); margin-top: 0.5rem; }
.page-hero .lede { color: rgba(255, 255, 255, 0.88); margin-top: 0.85rem; max-width: 56ch; }

/* Pages without a hero (e.g. 404) get the header height compensated via JS. */
.main--padded { padding-top: var(--header-height); }

/* -------------------------- Stats / social proof -------------------------- */
.stats-band { background: var(--green); color: var(--white); }
.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
  padding-block: clamp(2rem, 4vw, 3rem);
}
.stat__number { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 600; }
.stat__label { color: var(--green-light); font-size: 0.9rem; margin-top: 0.35rem; }

.proof-strip__label { text-align: center; color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 1.75rem; }
.proof-strip__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(2rem, 6vw, 4.5rem); }
.proof-strip__logos img { height: 48px; width: auto; filter: grayscale(1); opacity: 0.7; transition: opacity 0.2s var(--ease), filter 0.2s var(--ease); }
.proof-strip__logos a:hover img { opacity: 1; filter: grayscale(0); }

/* -------------------------- Scroll-reveal utility -------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* -------------------------- Event banner -------------------------- */
.event-banner { background: var(--ink); color: var(--paper); }
.event-banner__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; padding-block: 0.85rem; font-size: 0.95rem; }
.event-banner a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

/* -------------------------- Event cards -------------------------- */
.event-list { display: flex; flex-direction: column; gap: 1.25rem; }
.event-card { display: grid; grid-template-columns: 88px 1fr; gap: 1.25rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.event-list > .event-card:first-child { border-top: 1px solid var(--line); }
.event-card__date { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; font-family: var(--font-display); color: var(--green); }
.event-card__month { font-size: 0.85rem; letter-spacing: 0.04em; }
.event-card__day { font-size: 2.25rem; font-weight: 500; }
.event-card__meta { color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.35rem; }
.event-card--past { opacity: 0.85; }
.empty-state { color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 1.5rem; }

/* -------------------------- People grids -------------------------- */
.person { display: flex; flex-direction: column; gap: 0.85rem; }
.person__photo { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.person__name { font-family: var(--font-display); font-size: 1.15rem; }
.person__role { color: var(--green-deep); font-size: 0.92rem; }

/* -------------------------- Cards -------------------------- */
.card { padding: clamp(1.5rem, 3vw, 2rem); border: 1px solid var(--line); background: var(--white); }
.card__logo { height: 64px; width: auto; object-fit: contain; background: transparent; margin-bottom: 1.25rem; }

/* -------------------------- Forms -------------------------- */
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field textarea { padding: 0.75em 0.9em; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); }
.field input:focus, .field textarea:focus { border-color: var(--green); }

.newsletter-form { display: flex; flex-wrap: wrap; gap: 0.75rem; max-width: 480px; }
.newsletter-form .field { flex: 1 1 220px; }
.newsletter-form .field label { display: none; }
.form-status { margin-top: 0.75rem; font-size: 0.92rem; color: var(--ink-soft); }
.form-status:empty { display: none; }

/* -------------------------- Footer -------------------------- */
.site-footer { background: var(--ink); color: var(--paper-dim); margin-top: clamp(3rem, 6vw, 6rem); }
.site-footer .staff { opacity: 0.35; }
.site-footer__grid { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer .brand { color: var(--paper); font-weight: 700; }
.site-footer__tagline { color: #b6c2ba; margin-top: 0.75rem; max-width: 32ch; }
.footer-nav-list { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav-list a { text-decoration: none; color: var(--paper-dim); }
.footer-nav-list a:hover { color: var(--white); }
.social-link--footer { border-color: #37402e; color: var(--paper-dim); gap: 0.6rem; width: auto; padding-inline: 0.9rem; }
.social-link--footer:hover { border-color: var(--green-light); color: var(--white); }
.site-footer__legal { border-top: 1px solid #313a2c; padding-block: 1.25rem; font-size: 0.85rem; color: #94a196; }

/* -------------------------- Instagram / media page -------------------------- */
.instagram-embed-slot { border: 1px dashed var(--line); padding: clamp(2rem, 4vw, 3rem); text-align: center; color: var(--ink-soft); }

/* -------------------------- Donate page intro -------------------------- for commit*/
.donate-intro {
  padding-block: var(--header-height) 0;
}

/* Let the two-column layout span the full screen */
.donate-intro__grid.container {
  max-width: none;
  width: 100%;
  padding-inline: 0;
}

.donate-intro__grid {
  display: grid;
  gap: 0;
  align-items: stretch;
}

.donate-intro__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;

  /* Keeps the text aligned with the rest of the site's content
     while allowing the background to extend to the screen edge */
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  padding-left: max(
    var(--gutter),
    calc((100vw - var(--content-width)) / 2 + var(--gutter))
  );
  padding-right: clamp(2rem, 5vw, 4rem);

  background: var(--paper-dim);
  border: 0;
}

.donate-intro__media {
  min-height: 320px;
  overflow: hidden;
}

.donate-intro__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

@media (min-width: 800px) {
  .donate-intro__grid {
    grid-template-columns: 1fr 1fr;
  }

  .donate-intro__media,
  .donate-intro__media img {
    min-height: 460px;
  }
}

.donate-form-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.donate-form-wrap dbox-widget {
  display: block;
  margin-inline: auto;
}

@media (max-width: 799px) {
  .donate-intro__copy {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
}
/* -------------------------- Utility -------------------------- */
.center { text-align: center; margin-inline: auto; }
.mt-0 { margin-top: 0 !important; }

body[data-page="about"] .page-hero__eyebrow {
  font-size: 0.85rem;
}