/* Protect Our Primates. Brand colours come from /theme.css (editable in admin). */
:root {
  --ink: #2a2a2a;
  --paper: #ffffff;
  --accent: #1f5a46;
  --deep: #000000;
  --highlight: #fad100;
  --black: #000;
  --card: color-mix(in srgb, var(--ink) 6%, var(--paper));
  --white: #fff;
  --muted: color-mix(in srgb, var(--ink) 62%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 14%, var(--paper));
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1180px;
  --gutter: 16px;
  --radius: 4px;
}
@media (min-width: 700px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--sans); font-stretch: 75%; font-weight: 850; line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 9vw, 5.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 5.6vw, 3.2rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 760px; }
.section-pad { padding-top: 56px; padding-bottom: 72px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--highlight); color: var(--ink); padding: 10px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead-muted { font-size: 1.2rem; color: var(--muted); }

.eyebrow { font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: currentColor; }
.eyebrow-light { color: var(--highlight); }
.eyebrow a { color: inherit; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 800 1rem/1.1 var(--sans); letter-spacing: .02em; text-decoration: none; border-radius: var(--radius); cursor: pointer; transition: transform .12s ease, background .12s ease, color .12s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--highlight); border-color: var(--highlight); color: var(--black); }
.btn-accent:hover { background: color-mix(in srgb, var(--highlight) 82%, var(--black)); border-color: color-mix(in srgb, var(--highlight) 82%, var(--black)); color: var(--black); }
.btn-ghost { border-color: color-mix(in srgb, var(--white) 70%, transparent); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--white); border-bottom: 4px solid var(--highlight); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; text-transform: uppercase; font-stretch: 75%; font-weight: 900; line-height: .86; letter-spacing: .01em; color: var(--white); }
.wordmark:hover { color: var(--white); }
.wm-top { font-size: .82rem; letter-spacing: .26em; font-stretch: 100%; font-weight: 700; color: var(--highlight); margin-bottom: 3px; }
.wm-bottom { font-size: 1.75rem; }
.nav-toggle { width: 48px; height: 48px; border: 0; background: transparent; color: var(--white); display: grid; place-items: center; cursor: pointer; margin-right: -10px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 24px; height: 3px; background: currentColor; transition: transform .2s ease; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -8px; }
.nav-toggle-bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }
.site-nav { position: fixed; inset: 70px 0 auto 0; background: var(--ink); padding: 8px var(--gutter) 24px; border-bottom: 4px solid var(--highlight); display: none; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 16px; padding: 0; }
.site-nav li a { display: block; padding: 14px 0; font-weight: 800; font-size: 1.3rem; text-decoration: none; border-bottom: 1px solid #ffffff22; text-transform: uppercase; font-stretch: 80%; }
.site-nav a[aria-current="page"] { color: var(--highlight); }
.nav-cta { width: 100%; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { position: static; display: flex; align-items: center; gap: 28px; padding: 0; border: 0; background: none; }
  .site-nav ul { display: flex; gap: 26px; margin: 0; }
  .site-nav li a { padding: 8px 0; font-size: 1rem; border: 0; letter-spacing: .04em; font-stretch: 100%; }
  .site-nav li a:hover { color: var(--highlight); }
  .nav-cta { width: auto; min-height: 44px; padding: 10px 18px; }
}

.flashes { padding-top: 16px; }
.flash { padding: 14px 18px; border-left: 6px solid var(--deep); background: var(--card); font-weight: 700; margin: 0 0 8px; }
.flash-error { border-color: #b3261e; }

/* Hero */
.hero { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--highlight) 0 14px, var(--ink) 14px 28px); }
.hero-inner { display: grid; gap: 28px; padding-top: 44px; padding-bottom: 56px; }
.hero h1 { color: var(--white); max-width: 13ch; }
.hero-intro { font-family: var(--serif); font-size: 1.2rem; line-height: 1.55; color: #e9e4da; max-width: 36rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-ctas .btn { flex: 1 1 200px; }
.hero-media { margin: 0; position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 28%; filter: grayscale(.25) contrast(1.05); border-radius: var(--radius); }
.hero-media::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 3px solid var(--highlight); border-radius: var(--radius); z-index: 0; }
.hero-media img { position: relative; z-index: 1; }
.hero-media figcaption { position: relative; z-index: 1; font-size: .75rem; color: #bdb6aa; margin-top: 22px; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; padding-top: 80px; padding-bottom: 96px; }
  .hero-media img { aspect-ratio: 4 / 5; }
  .hero-ctas .btn { flex: 0 0 auto; }
}

