/* ===========================================================
   Mambwe Chiefdom — shared styles
   Palette read directly from the chief's ceremonial regalia:
   scarlet red robe + ceremonial gold cloth on a black / carved-
   hardwood ground, with white relief. Red and gold are the
   ceremonial accents, used with restraint — never as gradient
   washes. Warm hardwood-cream keeps the page calm and readable.
   =========================================================== */
:root{
  --bark:#241a12;          /* carved hardwood / black ground */
  --bark-soft:#46372a;
  --cream:#faf5ec;         /* warm ivory (the white relief, softened) */
  --cream-2:#f1e7d4;
  --scarlet:#c4291f;       /* the robe — primary ceremonial accent */
  --scarlet-deep:#9c1d16;
  --gold:#c8941f;          /* the kente-like cloth — secondary accent */
  --gold-deep:#9a6f12;
  --leaf:#2f5d3a;          /* used only for the living "current chief" mark */
  --leaf-deep:#224a2c;
  --muted:#736654;
  --line:#e0d3bb;
  --maxw:1180px;
  --read:680px;

  /* semantic aliases so existing rules pick up the new accents */
  --clay:var(--scarlet);
  --clay-deep:var(--scarlet-deep);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Inter',system-ui,sans-serif;
  color:var(--bark);background:var(--cream);
  line-height:1.65;-webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{font-family:'Fraunces',Georgia,serif;font-weight:500;line-height:1.1;letter-spacing:-.012em}
a{color:inherit;text-decoration:none}
img,svg{display:block;max-width:100%}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 30px}
.read{max-width:var(--read)}

/* ceremonial hairline — the regalia: scarlet, gold, deep wood-black */
.flagline{height:4px;background:linear-gradient(90deg,
  var(--scarlet) 0 38%, var(--gold) 38% 68%, var(--bark) 68% 100%)}

/* eyebrow / utility label */
.eyebrow{font-size:.74rem;font-weight:600;letter-spacing:.2em;
  text-transform:uppercase;color:var(--clay)}

/* ---------- Header ---------- */
header.site{position:sticky;top:0;z-index:60;
  background:rgba(250,246,238,.9);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:74px}
.brand{display:flex;align-items:center;gap:12px}
.brand .emblem{width:34px;height:34px;flex:none;color:var(--clay)}
.brand .bt{font-family:'Fraunces',serif;font-weight:600;font-size:1.12rem;line-height:1.1}
.brand .bs{font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.menu{display:flex;gap:28px;list-style:none;font-size:.9rem;font-weight:500}
.menu a{color:var(--muted);padding:6px 0;position:relative;transition:color .2s}
.menu a:hover,.menu a.active{color:var(--bark)}
.menu a.active::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;background:var(--clay)}
.burger{display:none;background:none;border:0;font-size:1.5rem;cursor:pointer;color:var(--bark)}

/* ---------- Page hero (interior pages) ---------- */
.phero{padding:72px 0 56px;border-bottom:1px solid var(--line);background:var(--cream-2)}
.phero .eyebrow{margin-bottom:18px}
.phero h1{font-size:clamp(2.4rem,5.4vw,3.8rem);max-width:16ch}
.phero p{margin-top:20px;max-width:58ch;color:var(--muted);font-size:1.08rem}

/* ---------- Sections ---------- */
section.block{padding:88px 0}
.alt{background:var(--cream-2)}
.shead{margin-bottom:48px}
.shead .eyebrow{margin-bottom:14px}
.shead h2{font-size:clamp(1.8rem,3.8vw,2.6rem)}
.shead p{margin-top:14px;color:var(--muted);max-width:60ch}

/* emblem divider */
.emblem-div{display:flex;align-items:center;gap:20px;max-width:var(--maxw);margin:0 auto}
.emblem-div .ln{flex:1;height:1px;background:var(--line)}
.emblem-div svg{width:40px;height:40px;color:var(--clay);opacity:.85}

