/* ==========================================================
   PEACE & GRACE: SHARED STYLESHEET
   One file styles every page. Change colours in :root below.
   ========================================================== */

:root {
  --plum: #3a1c4a;
  --plum-deep: #281232;
  --gold: #f2b632;
  --gold-soft: #fbe7ae;
  --leaf: #2d7a4d;
  --paper: #fbf8fc;
  --ink: #231a2b;
  --muted: #5f5468;
  --line: #e4dbe9;
  --radius: 14px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--plum); }
h1, h2, h3, h4 { font-family: "Bricolage Grotesque", "Figtree", sans-serif; line-height: 1.12; margin: 0 0 .6em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3.2rem, 7vw, 6rem) 0; }
.section.white { background: #fff; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* Woven band: the signature detail, a nod to West African textile stripes */
.weave {
  height: 12px;
  background: repeating-linear-gradient(90deg,
    var(--plum) 0 28px, var(--gold) 28px 40px, var(--leaf) 40px 68px,
    var(--gold-soft) 68px 76px, var(--plum) 76px 96px, var(--gold) 96px 104px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.5rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer; font-size: 1rem; font-family: inherit; line-height: 1.2;
}
.btn-gold { background: var(--gold); color: var(--plum-deep); }
.btn-gold:hover { background: #ffc94d; }
.btn-plum { background: var(--plum); color: #fff; }
.btn-plum:hover { background: var(--plum-deep); }
.btn-ghost { border-color: currentColor; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--plum); }
.btn-line { border-color: var(--plum); color: var(--plum); background: transparent; }
.btn-line:hover { background: var(--plum); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Header and menu ---------- */
header.site { position: sticky; top: 0; z-index: 50; background: var(--plum-deep); color: #fff; }
header.site .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: #fff; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.3rem; }
.brand img { height: 48px; width: auto; }

.nav-list { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-list a, .more-btn {
  display: block; text-decoration: none; color: #fff; background: none; border: 0;
  padding: .55rem .85rem; border-radius: 999px; font: inherit; font-weight: 500; cursor: pointer;
}
.nav-list a:hover, .more-btn:hover { background: rgba(255,255,255,.12); }
.nav-list a[aria-current="page"], .more-btn[data-current="true"] { background: rgba(242,182,50,.22); color: var(--gold-soft); }
.nav-list a.btn { margin-left: .5rem; padding: .7rem 1.4rem; font-weight: 600; }
.nav-list a.btn[aria-current="page"] { background: var(--gold); color: var(--plum-deep); }
.more-btn::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.15em) rotate(45deg); }
.has-more { position: relative; }
.more-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 15rem;
  list-style: none; margin: 0; padding: .4rem; background: var(--plum-deep);
  border: 1px solid rgba(255,255,255,.18); border-radius: 14px; box-shadow: 0 14px 30px rgba(0,0,0,.35);
}
.has-more.open .more-menu { display: block; }
.more-menu a { border-radius: 10px; }

.menu-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,.5); color: #fff; padding: .45rem .9rem; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 1040px) {
  .menu-toggle { display: inline-block; }
  nav.main { position: absolute; left: 0; right: 0; top: 100%; background: var(--plum-deep); padding: 0 1.25rem 1.25rem; display: none; border-top: 1px solid rgba(255,255,255,.15); max-height: calc(100vh - 90px); overflow-y: auto; }
  nav.main.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding-top: .75rem; gap: 0; }
  .nav-list a { padding: .8rem .5rem; border-radius: 8px; }
  .nav-list a.btn { margin: .6rem 0 0; text-align: center; }
  .more-btn { display: none; }
  .more-menu { display: block; position: static; background: none; border: 0; box-shadow: none; padding: 0; min-width: 0; }
}

