@font-face {
  font-family: "Syne";
  src: url("../fonts/syne.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --green: #2b6a1f;
  --red: #9c1c12;
  --coral: #c94a32;
  --donate: #d5330c;
  --ink: #2a1a17;
  --muted: #5d4a45;
  --bg: #ffffff;
  --soft: #faf5f1;
  --display: "Syne", "Trebuchet MS", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 22px;
  --shadow: 0 12px 28px -18px rgba(74, 7, 3, .45);
  --line: #eee2d9;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--green); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem 1.5rem; flex-wrap: wrap; padding-block: .75rem;
}
.brand img { width: 190px; }

.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; align-items: center; }
.site-nav a {
  color: var(--red); text-decoration: none; font-weight: 500; padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current] { border-bottom-color: currentColor; }
.site-nav .nav-donate {
  background: var(--donate); color: #fff; padding: .45rem 1.1rem; border-radius: 999px;
  border: 0; font-weight: 700;
}
.site-nav .nav-donate:hover { background: var(--red); }

.social { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.social:empty { display: none; }
.social a {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  color: var(--green); transition: background .15s, color .15s;
}
.social a:hover { background: var(--green); color: #fff; }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* Intro */
.tagline {
  font-family: var(--display); font-weight: 600; color: var(--red); text-align: center;
  font-size: clamp(1.15rem, 2.6vw, 1.9rem); line-height: 1.25;
  padding-block: clamp(1.5rem, 4vw, 3rem); margin-bottom: 0; text-wrap: balance;
}
.hero img { width: 100%; height: clamp(260px, 52vw, 680px); object-fit: cover; object-position: 50% 30%; }

/* Sections */
.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section h1, .section-title { color: var(--green); text-align: center; }
.section h1, .section-title { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.section-title:has(+ .lead) { margin-bottom: 1rem; }
.lead { max-width: 72ch; margin: 0 auto clamp(1.5rem, 3vw, 2.25rem); text-align: center; color: var(--ink); }
.lead strong { color: var(--green); }

/* Programme cards */
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card {
  background: var(--soft); color: var(--ink); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); border-bottom: 4px solid var(--coral);
  padding: 0 1.4rem 1.6rem;
  box-shadow: var(--shadow);
}
.card img { width: calc(100% + 2.8rem); max-width: none; margin: 0 -1.4rem 1.2rem; aspect-ratio: 16 / 9; object-fit: cover; }
.card h2 { color: var(--red); font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: .7rem; }
.card p { font-size: 1rem; }
.card strong { color: var(--green); }

/* Video */
.video {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; background: #1c1412;
  box-shadow: var(--shadow);
}
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video img { object-fit: cover; }
.video-play {
  position: absolute; inset: 0; width: 100%; display: grid; place-content: center; justify-items: center;
  gap: .75rem; border: 0; cursor: pointer; color: #fff; font: 600 1rem var(--body);
  background: rgba(20, 10, 8, .35); transition: background .15s;
}
.video-play[hidden] { display: none; }
.video-play:hover { background: rgba(20, 10, 8, .5); }
.video-play svg { width: 84px; height: 84px; padding: 20px; border-radius: 50%; background: var(--donate); fill: #fff; }

.project-photos { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 1.5rem; }
.project-photos img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Board */
.board {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 1.5rem;
}
.board li { flex: 0 1 calc((100% - 4.5rem) / 4); text-align: center; }
.board img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius); margin-bottom: .7rem; background: var(--soft); box-shadow: var(--shadow);
}
.board b { display: block; font-weight: 600; color: var(--ink); }
.board span { color: var(--muted); font-size: .95rem; }

/* Donate */
.donate { background: var(--soft); text-align: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.donate h2 { color: var(--green); font-size: clamp(1.4rem, 3.4vw, 2.2rem); margin: 0 auto 2rem; max-width: 24ch; }
.btn {
  display: inline-block; background: var(--donate); color: #fff; text-decoration: none;
  font: 700 1.15rem var(--display); letter-spacing: .04em; text-transform: uppercase;
  padding: 1.25rem 3.5rem; border-radius: 999px; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--red); transform: translateY(-2px); }

/* Footer */
.site-footer { text-align: center; padding-block: 2.5rem; font-size: .98rem; }
.site-footer address { font-style: normal; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.copy { color: var(--muted); font-size: .85rem; margin-top: 1.25rem; }

/* Error page */
.error { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 1.25rem; padding: 2rem 1rem; }
.error h1 { color: var(--green); font-size: clamp(2rem, 6vw, 3.5rem); }

@media (max-width: 720px) {
  .header-inner { justify-content: center; }
  .brand img { width: 140px; }
  .site-nav { justify-content: center; gap: .25rem 1rem; font-size: .95rem; width: 100%; }
  html { scroll-padding-top: 150px; }
}
@media (max-width: 900px) { .board li { flex-basis: calc((100% - 3rem) / 3); } }
@media (max-width: 600px) { .board { gap: 1.5rem 1rem; } .board li { flex-basis: calc((100% - 1rem) / 2); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
