:root {
  --ink: #2f3a32;
  --muted: #5f6f5a;
  --paper: #f5efe2;
  --white: #ffffff;
  --gold: #f3b536;
  --orange: #a95518;
  --sage: #7d9377;
  --sage-dark: #5f735a;
  --sage-deep: #40513d;
  --sage-soft: #e5ecdf;
  --line: rgba(47, 58, 50, 0.16);
  --shadow: 0 18px 42px rgba(47, 58, 50, 0.14);
  --content: 1080px;
  --radius: 8px;
  --space-section: clamp(56px, 8vw, 92px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(243, 181, 54, 0.18), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(125, 147, 119, 0.2), transparent 30rem),
    var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0 auto;
  padding: 14px max(16px, calc((100% - var(--content)) / 2));
  border-bottom: 1px solid rgba(47, 58, 50, 0.12);
  background: rgba(245, 239, 226, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  text-decoration: none;
}

.brand-logo {
  width: 90px;
  height: 90px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.nav {
  justify-content: flex-end;
  color: var(--sage-deep);
  font-size: 15px;
  font-weight: 700;
}

.nav a,
.footer-links a,
.text-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.nav a:hover,
.text-link:hover,
.footer-links a:hover {
  color: var(--ink);
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(95, 115, 90, 0.2);
}

.nav .nav-cta {
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  background: var(--sage-deep);
  color: var(--white);
}

.nav .nav-cta:hover {
  background: var(--ink);
  color: var(--white);
  box-shadow: none;
}

.hero,
.section,
.quick-actions {
  width: min(calc(100% - 32px), var(--content));
  margin-right: auto;
  margin-left: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  min-height: calc(100svh - 106px);
  padding: clamp(42px, 7vw, 76px) 0 clamp(28px, 5vw, 48px);
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sage-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(42px, 6.2vw, 70px);
  line-height: 1;
}

h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(28px, 4.1vw, 48px);
  line-height: 1.08;
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

p {
  margin-top: 0;
}

.lead {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 19px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--sage-deep);
  color: var(--white);
}

.button.primary:hover {
  background: var(--ink);
}

.button.secondary {
  border-color: var(--sage);
  background: var(--white);
  color: var(--sage-deep);
}

.button.secondary:hover {
  border-color: var(--orange);
  color: var(--ink);
}

.hero-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 10px solid rgba(255, 255, 255, 0.78);
  border-radius: inherit;
  pointer-events: none;
}

