/* Oblitey Tetteh Foundation: warm cream, forest green, sunshine gold and red-earth terracotta. */
:root {
  --cream: #fbf6ec;
  --sand: #f3e8d4;
  --paper: #fffdf8;
  --green: #14432f;
  --green-2: #1f5c41;
  --gold: #f2b33d;
  --gold-2: #e09b17;
  --red: #c2502e;
  --ink: #1f1c17;
  --muted: #5d564b;
  --line: #e4d8c2;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(31 28 23 / .06), 0 12px 32px -12px rgb(31 28 23 / .22);
  --display: "Fraunces", Georgia, serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 800; }
h1 em { font-style: italic; color: var(--red); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .9em; }

/* Placeholders the family still needs to fill in. Search the HTML for class="tbc". */
.tbc { background: #fff1b8; box-shadow: 0 0 0 2px #fff1b8; border-bottom: 2px dashed var(--gold-2); border-radius: 3px; cursor: help; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .9em 1.5em; border-radius: 999px; font: 700 1rem/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 6px 18px -8px var(--gold-2); }
.btn-gold:hover { background: #f6c056; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-2); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-sm { padding: .65em 1.15em; font-size: .92rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(251 246 236 / .9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { font: 700 1.15rem/1 var(--display); color: var(--green); }
.brand-text small { display: block; font: 700 .68rem/1.4 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--red); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .97rem; position: relative; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .2s; }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; margin: auto; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Kente-inspired stripe */
.kente { height: 14px; background:
  repeating-linear-gradient(90deg, var(--gold) 0 34px, var(--green) 34px 46px, var(--red) 46px 70px, var(--ink) 70px 76px, var(--gold) 76px 96px, var(--green) 96px 120px); }

/* Hero */
.hero { padding-top: clamp(28px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-bottom: clamp(40px, 6vw, 80px); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-collage { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(380px, 46vw, 560px); }
.hero-collage figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; }
.c-main { grid-row: 1 / 3; }
.c-top img { object-position: center 30%; }
.c-bottom { border: 6px solid var(--paper); }

/* Facts */
.facts { background: var(--green); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 30px 20px; text-align: center; border-left: 1px solid rgb(255 255 255 / .12); }
.fact:first-child { border-left: 0; }
.fact strong { display: block; font: 800 2.6rem/1 var(--display); color: var(--gold); margin-bottom: 8px; }
.fact strong.tbc { color: var(--ink); }
.fact span { font-size: .95rem; opacity: .9; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }

/* Story */
.story-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.story-photo { margin: 0; position: relative; }
.story-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.story-photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 3px solid var(--gold); border-radius: var(--radius); z-index: -1; }
.story-copy p { color: var(--muted); }
.quote { margin: 28px 0 0; padding: 22px 26px; background: var(--paper); border-left: 5px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; }
.quote p { font: italic 500 1.2rem/1.5 var(--display); color: var(--ink); margin-bottom: .6em; }
.quote footer { font-weight: 700; font-size: .92rem; }

/* Work cards */
.work { background: var(--sand); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card > img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card > img.pos-top { object-position: center 25%; }
.card-body { padding: 24px 26px 28px; }
.card-body p { color: var(--muted); }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li { padding-left: 26px; position: relative; margin: 6px 0; font-weight: 500; }
.card li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--green-2); border-bottom: 3px solid var(--green-2); transform: rotate(-45deg); }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.tag-green { background: #dcebe1; color: var(--green); }
.tag-red { background: #f6ddd3; color: #9a3a1f; }
.tag-gold { background: #fbe9c2; color: #7d5508; }

/* Band */
.band { position: relative; min-height: 460px; display: grid; place-items: center; overflow: hidden; color: #fff; text-align: center; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 67 47 / .72), rgb(20 30 22 / .82)); }
.band-inner { position: relative; z-index: 1; padding: 72px 0; max-width: 860px; }
.band-inner p { font: italic 500 clamp(1.5rem, 3vw, 2.3rem)/1.35 var(--display); margin-bottom: 1.2em; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.chip { font: 600 .95rem/1 var(--body); padding: .7em 1.2em; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--green); }
.chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.masonry { columns: 4 240px; column-gap: 14px; }
.ph { display: block; margin-bottom: 14px; break-inside: avoid; border-radius: 12px; overflow: hidden; position: relative; background: var(--sand); }
.ph img { width: 100%; transition: transform .4s ease; }
.ph:hover img { transform: scale(1.04); }
.ph[hidden] { display: none; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgb(15 14 11 / .92); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox figure { margin: 0; display: grid; place-items: center; height: 100vh; padding: 48px 0; }
.lightbox img { max-height: calc(100vh - 120px); max-width: 100%; width: auto; border-radius: 8px; }
.lightbox figcaption { color: #eee; margin-top: 12px; text-align: center; font-size: .95rem; }
.lightbox button { background: none; border: 0; color: #fff; font-size: 3rem; line-height: 1; cursor: pointer; height: 64px; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lb-close { position: fixed; top: 12px; right: 16px; font-size: 2.6rem !important; }

/* Donate */
.donate { background: var(--green); color: #fff; position: relative; }
.donate .eyebrow { color: var(--gold); }
.donate-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.donate-copy > p { color: rgb(255 255 255 / .82); font-size: 1.08rem; }
.impact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.impact-list li { display: flex; gap: 16px; align-items: center; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); border-radius: 14px; padding: 12px; }
.impact-list img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.impact-list strong { display: block; font-family: var(--display); font-size: 1.1rem; }
.impact-list span { color: rgb(255 255 255 / .78); font-size: .95rem; }
.donate-card { background: var(--paper); color: var(--ink); border-radius: 22px; padding: 28px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .45); }
.freq { display: grid; grid-template-columns: 1fr 1fr; background: var(--sand); border-radius: 999px; padding: 5px; margin-bottom: 18px; }
.freq label, .amounts label { cursor: pointer; }
.freq input, .amounts input { position: absolute; opacity: 0; pointer-events: none; }
.freq span { display: block; text-align: center; padding: .7em; border-radius: 999px; font-weight: 700; transition: all .15s; }
.freq input:checked + span { background: var(--paper); box-shadow: 0 2px 8px rgb(0 0 0 / .1); color: var(--green); }
.freq input:focus-visible + span, .amounts input:focus-visible + span { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.amounts { border: 0; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amounts span { display: block; text-align: center; padding: .85em 0; border: 2px solid var(--line); border-radius: 12px; font: 700 1.15rem/1 var(--display); transition: all .15s; }
.amounts label:hover span { border-color: var(--green); }
.amounts input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.custom > span:first-child { display: block; font-size: .88rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.money { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; }
.money:focus-within { border-color: var(--green); }
.money > span { font-weight: 700; color: var(--muted); }
.money input { border: 0; outline: 0; font: 600 1.05rem var(--body); padding: .8em .5em; width: 100%; background: transparent; }
.impact-line { min-height: 3em; margin: 14px 0; font-size: .95rem; color: var(--muted); }
.impact-line strong { color: var(--green); }
.donate-note { margin: 12px 0 0; padding: 12px 14px; background: #fff6dd; border-radius: 10px; font-size: .92rem; }
.other-ways { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; font-size: .95rem; }
.other-ways summary { cursor: pointer; font-weight: 700; color: var(--green); }
.other-ways dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 12px 0 0; }
.other-ways dt { color: var(--muted); }
.other-ways dd { margin: 0; font-weight: 600; }

/* Help */
.help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.help-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; }
.help-card p { color: var(--muted); flex: 1; }
.icon { width: 52px; height: 52px; border-radius: 14px; background: #fbe9c2; display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.link { font: 700 .97rem var(--body); color: var(--green); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.link:hover { text-decoration: underline; }

/* Contact */
.contact { background: var(--sand); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: baseline; }
.contact-list b { min-width: 92px; color: var(--muted); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-list a { font-weight: 600; }
.contact-form { background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .93rem; }
.contact-form input, .contact-form textarea { font: 400 1rem var(--body); padding: .8em .9em; border: 2px solid var(--line); border-radius: 12px; background: #fff; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 0; border-color: var(--green); }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: rgb(255 255 255 / .8); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 48px 0; align-items: start; }
.brand-light .brand-text { color: #fff; }
.brand-light .brand-text small { color: var(--gold); }
.site-footer nav { display: grid; gap: 8px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--gold); }
.small { font-size: .88rem; }
.site-footer .brand { margin-bottom: 14px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .story-grid, .donate-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-collage { height: 420px; }
  .cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .help-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact { border-top: 1px solid rgb(255 255 255 / .12); }
  .story-photo { max-width: 440px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 72px 0 auto 0; background: var(--cream); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgb(0 0 0 / .3); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .2s; }
  .site-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; }
  .hero-collage { height: 340px; gap: 10px; }
  .help-grid { grid-template-columns: 1fr; }
  .story-photo::before { inset: 14px -10px -14px 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .lightbox[open] { grid-template-columns: 44px 1fr 44px; }
  .amounts span { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
