/* Batinda Institute — site styles */

:root {
  --ink: #1d1814;
  --ink-soft: #3d3530;
  --muted: #6f655c;
  --paper: #f7f3ec;
  --paper-deep: #efe8dc;
  --card: #fffdf9;
  --line: #ddd4c4;
  --accent: #b5761a;
  --accent-deep: #8a5610;
  --plum: #211a15;
  --plum-soft: #3a2e25;
  --on-dark: #f3eee6;
  --on-dark-muted: #cdbfae;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1160px;
  --read: 680px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

a { color: var(--accent-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 1rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 236, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.site-header .brand-tag { display: none; }
.header-end {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; flex: 1; min-width: 0; flex-wrap: nowrap;
}
@media (min-width: 1101px) {
  .header-end .nav { display: block; }
}
.header-market {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 16px; border-radius: 999px;
  background: var(--accent); color: #fff !important;
  font-weight: 600; font-size: 0.92rem; text-decoration: none;
  white-space: nowrap; box-shadow: 0 8px 18px -12px rgba(138, 86, 16, 0.9);
}
.header-market:hover { background: var(--accent-deep); color: #fff; }
.header-market[aria-current="page"] { box-shadow: inset 0 0 0 2px #fff; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; flex: none;
  border-radius: 50%;
  background: var(--plum);
  color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-tag { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: 8px 11px;
  font-size: 0.92rem; font-weight: 500;
  color: var(--ink-soft); text-decoration: none;
  border-radius: var(--radius);
}
.nav a:hover { color: var(--ink); background: var(--paper-deep); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav .nav-cta a { background: var(--plum); color: var(--on-dark); margin-left: 8px; }
.nav .nav-cta a:hover { background: var(--plum-soft); color: #fff; }
.nav .nav-cta a[aria-current="page"] { box-shadow: none; border-radius: var(--radius); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 9px 12px; cursor: pointer; color: var(--ink);
  font: 500 0.9rem var(--sans);
  align-items: center; gap: 8px;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .2s ease, background .2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .header-end .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .header-end .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; gap: 0; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
  .nav .nav-cta a { margin: 16px 0 0; text-align: center; border-radius: var(--radius); border: 0; }
  .brand-tag { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  font: 600 0.95rem/1 var(--sans);
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: inherit; }
.btn-dark { background: var(--plum); color: var(--on-dark); }
.btn-dark:hover { background: var(--plum-soft); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.arrow-link {
  font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 6px;
}
.arrow-link::after { content: "→"; transition: transform .15s ease; }
.arrow-link:hover::after { transform: translateX(3px); }

/* ---------- Hero ---------- */

/* Photo-backed banners: set the photo per page with style="background-image: url(...)" */
.hero, .page-hero, .photo-band {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  background-color: var(--plum);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  isolation: isolate;
}
.hero::before, .page-hero::before, .photo-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20,15,11,0.92) 0%, rgba(20,15,11,0.74) 45%, rgba(20,15,11,0.30) 100%),
    linear-gradient(0deg, rgba(20,15,11,0.55) 0%, rgba(20,15,11,0) 40%);
}
@media (max-width: 760px) {
  .hero::before, .page-hero::before, .photo-band::before {
    background: linear-gradient(180deg, rgba(20,15,11,0.55) 0%, rgba(20,15,11,0.80) 100%);
  }
}

.hero { min-height: min(86vh, 760px); display: flex; align-items: center; }
.is-home .hero { min-height: min(52vh, 520px); }
.is-home .hero .wrap { padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(36px, 5vw, 64px); }
.hero .wrap { width: 100%; padding-top: clamp(72px, 12vw, 140px); padding-bottom: clamp(72px, 12vw, 140px); }
.hero h1 { color: #fff; max-width: 16ch; font-size: clamp(2.6rem, 6vw, 4.6rem); text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.hero h1 em { font-style: italic; color: #f0c477; }
.hero .eyebrow, .page-hero .eyebrow, .photo-band .eyebrow { color: #f0c477; }
.hero-lede { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.5; color: var(--on-dark); max-width: 54ch; margin: 1.5rem 0 2.25rem; }
.hero-credit { position: absolute; right: 12px; bottom: 8px; font-size: 0.7rem; color: rgba(255,255,255,0.55); }
.hero-credit a { color: inherit; }

.page-hero .wrap { padding-top: clamp(72px, 11vw, 136px); padding-bottom: clamp(56px, 8vw, 100px); }
.page-hero h1 { max-width: 20ch; color: #fff; }
.page-hero .lede { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.35rem); color: var(--on-dark); max-width: 60ch; margin: 1rem 0 0; }
.page-hero .btn-ghost { color: #fff; }

.page-intro { background: var(--paper); border-bottom: 1px solid var(--line); }
.page-intro .wrap { padding-top: clamp(36px, 5vw, 68px); padding-bottom: clamp(28px, 4vw, 48px); }
.page-intro h1 { color: var(--ink); max-width: 20ch; }
.page-intro .lede, .page-intro .hero-lede {
  font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  color: var(--ink-soft); max-width: 62ch; margin: 0.75rem 0 0;
}
.page-intro .btn-row { margin-top: 1.5rem; }
.page-intro .btn-ghost:hover { background: var(--paper-deep); }

.purpose-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.purpose-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 14px;
  padding: 24px 22px 26px;
}
.purpose-card:nth-child(2) { border-top-color: #1f3d32; }
.purpose-card:nth-child(3) { border-top-color: #7a2e1f; }
.purpose-card h3 { font-size: 1.45rem; margin-bottom: 0.45em; }
.purpose-card p { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .purpose-grid { grid-template-columns: 1fr; } }
.statement-ink { color: var(--ink); }
.pillar-dark p, .pillar-dark h3 { color: #fff; }

.photo-band .wrap { padding-top: clamp(80px, 12vw, 150px); padding-bottom: clamp(80px, 12vw, 150px); }
.photo-band h2, .photo-band h3 { color: #fff; }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(48px, 6vw, 72px) 0; }
.section-alt { background: var(--paper-deep); }
.section-dark { background: var(--plum); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #e0b066; }
.section-dark p { color: var(--on-dark); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.section-dark .section-head p { color: var(--on-dark-muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-wide { grid-template-columns: 5fr 7fr; }
@media (max-width: 860px) { .split, .split-wide { grid-template-columns: 1fr; } }

.prose-lg { font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); }
.prose-lg p:first-child::first-letter { }

/* ---------- Pillars / cards ---------- */

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.pillar { background: var(--card); padding: 32px 28px 36px; }
.pillar-num { font-family: var(--serif); font-size: 0.95rem; color: var(--accent-deep); font-style: italic; margin-bottom: 18px; display: block; }
.pillar h3 { font-size: 1.45rem; margin-bottom: 0.4em; }
.pillar p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

/* ---------- Pull quote / statement ---------- */

.statement {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.35;
  font-weight: 400;
  max-width: 42em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.statement em { color: var(--accent-deep); }
.photo-band .statement { color: #fff; }
.photo-band .statement em { color: #e8b866; }

/* ---------- Testimonials ---------- */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
}
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--ink); }
.quote blockquote::before { content: "\201C"; display: block; font-size: 3rem; line-height: 0.6; color: var(--accent); margin-bottom: 10px; }
.quote figcaption { font-size: 0.9rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }

/* ---------- Writing list ---------- */

.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 960px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-list { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; text-decoration: none; color: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 30px -18px rgba(29,24,20,0.35); color: inherit; }
.post-meta { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.post-meta .tag { color: var(--accent-deep); }
.post-card h3 { font-size: 1.45rem; margin-bottom: 0.5em; }
.post-card p { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 1.25em; flex: 1; }
.post-card .arrow-link { margin-top: auto; }

.post-feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit; margin-bottom: 28px;
}
.post-feature:hover { border-color: var(--accent); color: inherit; }
.post-feature-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.post-feature h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.post-feature p { color: var(--ink-soft); }
.post-feature-art { background: var(--plum); color: var(--on-dark); padding: clamp(28px, 4vw, 48px); display: flex; align-items: flex-end; }
.post-feature-art blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.4; }
@media (max-width: 760px) { .post-feature { grid-template-columns: 1fr; } .post-feature-art { order: -1; } }

/* ---------- Article ---------- */

.article-head { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 48px); }
.article-head .wrap { max-width: calc(var(--read) + 2 * var(--gutter) + 120px); }
.article-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.article-standfirst { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.5; color: var(--ink-soft); margin: 1rem 0 1.75rem; }
.byline { display: flex; align-items: center; gap: 14px; font-size: 0.92rem; color: var(--muted); }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.byline strong { color: var(--ink); font-weight: 600; display: block; }

.article-figure { max-width: calc(var(--read) + 2 * var(--gutter) + 120px); margin: 0 auto clamp(32px, 5vw, 56px); padding: 0 var(--gutter); }
.article-figure img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius); }
.article-figure figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

.article-body {
  max-width: calc(var(--read) + 2 * var(--gutter));
  margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 8vw, 96px);
  font-family: var(--serif);
  font-size: clamp(1.13rem, 1.4vw, 1.25rem);
  line-height: 1.72;
  color: #26201b;
}
.article-body h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 2.2em 0 0.7em; }
.article-body > p:first-of-type::first-letter {
  float: left; font-size: 4.1em; line-height: 0.82; padding: 0.06em 0.1em 0 0; color: var(--accent-deep); font-weight: 500;
}
.article-body blockquote {
  margin: 2em 0; padding: 0 0 0 1.4em; border-left: 3px solid var(--accent);
  font-style: italic; font-size: 1.15em; color: var(--ink-soft);
}
.author-note {
  margin-top: 3em; padding: 28px; background: var(--paper-deep); border-radius: var(--radius);
  font-family: var(--sans); font-size: 0.98rem; line-height: 1.6; color: var(--ink-soft);
}
.author-note strong { color: var(--ink); }

.poem { font-family: var(--serif); font-size: clamp(1.13rem, 1.4vw, 1.25rem); line-height: 1.8; }
.poem p { margin-bottom: 1.4em; }
.poem-divider { border: 0; text-align: center; margin: 4em 0; }
.poem-divider::before { content: "\2022  \2022  \2022"; color: var(--accent); letter-spacing: 0.6em; }

.comments {
  max-width: calc(var(--read) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(48px, 7vw, 80px);
}
.comments-inner {
  border-top: 1px solid var(--line);
  padding-top: clamp(36px, 5vw, 56px);
}
.comments .section-head { margin-bottom: 28px; }
.comments-list { display: grid; gap: 20px; margin-bottom: 36px; }
.comments-loading, .comments-empty { color: var(--muted); margin: 0; }
.comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.comment:last-child { border-bottom: 0; }
.comment header {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  align-items: baseline; margin-bottom: 8px;
}
.comment header strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.comment header time { font-size: 0.85rem; color: var(--muted); }
.comment p { margin: 0; color: var(--ink-soft); line-height: 1.65; }
.comment-form {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
}
.comment-form h3 { margin: 0 0 16px; font-size: 1.25rem; }
.comment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) { .comment-grid { grid-template-columns: 1fr; } }
.comment-form .field { display: block; margin-bottom: 16px; font-weight: 600; font-size: 0.92rem; }
.comment-form .field .hint { font-weight: 400; color: var(--muted); }
.comment-form input,
.comment-form textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--ink); font: inherit;
}
.comment-form textarea { resize: vertical; min-height: 120px; }
.comment-hp {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}
.comment-status { margin: 0 0 14px; font-size: 0.95rem; }
.comment-status.is-ok { color: #1a5c38; }
.comment-status.is-err { color: #8b1e1e; }
.comment-form .btn[disabled] { opacity: 0.6; cursor: wait; }

.article-nav {
  max-width: calc(var(--read) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 8vw, 96px);
}
.article-nav-inner { border-top: 1px solid var(--line); padding-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.article-nav a { text-decoration: none; color: var(--ink); }
.article-nav a span { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.article-nav a strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; line-height: 1.3; }
.article-nav a:hover strong { color: var(--accent-deep); }
.article-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .article-nav-inner { grid-template-columns: 1fr; } .article-nav .next { text-align: left; grid-column: 1; } }

/* ---------- Founder ---------- */

.founder-photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: var(--radius); background: var(--paper-deep);
}
.founder-credentials { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 12px; }
.founder-credentials li { padding-left: 28px; position: relative; color: var(--ink-soft); }
.founder-credentials li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 14px; height: 2px; background: var(--accent); }

/* ---------- Services ---------- */

.service {
  display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 64px);
  padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service-label { font-family: var(--serif); font-style: italic; color: var(--accent-deep); font-size: 1.05rem; }
.service h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.service p { color: var(--ink-soft); max-width: 62ch; }
.service ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; }
.service li { padding-left: 24px; position: relative; color: var(--ink); font-size: 0.98rem; }
.service li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 12px; height: 2px; background: var(--accent); }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: 8px; } .service ul { grid-template-columns: 1fr; } }

.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .audience { grid-template-columns: 1fr; } }
.audience-item { border-top: 2px solid var(--accent); padding-top: 20px; }
.audience-item h3 { color: #fff; font-size: 1.3rem; }
.audience-item p { color: var(--on-dark-muted); font-size: 0.98rem; margin: 0; }

/* ---------- CTA band ---------- */

.cta-band { background: var(--accent); color: #fff; }
.cta-band .wrap { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; max-width: 22ch; }
.cta-band p { margin: 0.5rem 0 0; opacity: 0.92; max-width: 52ch; }
.cta-band .btn-dark { background: var(--ink); }
.cta-band .btn-dark:hover { background: #000; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 80px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-detail { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-detail:last-child { border-bottom: 1px solid var(--line); }
.contact-detail h3 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.contact-detail p, .contact-detail a { font-family: var(--serif); font-size: 1.25rem; margin: 0; word-break: break-word; }

.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(181,118,26,0.18); background: #fff; }
.field textarea { min-height: 160px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 16px 0 0; }
.hidden { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: 0.95rem; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 32px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: var(--accent); }
.site-footer .brand-tag { color: var(--on-dark-muted); display: block; }
.footer-about { max-width: 40ch; margin-top: 18px; }
.site-footer h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; font-weight: 600; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; }

/* ---------- Misc ---------- */

.center { text-align: center; }
.mt-lg { margin-top: clamp(32px, 5vw, 56px); }
.notice { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 18px 22px; border-radius: var(--radius); color: var(--ink-soft); }

/* ---------- Blog filters ---------- */

.blog-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 0.92rem var(--sans); padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.search { position: relative; flex: 0 1 300px; }
.search input {
  width: 100%; padding: 10px 14px 10px 38px; font: inherit; font-size: 0.95rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(181,118,26,0.18); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.empty-state { text-align: center; color: var(--muted); padding: 48px 0; }
.post-card-img { margin: -28px -28px 22px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--paper-deep); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-feature-art { background-color: var(--plum); background-position: center; background-size: cover; position: relative; isolation: isolate; }
.post-feature-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20,15,11,0.85), rgba(20,15,11,0.25)); }

/* ---------- Bookshop ---------- */

.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
@media (max-width: 960px) { .book-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .book-grid { grid-template-columns: 1fr; } }

.book { display: flex; flex-direction: column; }
.book-cover-wrap {
  background: var(--paper-deep); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
  display: grid; place-items: center; margin-bottom: 20px; position: relative;
}
.book-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font: 600 0.72rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: var(--ink); color: #fff;
}
.book-badge.soon { background: var(--accent); }
.book-badge.sample { left: auto; right: 14px; background: #fff; color: var(--ink); border: 1px dashed var(--muted); }

/* Typographic book cover (used when a book has no cover image) */
.cover {
  width: min(72%, 230px); aspect-ratio: 2 / 3; border-radius: 3px 6px 6px 3px;
  background: var(--c1, #211a15); color: var(--c2, #f0c477);
  padding: 12% 11%; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: inset 6px 0 0 rgba(0,0,0,0.18), inset 8px 0 0 rgba(255,255,255,0.08), 0 18px 34px -14px rgba(29,24,20,0.55), 0 4px 10px -4px rgba(29,24,20,0.3);
  transition: transform .25s ease;
}
.book:hover .cover { transform: translateY(-4px) rotate(-1deg); }
.cover-rule { width: 34%; height: 2px; background: currentColor; opacity: 0.8; }
.cover-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.15; color: #fff; }
.cover-author { font: 600 0.62rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
img.cover { padding: 0; object-fit: cover; }

.book h3 { font-size: 1.35rem; margin-bottom: 0.25em; }
.book-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.75em; }
.book-desc { color: var(--ink-soft); font-size: 0.98rem; flex: 1; }
.book-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.book-price { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.book-format { display: block; font: 500 0.8rem var(--sans); color: var(--muted); }
.btn-sm { padding: 11px 18px; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.shop-banner { display: flex; gap: 14px; align-items: center; margin-bottom: 32px; }
.shop-banner.success { border-left-color: #3f8a4f; }

/* Cart button + drawer */
.cart-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; font: 600 0.95rem var(--sans);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,0.5);
}
.cart-fab[hidden] { display: none; }
.cart-count { background: var(--accent); border-radius: 999px; min-width: 24px; height: 24px; padding: 0 7px; display: grid; place-items: center; font-size: 0.8rem; }

.drawer-backdrop { position: fixed; inset: 0; background: rgba(20,15,11,0.5); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(420px, 100vw);
  background: var(--paper); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease; box-shadow: -20px 0 40px -20px rgba(0,0,0,0.4);
}
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.5rem; margin: 0; }
.icon-btn { background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); font-size: 1.5rem; line-height: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line strong { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; line-height: 1.3; }
.cart-line .meta { color: var(--muted); font-size: 0.88rem; }
.qty { justify-self: start; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.qty button { background: none; border: 0; width: 32px; height: 32px; cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.qty span { min-width: 24px; text-align: center; font-weight: 600; }
.remove { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 0.85rem; padding: 0; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--card); }
.drawer-total { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 1.35rem; margin-bottom: 4px; }
.drawer-foot .note { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.drawer-foot .btn { width: 100%; justify-content: center; }
.cart-error { color: #a33a2a; font-size: 0.9rem; margin: 12px 0 0; }

.home-books { display: flex; justify-content: center; align-items: flex-end; gap: 0; min-height: 300px; }
.home-books .cover { width: clamp(110px, 12vw, 170px); flex: none; padding: 22px 16px; }
.home-books .cover-title { font-size: clamp(0.85rem, 1.1vw, 1.1rem); }
.home-books .cover:nth-child(1) { transform: rotate(-6deg) translateX(10px); }
.home-books .cover:nth-child(2) { transform: translateY(-18px); z-index: 1; width: clamp(124px, 13.5vw, 190px); }
.home-books .cover:nth-child(3) { transform: rotate(6deg) translateX(-10px); }
@media (max-width: 560px) { .home-books .cover { width: 120px; padding: 16px 12px; } .home-books .cover-title { font-size: 0.85rem; } .home-books .cover:nth-child(2) { width: 136px; } .home-books { min-height: 220px; } }

/* Poetry posts: more air between stanzas */
.poem-body { line-height: 1.85; }
.poem-body p { margin-bottom: 1.4em; }
.poem-body hr { border: 0; text-align: center; margin: 3.5em 0; }
.poem-body hr::before { content: "\2022  \2022  \2022"; color: var(--accent); letter-spacing: 0.6em; }
.article-body img { border-radius: var(--radius); margin: 1.5em 0; }
.article-body a { color: var(--accent-deep); }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1.1em; }

/* Research */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}
@media (max-width: 760px) { .research-grid { grid-template-columns: 1fr; } }
.research-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.research-card h3 { font-size: 1.45rem; margin: 0; }
.research-card h3 a { color: inherit; text-decoration: none; }
.research-card h3 a:hover { color: var(--accent-deep); }
.research-card p { color: var(--ink-soft); margin: 0 0 8px; flex: 1; }
.research-card { border-top: 4px solid var(--accent); transition: transform .18s ease, box-shadow .18s ease; }
.research-card:nth-child(2) { border-top-color: #1f3d32; }
.research-card:nth-child(3) { border-top-color: #7a2e1f; }
.research-card:nth-child(4) { border-top-color: #243044; }
.research-card:nth-child(5) { border-top-color: #8a5610; }
.research-card:nth-child(6) { border-top-color: #5c3d2e; }
.research-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -22px rgba(29, 24, 20, 0.45); }
.research-card.is-featured { box-shadow: 0 16px 40px -24px rgba(29, 24, 20, 0.45); }

.page-research .hero::before,
.page-research .page-hero::before {
  background: linear-gradient(100deg, rgba(14, 40, 32, 0.94) 0%, rgba(14, 40, 32, 0.62) 58%, rgba(14, 40, 32, 0.22) 100%);
}
.page-library .page-hero::before {
  background: linear-gradient(100deg, rgba(18, 28, 48, 0.94) 0%, rgba(18, 28, 48, 0.62) 58%, rgba(18, 28, 48, 0.2) 100%);
}
.page-blog .page-hero::before {
  background: linear-gradient(100deg, rgba(72, 28, 16, 0.94) 0%, rgba(72, 28, 16, 0.6) 58%, rgba(72, 28, 16, 0.18) 100%);
}
.page-about .page-hero::before {
  background: linear-gradient(100deg, rgba(42, 24, 48, 0.94) 0%, rgba(42, 24, 48, 0.6) 58%, rgba(42, 24, 48, 0.18) 100%);
}
.page-contact .page-hero::before {
  background: linear-gradient(100deg, rgba(28, 36, 32, 0.94) 0%, rgba(28, 36, 32, 0.6) 58%, rgba(28, 36, 32, 0.18) 100%);
}

.market-band {
  background:
    radial-gradient(700px 280px at 100% 0%, rgba(181, 118, 26, 0.35), transparent 60%),
    #16120e;
  color: #f6efe4;
  padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 6vw, 72px);
}
.market-band h2, .market-band h3 { color: #fff; }
.market-band .eyebrow { color: #f0c477; }
.market-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 28px; flex-wrap: wrap;
}
.market-head h2 { margin: 0; max-width: 16ch; }
.market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.market-card {
  display: flex; flex-direction: column; gap: 14px;
  background: #241e18;
  border: 1px solid rgba(240, 196, 119, 0.18);
  border-radius: 16px;
  padding: 14px 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, border-color .2s ease;
}
.market-card:hover { transform: translateY(-6px); border-color: #f0c477; color: inherit; }
.market-card .cover { width: 100%; max-width: none; aspect-ratio: 3 / 4; }
.market-card .cover-title { font-size: clamp(1rem, 1.4vw, 1.2rem); }
.market-meta h3 { font-size: 1.15rem; margin: 0 0 4px; }
.market-meta p { margin: 0; color: #cbbba6; font-size: 0.92rem; }
.market-meta .book-cat { color: #f0c477; }
.market-buy { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 12px; }
.market-buy strong { font-family: var(--serif); font-size: 1.45rem; color: #f0c477; font-weight: 500; }
.market-buy span { color: #cbbba6; font-size: 0.82rem; }
@media (max-width: 980px) {
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .market-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 12px; padding-bottom: 8px;
  }
  .market-card { flex: 0 0 78%; scroll-snap-align: start; }
}

.pulse-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.pulse-card { padding: clamp(28px, 4vw, 40px); color: #fff; min-height: 220px; display: flex; flex-direction: column; }
.pulse-card span { font-family: var(--serif); font-style: italic; opacity: 0.8; }
.pulse-card h2 { color: inherit; font-size: clamp(1.5rem, 2vw, 1.9rem); margin: 10px 0 8px; }
.pulse-card p { margin: 0 0 16px; flex: 1; }
.pulse-card a { color: inherit; font-weight: 600; }
.pulse-forest { background: #1c3b31; }
.pulse-gold { background: #c4892a; color: #1d140c; }
.pulse-gold a { color: #1d140c; }
.pulse-clay { background: #7a2e1f; }
@media (max-width: 800px) { .pulse-grid { grid-template-columns: 1fr; } }

.market-mast {
  background:
    radial-gradient(900px 420px at 110% -20%, rgba(240, 196, 119, 0.45), transparent 55%),
    linear-gradient(135deg, #1a120c 0%, #6d4214 72%, #c4892a 140%);
  color: #fff8ee;
  padding: clamp(48px, 7vw, 88px) 0;
}
.market-mast h1 { color: #fff; font-size: clamp(3rem, 7vw, 5.4rem); margin: 0; }
.market-mast .eyebrow { color: #f0c477; }
.market-mast .lede { color: #f6efe4; max-width: 42ch; margin-top: 12px; font-family: var(--serif); font-size: 1.25rem; }
.market-mast-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 40px; align-items: end; }
.market-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.market-points li {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 14px 16px;
  display: grid; gap: 2px;
}
.market-points strong { color: #fff; font-size: 1rem; }
.market-points span { color: #f0e2cc; font-size: 0.92rem; }
@media (max-width: 800px) { .market-mast-grid { grid-template-columns: 1fr; } }

.page-shop .section { background: #fbf6ee; }
.book { background: #fffdf9; border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 18px; }
.book-cover-wrap { border-radius: 12px; }
.research-question {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.4rem;
  border-left: 3px solid var(--accent);
  background: rgba(240, 196, 119, 0.12);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
}
.research-question p { margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 28px); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.pillar-dark { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }
.value-block { max-width: 72ch; }
.wrap.narrow { max-width: 760px; }
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.shop-filter select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--card);
  font: 600 0.95rem var(--sans);
}
.shop-count { color: var(--muted); margin: 0; font-size: 0.95rem; }
.book-cat {
  display: inline-block;
  font: 600 0.72rem var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 6px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Bakiga Studies, biography and gallery ---------- */
.hero-compact { min-height: min(62vh, 560px); }
.hero-compact h1 { max-width: 18ch; }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery-item { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--plum-soft); aspect-ratio: 4 / 3; }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-item:nth-child(n+6) { grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px;
  font-size: 0.85rem; color: #fff; background: linear-gradient(0deg, rgba(20,15,11,0.85), rgba(20,15,11,0));
}
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-item:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
  .gallery-item:nth-child(n+6) { grid-column: auto; aspect-ratio: 4 / 3; }
}

.photo-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: clamp(120px, 20vw, 240px); background: var(--plum); }
.photo-strip a { display: block; overflow: hidden; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease, opacity .2s; }
.photo-strip a:hover img { transform: scale(1.05); }
@media (max-width: 600px) { .photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; } .photo-strip a { aspect-ratio: 4 / 3; } }

.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-soft); font-size: 0.98rem; }
.tag-list-sm { gap: 8px; }
.tag-list-sm li { padding: 5px 12px; font-size: 0.86rem; }

.founder-head { max-width: 780px; margin-bottom: clamp(24px, 4vw, 40px); }
.founder-role { font-family: var(--serif); font-size: 1.25rem; color: var(--accent-deep); margin: 0.25rem 0 0; }
.founder-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.founder-lead { font-size: 1.08em; line-height: 1.6; color: var(--ink); }
.founder-aside { display: grid; gap: 18px; position: sticky; top: 96px; }
.founder-card { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 20px 20px 22px; }
.founder-card:nth-child(2) { border-top-color: #1f3d32; }
.founder-card:nth-child(3) { border-top-color: #7a2e1f; }
.founder-card h3 { font-size: 1.1rem; margin: 0 0 12px; }
.founder-card .founder-credentials { margin: 0; gap: 10px; font-size: 0.95rem; }
@media (max-width: 960px) { .founder-body { grid-template-columns: 1fr; } .founder-aside { position: static; } }

.page-bakiga .hero { background-position: center 60%; }
.page-bakiga .hero::before {
  background: linear-gradient(100deg, rgba(14, 40, 32, 0.80) 0%, rgba(14, 40, 32, 0.38) 55%, rgba(14, 40, 32, 0) 100%);
}

/* =====================================================================
   Institute structure: two centres, each with its own colour
   Radical Social Work Studies = oxblood, Centre for Bakiga Studies = forest
   ===================================================================== */
:root {
  --sw: #7a2e1f;
  --sw-deep: #3f1610;
  --sw-tint: #f6e7e2;
  --bk: #1f4a3a;
  --bk-deep: #10302a;
  --bk-tint: #e3eee8;
  --gold: #f0c477;
}

section[id] { scroll-margin-top: 140px; }

/* ---------- Utility bar + header ---------- */
.topbar { background: var(--plum); color: var(--on-dark-muted); font-size: 0.8rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar-tag { letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-links { display: flex; align-items: center; gap: 18px; flex: none; }
.topbar a { color: var(--on-dark-muted); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-market {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--plum) !important; background: var(--gold);
  padding: 4px 12px; border-radius: 999px; font-weight: 600;
}
.topbar-market:hover { background: #fff; }
@media (max-width: 760px) { .topbar-tag, .topbar-links a[href^="mailto"] { display: none; } .topbar .wrap { justify-content: flex-end; } }

.site-header { background: rgba(255, 253, 249, 0.96); box-shadow: 0 1px 0 var(--line), 0 10px 30px -28px rgba(29,24,20,0.6); border-bottom: 0; }
.site-header .wrap { min-height: 76px; }
@media (min-width: 1240px) { .site-header .brand-tag { display: block; } }
.brand-mark { background: linear-gradient(135deg, var(--sw) 0%, var(--plum) 55%, var(--bk) 100%); box-shadow: inset 0 0 0 2px rgba(240,196,119,0.55); }
.nav a { font-size: 0.9rem; padding: 8px 10px; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.page-research .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--sw); }
.page-bakiga .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--bk); }
.nav-mobile-only { display: none; }
@media (max-width: 1100px) { .nav-mobile-only { display: block; } }

/* ---------- Buttons ---------- */
.btn-sw { background: var(--sw); color: #fff; }
.btn-sw:hover { background: var(--sw-deep); color: #fff; }
.btn-bk { background: var(--bk); color: #fff; }
.btn-bk:hover { background: var(--bk-deep); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 0.88rem; }
.eyebrow-sw { color: var(--sw); }
.eyebrow-bk { color: var(--bk); }

/* ---------- Home hero ---------- */
.hero-home { min-height: min(74vh, 680px) !important; }
.hero-home h1 { max-width: 18ch; }
.hero-home::before {
  background:
    linear-gradient(90deg, rgba(20,15,11,0.94) 0%, rgba(20,15,11,0.78) 48%, rgba(20,15,11,0.30) 100%),
    linear-gradient(0deg, rgba(20,15,11,0.5) 0%, rgba(20,15,11,0) 45%);
}

/* ---------- Centre hero ---------- */
.centre-hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--on-dark); background-color: var(--plum);
  background-size: cover; background-position: center;
}
.centre-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.centre-hero.is-sw::before { background: linear-gradient(100deg, rgba(63,22,16,0.96) 0%, rgba(63,22,16,0.82) 45%, rgba(63,22,16,0.35) 100%); }
.centre-hero.is-bk::before { background: linear-gradient(100deg, rgba(16,48,42,0.95) 0%, rgba(16,48,42,0.72) 45%, rgba(16,48,42,0.15) 100%); }
.centre-hero .wrap { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 104px); }
.centre-hero-sm .wrap { padding-bottom: clamp(40px, 6vw, 64px); }
.centre-hero h1 { color: #fff; max-width: 18ch; font-size: clamp(2.4rem, 5.4vw, 4.2rem); margin-bottom: 0.3em; }
.centre-hero-sm h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 24ch; }
.centre-hero h1 em { color: var(--gold); font-style: italic; }
.centre-hero .hero-lede { margin: 0.75rem 0 2rem; }
.centre-hero-sm .hero-lede { margin-bottom: 0; }
.centre-hero .btn-ghost { color: #fff; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-bottom: clamp(28px, 4vw, 48px); }
.crumbs a { color: rgba(255,255,255,0.85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.centre-badge {
  display: inline-block; margin: 0 0 1.1rem; padding: 6px 12px;
  border: 1px solid rgba(240,196,119,0.6); border-radius: 999px;
  font: 600 0.74rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}

/* ---------- Centre sub-navigation ---------- */
.centre-nav { position: sticky; top: 76px; z-index: 40; background: var(--card); border-bottom: 1px solid var(--line); }
.centre-nav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.centre-nav .wrap::-webkit-scrollbar { display: none; }
.centre-nav a {
  flex: none; padding: 15px 14px; font-size: 0.9rem; font-weight: 500;
  color: var(--ink-soft); text-decoration: none; border-bottom: 3px solid transparent;
}
.centre-nav.is-sw a:hover { color: var(--sw); border-bottom-color: var(--sw); }
.centre-nav.is-bk a:hover { color: var(--bk); border-bottom-color: var(--bk); }

/* ---------- Coloured bands ---------- */
.centre-band.is-sw { background: var(--sw-deep); color: var(--on-dark); }
.centre-band.is-bk { background: var(--bk-deep); color: var(--on-dark); }
.centre-band .eyebrow { color: var(--gold); }
.centre-band h2, .centre-band h3 { color: #fff; }
.centre-band p { color: var(--on-dark); }
.centre-band .section-head p { color: var(--on-dark-muted); }

.research-grid.theme-sw .research-card { border-top-color: var(--sw); }
.research-grid.theme-bk .research-card { border-top-color: var(--bk); }
.research-grid.theme-sw .research-card h3 a:hover { color: var(--sw); }
.research-grid.theme-bk .research-card h3 a:hover { color: var(--bk); }
.theme-sw .arrow-link, .page-research .arrow-link { color: var(--sw); }
.theme-bk .arrow-link, .page-bakiga .arrow-link { color: var(--bk); }
.purpose-grid.theme-bk .purpose-card { border-top-color: var(--bk); }
.page-research .research-question { border-left-color: var(--sw); }
.page-bakiga .research-question { border-left-color: var(--bk); }

/* ---------- The two centres, side by side ---------- */
.centre-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
@media (max-width: 860px) { .centre-panels { grid-template-columns: 1fr; } }
.centre-panel {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 48px -36px rgba(29,24,20,0.5);
}
.centre-panel-img { display: block; height: clamp(180px, 22vw, 250px); background-size: cover; background-position: center; position: relative; }
.centre-panel-img::after { content: ""; position: absolute; inset: 0; mix-blend-mode: multiply; opacity: 0.35; }
.centre-panel.is-sw .centre-panel-img::after { background: var(--sw); }
.centre-panel.is-bk .centre-panel-img::after { background: var(--bk); }
.centre-panel.is-sw { border-top: 5px solid var(--sw); }
.centre-panel.is-bk { border-top: 5px solid var(--bk); }
.centre-panel-body { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; flex: 1; }
.centre-num { font: 600 0.74rem var(--sans); letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 0.6rem; }
.is-sw .centre-num { color: var(--sw); }
.is-bk .centre-num { color: var(--bk); }
.centre-panel h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: 0.4em; }
.centre-panel h3 a { color: inherit; text-decoration: none; }
.centre-panel > .centre-panel-body > p { color: var(--ink-soft); }
.centre-links { list-style: none; margin: 0.5rem 0 1.75rem; padding: 0; border-top: 1px solid var(--line); flex: 1; }
.centre-links li { border-bottom: 1px solid var(--line); }
.centre-links a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; color: var(--ink); text-decoration: none; font-size: 0.97rem; }
.centre-links a::after { content: "→"; color: var(--muted); transition: transform .15s ease; }
.centre-links a:hover::after { transform: translateX(3px); }
.is-sw .centre-links a:hover { color: var(--sw); }
.is-bk .centre-links a:hover { color: var(--bk); }
.centre-panel .btn { align-self: flex-start; }

.centre-switch { padding-top: 0; }
.centre-switch-link {
  display: grid; gap: 6px; padding: clamp(24px, 3vw, 36px);
  border-radius: 12px; text-decoration: none; color: #fff;
}
.centre-switch-link.is-sw { background: var(--sw-deep); }
.centre-switch-link.is-bk { background: var(--bk-deep); }
.centre-switch-link .eyebrow { color: var(--gold); margin: 0; }
.centre-switch-link strong { font: 500 clamp(1.5rem, 2.6vw, 2rem)/1.2 var(--serif); }
.centre-switch-link strong::after { content: "  →"; color: var(--gold); }
.centre-switch-link span:last-child { color: var(--on-dark-muted); max-width: 70ch; }
.centre-switch-link:hover { color: #fff; filter: brightness(1.12); }

/* ---------- Latest writing ---------- */
.latest-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
@media (max-width: 900px) { .latest-cols { grid-template-columns: 1fr; } }
.latest-col { border-top: 3px solid var(--ink); padding-top: 14px; display: flex; flex-direction: column; }
.latest-col.is-sw { border-top-color: var(--sw); }
.latest-col.is-bk { border-top-color: var(--bk); }
.latest-h { font: 600 0.8rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 4px; }
.latest-h a { color: var(--ink); text-decoration: none; }
.latest-col.is-sw .latest-h a { color: var(--sw); }
.latest-col.is-bk .latest-h a { color: var(--bk); }
.latest-col .arrow-link { margin-top: 16px; }
.latest-col.is-sw .arrow-link { color: var(--sw); }
.latest-col.is-bk .arrow-link { color: var(--bk); }
.post-row { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.post-row time { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }
.post-row strong { font: 500 1.12rem/1.3 var(--serif); }
.post-row span { font-size: 0.92rem; color: var(--ink-soft); }
.post-row:hover strong { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Service cards ---------- */
.service-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .service-cards { grid-template-columns: 1fr; } }
.service-card {
  display: flex; flex-direction: column; gap: 8px; padding: 26px 24px;
  border: 1px solid rgba(255,255,255,0.14); border-radius: 10px;
  background: rgba(255,255,255,0.04); color: var(--on-dark); text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.service-card:hover { background: rgba(255,255,255,0.09); transform: translateY(-2px); color: #fff; }
.service-card h3 { color: #fff; margin: 0; }
.service-card p { color: var(--on-dark-muted); font-size: 0.97rem; flex: 1; margin: 0 0 8px; }
.service-num { font: 600 0.8rem var(--sans); color: var(--gold); letter-spacing: 0.1em; }
.service-card .arrow-link { color: var(--gold); }
.service-cards-light .service-card { background: var(--card); border-color: var(--line); color: var(--ink); border-top: 4px solid var(--sw); }
.service-cards-light .service-card:hover { background: #fff; box-shadow: 0 16px 36px -24px rgba(29,24,20,0.45); }
.service-cards-light .service-card h3 { color: var(--ink); }
.service-cards-light .service-card p { color: var(--ink-soft); }
.service-cards-light .service-num, .service-cards-light .arrow-link { color: var(--sw); }

/* ---------- Founder ---------- */
.founder-band-inner { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 760px) { .founder-band-inner { grid-template-columns: 1fr; } .founder-band-photo { max-width: 240px; } }
.founder-band-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 12px; box-shadow: 0 30px 60px -40px rgba(29,24,20,0.7); }
.founder-band .prose-lg { color: var(--ink-soft); }
.founder-head { display: flex; align-items: center; gap: clamp(18px, 3vw, 32px); }
.founder-portrait { width: clamp(96px, 12vw, 148px); height: clamp(96px, 12vw, 148px); border-radius: 50%; object-fit: cover; object-position: center 20%; flex: none; box-shadow: 0 0 0 4px var(--card), 0 0 0 5px var(--line); }
.founder-head h2 { margin-bottom: 0.15em; }

/* ---------- Tags by centre ---------- */
.post-meta .tag-bakiga { color: var(--bk); }
.post-meta .tag-social-work { color: var(--sw); }
.page-bakiga .article-head { border-top: 5px solid var(--bk); }
.page-research .article-head { border-top: 5px solid var(--sw); }
.post-meta a.tag { text-decoration: none; }

/* ---------- Footer ---------- */
.footer-cols { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
@media (max-width: 960px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-cols .btn { margin-top: 8px; color: #fff; }
.footer-cols .btn:hover { text-decoration: none; }
.site-footer .footer-h { display: flex; align-items: center; gap: 8px; }
.site-footer .footer-h::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); }
.site-footer .footer-h-sw::before { background: #c4553e; }
.site-footer .footer-h-bk::before { background: #4f9a7c; }

/* ---------- Marketplace photo covers ---------- */
.cover-photo { padding: 0; background: var(--paper-deep); overflow: hidden; }
.cover-photo img { width: 100%; height: 100%; object-fit: cover; }
.nav a, .topbar-links a { white-space: nowrap; }
@media (max-width: 1240px) { .site-header .brand-tag { display: none; } }

/* ---------- Tighter vertical rhythm ---------- */
.section { padding: clamp(48px, 6.5vw, 84px) 0; }
.section-tight { padding: clamp(36px, 4.5vw, 56px) 0; }
.section-head { margin-bottom: clamp(24px, 3.5vw, 40px); }
.hero-home { min-height: min(62vh, 580px) !important; }
.hero .wrap { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.centre-hero .wrap { padding-bottom: clamp(44px, 6vw, 80px); }
.centre-switch { padding: 0 0 clamp(40px, 5vw, 64px); }
/* In two-column sections the heading travels down beside long text instead of leaving an empty column */
@media (min-width: 861px) {
  .split-wide > :first-child { position: sticky; top: 150px; align-self: start; }
}

.book-credit { font-size: 0.78rem; color: var(--muted); margin: -0.4rem 0 0.8rem; }
.book-cover-wrap img.cover { object-fit: cover; background: #fff; }
.market-group + .market-group { margin-top: clamp(32px, 4vw, 48px); }
.market-sub { font: 600 0.82rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.market-sub span { font-size: 0.7rem; letter-spacing: 0.08em; color: var(--on-dark-muted); border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 2px 8px; }
.book-credit a { color: inherit; }
/* Photographed items (crafts, tools) fill the frame instead of sitting as a narrow book cover */
.book-cover-wrap.is-photo { padding: 0; overflow: hidden; }
.book-cover-wrap.is-photo img.cover { width: 100%; max-width: none; height: 100%; aspect-ratio: auto; min-height: 260px; object-fit: cover; box-shadow: none; border-radius: 0; }