/* Stats */
.stats-band { padding: 64px 0; }
.section-title { margin-bottom: 28px; max-width: 20ch; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--card); padding: 24px 22px 20px; border-top: 6px solid var(--accent); display: flex; flex-direction: column; gap: 8px; }
.stat-n { font-stretch: 75%; font-weight: 900; font-size: clamp(3rem, 11vw, 4.2rem); line-height: .9; color: var(--ink); }
.stat-l { font-family: var(--serif); font-size: 1.05rem; line-height: 1.4; }
.stat-s { margin-top: auto; padding-top: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stats-more { margin: 22px 0 0; font-weight: 700; }

/* Story */
.story { padding: 24px 0 72px; }
.story-inner { display: grid; gap: 36px; }
.prose { font-family: var(--serif); font-size: 1.12rem; line-height: 1.65; }
.prose h2, .prose h3 { font-family: var(--sans); }
.prose h2 { margin-top: 0; }
.prose strong { font-weight: 700; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--highlight) 70%, transparent) 62%); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 4px solid var(--accent); font-style: italic; }
.pullquote { margin: 0; background: var(--deep); color: var(--white); padding: 32px 28px; align-self: start; border-radius: var(--radius); }
.pullquote blockquote { margin: 0; }
.pullquote p { font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; margin: 0 0 18px; }
.pullquote p::before { content: "“"; display: block; font-family: var(--sans); font-weight: 900; font-size: 4rem; line-height: .6; color: var(--highlight); margin-bottom: 8px; }
.pullquote figcaption { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--highlight); }
@media (min-width: 900px) { .story-inner { grid-template-columns: 1.4fr 1fr; gap: 64px; } .pullquote { margin-top: 80px; } }