/* ---------- Buttons ---------- */
.btn{display:inline-block;padding:13px 28px;font-weight:600;font-size:.92rem;border-radius:3px;transition:.2s;cursor:pointer;border:0}
.btn-primary{background:var(--scarlet);color:#fff;box-shadow:inset 0 -3px 0 rgba(0,0,0,.18)}
.btn-primary:hover{background:var(--scarlet-deep)}
.btn-ghost{border:1px solid var(--bark);color:var(--bark);background:transparent}
.btn-ghost:hover{background:var(--bark);color:var(--cream)}

/* ---------- Cards / generic grid ---------- */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:28px}
.card{background:var(--cream);border:1px solid var(--line);border-radius:5px;overflow:hidden;transition:.25s}
.alt .card{background:var(--cream)}
.card:hover{transform:translateY(-3px);border-color:var(--clay);box-shadow:0 12px 30px -18px rgba(44,36,25,.4)}
.card .pad{padding:26px 26px 28px}
.card h3{font-size:1.24rem;margin-bottom:10px}
.card p{color:var(--muted);font-size:.96rem}
.card .more{display:inline-block;margin-top:14px;font-weight:600;font-size:.88rem;color:var(--clay-deep)}
.card .more:hover{color:var(--bark)}

/* ---------- Image frames + placeholders ---------- */
.frame{position:relative;overflow:hidden;background:var(--cream-2)}
.frame img{width:100%;height:100%;object-fit:cover}
.frame.r43{aspect-ratio:4/3}
.frame.r11{aspect-ratio:1/1}
.frame.r169{aspect-ratio:16/9}
.cap{position:absolute;left:0;right:0;bottom:0;padding:16px 18px;
  background:linear-gradient(transparent,rgba(28,22,16,.86));color:var(--cream);font-size:.84rem}
.ph{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;color:var(--clay);
  background:repeating-linear-gradient(45deg,#ece2cd,#ece2cd 11px,#f1e9d9 11px,#f1e9d9 22px)}
.ph svg{width:42px;height:42px;opacity:.55;margin-bottom:8px}
.ph span{font-size:.8rem;font-weight:600;color:var(--clay-deep);padding:0 18px}

/* ---------- Footer ---------- */
footer.site{background:var(--bark);color:var(--cream);padding:66px 0 40px}
.fgrid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.2fr;gap:40px}
footer.site h4{font-size:1.06rem;margin-bottom:16px;display:flex;align-items:center;gap:10px}
footer.site h4 .emblem{width:26px;height:26px;color:var(--gold)}
footer.site p{color:#c8bca6;font-size:.93rem;max-width:32ch}
footer.site .flabel{font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);margin-bottom:16px}
footer.site ul{list-style:none}
footer.site li{margin-bottom:10px}
footer.site a{color:#c8bca6;font-size:.93rem;transition:color .2s}
footer.site a:hover{color:var(--cream)}
footer.site .contact{color:#c8bca6;font-size:.93rem;line-height:1.8}
footer.site .social{display:flex;align-items:center;gap:8px;margin-top:14px;font-size:.9rem;font-weight:600;color:#c8bca6}
footer.site .social svg{width:30px;height:30px;color:var(--gold)}
footer.site .social:hover{color:var(--cream)}
footer.site .social:hover svg{color:var(--cream)}
.fbar{margin-top:48px;padding-top:24px;border-top:1px solid #4a4031;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:.84rem;color:#9b9079}
.fbar .proud{color:var(--gold)}
.fbar .credit a{color:var(--gold);font-weight:600}
.fbar .credit a:hover{color:var(--cream)}

/* ---------- Responsive ---------- */
@media(max-width:900px){
  .grid-3,.grid-2,.fgrid{grid-template-columns:1fr}
  .fgrid{gap:32px}
  .menu{display:none;position:absolute;top:74px;left:0;right:0;flex-direction:column;gap:0;
    background:var(--cream);border-bottom:1px solid var(--line);padding:6px 0}
  .menu.open{display:flex}
  .menu li{padding:0 30px}
  .menu a{display:block;padding:14px 0;border-bottom:1px solid var(--line)}
  .menu li:last-child a{border-bottom:none}
  .menu a.active::after{display:none}
  .burger{display:block}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto}}

/* ---------- Reveal on scroll ----------
   Only hides content once JS has added .js-reveal to <html>, so if
   JS is blocked or slow the content is always visible. */
.js-reveal .reveal{opacity:0;transform:translateY(16px);transition:opacity .7s ease,transform .7s ease}
.js-reveal .reveal.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.js-reveal .reveal{opacity:1;transform:none}}