.hero-photo picture,
.hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-photo img {
  object-fit: cover;
  object-position: center;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.quick-card,
.panel,
.project-grid article,
.contact-card,
.bank-details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.quick-card {
  display: grid;
  gap: 4px;
  min-height: 96px;
  padding: 18px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(47, 58, 50, 0.08);
}

.quick-card:hover {
  border-color: rgba(216, 117, 36, 0.45);
  box-shadow: 0 16px 34px rgba(47, 58, 50, 0.13);
  transform: translateY(-2px);
}

.quick-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quick-card strong {
  font-size: 18px;
  line-height: 1.25;
}

.section {
  padding: var(--space-section) 0;
  scroll-margin-top: 110px;
}

.reveal,
.project-grid article,
.quick-card,
.panel,
.contact-card,
.bank-details {
  animation: reveal-up 700ms ease both;
  animation-timeline: view();
  animation-range: entry 0% cover 28%;
}

.split,
.donate,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.copy {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
}

.copy p:last-child,
.section-heading p:last-child,
.panel p:last-child,
.contact p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading p {
  max-width: 650px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

.projects {
  width: min(calc(100% - 32px), var(--content));
  padding: clamp(36px, 6vw, 58px);
  border-radius: var(--radius);
  background: var(--sage-soft);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.project-grid article {
  position: relative;
  min-height: 238px;
  padding: 22px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.project-grid article:hover,
.testimonial-grid figure:hover,
.panel:hover,
.contact-card:hover {
  border-color: rgba(169, 85, 24, 0.34);
  box-shadow: 0 18px 38px rgba(47, 58, 50, 0.13);
  transform: translateY(-3px);
}

.card-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  color: var(--sage-deep);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.project-grid span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--orange);
  font-weight: 900;
}

.project-grid p {
  margin: 0;
  color: var(--muted);
}

.membership .section-heading {
  margin-bottom: 24px;
}

.info-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.panel {
  padding: 26px;
  box-shadow: 0 12px 32px rgba(47, 58, 50, 0.09);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.panel.highlight {
  border-color: rgba(64, 81, 61, 0.32);
}

.panel ol {
  margin: 0 0 22px;
  padding-left: 22px;
  color: var(--muted);
}

.panel li + li {
  margin-top: 8px;
}

.text-link {
  color: var(--sage-deep);
  font-weight: 800;
}

.donate {
  padding: clamp(34px, 6vw, 54px);
  border-radius: var(--radius);
  background: var(--sage-dark);
  color: var(--white);
}

.donate .eyebrow,
.donate p {
  color: var(--white);
}

.bank-details {
  padding: 24px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.bank-details dl,
.bank-panel dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.bank-details div,
.bank-panel div {
  display: grid;
  gap: 2px;
}

.bank-details dt,
.bank-panel dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bank-details dd,
.bank-panel dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.bank-panel {
  background: #fff8e8;
}

.contact p {
  max-width: 560px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

.contact-card {
  display: grid;
  gap: 8px;
  padding: 24px;
  font-style: normal;
  box-shadow: 0 12px 32px rgba(47, 58, 50, 0.09);
}

.contact-card a {
  color: var(--sage-deep);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 28px;
  width: min(calc(100% - 32px), var(--content));
  margin: 16px auto 28px;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--sage-deep);
  color: var(--white);
}

.image-band {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  padding: clamp(28px, 5vw, 46px);
  border-radius: var(--radius);
  background: #fff8e8;
}

.image-band picture {
  display: block;
  height: 100%;
}

.image-band img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: var(--radius);
  object-fit: cover;
}

.image-band img {
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow);
}

.image-band p:not(.eyebrow) {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.testimonial-grid figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.testimonials {
  padding: clamp(36px, 6vw, 58px);
  border-radius: var(--radius);
  background: #fff8e8;
}

.testimonial-grid figure {
  min-height: 230px;
  margin: 0;
  padding: 26px;
}

.testimonial-grid blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
}

.testimonial-grid blockquote::before {
  content: "\201C";
  display: block;
  height: 34px;
  color: var(--gold);
  font-size: 58px;
  font-weight: 900;
  line-height: 0.8;
}

.testimonial-grid figcaption {
  margin-top: 18px;
  color: var(--sage-deep);
  font-weight: 900;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-brand img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
}

.footer-brand p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.footer-links {
  align-content: start;
  justify-content: end;
  color: var(--white);
  font-weight: 300;
}

.legal {
  grid-column: span 1;
  padding-top: 90px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.legal h2 {
  margin-bottom: 8px;
    margin-top: 35px;
  font-size: 18px;
  line-height: 1.2;
}

.legal p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .split,
  .donate,
  .contact,
  .info-panels,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
  }

  .nav,
  .footer-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-photo {
    aspect-ratio: 16 / 10;
  }

  .quick-actions,
  .project-grid,
  .testimonial-grid,
  .info-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --space-section: 50px;
  }

  .site-header {
    position: static;
    width: 100%;
    padding: 14px 12px 12px;
    gap: 12px;
  }

  .brand {

    min-width: 0;
    width: 100%;
    display: block;
  }

  .brand-logo {
    width: 80px;
    height: 80px;
  }

  .nav {
    width: 100%;
    gap: 8px;
      justify-content: flex-end;
  }

  .nav a {
    display: flex;
    min-height: 38px;
    align-items: center;
    padding: 5px 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
      font-size: 14px;
      font-weight: 500;
  }

  .nav .nav-cta {
    border-radius: 999px;
    background: var(--sage-deep);
  }

  .hero,
  .section,
  .quick-actions {
    width: min(calc(100% - 24px), var(--content));
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    min-height: 52px;
  }

  .hero-photo {
    aspect-ratio: 1 / 1;
  }

  .quick-actions,
  .project-grid,
  .testimonial-grid,
  .info-panels {
    grid-template-columns: 1fr;
  }

  .projects,
  .testimonials,
  .image-band,
  .donate,
  .site-footer {
    width: min(calc(100% - 24px), var(--content));
    padding: 24px;
  }

  .project-grid article {
    min-height: auto;
  }

  .testimonial-grid figure {
    min-height: auto;
  }

  .footer-brand {
    align-items: flex-start;
  }
}

@media (max-width: 360px) {
  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 12px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    font-size: 14px;
  }

  .nav a {
    min-height: 36px;
    justify-content: center;
    padding: 5px 7px;
    text-align: center;
  }

  h1 {
    font-size: 38px;
  }
}

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

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
