:root {
  color-scheme: light;
  --ink: #12372b;
  --green: #075237;
  --deep: #123e31;
  --muted: #43574c;
  --cream: #f8f6ed;
  --paper: #fffcf5;
  --line: #dedfd3;
  --gold: #f3ce6b;
  --heading: Georgia, "Times New Roman", serif;
  --body: "Trebuchet MS", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 1rem/1.65 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid #a66a14; outline-offset: 4px; }
section[id] { scroll-margin-top: 1.5rem; }

.container { width: min(100% - 6rem, 1200px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: .5rem; left: 1rem; padding: .65rem 1rem; transform: translateY(-170%); background: white; }
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--paper); border-bottom: 1px solid #e9e6da; }
.header-inner { min-height: 5.45rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1rem, 3.2vw, 2.75rem); }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--green); font-weight: 800; font-size: 1.05rem; line-height: 1.08; text-decoration: none; }
.brand img { width: 3.15rem; height: auto; mix-blend-mode: multiply; }
nav { display: flex; justify-content: center; gap: clamp(.8rem, 2.55vw, 2.7rem); align-items: center; }
nav a { position: relative; text-decoration: none; white-space: nowrap; padding: .6rem 0; font-size: .94rem; font-weight: 700; }
nav a[aria-current="page"]::after { position: absolute; content: ""; height: 2px; inset: auto 0 .27rem; background: #a48945; }
.brand-second { display: block; }
nav a:hover { text-decoration: underline; text-underline-offset: .25rem; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; border: 1px solid transparent; padding: .7rem 1.3rem; border-radius: 100px; text-decoration: none; font-weight: 800; font-size: .94rem; line-height: 1.35; text-align: center; }
.button-green { background: var(--green); color: white; }
.button-green:hover { background: #093b2b; }
.button-outline { border-color: #a0ab9d; color: var(--green); }
.button-outline:hover { background: #e9efe2; }
.header-cta { min-height: 2.8rem; padding-inline: 1.1rem; }

.hero { overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(2.15rem, 5.35vw, 5.35rem); padding-block: clamp(3rem, 6.5vw, 6rem) clamp(3.75rem, 6.6vw, 6rem); align-items: center; }
.eyebrow { display: flex; align-items: center; gap: .68rem; margin: 0 0 1.25rem; color: var(--green); font-size: .875rem; font-weight: 800; letter-spacing: .105em; line-height: 1.3; text-transform: uppercase; }
.dash { width: 1.55rem; height: 2px; flex: none; background: #98813c; }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--heading); font-weight: 400; line-height: 1.03; letter-spacing: -.045em; }
h1 { max-width: 9.5em; font-size: clamp(3.45rem, 6.1vw, 5.9rem); }
h1 em { display: block; color: #1c6447; font-weight: inherit; }
h2 { font-size: clamp(2.45rem, 4.4vw, 4rem); }
h3 { font-size: 1.16rem; line-height: 1.3; }
p { margin: 0; }
.lede { max-width: 31rem; margin-top: 1.55rem; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.23rem); }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.9rem; }
.hero-visual { position: relative; isolation: isolate; margin: .8rem .85rem .2rem 0; }
.hero-visual::before { content: ""; position: absolute; z-index: -1; inset: .85rem -.85rem -.85rem .85rem; border: 1px solid #acc0aa; border-radius: 47% 47% 1.2rem 1.2rem / 38% 38% 1.2rem 1.2rem; background: #e6ecdc; }
.hero-photo { aspect-ratio: 1.13; overflow: hidden; border-radius: 47% 47% 1.2rem 1.2rem / 38% 38% 1.2rem 1.2rem; background: #d5e2ce; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 43%; }
.sunburst { position: absolute; top: 1%; right: -1.2%; color: #a67a21; font: 4.5rem/1 var(--heading); user-select: none; }

.mission { background: var(--deep); color: var(--paper); }
.mission-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7.5vw, 7rem); align-items: end; padding-block: clamp(3rem, 6vw, 5rem); }
.mission .eyebrow { color: #e3ebdb; }
.mission .dash { background: var(--gold); }
.mission h2 { max-width: 12ch; }
.mission-body { color: #edf1e6; font-size: clamp(1.04rem, 1.75vw, 1.2rem); padding-bottom: .35rem; }
.section-pad { padding-block: clamp(3.8rem, 7.4vw, 6.65rem); }
.programme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3.5rem; }
.programme { padding: 1.45rem 1.2rem 1.65rem; background: #edf1e7; border: 1px solid #e1e7d9; border-radius: .85rem; }
.programme:nth-child(2) { background: #f8edce; border-color: #f0e3bd; }
.programme:nth-child(3) { background: #f2ece5; border-color: #eae1d7; }
.programme:nth-child(4) { background: #e3eee6; border-color: #d9e6dc; }
.programme p { color: var(--muted); margin-top: .65rem; }
.programme-icon { display: block; position: relative; width: 2.6rem; height: 2.6rem; margin-bottom: 1.4rem; background: #fffaf0; border-radius: .6rem; color: var(--green); }
.programme-icon::before, .programme-icon::after { content: ""; position: absolute; }
.icon-meals::before { inset: 45% 21% 27%; border: 2px solid; border-radius: 0 0 2rem 2rem; }
.icon-meals::after { inset: 23% 35% 64%; border-inline: 2px solid; transform: skewX(-14deg); }
.icon-health::before { inset: 27% 45%; background: currentColor; border-radius: 1px; }
.icon-health::after { inset: 45% 27%; background: currentColor; border-radius: 1px; }
.icon-safety::before { inset: 23% 27% 21%; border: 2px solid; border-radius: .2rem .2rem .85rem .85rem; }
.icon-safety::after { inset: 40% 37% 44% 38%; border-left: 2px solid; border-bottom: 2px solid; transform: rotate(-45deg); }

.text-link { color: var(--green); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.text-link:hover { color: #6a4c16; }
.light-link { display: inline-block; color: #fff5d4; margin-top: 1rem; }
.light-link:hover { color: white; }

.masthead { padding-block: clamp(3rem, 6.4vw, 5.8rem); background: #e9eee0; border-bottom: 1px solid #dce2d0; }
.masthead h1 { max-width: 14ch; }
.masthead .lede { max-width: 39rem; margin-top: 1rem; }
.interior { background: var(--paper); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.35rem, 7vw, 6rem); align-items: center; }
.split p:not(.eyebrow), .event-card p:not(.event-status) { margin-top: 1rem; max-width: 36rem; color: var(--muted); font-size: 1.1rem; }
.split .text-link { display: inline-block; margin-top: 1.15rem; }
.inset-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1.1rem; }
.story .inset-photo { aspect-ratio: 1.28; object-position: 50% 62%; max-width: 34rem; justify-self: end; }
.founder { background: #e9eee0; }
.founder-inner { grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); max-width: 1000px; }
.founder-portrait { width: 100%; max-width: 25rem; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: .85rem; }

.home-event { padding-block: clamp(2.75rem, 5vw, 4.75rem); }
.event-preview, .event-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: clamp(1.25rem, 3.8vw, 2.8rem); }
.event-preview { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.event-preview .eyebrow { margin-bottom: .65rem; }
.event-preview h2, .event-card h2, .involvement-card h2 { font-size: clamp(1.9rem, 3.7vw, 3.15rem); }
.event-preview p:not(.eyebrow) { margin-top: .55rem; color: var(--muted); }
.date-tile { min-width: 5.8rem; background: var(--deep); color: white; border-radius: .65rem; padding: .65rem .75rem .75rem; text-align: center; }
.date-tile time { display: grid; gap: .15rem; justify-items: center; }
.date-tile span { font-size: .875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.date-tile strong { font: 2.65rem/.96 var(--heading); }
.date-tile-muted { background: #e5ebdc; color: var(--green); }
.event-list { display: grid; gap: 1.15rem; }
.event-card { background: var(--cream); border: 1px solid var(--line); border-radius: .85rem; padding: clamp(1.25rem, 3.9vw, 2.65rem); scroll-margin-top: 1.2rem; }
.event-details { display: grid; gap: .35rem; margin: 1.15rem 0 0; }
.event-details div { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: .45rem; }
.event-details dt { font-weight: 800; }
.event-details dd { margin: 0; color: var(--muted); }
.event-status { margin: 0 0 .45rem; color: #43574c; font-size: .9rem; font-weight: 700; }
.event-card .actions { margin-top: 1.35rem; }

.get-involved-grid { align-items: stretch; gap: 1rem; }
.involvement-card { background: var(--cream); border: 1px solid var(--line); border-radius: .85rem; padding: clamp(1.4rem, 4vw, 2.9rem); }
.involvement-card .button { margin-top: 1.25rem; }
.contact-inner { align-items: start; }
.contact-list { margin: 0; }
.contact-list div { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); font-weight: 700; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.contact-list a { text-underline-offset: .22em; }

.site-footer { background: var(--cream); border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.1rem 2rem; padding-block: 1.5rem; }
.footer-inner small { color: var(--muted); font-size: .875rem; }

@media (max-width: 990px) {
  .container { width: calc(100% - 4rem); }
}

@media (max-width: 790px) {
  .container { width: calc(100% - 2.5rem); }
  .header-inner { grid-template-columns: 1fr auto; gap: .35rem .65rem; min-height: 0; padding-block: .7rem .28rem; }
  .header-inner .brand { grid-row: 1; }
  .header-inner nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; gap: .1rem clamp(.7rem, 3.9vw, 1.5rem); flex-wrap: wrap; border-top: 1px solid #e9e6da; }
  nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .header-cta { grid-row: 1; grid-column: 2; }
  .hero-inner, .mission-inner, .split { grid-template-columns: 1fr; }
  .hero-inner { gap: 2.15rem; padding-top: 2.8rem; }
  .hero-visual { width: min(100% - .85rem, 36rem); margin-top: 0; }
  .hero-photo { aspect-ratio: 1.2; }
  .hero-photo img { object-position: 50% 42%; }
  .sunburst { font-size: 3.6rem; }
  .mission-inner { gap: 1.35rem; }
  h1 { font-size: clamp(3.1rem, 10.5vw, 5rem); }
  .story .inset-photo { justify-self: start; }
  .event-preview { grid-template-columns: auto minmax(0, 1fr); }
  .event-preview .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 570px) {
  .programme-grid { grid-template-columns: 1fr; margin-top: 1.8rem; }
  .event-card { grid-template-columns: 1fr; }
  .event-card .date-tile { justify-self: start; }
  .contact-list div { grid-template-columns: 1fr; gap: .1rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Donhodzo partner acknowledgements */
.home-partners { background: var(--paper); scroll-margin-top: 2rem; }
.home-partners h2 { margin-bottom: .75rem; }
.home-partners p:not(.eyebrow) { margin: 0; }
.partner-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; margin: 2rem 0 0; }
.partner-list li { display: grid; justify-items: center; align-content: center; gap: .85rem; border: 1px solid #e3e7db; border-radius: 1rem; background: #fff; color: var(--green); padding: 1.35rem 1rem; text-align: center; }
.partner-list img { display: block; width: 6rem; height: 6rem; object-fit: contain; }
.about-partners-link { padding-block: 0 2rem; }
