/* Ben Free Project — site styles. No build step; edit directly. */
:root {
  --ink: #090560;          /* BFP indigo, from the original benfree.org theme */
  --ink-2: #1B1690;
  --paper: #F1F4FC;        /* pale blue tint */
  --white: #FFFFFF;
  --text: #1B2030;
  --muted: #5A6072;
  --line: #DCE2F2;
  --accent: #1F5FD6;       /* action blue */
  --accent-ink: #FFFFFF;
  --accent-hover: #174CB3;
  --blue-text: #1F4FB8;
  --focus: #2F6FED;
  --radius: 14px;
  --wrap: 1160px;
  --serif: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (pointer: fine) { html { overscroll-behavior: none; } }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-tap-highlight-color: rgba(31, 95, 214, .2);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-2); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
p { text-wrap: pretty; }
[id] { scroll-margin-top: 96px; }
cite { font-style: italic; }
.min-w-0 { min-width: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(100% - 64px, var(--wrap)); } }

/* ---------- type ---------- */
.h1 { font: 700 clamp(2.4rem, 6vw, 4.4rem)/1.04 var(--serif); letter-spacing: -.02em; margin: 0 0 20px; }
.h2 { font: 700 clamp(1.8rem, 3.6vw, 2.7rem)/1.12 var(--serif); letter-spacing: -.015em; margin: 0 0 20px; }
.h3 { font: 600 1.3rem/1.25 var(--serif); margin: 0 0 10px; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-text); margin: 0 0 14px; }
.eyebrow-light { color: #9DB8FF; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 38em; margin: 0 0 32px; color: rgba(255,255,255,.86); }
.lede-sm { font-size: 1.1rem; margin: 0; color: rgba(255,255,255,.82); }
.muted { color: var(--muted); }
.measure { max-width: 22ch; }
.prose { max-width: 40em; }
.prose p { margin: 0 0 1.05em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { color: var(--white); border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-2); color: var(--white); }
.btn-quiet { color: var(--ink); border-color: var(--line); background: transparent; }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1.08rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; }
.link-arrow span { transition: transform .18s ease; }
.link-arrow:hover span { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .btn, .link-arrow span { transition: none; } .btn:hover { transform: none; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(140%) blur(8px); color: var(--ink); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: var(--white); font: 700 1rem/1 var(--serif); }
.brand-name { font: 700 1.2rem/1 var(--serif); letter-spacing: -.01em; }
.brand-name span { font-weight: 500; opacity: .75; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a:not(.btn) { color: #3A3F5C; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 500; display: block; transition: color .15s ease, background-color .15s ease; }
.site-nav a:not(.btn):hover { color: var(--ink); background: var(--paper); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.nav-toggle { display: none; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; width: 48px; height: 48px; place-items: center; cursor: pointer; }
.nav-toggle:hover { background: var(--paper); }
@media (min-width: 1041px) { .site-nav { display: flex; align-items: center; gap: 12px; } }
@media (max-width: 1040px) {
  .nav-toggle { display: grid; }
  .site-nav { display: none; position: absolute; inset: 100% 0 auto 0; background: var(--white); padding: 8px 16px 20px; border-top: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(9,5,96,.25); max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a:not(.btn) { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--ink); padding-left: 14px; }
  .nav-donate { margin-top: 16px; width: 100%; }
}

/* ---------- hero ---------- */
.hero { background: var(--white); color: var(--ink); }
.page-hero { background: radial-gradient(120% 90% at 90% 0%, #2A24B8 0%, var(--ink) 62%); color: var(--white); }
.hero .lede { color: #3A3F5C; }
.hero .eyebrow-light { color: var(--blue-text); }
.hero .btn-ghost { color: var(--ink); border-color: var(--line); }
.hero .btn-ghost:hover { color: var(--ink); border-color: var(--ink); background: var(--paper); }
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.hero-figure { margin: 0; position: relative; }
.hero-img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(9,5,96,.45); background: var(--paper); }
.hero-figure figcaption { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); }
.page-hero .h1 { max-width: 18ch; }
.page-hero .lede { margin-bottom: 0; }

/* ---------- stats ---------- */
.stats { background: var(--ink); color: var(--white); }
.stats .stat-label { color: rgba(255,255,255,.78); }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 32px 0; }
@media (min-width: 800px) { .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { font: 700 clamp(2rem, 4vw, 2.8rem)/1 var(--serif); margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.stat-label { margin: 0; font-size: .95rem; line-height: 1.35; }

/* ---------- bands & layouts ---------- */
.band { padding: clamp(56px, 8vw, 104px) 0; }
.band-paper { background: var(--paper); }
.band-ink { background: var(--ink); color: var(--white); }
.band-ink .h2 { color: var(--white); }
.split { display: grid; gap: 24px 64px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; }
.section-head .h2 { margin: 0; }

.pillars { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 820px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pillar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.band-paper .pillar { border-color: transparent; }
.pillar p { margin: 0 0 12px; }
.pillar-num { font: 700 .9rem/1 var(--sans); color: var(--blue-text); letter-spacing: .1em; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 26px; margin: 8px 0; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

/* cards */
.cards { display: grid; gap: 24px; }
@media (min-width: 720px) { .cards-2, .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.card-media { margin: 0; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--ink) 0%, #2B4590 100%); position: relative; overflow: hidden; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media-type { display: grid; place-items: center; }
.card-media-type span, .card-media.noimg::after { font: 700 5rem/1 var(--serif); color: rgba(255,255,255,.18); }
.card-media.noimg { display: grid; place-items: center; }
.card-media.noimg::after { content: attr(data-initial); }
.card-body { padding: 24px 24px 28px; }
.card-body p:last-child { margin-bottom: 0; }
.card-body .eyebrow { margin-bottom: 10px; }

/* founder feature */
.feature { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; } }
.feature-figure { margin: 0; }
.feature-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; background: var(--line); }

/* award */
.award { display: grid; gap: 32px; align-items: center; }
@media (min-width: 760px) { .award { grid-template-columns: auto 1fr; gap: 56px; } }
.award-badge { width: 180px; height: 180px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--paper); border: 2px solid var(--ink); font: 700 1.1rem/1.2 var(--serif); color: var(--ink); }
.award-badge span { display: block; font: 600 .8rem/1 var(--sans); letter-spacing: .14em; color: var(--blue-text); margin-bottom: 8px; }
.award p { max-width: 40em; }

/* newsletter */
.nl { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .nl { grid-template-columns: 1fr 1fr; } }
.nl-form { display: flex; flex-wrap: wrap; gap: 12px; }
.nl-form input { flex: 1 1 240px; min-width: 0; min-height: 52px; padding: 12px 18px; border-radius: 999px; border: 2px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: var(--white); font: inherit; transition: border-color .15s ease; }
.nl-form input::placeholder { color: rgba(255,255,255,.55); }
.nl-form input:hover { border-color: rgba(255,255,255,.45); }
.nl-form input:focus-visible { border-color: #9DB8FF; outline-offset: 2px; }
.nl-form input[aria-invalid="true"] { border-color: #FF8A80; }
.form-msg { flex-basis: 100%; margin: 0; min-height: 1.5em; font-size: .95rem; color: rgba(255,255,255,.85); }

/* about */
.mv { display: grid; gap: 40px; }
@media (min-width: 860px) { .mv { grid-template-columns: 1fr 1fr; gap: 64px; } }
.mv-text { font: 500 clamp(1.3rem, 2.2vw, 1.65rem)/1.4 var(--serif); margin: 0; }
.rec { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 860px) { .rec { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rec li { border-top: 2px solid #9DB8FF; padding-top: 16px; color: rgba(255,255,255,.85); }
.rec strong { display: block; color: var(--white); font: 600 1.15rem/1.3 var(--serif); margin-bottom: 6px; }

/* programs jump nav */
.jump { margin-top: 32px; }
.jump ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.9); text-decoration: none; font-size: .95rem; transition: border-color .15s ease, background-color .15s ease; }
.jump a:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }
.video-slot { aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--ink); display: grid; place-items: center; }
.video-slot .muted { color: rgba(255,255,255,.6); }

/* team */
.people { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.person { display: flex; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.band-paper .person { border-color: transparent; }
.avatar { flex: none; margin: 0; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; position: relative; background: var(--ink); display: grid; place-items: center; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback { font: 600 1.15rem/1 var(--serif); color: var(--white); }
.person-name { font: 600 1.08rem/1.25 var(--serif); margin: 0 0 4px; overflow-wrap: break-word; }
.person-role { margin: 0; font-size: .93rem; line-height: 1.4; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta-row .h2 { margin-bottom: 8px; }

/* founder bio */
.bio { display: grid; gap: 48px; }
@media (min-width: 900px) { .bio { grid-template-columns: .8fr 1.2fr; align-items: start; } .bio-figure { position: sticky; top: 104px; } }
.bio-figure { margin: 0; }
.bio-figure img { width: 100%; aspect-ratio: 9 / 11; object-fit: cover; border-radius: 20px; background: var(--paper); }
.dropcap::first-letter { float: left; font: 700 4.2rem/.85 var(--serif); padding: 6px 10px 0 0; color: var(--ink); }
.pull { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); font: 500 1.3rem/1.45 var(--serif); color: var(--ink); }

/* partners */
.partner-grid { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 720px) { .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.partner { border-top: 3px solid var(--ink); padding-top: 18px; }
.partner p { margin: 0; color: var(--muted); }
.logo-row { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.logo-row a { display: inline-block; padding: 14px 22px; border-radius: 12px; background: var(--white); text-decoration: none; font: 600 1.05rem/1.2 var(--serif); color: var(--ink); border: 1px solid var(--line); transition: border-color .15s ease; }
.logo-row a:hover { border-color: var(--ink); }

/* donate & contact */
.donate, .contact { display: grid; gap: 48px; }
@media (min-width: 880px) { .donate, .contact { grid-template-columns: 1fr 1fr; align-items: start; } }
.donate-card, .contact-card { background: var(--paper); border-radius: 20px; padding: clamp(24px, 4vw, 40px); }
.donate-card .btn { margin: 8px 0 20px; }
.fine { font-size: .92rem; color: var(--muted); margin: 0; }
.big-link { font: 600 clamp(1.15rem, 2.4vw, 1.45rem)/1.3 var(--serif); overflow-wrap: anywhere; }
.contact-card .h3 { margin-top: 20px; }
.contact-card .h3:first-child { margin-top: 0; }

/* footer */
.site-footer { background: #06033F; color: rgba(255,255,255,.78); padding: 56px 0 calc(24px + env(safe-area-inset-bottom)); }
.site-footer a { color: rgba(255,255,255,.9); }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-brand { color: var(--white); margin: 0 0 12px; font-size: 1.35rem; }
.site-footer .muted { color: rgba(255,255,255,.65); max-width: 30em; }
.footer-h { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #9DB8FF; margin: 0 0 14px; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: .9rem; }
.footer-base p { margin: 0; }

/* missing-image fallback (set by site.js) */
.noimg img { visibility: hidden; }
.avatar.noimg img { display: none; }
.hero-figure.noimg, .feature-figure.noimg, .bio-figure.noimg { display: none; }

/* ---------- photo refinements ---------- */
.bio-figure img { object-position: 50% 18%; }
.card-media-graphic { background: var(--paper); border-bottom: 1px solid var(--line); }
.card-media-graphic img { object-fit: contain; padding: 18px; }
/* programs without a photo: a typographic tile instead of an empty block */
.card-media-type { display: flex; align-items: flex-end; justify-content: flex-start; padding: 24px;
  background: linear-gradient(160deg, var(--paper) 0%, #DCE5FA 100%); border-bottom: 1px solid var(--line); }
.card-media-type::before { content: ""; position: absolute; top: 24px; left: 24px; width: 40px; height: 4px; border-radius: 2px; background: var(--ink); }
.card-media-type span { font: 600 clamp(1.5rem, 2.8vw, 2rem)/1.15 var(--serif); color: var(--ink); letter-spacing: -.015em; max-width: 12ch; text-wrap: balance; }

#unchained-voices .card-media img { object-position: 50% 12%; }
.card-media-type span { font-style: normal; }

/* ---------- logo ---------- */
.brand-logo { width: 58px; height: 58px; border-radius: 50%; flex: none; }
@media (max-width: 420px) { .brand-logo { width: 42px; height: 42px; } }

/* ---------- team cards (clickable) ---------- */
.people > li { display: flex; }
.person { flex: 1; color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.person:hover { color: inherit; border-color: var(--ink); box-shadow: 0 10px 24px -16px rgba(9,5,96,.45); transform: translateY(-2px); }
.person:hover .person-more { text-decoration: underline; }
.person-more { display: inline-block; margin-top: 8px; font-size: .88rem; font-weight: 600; color: var(--blue-text); }
@media (prefers-reduced-motion: reduce) { .person, .person:hover { transition: none; transform: none; } }

/* ---------- profile pages ---------- */
.crumbs { font-size: .95rem; margin-bottom: 18px; color: rgba(255,255,255,.75); }
.crumbs a { color: #fff; }
.page-hero-person .h1 { max-width: 22ch; }
.profile-photo { position: relative; aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: var(--ink); display: grid; place-items: center; max-width: 420px; }
.profile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 25%; border-radius: 0; }
.profile-fallback { font: 600 clamp(3rem, 8vw, 5rem)/1 var(--serif); color: rgba(255,255,255,.9); }
.bio-figure.profile-photo.noimg { display: grid; }
.profile-photo.noimg img { display: none; }
.person-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.person-nav a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 600; color: var(--ink); min-width: 0; overflow-wrap: break-word; transition: border-color .15s ease; }
.person-nav a:last-child { text-align: right; }
.person-nav a:hover { border-color: var(--ink); color: var(--ink); }
.person-nav .muted { font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; }
.bio > .profile-photo { align-self: start; margin-top: 4px; }
.pull { font-size: 1.12rem; font-weight: 500; }
.person-tag { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: .74rem; font-weight: 600; letter-spacing: .02em; }
.band-paper .person-tag { background: #E4EAFA; }
.person-tag { white-space: nowrap; font-size: .7rem; padding: 3px 9px; }
.person-more { display: block; }
