:root {
  --cream: #fff7e8;
  --paper: #faf5ec;
  --tint: #f2e6d3;
  --ink: #2a1a12;
  --muted: #6b5446;
  --accent: #e8913a;
  --accent-dark: #b8582f;
  --dusk: #3b2a4a;
  --serif: "Lora", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
h2 { font-size: clamp(28px, 4.5vw, 40px); margin: 0 0 16px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.section { padding: 64px 0; }
.tint { background: var(--tint); }
.dark { background: var(--dusk); color: var(--cream); }
.dark a:not(.btn) { color: var(--cream); }
.lead { font-size: 20px; color: var(--muted); }
.dark .lead { color: var(--cream); }
.eyebrow { margin: 0 0 4px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; color: var(--accent-dark); }
@media (min-width: 760px) {
  .wrap { padding: 0 24px; }
  .section { padding: 88px 0; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
}
.split > * { min-width: 0; }
.split > * + * { margin-top: 32px; }
@media (min-width: 760px) { .split > * + * { margin-top: 0; } }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border: 0; border-radius: 999px; font: 600 17px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--ink); }
.btn.primary:hover { background: #f0a457; }
.btn.ghost { border: 2px solid var(--cream); color: var(--cream); }
.btn.big { padding: 16px 30px; font-size: 19px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Top navigation */
.topnav { position: sticky; top: 0; z-index: 10; background: rgba(42, 26, 18, .94); color: var(--cream); }
.topnav .wrap { display: flex; align-items: center; gap: 16px; min-height: 52px; }
.topnav .brand { font: 600 17px var(--serif); color: var(--cream); text-decoration: none; white-space: nowrap; }
.topnav ul { display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.topnav ul::-webkit-scrollbar { display: none; }
.topnav ul a { display: block; padding: 8px 10px; color: var(--cream); text-decoration: none; font-size: 15px; white-space: nowrap; }
.topnav ul a:hover { text-decoration: underline; }
.topnav .nav-give { background: var(--accent); color: var(--ink); border-radius: 999px; padding: 6px 14px; margin-left: 4px; font-weight: 600; }
@media (max-width: 759px) { .topnav .brand { display: none; } .topnav ul { margin: 0; } }

/* Hero */
/* Johannesburg skyline photo, cropped and with extra sky added on top (1920x1781). The buildings left of the main tower start
   21.75% of the page width above the bottom, so .kids holds the text above them; the kid photos
   sit on the dark ground. */
.hero { position: relative; overflow: hidden; color: #2e2c27; background: #d2c7ab url("/images/header-joburg.jpg") center bottom / 100% auto no-repeat; }
.hero-inner { max-width: 1100px; margin: 0 auto; padding: 56px 24px 14px; }
.hero h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.05; margin: 0 0 8px; }
.hero .tagline { margin: 0 0 20px; font: italic 400 clamp(17px, 2vw, 20px) var(--serif); color: #6b4a3a; }
.hero blockquote { margin: 0 0 24px; font: italic 400 clamp(17px, 2.2vw, 20px)/1.45 var(--serif); max-width: 26em; }
.hero cite { display: block; margin-top: 6px; font: normal 600 14px var(--sans); letter-spacing: .05em; }
.hero .btn.ghost { border-color: #3e322b; color: #3e322b; background: rgba(247,230,210,.75); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.kids { display: flex; gap: 8px; margin-top: max(40px, calc(21.75vw - 82px)); }
.kids img { width: 84px; height: 84px; border-radius: 50%; border: 3px solid #f7e6d2; object-fit: cover; }
@media (max-width: 759px) {
  .hero { background-size: auto 560px; background-position: 20% bottom; }
  .hero-inner { padding: 36px 16px 10px; }
  .kids { margin-top: 120px; }
  .kids img { width: 68px; height: 68px; }
}

/* Story */
.pull { margin: 32px 0; padding: 20px 24px; background: var(--tint); border-left: 5px solid var(--accent); border-radius: 0 12px 12px 0; }
.pull blockquote { margin: 0 0 8px; font: italic 400 21px/1.45 var(--serif); }
.pull figcaption { color: var(--muted); font-size: 16px; }
.story-photo { float: right; width: 300px; margin: 4px 0 16px 32px; padding: 8px; background: #fff; border: 1px solid #e4d3bc; border-radius: 4px; box-shadow: 0 2px 0 #e4d3bc; }
.story-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.story-photo figcaption { padding: 10px 4px 4px; font: italic 400 15px/1.4 var(--serif); color: #6b4a3a; text-align: center; }
@media (max-width: 639px) { .story-photo { float: none; width: 100%; max-width: 360px; margin: 0 auto 24px; } }
.timeline { clear: both; list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.timeline li { padding: 14px 16px; background: #fff; border-radius: 12px; font-size: 16px; }
.timeline span { display: block; font: 600 20px var(--serif); color: var(--accent-dark); }

/* Videos */
.video-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 24px; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt .play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; background: rgba(232, 145, 58, .95); border-radius: 12px; }
.yt .play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent var(--ink); }
.yt:hover .play, .yt:focus-visible .play { background: #f0a457; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-title { margin: 8px 0 0; font-weight: 600; }
.credit { margin-top: 32px; color: var(--muted); font-size: 16px; }

/* The Story */
.story-img img { border-radius: 12px; }

/* Beliefs */
details { background: #fff; border-radius: 12px; padding: 4px 20px; }
summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--accent-dark); }
.beliefs dt { font: 600 19px var(--serif); margin-top: 16px; }
.beliefs dd { margin: 4px 0 0; }
.beliefs { padding-bottom: 16px; }

/* Give */
.give { background: linear-gradient(180deg, var(--paper), var(--tint)); }
.board { display: inline-block; margin-top: 24px; padding: 12px 16px; border: 1px solid #c9b59f; border-radius: 10px; background: transparent; }
.board:hover { border-color: var(--accent); }
.board img { width: 260px; }

/* Forms */
label { display: block; font-weight: 600; margin: 16px 0 6px; }
input, textarea { width: 100%; padding: 12px 14px; font: 17px var(--sans); border: 1px solid #c9b59f; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, textarea:focus { outline: 3px solid rgba(232, 145, 58, .45); border-color: var(--accent); }
.signup .row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup .row input { flex: 1 1 220px; }
.hp { position: absolute; left: -5000px; }
.contact .btn { margin-top: 20px; }
.form-status { margin: 12px 0 0; font-weight: 600; }
.form-status.ok { color: #3d6b2a; }
.form-status.error { color: #a3341f; }

/* Facebook */
.fb-card { display: grid; gap: 16px; justify-items: start; padding: 28px; background: #fff; border-radius: 16px; color: var(--ink); text-decoration: none; box-shadow: 0 6px 20px rgba(42, 26, 18, .08); }
.fb-card:hover .btn.primary { background: #f0a457; }
.fb-logo { width: 48px; height: 48px; color: #1877f2; }
.fb-text strong { display: block; font: 600 22px var(--serif); margin-bottom: 4px; }

/* Footer */
.footer { padding: 40px 0; background: var(--ink); color: var(--cream); font-size: 15px; }
.footer a { color: var(--cream); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.privacy { max-width: 760px; opacity: .85; }