/* ---------- Page banner (inner pages) ---------- */
.page-hero {
  position: relative; color: #fff; padding: clamp(3.5rem, 9vw, 6.5rem) 0;
  background-color: var(--plum-deep); background-size: cover; background-position: center;
}
.page-hero::before, .hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(40,18,50,.94) 0%, rgba(40,18,50,.8) 50%, rgba(40,18,50,.4) 100%); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 22ch; margin-bottom: .3em; }
.page-hero p { font-size: 1.2rem; color: #eadff0; margin: 0; }

/* ---------- Home hero ---------- */
.hero { position: relative; color: #fff; background-color: var(--plum-deep); background-size: cover; background-position: center; }
.hero .wrap { position: relative; padding: clamp(4rem, 11vw, 8.5rem) 0; }
.hero h1 { max-width: 14ch; }
.hero p.lead { font-size: 1.25rem; max-width: 46ch; color: #f1e8f5; }
.hero .actions { margin-top: 1.8rem; }
.hero .where { margin: 2.2rem 0 0; font-size: .95rem; color: #d8c9de; }

/* ---------- Event card ---------- */
.event { background: var(--gold-soft); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.event-card { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 2rem; align-items: center; background: #fff; border-radius: 22px; padding: clamp(1.5rem, 4vw, 2.5rem); border: 2px solid var(--plum); }
.event-card .tag { display: inline-block; background: var(--leaf); color: #fff; font-weight: 600; font-size: .9rem; padding: .2rem .8rem; border-radius: 999px; margin-bottom: .8rem; }
.event-card h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .4rem; }
.event-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .55rem 1.1rem; }
.event-card dt { font-weight: 700; color: var(--plum); }
.event-card dd { margin: 0; }
.event-card .qr { text-align: center; font-size: .85rem; color: var(--muted); }
.event-card .qr img { width: 148px; height: 148px; margin: 0 auto .4rem; border-radius: 8px; }
.event-card .actions { margin-top: 1rem; }
@media (max-width: 900px) {
  .event-card { grid-template-columns: 1fr; }
  .event-card .qr { text-align: left; }
  .event-card .qr img { margin: 0 0 .4rem; }
}

/* ---------- Two-column layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split.top { align-items: start; }
.split img.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; }
.photo-wrap { position: relative; isolation: isolate; }
.photo-wrap::after { content: ""; position: absolute; right: -14px; bottom: -14px; width: 45%; height: 45%; border-radius: 22px; background: var(--gold); z-index: -1; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.story p { color: var(--muted); font-size: 1.12rem; }

/* ---------- Values / mission ---------- */
.values { background: var(--plum); color: #fff; }
.values .cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.values p { color: #eadff0; }
.values blockquote { margin: 0; padding-left: 1.4rem; border-left: 6px solid var(--gold); font-family: "Bricolage Grotesque", sans-serif; font-size: clamp(1.25rem, 2.4vw, 1.65rem); line-height: 1.35; font-weight: 500; }
@media (max-width: 820px) { .values .cols { grid-template-columns: 1fr; } }

/* Values list on a plum background (About page) */
.values .rows { border-color: var(--gold); }
.values .rows li { border-color: rgba(255,255,255,.2); grid-template-columns: 8rem 1fr; }
.values .rows h3 { color: var(--gold); }
.values .rows p { color: #eadff0; }

/* ---------- Services list ---------- */
.rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--plum); }
.rows li { display: grid; grid-template-columns: 12rem 1fr; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.rows h3 { margin: 0; color: var(--plum); }
.rows p { margin: 0; color: var(--muted); }
.services .head { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 820px) { .services .head { grid-template-columns: 1fr; } .rows li { grid-template-columns: 1fr; gap: .3rem; } }

/* ---------- Image mosaic ---------- */
.top-bar { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.top-bar h2 { margin: 0; }
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 1; }
.mosaic img:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.mosaic img:nth-child(2), .mosaic img:nth-child(3) { grid-column: span 3; aspect-ratio: 2 / 1; }
.mosaic img:nth-child(n+4) { grid-column: span 2; aspect-ratio: 4 / 3; }
.mosaic.even img:nth-child(n) { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
@media (max-width: 700px) {
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic img:nth-child(n) { grid-column: span 1; grid-row: auto; aspect-ratio: 1; }
  .mosaic img:nth-child(1) { grid-column: span 2; aspect-ratio: 4 / 3; }
  .mosaic.even img:nth-child(1) { grid-column: span 1; aspect-ratio: 1; }
}

/* ---------- Team ---------- */
.group-title { font-size: 1.1rem; color: var(--plum); border-bottom: 2px solid var(--gold); display: inline-block; padding-bottom: .2rem; margin: 2.5rem 0 1.2rem; }
.people { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.people.lg { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--line); margin-bottom: .8rem; }
.person h4 { margin: 0; font-size: 1.1rem; }
.person p { margin: .1rem 0 0; font-size: .95rem; color: var(--muted); }
.team-intro { color: var(--muted); font-size: 1.12rem; margin-bottom: 1rem; }

/* Team with bios (About page) */
.bios { display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.bio { display: grid; grid-template-columns: 130px 1fr; gap: 1.2rem; align-items: start; }
.bio img { width: 130px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--line); }
.bio h4 { margin: 0; font-size: 1.15rem; }
.bio .role { color: var(--plum); font-weight: 600; font-size: .95rem; margin: .1rem 0 .6rem; }
.bio p { font-size: .98rem; color: var(--muted); margin: 0; }
@media (max-width: 480px) { .bio { grid-template-columns: 96px 1fr; } .bio img { width: 96px; } }

/* ---------- Remembrance band ---------- */
.remember { background: var(--plum-deep); color: #fff; }
.remember p { color: #d8c9de; }

/* ---------- Volunteer ---------- */
.vol-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.5rem, 4vw, 2.2rem); }
.vol-card img { border-radius: var(--radius); margin-bottom: 1.2rem; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.focus-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.focus-list li { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; align-items: center; }
.focus-list img { width: 110px; height: 80px; object-fit: cover; border-radius: 10px; }
.focus-list span { font-weight: 600; }

/* ---------- Facebook reels ---------- */
.reel-row { display: flex; gap: 1.2rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory; }
.reel-row iframe { flex: 0 0 auto; border: 0; border-radius: var(--radius); scroll-snap-align: start; background: var(--line); }

/* ---------- Donate band ---------- */
.donate-band { background: var(--gold); color: var(--plum-deep); text-align: center; }
.donate-band .wrap { display: flex; flex-direction: column; align-items: center; }
.donate-band h2 { max-width: 18ch; }
.donate-band p { margin-inline: auto; font-size: 1.15rem; }

/* ---------- Feature rows (Creatives, Training) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: clamp(2rem, 5vw, 3.5rem) 0; border-bottom: 1px solid var(--line); }
.feature:first-child { padding-top: 0; }
.feature:last-child { border-bottom: 0; padding-bottom: 0; }
.feature:nth-child(even) .feature-img { order: 2; }
.feature-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; background: var(--line); }
.feature h2 { margin-bottom: .3em; }
.feature .sub { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--plum); line-height: 1.25; margin: 0 0 .8rem; }
.feature .meta { font-size: .95rem; color: var(--muted); margin-bottom: 1.2rem; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature:nth-child(even) .feature-img { order: 0; } }

/* ---------- Blog ---------- */
.post { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.post img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--line); }
.post .date { display: inline-block; font-size: .9rem; font-weight: 600; color: #fff; background: var(--leaf); border-radius: 999px; padding: .1rem .75rem; margin-bottom: .6rem; }
.post h2 { font-size: 1.5rem; margin-bottom: .3em; }
.post .sub { font-weight: 600; color: var(--plum); margin: 0 0 .6rem; max-width: 60ch; }
.post p { color: var(--muted); }
.post ul { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--muted); }
.post.latest { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-top: 0; }
.post.latest h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
@media (max-width: 760px) { .post, .post.latest { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- Art gallery + lightbox ---------- */
.gallery-grid { columns: 3 260px; column-gap: 1rem; }
.gallery-grid a { display: block; margin-bottom: 1rem; break-inside: avoid; border-radius: var(--radius); overflow: hidden; background: var(--line); position: relative; }
.gallery-grid img { width: 100%; height: auto; transition: transform .35s; }
.gallery-grid a:hover img { transform: scale(1.03); }
dialog.lb { border: 0; padding: 0; background: transparent; width: 100%; max-width: 100vw; height: 100%; max-height: 100vh; color: #fff; }
dialog.lb::backdrop { background: rgba(24,10,31,.94); }
.lb-inner { height: 100%; display: grid; place-items: center; padding: 3.5rem 1rem; }
.lb-inner img { max-width: min(92vw, 1100px); max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lb button { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 1.5rem; cursor: pointer; }
.lb button:hover { background: rgba(255,255,255,.28); }
.lb .lb-close { top: 1rem; right: 1rem; }
.lb .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb .lb-count { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; font-size: .95rem; color: #d8c9de; }

/* ---------- Video blog ---------- */
.video-group { padding: 0 0 clamp(2rem, 5vw, 3.5rem); }
.video-group + .video-group { padding-top: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.video-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 1.5rem; }
.video-pair video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); }

/* ---------- Policy tabs and long text ---------- */
[role="tablist"] { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2.5rem; border-bottom: 2px solid var(--line); }
[role="tab"] { font: inherit; font-weight: 600; color: var(--muted); background: none; border: 0; border-bottom: 4px solid transparent; padding: .8rem 1.2rem; margin-bottom: -2px; cursor: pointer; }
[role="tab"]:hover { color: var(--plum); }
[role="tab"][aria-selected="true"] { color: var(--plum); border-bottom-color: var(--gold); }
.js [role="tabpanel"][hidden] { display: none; }
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.2em; font-size: 1.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.8em 0 .4em; color: var(--plum); font-size: 1.1rem; }
.prose h4 { margin: 1.2em 0 .3em; font-size: 1rem; font-weight: 700; }
.prose ul { margin: 0 0 1em; padding-left: 1.3rem; }
.prose li { margin-bottom: .3em; }
.prose .stamp { color: var(--muted); font-size: .95rem; }
.docs { margin-top: 2.5rem; padding: 1.5rem 1.8rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; max-width: 74ch; }
.docs h3 { margin-top: 0; }
.docs ul { margin: 0; padding-left: 1.2rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form label { display: block; font-weight: 600; margin-bottom: .3rem; }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid var(--line); border-radius: 12px; padding: .8rem 1rem;
}
.form input:focus, .form textarea:focus { border-color: var(--plum); outline: none; box-shadow: 0 0 0 3px rgba(242,182,50,.45); }
.form textarea { min-height: 10rem; resize: vertical; }
.form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { border-radius: 14px; padding: 1rem 1.3rem; margin-bottom: 1.5rem; max-width: 60ch; }
.notice.ok { background: #e6f4ec; border: 2px solid var(--leaf); }
.notice.err { background: #fdeceb; border: 2px solid #b3261e; }
.notice ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.contact-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.2rem; }
.contact-list .label { display: block; font-weight: 700; color: var(--plum); }
.contact-list address { font-style: normal; }
.contact-list a { font-size: 1.15rem; }

/* ---------- Donate page ---------- */
.donate-box { background: #fff; border: 2px solid var(--plum); border-radius: 22px; padding: clamp(1.5rem, 4vw, 2.5rem); text-align: center; max-width: 30rem; }
.donate-box img { margin: 0 auto 1.2rem; max-width: 220px; }
#donate-button { display: inline-block; }

/* ---------- Footer ---------- */
footer.site { background: var(--plum-deep); color: #d8c9de; padding: 0 0 2rem; }
footer.site > .wrap { padding-top: 3.5rem; }
footer.site h2 { color: #fff; font-size: 1.15rem; margin-bottom: .8rem; }
footer.site a { color: #fff; }
footer.site a:hover { color: var(--gold); }
.foot-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
.foot-donate { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; text-decoration: none; }
.foot-donate img { width: 96px; height: 96px; border-radius: 10px; background: #fff; }
.foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.foot-contact .label { display: block; font-size: .85rem; color: var(--gold); font-weight: 600; }
.foot-contact address { font-style: normal; }
.funders { margin-top: 2.5rem; text-align: center; }
.funders-panel { display: inline-block; background: #fff; border-radius: 18px; padding: 1rem 1.5rem; }
.funders-panel img { max-width: 100%; width: 368px; height: auto; }
.legal { margin: 2.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .9rem; max-width: none; display: flex; flex-wrap: wrap; gap: .4rem 2rem; justify-content: space-between; }
@media (max-width: 820px) { .foot-cols { grid-template-columns: 1fr; } }

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