/* Humanitarian Explorer — site styles. Brand: podcast cover yellow + navy, Source Serif 4 + Inter. */
:root {
  --yellow: #ffd600;
  --yellow-2: #ffe766;
  --yellow-ink: #8a7300;      /* yellow-derived text that passes contrast on white */
  --ink: #1b2033;             /* navy from the cover */
  --ink-2: #3a4058;
  --muted: #5d6378;
  --paper: #ffffff;
  --paper-2: #f7f5ee;
  --card: #ffffff;
  --line: #e4e1d6;
  --on-dark: #ffffff;
  --radius: 14px;
  --maxw: 1180px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eef0f6; --ink-2: #c6cad8; --muted: #9aa0b4; --paper: #12162a; --paper-2: #181d33;
    --card: #1c2238; --line: #2b3250; --yellow-ink: #ffd600; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #eef0f6; --ink-2: #c6cad8; --muted: #9aa0b4; --paper: #12162a; --paper-2: #181d33;
  --card: #1c2238; --line: #2b3250; --yellow-ink: #ffd600; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.32rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.kicker { font: 600 .78rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 1em; }
.rule { width: 72px; height: 5px; background: var(--ink); border: 0; margin: 22px 0; }
.lede { font-size: 1.2rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 50; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .mark { width: 36px; height: 36px; flex: none; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 1.22rem; line-height: 1; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; color: var(--ink); font: 600 .9rem var(--sans); cursor: pointer; }
@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-block; font: 600 .95rem/1 var(--sans); padding: 15px 24px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: #1b2033; color: #fff; }
.btn-ink:hover { background: #2a3150; color: #fff; }
.btn-yellow { background: var(--yellow); color: #1b2033; }
.btn-yellow:hover { background: var(--yellow-2); color: #1b2033; }
.btn-line { border-color: currentColor; color: inherit; }
.btn-line:hover { background: rgba(27,32,51,.06); }
.nav .btn { padding: 11px 18px; }

/* Yellow hero, modeled on the podcast cover */
.hero-y { position: relative; overflow: hidden; background: var(--yellow); color: #1b2033; }
.hero-y .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); }
.hero-y .kicker { color: #1b2033; }
.hero-y h1 { max-width: 14ch; }
.hero-y p { font-size: 1.2rem; max-width: 52ch; color: #262c42; }
.hero-y .rule { background: #1b2033; }
.hero-y .areas { font-weight: 500; font-size: 1.05rem; color: #1b2033; margin-top: -4px; }
.hero-y .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-y .btn-line { color: #1b2033; }
.hero-y .watermark { position: absolute; right: -9%; bottom: -24%; width: min(62vw, 720px); color: rgba(27,32,51,.08); pointer-events: none; }
.hero-art { width: 100%; max-width: 480px; margin-left: auto; --paper: #fff; --ink: #1b2033; }
@media (max-width: 860px) { .hero-y .wrap { grid-template-columns: 1fr; } .hero-art { max-width: 320px; margin: 0 auto; } }

/* Inner page headers */
.page-head { position: relative; overflow: hidden; background: var(--yellow); color: #1b2033; padding: clamp(52px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.page-head .kicker { color: #1b2033; }
.page-head h1 { max-width: 20ch; }
.page-head .lede { max-width: 62ch; color: #262c42; }
.page-head .rule { background: #1b2033; }
.page-head .watermark { position: absolute; right: -6%; top: -30%; width: min(48vw, 520px); color: rgba(27,32,51,.08); pointer-events: none; }
.page-head a { color: #1b2033; text-decoration-color: #1b2033; }
.page-head.plain { background: var(--paper-2); color: var(--ink); }
.page-head.plain .kicker, .page-head.plain a { color: var(--ink); }
.page-head.plain .lede { color: var(--ink-2); }
.page-head.plain .rule { background: var(--yellow); }
.page-head .head-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; position: relative; }
.page-head .head-art { max-width: 260px; margin-left: auto; --paper: #fff; --ink: #1b2033; }
@media (max-width: 760px) { .page-head .head-grid { grid-template-columns: 1fr; } .page-head .head-art { max-width: 160px; margin: 0; } }

/* Photo header (used sparingly) */
.page-hero { position: relative; min-height: 440px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #1b2033; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,32,51,.1), rgba(27,32,51,.85)); }
.page-hero .wrap { position: relative; z-index: 1; padding: 120px 20px 52px; width: 100%; }
.page-hero .kicker { color: var(--yellow); }
.page-hero .lede { color: rgba(255,255,255,.92); max-width: 60ch; }
.page-hero .rule { background: var(--yellow); }

/* Sections */
.section { padding: clamp(60px, 9vw, 116px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-alt { background: var(--paper-2); }
.section-ink { background: #1b2033; color: #fff; --ink: #fff; --ink-2: #d4d7e3; --muted: #a9aec2; }
.section-ink .kicker { color: var(--yellow); }
.section-ink a:not(.btn) { color: #fff; }
.section-yellow { background: var(--yellow); color: #1b2033; --ink: #1b2033; --ink-2: #262c42; --muted: #3d4257; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 38px; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 22ch; }

.mission { text-align: center; }
.mission blockquote { margin: 0 auto; max-width: 28ch; font: 700 clamp(1.7rem, 3.6vw, 2.7rem)/1.22 var(--serif); letter-spacing: -0.015em; }
.mission .rule { margin: 28px auto; }

/* Grids & cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-top: .2em; }
.card p:last-child { margin-bottom: 0; }
.spot { width: 56px; height: 56px; margin-bottom: 16px; --paper: #fff; }
.section-ink .card { background: #232a42; border-color: #343c5c; }
.section-ink .spot { --ink: #1b2033; }
.section-ink .spot path, .section-ink .spot rect, .section-ink .spot circle { stroke: #fff; }

.focus-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.focus-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(27,32,51,.45); border-color: var(--yellow); }
.focus-card .art { width: 96px; height: 96px; margin-bottom: 14px; --paper: #fff; --ink: #1b2033; }
.focus-card h3 { font-size: 1.22rem; }
.focus-card p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.focus-card .more { margin-top: auto; padding-top: 16px; font-weight: 600; font-size: .9rem; }
.focus-card .more::after { content: " →"; }

/* Feature (image + text) */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature.reverse { grid-template-columns: 1fr 1.1fr; }
.feature.reverse .feature-media { order: 2; }
.feature-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-media.art-box { display: grid; place-items: center; background: var(--yellow); }
.feature-media.art-box svg { width: 62%; --paper: #fff; --ink: #1b2033; }
figure { margin: 0; }
figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .feature, .feature.reverse { grid-template-columns: 1fr; } .feature.reverse .feature-media { order: 0; } }

/* Timeline (About) */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 3px; background: var(--yellow); }
.timeline li { position: relative; padding: 0 0 30px 46px; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 21px; height: 21px; border-radius: 50%; background: var(--paper); border: 4px solid var(--ink); }
.timeline .year { font: 700 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.timeline h3 { margin: 6px 0 6px; }
.timeline p { margin: 0; color: var(--ink-2); }

/* Stat-free highlight */
.big-quote { font: 700 clamp(1.6rem, 3.2vw, 2.4rem)/1.25 var(--serif); letter-spacing: -0.015em; max-width: 26ch; }

/* Gallery (field work) */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.gallery figure { grid-column: span 4; }
.gallery figure.wide { grid-column: span 8; }
.gallery figure.full { grid-column: span 12; }
.gallery .ph { border-radius: 10px; overflow: hidden; height: clamp(220px, 28vw, 360px); }
.gallery figure.full .ph { height: clamp(240px, 38vw, 520px); }
.gallery .ph img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .gallery figure, .gallery figure.wide { grid-column: span 12; } .gallery .ph, .gallery figure.full .ph { height: auto; aspect-ratio: 4 / 3; } }

/* Episodes */
.episodes { display: grid; gap: 18px; }
.episode { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--yellow); border-radius: var(--radius); padding: 22px 24px; }
.episode h3, .episode h2 { font-size: 1.22rem; margin-bottom: .3em; }
.episode h3 a, .episode h2 a { color: var(--ink); text-decoration: none; }
.episode h3 a:hover, .episode h2 a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.meta { font-size: .85rem; color: var(--muted); margin: 0 0 12px; }
.episode audio, .player audio { width: 100%; margin: 4px 0 8px; }
.episode .summary { color: var(--ink-2); font-size: .97rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--yellow); color: #1b2033; vertical-align: middle; }
.pager { display: flex; justify-content: space-between; margin-top: 28px; }

.podcast-band { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; }
.podcast-band img { border-radius: 12px; box-shadow: 0 18px 40px -22px rgba(0,0,0,.5); }
@media (max-width: 700px) { .podcast-band { grid-template-columns: 1fr; } .podcast-band img { max-width: 200px; } }

.listen { display: flex; flex-wrap: wrap; gap: 10px; }
.listen a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.listen a:hover { border-color: var(--ink); }
.listen svg { width: 16px; height: 16px; }

/* Prose */
.prose { font-size: 1.08rem; }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose blockquote { margin: 1.4em 0; padding-left: 22px; border-left: 5px solid var(--yellow); font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.4; color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); }
.script p { margin-bottom: 1.1em; }
details.script-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-top: 28px; }
details.script-box summary { cursor: pointer; font-weight: 600; }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b2033' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps .card { position: relative; padding-top: 64px; }
.steps .card::before { counter-increment: step; content: counter(step); position: absolute; top: 22px; left: 28px; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: #1b2033; display: grid; place-items: center; font: 700 .95rem/1 var(--sans); }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input[type=text], .field input[type=email], .field input[type=url], .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--yellow) 55%, transparent); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 16px; }
.options label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 0; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; }
.options label:has(input:checked) { border-color: var(--ink); background: color-mix(in srgb, var(--yellow) 18%, var(--card)); }
.options input { margin-top: .3em; accent-color: #1b2033; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--radius); padding: 18px 22px; margin-bottom: 26px; border: 1.5px solid; }
.notice.ok { background: color-mix(in srgb, var(--yellow) 22%, var(--card)); border-color: var(--yellow); }
.notice.err { background: color-mix(in srgb, #d9534f 10%, var(--card)); border-color: #d9534f; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--yellow); color: #1b2033; border-radius: calc(var(--radius) + 6px); padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.cta-band .kicker { color: #1b2033; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { color: #262c42; margin: 0; max-width: 60ch; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.cta-band .watermark { position: absolute; right: -60px; bottom: -90px; width: 300px; color: rgba(27,32,51,.08); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #1b2033; color: #c7cbd9; padding: 64px 0 36px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.footer-grid h4 { font: 600 .75rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand .mark { color: var(--yellow); }
.site-footer em { font-family: var(--serif); color: #fff; }
.footer-base { border-top: 1px solid #2f3652; margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #9aa0b4; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
