/* The Leenspire Foundation — leenspirefoundation.org */
@font-face { font-family: 'Bricolage Text'; src: url(/assets/fonts/bricolage-text.woff) format('woff'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Bricolage Display'; src: url(/assets/fonts/bricolage-display.woff) format('woff'); font-weight: 500 800; font-stretch: 90% 110%; font-display: swap; }
@font-face { font-family: 'Bengali'; src: url(/assets/fonts/bengali.woff) format('woff'); font-weight: 400 700; font-display: swap; unicode-range: U+0980-09FF; }

:root {
  --ink: #17201C;
  --ink-soft: #46524B;
  --paper: #FFFFFF;
  --mist: #EEF2EC;
  --rule: #D6DDD4;
  --leaf: #1E6B45;
  --leaf-deep: #12482E;
  --leaf-tint: #DDEBE1;
  --marigold: #F2B33D;
  --marigold-deep: #C98A12;
  --text: 'Bricolage Text', 'Bengali', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Display', 'Bricolage Text', 'Bengali', system-ui, sans-serif;
  --measure: 62ch;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--text); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--leaf-deep); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; max-width: var(--measure); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); font-stretch: 105%; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-stretch: 102%; }
h3, .h3 { font-size: 1.3rem; }
.lead { font-size: clamp(1.15rem, 1.9vw, 1.35rem); color: var(--ink-soft); line-height: 1.45; }
.bn { font-family: 'Bengali', var(--text); }
small, .small { font-size: 0.9rem; }
ul { padding-left: 1.2em; }
ul li { margin: 0.25em 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn-donate { background: var(--marigold); color: var(--ink); border-color: var(--marigold); }
.btn-donate:hover { background: #F7C25A; color: var(--ink); }
.btn-primary { background: var(--leaf); color: #fff; border-color: var(--leaf); }
.btn-primary:hover { background: var(--leaf-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.on-dark .btn-ghost, .hero .btn-ghost, .dark .btn-ghost, .leafy .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.on-dark .btn-ghost:hover, .hero .btn-ghost:hover, .dark .btn-ghost:hover, .leafy .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn:disabled { opacity: .6; cursor: default; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span small { display: block; font-family: var(--text); font-weight: 400; font-size: .78rem; color: var(--ink-soft); letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 500; }
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { color: var(--leaf-deep); box-shadow: inset 0 -2px 0 var(--leaf); border-radius: 0; }
.nav .btn { margin-left: 8px; min-height: 42px; padding: 8px 18px; }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; background: none; border-radius: 10px; cursor: pointer; color: var(--ink); }
.menu-btn:hover { background: var(--mist); }
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 16px; flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 10px; font-size: 1.1rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--leaf); padding-left: 14px; }
  .nav .btn { margin: 10px 0 0; }
}

/* Hero */
.hero { position: relative; background: var(--leaf-deep); color: #fff; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,72,46,.96) 0%, rgba(18,72,46,.88) 38%, rgba(18,72,46,.25) 70%, rgba(18,72,46,.05) 100%); }
.hero .wrap { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); min-height: min(78vh, 720px); display: flex; flex-direction: column; justify-content: flex-end; }
.hero h1 { max-width: 15ch; color: #fff; }
.hero .lead { color: rgba(255,255,255,.88); max-width: 48ch; }
.hero .bn { font-size: 1.05rem; color: var(--marigold); font-weight: 500; margin: 0 0 14px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero .where { margin-top: 28px; color: rgba(255,255,255,.75); font-size: .95rem; }
@media (max-width: 700px) {
  .hero-photo img { object-position: 50% 30%; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(18,72,46,.12) 0%, rgba(18,72,46,.82) 45%, rgba(18,72,46,.97) 100%); }
  .hero .wrap { min-height: 88vh; }
}

/* Page header (inner pages) */
.page-head { background: var(--mist); padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--rule); }
.page-head h1 { max-width: 20ch; }
.page-head .lead { max-width: 60ch; }

/* Sections */
section { padding: clamp(48px, 7vw, 96px) 0; }
section.tight { padding-block: clamp(32px, 5vw, 64px); }
.mist { background: var(--mist); }
.dark { background: var(--ink); color: #fff; }
.dark a:not(.btn) { color: #fff; }
.dark p { color: rgba(255,255,255,.85); }
.leafy { background: var(--leaf-deep); color: #fff; }
.leafy p { color: rgba(255,255,255,.86); }
.leafy h2 { color: #fff; }
.intro { max-width: 68ch; }
.intro h2 { max-width: 22ch; }

/* Strands: alternating photo + text */
.strand { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(28px, 4vw, 56px) 0; border-top: 1px solid var(--rule); }
.strand:first-of-type { border-top: 0; padding-top: 0; }
.strand:nth-of-type(even) .strand-photo { order: 2; }
.strand-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 6px; }
.strand h3, .strand .h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.strand ul { color: var(--ink-soft); }
@media (max-width: 760px) {
  .strand { grid-template-columns: 1fr; gap: 18px; }
  .strand:nth-of-type(even) .strand-photo { order: 0; }
}

/* Numbers */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.numbers div { border-left: 3px solid var(--marigold); padding-left: 16px; }
.numbers b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; font-stretch: 105%; }
.numbers span { color: var(--ink-soft); }
.dark .numbers span, .leafy .numbers span { color: rgba(255,255,255,.75); }
@media (max-width: 760px) { .numbers { grid-template-columns: 1fr 1fr; gap: 20px 16px; } }

/* Photo mosaic */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: 6px; background: var(--mist); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.mosaic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; font-size: .85rem; line-height: 1.3; color: #fff; background: linear-gradient(180deg, rgba(23,32,28,0) 0%, rgba(23,32,28,.78) 100%); }
.mosaic .wide { grid-column: span 3; }
.mosaic .tall { grid-row: span 2; }
.mosaic .tall img { aspect-ratio: auto; }
.mosaic figure:not(.wide) { grid-column: span 2; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic figure, .mosaic .wide { grid-column: span 1; }
  .mosaic .tall { grid-row: auto; }
  .mosaic .tall img { aspect-ratio: 4 / 3; }
}

/* Quote */
.note { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.note blockquote { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.3; letter-spacing: -0.01em; text-wrap: pretty; }
.note blockquote p { max-width: none; }
.note cite { display: block; margin-top: 18px; font-style: normal; font-family: var(--text); font-size: 1rem; color: var(--ink-soft); }
.note aside { background: var(--mist); border-radius: 8px; padding: 22px; }
.note aside p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .note { grid-template-columns: 1fr; } }

/* Split (text + box) */
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Donate */
.pay { background: #fff; color: var(--ink); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(18px, 3vw, 28px); }
.pay h3, .pay .h3 { margin-top: 0; }
.upi-qr { display: block; width: 200px; height: 200px; margin: 6px 0 14px; padding: 8px; background: #fff; border: 1px solid var(--rule); border-radius: 8px; }
.upi-id { overflow-wrap: anywhere; }
.upi-app { display: none; }
@media (max-width: 860px) { .upi-app { display: block; } }
.qr { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; }
.qr img { width: 180px; height: 180px; border: 1px solid var(--rule); border-radius: 6px; }
.qr p { margin: 0 0 8px; }
.upi-id { font-weight: 600; font-size: 1.1rem; word-break: break-all; }
.bank { width: 100%; border-collapse: collapse; margin-top: 8px; }
.bank th, .bank td { text-align: left; padding: 9px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.bank th { font-weight: 500; color: var(--ink-soft); width: 38%; }
.bank td { font-weight: 600; }
.copy { font: inherit; font-size: .85rem; font-weight: 600; color: var(--leaf); background: var(--leaf-tint); border: 0; border-radius: 6px; padding: 4px 10px; margin-left: 8px; cursor: pointer; min-height: 32px; }
.copy:hover { background: #cfe3d5; }
@media (max-width: 520px) { .qr { grid-template-columns: 1fr; } .qr img { width: 200px; height: 200px; } }

/* UPI deep link only makes sense on a phone */
.upi-link { display: none; }
@media (hover: none) and (pointer: coarse) { .upi-link { display: inline-flex; } }

/* Forms */
.form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: clamp(18px, 3vw, 28px); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-weight: 500; }
label small { font-weight: 400; color: var(--ink-soft); }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #B9C3BB; border-radius: 8px; padding: 12px 14px; min-height: 48px; width: 100%; }
input::placeholder, textarea::placeholder { color: #7B857E; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px var(--leaf-tint); }
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: 8px; padding: 12px 14px; font-weight: 500; }
.form-msg.ok { background: var(--leaf-tint); color: var(--leaf-deep); }
.form-msg.err { background: #FBE7E1; color: #8A2E17; }
.form-msg[hidden] { display: none; }
.choices { display: grid; gap: 8px; }
.choices label { display: flex; align-items: center; gap: 10px; font-weight: 400; padding: 10px 12px; border: 1.5px solid var(--rule); border-radius: 8px; cursor: pointer; }
.choices input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--leaf); }
.choices label:has(input:checked) { border-color: var(--leaf); background: var(--leaf-tint); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { padding-left: 16px; border-left: 3px solid var(--marigold); }
.contact-list b { display: block; font-weight: 600; }
.contact-list a { font-size: 1.1rem; }

/* People */
.person { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: start; }
.person img { border-radius: 8px; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; } .person img { max-width: 220px; } }

/* Objectives list */
.objectives { columns: 2; column-gap: 40px; padding-left: 1.1em; color: var(--ink-soft); }
.objectives li { break-inside: avoid; margin: 0 0 .6em; }
@media (max-width: 760px) { .objectives { columns: 1; } }

/* CTA band */
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.band h2 { margin: 0; max-width: 22ch; }
.band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 48px 0 32px; font-size: .95rem; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer h2 { font-size: 1.15rem; color: #fff; margin-bottom: 10px; }
footer a { color: #fff; }
footer p { max-width: 40ch; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 6px 0; }
footer .legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: rgba(255,255,255,.6); font-size: .85rem; }
footer .legal a { color: rgba(255,255,255,.75); }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; gap: 24px; } }

/* WhatsApp floating */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 6px 16px 6px 6px; border: 1px solid var(--rule); border-radius: 999px; box-shadow: 0 4px 14px rgba(18,72,46,.14); transition: transform .15s, box-shadow .15s; }
.wa:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(18,72,46,.18); }
.wa svg { width: 20px; height: 20px; padding: 9px; box-sizing: content-box; border-radius: 50%; background: var(--leaf); color: #fff; }
@media (max-width: 560px) { .wa span { display: none; } .wa { padding: 5px; right: 14px; bottom: 14px; } }

/* Long-form text pages (privacy) */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.35rem; margin: 1.8em 0 .5em; }
.prose h2:first-of-type { margin-top: 1em; }
.prose ul { max-width: var(--measure); }
.consent { margin: 0; color: var(--ink-soft); font-size: .85rem; line-height: 1.45; }

/* Registrations, people, partners, CSR (Nov 2026) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.creds-band { padding: 28px 0; border-bottom: 1px solid var(--rule); background: var(--paper); }
.creds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.creds li { padding-left: 14px; border-left: 3px solid var(--leaf); }
.creds b { display: block; font-size: .98rem; }
.creds span { display: block; color: var(--ink-soft); font-size: .9rem; margin-top: 2px; font-variant-numeric: tabular-nums; }
.values { list-style: none; counter-reset: v; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.values li { counter-increment: v; background: var(--mist); border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.values li::before { content: counter(v); display: block; font-family: var(--display); color: var(--marigold-deep); font-size: 1.4rem; line-height: 1; margin-bottom: 6px; }
.people { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.people li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 16px; }
.people .ini { flex: 0 0 48px; height: 48px; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-items: center; font-weight: 700; letter-spacing: .02em; }
.people b { display: block; font-size: 1.05rem; }
.people span { display: block; color: var(--leaf); font-weight: 600; font-size: .92rem; }
.people p { margin: 6px 0 0; color: var(--ink-soft); font-size: .95rem; }
.small-people { grid-template-columns: repeat(3, 1fr); }
.small-people li { padding: 14px; }
.small-people span { color: var(--ink-soft); font-weight: 400; margin-top: 2px; }
.partners { list-style: none; margin: 16px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partners li { border-top: 3px solid var(--marigold); padding-top: 12px; }
.partners b { display: block; }
.partners span { color: var(--ink-soft); font-size: .95rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.cards > div { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 18px; }
.cards h3 { margin-top: 0; }
.cards p { margin-bottom: 0; color: var(--ink-soft); }
.kicker { margin: 0 0 8px; font-weight: 700; color: var(--leaf); }
.page-head .actions { margin-top: 22px; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; margin-top: 14px; background: #fff; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data thead th { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
table.data tfoot th { border-top: 2px solid var(--ink); border-bottom: 0; font-size: 1.05rem; }
.ticks { padding-left: 1.2em; }
.ticks li { margin: 8px 0; }
.sdgs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sdgs li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.sdgs b { flex: 0 0 34px; height: 34px; border-radius: 8px; background: var(--leaf-deep); color: #fff; display: grid; place-items: center; }
.numbers.two { grid-template-columns: 1fr 1fr; align-self: center; }
@media (max-width: 900px) { .creds, .values { grid-template-columns: 1fr 1fr; } .small-people, .partners, .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .creds, .values, .people, .small-people, .partners, .cards { grid-template-columns: 1fr; } }
.bank td { overflow-wrap: anywhere; }
.brand img { width: 68px; height: 46px; flex: none; object-fit: contain; }
.foot-logo { display: block; width: 150px; height: auto; margin-bottom: 14px; }