/* Organise */
.organise { background: var(--deep); color: var(--white); padding: 72px 0; }
.organise h2 { color: var(--white); max-width: 18ch; }
.organise-intro { font-family: var(--serif); font-size: 1.15rem; color: #dfe8e3; max-width: 40rem; }
.steps { list-style: none; padding: 0; margin: 36px 0; display: grid; gap: 14px; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { border: 2px solid #ffffff2e; padding: 22px; border-radius: var(--radius); }
.step h3 { color: var(--white); margin: 10px 0 8px; text-transform: uppercase; font-size: 1.4rem; }
.step p { margin: 0; color: #dfe8e3; }
.step-n { font-weight: 900; font-stretch: 75%; font-size: 1.1rem; color: var(--highlight); letter-spacing: .06em; }
.organise-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 0; }
.link-light { color: var(--white); font-weight: 700; }
.link-light:hover { color: var(--highlight); }

/* Join */
.join { background: var(--accent); color: var(--white); padding: 64px 0; }
.join-compact { background: var(--ink); border-top: 6px solid var(--highlight); }
.join-inner { display: grid; gap: 32px; }
.join h2 { color: var(--white); }
.join .eyebrow { color: var(--highlight); }
.join-compact .eyebrow { color: var(--highlight); }
.join-body { font-family: var(--serif); font-size: 1.2rem; }
.join-promises { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; font-weight: 700; }
.join-promises li { display: flex; gap: 10px; align-items: baseline; }
.join-promises li::before { content: "✓"; color: var(--highlight); font-weight: 900; }
.join-form { background: var(--white); color: var(--ink); padding: 26px 20px; border-radius: var(--radius); box-shadow: 10px 10px 0 var(--black); }
.join-compact .join-form { box-shadow: 10px 10px 0 var(--highlight); }
@media (min-width: 600px) { .join-form { padding: 32px; } }
@media (min-width: 900px) { .join-inner { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; } }
.field { margin-bottom: 16px; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 800; font-size: .95rem; margin-bottom: 6px; }
.opt { font-weight: 500; color: var(--muted); }
.field input[type=email], .field input[type=text] { width: 100%; min-height: 52px; padding: 12px 14px; font: 500 1.05rem var(--sans); border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.field input:focus { outline: 3px solid var(--highlight); outline-offset: 0; }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; cursor: pointer; font-size: .98rem; line-height: 1.4; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--accent); }
.interests .check { padding: 7px 0; font-weight: 500; font-size: .98rem; margin: 0; }
.consent { font-size: .9rem; color: var(--muted); margin-top: 4px; }
.consent a { color: var(--ink); }
.field-error { color: #b3261e; font-weight: 700; font-size: .9rem; margin: 6px 0 0; }
.field-error:empty { display: none; }
.invalid input { border-color: #b3261e !important; }
.join-form .btn { margin-top: 10px; }
.form-status { margin: 14px 0 0; font-weight: 700; }
.form-status:empty { display: none; }
.join-form.done { text-align: center; padding-top: 48px; padding-bottom: 48px; }
.join-form.done .done-title { font-stretch: 75%; font-weight: 900; text-transform: uppercase; font-size: 2.2rem; line-height: 1; margin: 0 0 12px; }

/* News */
.news-strip { padding: 64px 0 72px; }
.news-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.news-head a { font-weight: 700; }
.cards { display: grid; gap: 16px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card-post { background: var(--card); padding: 24px; border-left: 6px solid var(--deep); }
.card-post time { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card-post h3 { margin: 8px 0; font-size: 1.5rem; text-transform: uppercase; }
.card-post h3 a { text-decoration: none; }
.card-post p { margin: 0; font-family: var(--serif); }

/* Inner pages */
.page-head { background: var(--ink); color: var(--white); padding: 52px 0 46px; border-bottom: 10px solid var(--accent); }
.page-head h1 { color: var(--white); }
.page-intro { font-family: var(--serif); font-size: 1.2rem; color: #e9e4da; max-width: 42rem; }
.page-intro p:last-child { margin: 0; }

.facts-layout { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 72px; }
.toc { background: var(--card); padding: 20px 22px; border-radius: var(--radius); }
.toc-title { font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { padding: 5px 0; font-weight: 700; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (min-width: 960px) { .facts-layout { grid-template-columns: 260px 1fr; gap: 64px; } .toc { position: sticky; top: 96px; align-self: start; } }
.fact { padding: 0 0 36px; margin-bottom: 36px; border-bottom: 2px solid var(--line); max-width: 46rem; }
.fact h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); display: flex; gap: 14px; align-items: baseline; }
.fact-n { color: var(--accent); font-size: .7em; }
.sources ol { padding-left: 1.4em; font-size: .95rem; }
.sources li { margin-bottom: 10px; overflow-wrap: anywhere; }

.ways { padding: 56px 0 24px; }
.ways-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 700px) { .ways-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ways-grid { grid-template-columns: repeat(3, 1fr); } }
.way { background: var(--card); padding: 26px 24px; border-top: 6px solid var(--ink); display: flex; flex-direction: column; align-items: flex-start; }
.way:first-child { border-color: var(--accent); }
.way h2 { font-size: 1.8rem; margin: 8px 0 10px; }
.way .step-n { color: var(--accent); }
.way p { font-family: var(--serif); flex: 1; }
.local { padding: 48px 0 72px; }
.local-inner { display: grid; gap: 32px; }
@media (min-width: 900px) { .local-inner { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.share-box { background: var(--deep); color: var(--white); padding: 28px 24px; border-radius: var(--radius); align-self: start; }
.share-box h2 { color: var(--white); font-size: 2rem; }
.share-text { font-family: var(--serif); background: #ffffff14; padding: 16px; border-left: 4px solid var(--highlight); }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.share-box .btn-outline { border-color: var(--white); color: var(--white); }
.share-box .btn-outline:hover { background: var(--white); color: var(--deep); }
.copy-status { margin: 12px 0 0; color: var(--highlight); font-weight: 700; }

.message { text-align: left; min-height: 40vh; }
.message h1 { font-size: clamp(2.4rem, 8vw, 4rem); }

/* Footer: brand first, accordions on phones, columns on desktop */
.site-footer { background: var(--ink); color: #d9d3c7; padding: 48px 0 28px; }
.footer-brand { padding-bottom: 28px; border-bottom: 1px solid #ffffff22; }
.footer-brand p { max-width: 30rem; margin: 14px 0 18px; font-family: var(--serif); }
.footer-email { display: flex; align-items: center; min-height: 56px; padding: 12px 18px; border: 2px solid var(--highlight); color: var(--white); font-weight: 800; font-size: 1.05rem; text-decoration: none; border-radius: var(--radius); overflow-wrap: anywhere; }
.footer-email:hover { background: var(--highlight); color: var(--ink); }
.footer-col { border-bottom: 1px solid #ffffff22; }
.footer-col h2 { margin: 0; font-size: 1rem; letter-spacing: .12em; }
.footer-col h2 button { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 56px; cursor: pointer; color: var(--white); font: 800 1rem var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.footer-col h2 button::after { content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--highlight); }
.footer-col h2 button[aria-expanded="true"]::after { content: "–"; }
.footer-col h2 button:focus-visible { outline: 3px solid var(--highlight); }
.footer-col ul { list-style: none; margin: 0; padding: 0 0 14px; }
.footer-col ul[hidden] { display: none; }
.footer-col li a { display: block; padding: 11px 0; text-decoration: none; color: #d9d3c7; font-size: 1.02rem; }
.footer-col li a:hover { color: var(--highlight); }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; padding: 26px 0; }
.social-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid #ffffff33; border-radius: 50%; color: var(--white); }
.social-icon:hover { border-color: var(--highlight); color: var(--highlight); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: .85rem; color: #a59e92; border-top: 1px solid #ffffff22; padding-top: 20px; }
.footer-legal p { margin: 0; max-width: 46rem; }
.footer-legal a { color: #d9d3c7; }
.footer-legal a:hover { color: var(--highlight); }
.footer-links { white-space: nowrap; }
@media (min-width: 900px) {
  .site-footer .wrap { display: grid; grid-template-columns: 1.3fr 2fr; gap: 0 56px; }
  .footer-brand { border: 0; padding: 0; }
  .footer-email { display: inline-flex; }
  .footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .footer-col { border: 0; }
  .footer-col h2 button { min-height: 0; padding-bottom: 12px; pointer-events: none; color: var(--highlight); font-size: .85rem; }
  .footer-col h2 button::after { display: none; }
  .footer-col ul, .footer-col ul[hidden] { display: block; }
  .footer-col li a { padding: 6px 0; }
  .footer-social { grid-column: 1; }
  .footer-legal { grid-column: 1 / -1; }
}

/* Cookie banner */
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; background: var(--ink); color: var(--white); border-top: 4px solid var(--highlight); padding: 16px 18px; border-radius: var(--radius); box-shadow: 0 10px 30px #0006; display: grid; gap: 12px; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .95rem; }
.cookie-banner a { color: var(--highlight); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { flex: 1 1 120px; min-height: 46px; }
@media (min-width: 760px) {
  .cookie-banner { left: auto; right: 20px; bottom: 20px; max-width: 440px; }
}
