:root {
  --green: #c5cea4;
  --green-dark: #a6b56b;
  --green-deep: #6f7947;
  --text: #333333;
  --text-muted: #7a7979;
  --white: #ffffff;
  --black: #212121;
  --max: 980px;
  --pad: 1.25rem;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

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

a { color: var(--green-deep); }
a:hover { text-decoration: none; }

.container {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #e8e8e8;
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { margin: 0; }
.brand__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.02em;
}
.brand__subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-nav a { color: var(--text); text-decoration: none; }
.site-nav a:hover { color: var(--green-deep); }

/* Sections */
.section { padding: 3rem 0; }
.section--green { background: var(--green); }
.section--dark {
  background: var(--black) url("../media/programs.jpg") center/cover no-repeat;
  color: var(--white);
  position: relative;
}
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(33, 33, 33, 0.72);
}
.section--dark > .container { position: relative; z-index: 1; }

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}
.section--dark .section__title { color: var(--white); }

.section__lead {
  font-size: 1.1rem;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 28rem;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--black) url("../media/kfg-photo-9e2e31ebd884.jpg") center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.65));
}
.hero .container { position: relative; z-index: 1; padding-block: 4rem; }
.hero__label {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  opacity: 0.9;
}
.hero__heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.15;
}
.hero__text {
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0;
}

/* Gallery strip */
.gallery-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gallery-strip img {
  flex: 0 0 min(85vw, 320px);
  height: 220px;
  object-fit: cover;
  scroll-snap-align: start;
  border-radius: 2px;
}

/* Letter */
.letter { display: grid; gap: 2rem; }
@media (min-width: 768px) {
  .letter { grid-template-columns: 1fr 1.1fr; align-items: start; }
}
.letter__body p { margin: 0 0 1rem; }
.letter__sign { font-weight: 700; margin-top: 1.5rem; }

/* Board */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.board-grid li {
  background: var(--white);
  border: 1px solid #e5e5e5;
  padding: 1rem;
}
.section--green .board-grid li { background: rgba(255,255,255,0.85); }
.board-grid .name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}
.board-grid .role { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  text-align: center;
  margin: 2rem 0;
}
.stat__value {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}
.stat__label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}
.section--green .stat__label,
.section--dark .stat__label { color: inherit; opacity: 0.85; }

.stat-highlight {
  background: rgba(255,255,255,0.15);
  padding: 1.25rem;
  border-radius: 2px;
  text-align: center;
  margin: 2rem auto;
  max-width: 40rem;
  font-size: 1.05rem;
}

/* Two column content */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; }
}
.split__img { border-radius: 2px; }

/* Goals / lists */
.checklist {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.checklist li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
}
.checklist li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--green-deep);
  font-weight: bold;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-weight: 600;
}

/* Alumni / news logos */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.photo-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 2px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  align-items: center;
}
.news-grid a {
  display: block;
  text-align: center;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid #e5e5e5;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.news-grid img {
  margin: 0 auto 0.5rem;
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

/* Financials */
.financials {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .financials { grid-template-columns: 1fr 1fr; }
}
.financials h3 {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.financial-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e8e8e8;
  font-size: 0.95rem;
}
.financial-row strong { white-space: nowrap; }
.financial-chart { max-width: 280px; margin: 0 auto 1rem; }

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--black);
  color: var(--white) !important;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--black);
}
.btn:hover { background: var(--white); color: var(--black) !important; }
.btn--outline {
  background: transparent;
  color: var(--black) !important;
}
.btn--outline:hover { background: var(--black); color: var(--white) !important; }
.section--dark .btn { border-color: var(--white); }
.section--dark .btn:hover { background: var(--white); color: var(--black) !important; }

/* CTA / social */
.cta-box {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--green);
}
.cta-box .section__title { margin-bottom: 1rem; }
.social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.social a {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
}
.social a:hover { color: var(--green-deep); }

/* Footer */
.site-footer {
  background: #3a3a3a;
  color: #bab8b8;
  text-align: center;
  padding: 1.5rem var(--pad);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

/* Subpages */
.brand__title a {
  color: inherit;
  text-decoration: none;
}
.brand__title a:hover { color: var(--green-deep); }

.site-nav a[aria-current="page"] {
  color: var(--green-deep);
}

.page-hero {
  position: relative;
  min-height: 16rem;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--black) center/cover no-repeat;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(33, 33, 33, 0.55);
}
.page-hero .container { position: relative; z-index: 1; padding-block: 3rem; }
.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.photo-grid--dense {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.photo-grid--dense img {
  height: 180px;
  cursor: zoom-in;
}

/* Donors + lightbox (CSS :target, no JS) */
.donors-figure {
  margin: 0;
  text-align: center;
}
.donors-figure img {
  margin: 0 auto;
  max-width: min(100%, 910px);
  border: 1px solid #ddd;
  cursor: zoom-in;
}
.donors-figure figcaption {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.92);
}
.lightbox:target { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}
.lightbox__close-text {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
  z-index: 1;
}
