/* Elugwu-Umuchienta Nkwumeato — royal theme */
:root {
  --royal: #3B0A10;
  --royal-deep: #2A0609;
  --royal-mid: #6B1520;
  --gold: #D9B45A;
  --gold-dark: #B8892F;
  --gold-text: #8A6420;
  --gold-light: #F2DFA8;
  --parchment: #F7F0E1;
  --parchment-2: #EFE4CC;
  --paper: #FBF6EA;
  --line: #E5D8BC;
  --line-2: #D8C7A2;
  --ink: #1B1A17;
  --ink-2: #3A372F;
  --muted: #5A564D;
  --on-royal: #E9DCC0;
  --on-royal-muted: #CDB98F;
  --serif: "Cinzel", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--parchment); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--royal-mid); }
a:hover { color: var(--royal); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; line-height: 1.15; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-parchment-2 { background: var(--parchment-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.bg-white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* Skip link */
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--royal-deep); padding: 12px 18px; z-index: 50; font-weight: 700; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header { background: var(--royal-deep); border-bottom: 2px solid var(--gold); position: relative; z-index: 20; }
@media (min-width: 961px) { .site-header { position: sticky; top: 0; } }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand-badge { width: 58px; height: 58px; border-radius: 50%; background: var(--parchment); border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; flex: none; }
.brand-badge img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.brand-sub { font-size: 13px; color: var(--on-royal-muted); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.main-nav a { display: inline-block; padding: 10px 0; color: var(--parchment); text-decoration: none; font-size: 15px; font-weight: 500; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--gold); }
.main-nav a[aria-current="page"] { color: var(--gold); font-weight: 700; border-bottom-color: var(--gold); }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--gold); border: 1.5px solid var(--gold); padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; }
  .main-nav { width: 100%; display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 4px; }
  .main-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid #4A1A1E; }
  .main-nav a[aria-current="page"] { border-bottom-color: #4A1A1E; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; text-decoration: none; padding: 15px 26px; border-radius: 2px; font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; border: 1.5px solid transparent; cursor: pointer; font-family: var(--sans); line-height: 1.3; }
.btn-gold { background: var(--gold); color: var(--royal-deep); }
.btn-gold:hover { background: #E6C676; color: var(--royal-deep); }
.btn-outline { border-color: var(--gold); color: var(--parchment); }
.btn-outline:hover { background: rgba(217,180,90,.12); color: #fff; }
.btn-royal { background: var(--royal); color: var(--parchment); }
.btn-royal:hover { background: var(--royal-deep); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Section headings ---------- */
.eyebrow { font-family: var(--serif); font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; }
.on-royal .eyebrow { color: var(--gold); }
.title { font-size: clamp(30px, 4vw, 44px); color: var(--royal); }
.on-royal .title { color: #fff; }
.lead { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.on-royal .lead { color: var(--on-royal); }
.head-center { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-bottom: 44px; }
.head-center .lead { max-width: 680px; }
.head-split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }
.head-split > div { display: flex; flex-direction: column; gap: 12px; }
.divider { display: flex; align-items: center; gap: 14px; }
.divider span { height: 1px; width: 72px; background: var(--gold); }
.divider i { width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); display: block; }
.text-link { font-weight: 600; font-size: 16px; padding: 8px 0; display: inline-block; }
.on-royal .text-link { color: var(--gold-light); }

/* ---------- Royal backgrounds ---------- */
.on-royal { background: var(--royal); color: var(--parchment); position: relative; overflow: hidden; }
.on-royal > .wrap, .on-royal > .narrow { position: relative; }
.pattern-diamonds::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 14 L42 28 L28 42 L14 28 Z' fill='none' stroke='%23D9B45A' stroke-opacity='0.14'/%3E%3C/svg%3E"); pointer-events: none; }
.uli-band { height: 26px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='26'%3E%3Cpath d='M0 13 L10 3 L20 13 L30 23 L40 13' fill='none' stroke='%23D9B45A' stroke-width='1.6'/%3E%3Ccircle cx='20' cy='13' r='2.2' fill='%23D9B45A'/%3E%3C/svg%3E"); position: relative; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(ellipse at 72% 38%, #8E1F2C 0%, var(--royal) 50%, #22040A 100%); }
.hero-rings { position: absolute; right: -180px; top: -160px; width: 900px; height: 900px; opacity: .22; pointer-events: none; }
.hero-inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding: 72px 24px 96px; }
.hero-text { flex: 1.25 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 70px); color: #fff; line-height: 1.05; }
.hero .tagline { font-family: var(--serif); font-size: 22px; color: var(--gold-light); }
.hero p { font-size: 19px; line-height: 1.7; color: var(--on-royal); max-width: 580px; }
.hero-portrait { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.hero-portrait figure { margin: 0; width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.hero-portrait figcaption { text-align: center; font-family: var(--serif); font-size: 15px; letter-spacing: .12em; color: var(--gold-light); }

.page-hero { padding: 64px 0 72px; }
.page-hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.page-hero h1 { font-size: clamp(36px, 4.6vw, 60px); color: #fff; }
.page-hero p { font-size: 19px; color: var(--on-royal); max-width: 720px; line-height: 1.7; }
.back-link { color: var(--gold); font-weight: 600; text-decoration: none; padding: 6px 0; }

/* ---------- Frames ---------- */
.frame { border: 2px solid var(--gold); padding: 10px; background: var(--royal-deep); }
.frame > img, .frame > .photo-missing { border: 1px solid var(--gold); width: 100%; }
.frame-light { border: 2px solid var(--gold-dark); padding: 8px; background: var(--paper); }
.frame-light > .inner { border: 1px solid var(--gold-dark); }
.shadow { box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.photo-missing { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--on-royal-muted); font-size: 14px; background: #2A0609; padding: 16px; }
.photo-missing svg { width: 40px; height: 40px; }
.light .photo-missing { background: var(--parchment); color: var(--muted); }

/* ---------- At a glance ---------- */
.glance { background: var(--royal-deep); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.glance .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.glance div { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.glance strong { font-family: var(--serif); font-size: 30px; color: var(--gold); font-weight: 700; }
.glance span { font-size: 15px; color: var(--on-royal); }

/* ---------- Generic grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > .side { flex: 1 1 320px; min-width: 0; }
.split > .main { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }

.card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card-top { border-top: 4px solid var(--gold-dark); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.card .tag { font-family: var(--serif); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--royal-mid); font-weight: 700; }
.card h3 { font-size: 21px; line-height: 1.3; }
.card .meta { font-size: 14px; color: var(--muted); }
.card img.cover, .card .cover { height: 200px; width: 100%; object-fit: cover; }
.card .cover.photo-missing { background: var(--parchment-2); color: var(--muted); }
.card a.stretch { text-decoration: none; color: inherit; }

.person-card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.person-card .photo { margin: 12px 12px 0; border: 2px solid var(--gold-dark); padding: 6px; background: var(--royal); }
.person-card .photo img, .person-card .photo .photo-missing { border: 1px solid var(--gold); height: 280px; width: 100%; object-fit: cover; object-position: center top; }
.person-card .card-body { text-align: center; align-items: center; }
.person-card h3 { font-size: 20px; }

.mini-card { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); background: #fff; }
.on-royal .mini-card { border-color: #7A4A2E; background: var(--royal-deep); }
.mini-card .avatar { width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--gold); flex: none; overflow: hidden; }
.mini-card .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.mini-card .avatar .photo-missing { width: 100%; height: 100%; padding: 4px; font-size: 11px; }
.light .mini-card .avatar .photo-missing { background: var(--parchment); }
.mini-card .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini-card .who strong { font-family: var(--serif); font-size: 17px; }
.on-royal .mini-card .who strong { color: #fff; }
.mini-card .who span { font-size: 14px; color: var(--muted); }
.mini-card .who .accent { color: var(--royal-mid); font-weight: 600; }
.on-royal .mini-card .who span { color: var(--on-royal-muted); }
.on-royal .mini-card .who .accent { color: var(--gold); }

.group-head { display: flex; align-items: center; gap: 16px; margin: 8px 0 20px; }
.group-head h3 { font-size: 26px; white-space: nowrap; color: var(--royal); }
.on-royal .group-head h3 { color: #fff; }
.group-head span { flex: 1; height: 1px; background: var(--gold); }

/* ---------- Villages / kindreds ---------- */
.village { border: 2px solid var(--gold-dark); padding: 8px; background: var(--paper); }
.village .inner { border: 1px solid var(--gold-dark); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.village-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.village-head h3 { font-size: 30px; color: var(--royal); }
.pill-royal { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--parchment); background: var(--royal); padding: 7px 12px; }
.kindred-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.kindred-list li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); font-size: 17px; font-weight: 500; }
.num { width: 34px; height: 34px; border-radius: 50%; background: var(--royal); color: var(--gold); border: 1.5px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 15px; font-weight: 700; flex: none; }
.kindred-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; }
.kindred-card dt { color: var(--muted); }
.kindred-card dd { margin: 0; font-weight: 600; }

/* ---------- Leadership table ---------- */
.officers { display: flex; flex-direction: column; border: 1px solid #7A4A2E; background: var(--royal-deep); }
.officers div { padding: 14px 18px; border-bottom: 1px solid #5A2A2E; display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.officers div:last-child { border-bottom: none; }
.officers span:first-child { color: var(--on-royal-muted); }
.officers span:last-child { font-weight: 600; text-align: right; }

/* ---------- Festivals ---------- */
.fest { background: var(--royal); color: var(--parchment); padding: 32px 28px; border-top: 4px solid var(--gold); display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.fest:hover { color: var(--parchment); background: #4A0E15; }
.fest .when { font-family: var(--serif); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.fest h3 { font-size: 30px; color: #fff; }
.fest p { color: var(--on-royal); font-size: 16px; line-height: 1.65; }
.fest .next { font-size: 15px; font-weight: 600; color: var(--gold-light); }

/* ---------- Line of kings ---------- */
.kings { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 2px solid var(--royal); }
.kings li { display: flex; flex-direction: column; gap: 10px; padding: 28px 22px 8px; border-left: 1px solid var(--line-2); }
.kings .roman { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--gold-text); }
.kings .name { font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--royal); }
.kings .years { font-size: 15px; color: var(--muted); }

/* ---------- Letter (royal message) ---------- */
.letter { border: 2px solid var(--gold-dark); padding: 10px; background: var(--paper); }
.letter article { border: 1px solid var(--gold-dark); padding: clamp(24px, 6vw, 72px); display: flex; flex-direction: column; gap: 22px; color: #2B2620; font-size: 18px; line-height: 1.8; }
.letter header { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.letter .from { font-family: var(--serif); font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; }
.letter .ruler { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--royal); }
.letter .place { font-family: var(--serif); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.letter h2 { font-size: clamp(22px, 3vw, 32px); color: var(--royal); line-height: 1.3; }
.letter .salutation { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--royal); }
.letter .body p + p { margin-top: 18px; }
.letter .body ul, .letter .body ol { margin: 16px 0; padding-left: 22px; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.pillars li { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold-dark); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.7; }
.pillars strong { font-family: var(--serif); font-size: 17px; color: var(--royal); }
.blessings { display: flex; flex-direction: column; gap: 4px; text-align: center; font-style: italic; color: var(--royal); }
.closing { text-align: center; font-family: var(--serif); font-weight: 700; font-size: 24px; color: var(--gold-text); }
.signature { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; border-top: 1px solid var(--line-2); padding-top: 20px; }
.signature small { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.signature strong { font-family: var(--serif); font-size: 20px; color: var(--royal); }
.signature span { color: var(--muted); font-size: 16px; }

/* ---------- Prose (news articles) ---------- */
.prose { font-size: 18px; line-height: 1.8; color: var(--ink-2); }
.prose p + p { margin-top: 18px; }
.prose h2 { font-size: 28px; color: var(--royal); margin: 32px 0 12px; }
.prose h3 { font-size: 22px; color: var(--royal); margin: 24px 0 8px; }
.prose img { margin: 24px 0; border: 1px solid var(--line); }
.prose ul, .prose ol { padding-left: 22px; }

/* ---------- Banner ---------- */
.banner { border: 2px solid var(--gold-dark); padding: 8px; background: var(--royal-deep); }
.banner .inner { border: 1px solid var(--gold); padding: 48px 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; color: var(--parchment); }
.banner .inner > .copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.banner h2 { font-size: clamp(28px, 3.4vw, 38px); color: #fff; }
.banner p { color: var(--on-royal); font-size: 18px; line-height: 1.65; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chips span { font-size: 16px; padding: 12px 22px; border: 1px solid var(--gold-dark); background: #fff; }

/* ---------- Developer ---------- */
.developer .inner { padding: 40px; display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.developer .portrait { flex: 0 1 340px; min-width: 0; }
.developer .text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.developer h2 { font-size: 30px; color: #fff; }
.developer .kin { color: var(--gold); font-weight: 600; }
.developer p { color: var(--on-royal); }
.developer a { color: var(--gold-light); font-weight: 600; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 14px 16px; border: 1.5px solid #CFC2A6; border-radius: 4px; background: #FFFDF8; color: var(--ink); width: 100%; }
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold-dark); }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--ink-2); }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--royal); }
.hidden { position: absolute; left: -9999px; }
.panel { background: #fff; border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); }
.info-box { background: var(--parchment-2); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-row svg { flex: none; margin-top: 2px; }
.info-row strong { display: block; }
.info-row span { font-size: 15px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--royal-deep); color: var(--on-royal); border-top: 2px solid var(--gold); }
.site-footer .uli-band { opacity: .6; height: 22px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-top: 48px; padding-bottom: 40px; }
.footer-cols > div { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-cols .fname { font-family: var(--serif); font-weight: 700; font-size: 22px; color: #fff; }
.footer-cols h2 { font-family: var(--serif); font-size: 16px; color: var(--gold); }
.footer-cols a { color: var(--on-royal); }
.footer-cols a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid #5A2A2E; padding-top: 20px; padding-bottom: 32px; font-size: 14px; color: var(--on-royal-muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-bottom a { color: var(--gold); }

@media (max-width: 640px) {
  .brand-badge { width: 46px; height: 46px; }
  .brand-badge img { width: 34px; height: 34px; }
  .brand-name { font-size: 15px; }
  .brand-sub { font-size: 12px; }
  .menu-toggle { padding: 8px 12px; }
  .section { padding: 64px 0; }
  .hero-inner { padding: 48px 24px 64px; gap: 40px; }
  .banner .inner { padding: 32px 24px; }
  .developer .inner { padding: 24px; }
  .village .inner { padding: 20px; }
  .officers div { flex-direction: column; gap: 2px; }
  .officers span:last-child { text-align: left; }
}
.mini-card .avatar .photo-missing svg { width: 28px; height: 28px; }
.mini-card .avatar .photo-missing span { display: none; }
