@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@1,6..72,500&display=swap');

:root {
  --ink: #153d31;
  --ink-deep: #0d2c23;
  --paper: #f8f3e8;
  --paper-warm: #efe7d7;
  --sun: #f3b83f;
  --orange: #df6c3b;
  --sage: #8fae8c;
  --line: rgba(21, 61, 49, 0.15);
  --muted: #68756f;
  --white: #fffdf8;
  --radius: 24px;
  --font-sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #d9d7d0; }
body { margin: 0; color: var(--ink); background: #d9d7d0; font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.page-shell { width: 100%; max-width: 480px; min-height: 100vh; margin: 0 auto; overflow: hidden; background: var(--paper); box-shadow: 0 0 60px rgba(9, 31, 24, 0.12); }
.section-pad { padding-left: 22px; padding-right: 22px; }

.site-header { position: sticky; z-index: 50; top: 0; height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid rgba(21, 61, 49, 0.08); background: rgba(248, 243, 232, 0.91); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 13px; background: var(--ink); }
.brand-mark svg { width: 28px; height: 28px; fill: var(--sun); }
.brand-mark .mark-line { fill: none; stroke: var(--paper); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-size: 15px; letter-spacing: -0.25px; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; }
.menu-button { width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.menu-button span { display: block; width: 17px; height: 1.5px; margin: 5px auto; background: var(--ink); transition: transform .25s ease; }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-nav { position: absolute; top: 73px; left: 0; width: 100%; display: grid; gap: 4px; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); background: var(--paper); opacity: 0; transform: translateY(-12px); pointer-events: none; transition: .25s ease; }
.mobile-nav.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-nav a { padding: 12px 8px; font-size: 14px; font-weight: 600; }
.mobile-nav .nav-cta { padding: 14px 16px; text-align: center; color: var(--paper); border-radius: 14px; background: var(--ink); }

.hero { padding-top: 38px; padding-bottom: 42px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--orange); font-size: 10px; font-weight: 700; letter-spacing: 1.65px; text-transform: uppercase; }
.eyebrow span { width: 24px; height: 2px; background: var(--orange); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 430px; margin: 19px 0 18px; color: var(--ink-deep); font-size: clamp(42px, 11.5vw, 56px); line-height: .95; letter-spacing: -2.6px; }
h1 em { color: var(--orange); font-family: var(--font-serif); font-weight: 500; }
.hero-copy { max-width: 390px; margin-bottom: 26px; color: #52665e; font-size: 15px; line-height: 1.65; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.button { display: flex; width: 100%; min-height: 53px; align-items: center; justify-content: center; gap: 14px; padding: 0 20px; border: 0; border-radius: 16px; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:active { transform: scale(.98); }
.button-primary { color: var(--white); background: var(--ink); box-shadow: 0 10px 25px rgba(21, 61, 49, .18); }
.button-primary span { font-size: 18px; }
.text-link { padding-left: 4px; border-bottom: 1px solid rgba(21,61,49,.3); font-size: 12px; font-weight: 700; line-height: 1.8; }
.hero-visual { position: relative; margin: 30px 0 0; }
.hero-visual::before { position: absolute; z-index: 2; inset: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 26px; content: ""; pointer-events: none; }
.hero-visual picture { display: block; overflow: hidden; aspect-ratio: 4/4.6; border-radius: 26px; }
.hero-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.hero-visual figcaption { position: absolute; z-index: 3; right: 13px; bottom: 13px; left: 13px; display: flex; align-items: center; gap: 11px; padding: 12px 14px; color: var(--white); border: 1px solid rgba(255,255,255,.24); border-radius: 17px; background: rgba(13,44,35,.82); backdrop-filter: blur(14px); }
.hero-visual figcaption span:last-child { display: flex; flex-direction: column; }
.hero-visual figcaption strong { font-size: 12px; }
.hero-visual figcaption small { margin-top: 3px; color: rgba(255,255,255,.7); font-size: 10px; }
.pulse-dot { width: 9px; height: 9px; border: 2px solid rgba(255,255,255,.75); border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 5px rgba(243,184,63,.18); }
.impact-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; padding: 18px 6px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.impact-strip div { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 7px; border-right: 1px solid var(--line); }
.impact-strip div:last-child { border-right: 0; }
.impact-strip strong { font-size: 21px; letter-spacing: -1px; }
.impact-strip span { color: var(--muted); font-size: 8px; font-weight: 600; line-height: 1.35; text-transform: uppercase; }

.story { padding-top: 58px; padding-bottom: 58px; background: var(--white); }
section h2 { margin-bottom: 18px; font-size: clamp(31px, 8.5vw, 41px); line-height: 1.04; letter-spacing: -1.65px; }
.story blockquote { position: relative; margin: 28px 0 24px; padding: 17px 18px 17px 43px; color: var(--ink); border-left: 3px solid var(--sun); background: var(--paper); font-family: var(--font-serif); font-size: 23px; line-height: 1.18; }
.story blockquote::before { position: absolute; top: 12px; left: 14px; color: var(--orange); content: "“"; font-size: 38px; }
.story > p, .volunteers > p, .join-intro p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.pathway { display: grid; gap: 9px; margin-top: 30px; }
.path-card { display: grid; grid-template-columns: 52px 1fr; gap: 15px; align-items: start; padding: 17px; border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.path-icon { display: grid; width: 52px; height: 52px; place-items: center; color: var(--ink); border-radius: 15px; background: var(--sun); font-size: 23px; font-weight: 700; }
.path-card small { color: var(--orange); font-size: 9px; font-weight: 700; }
.path-card h3 { margin: 3px 0 4px; font-size: 16px; }
.path-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.campaigns { padding-top: 58px; padding-bottom: 60px; }
.section-kicker { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.section-kicker h2 { margin-bottom: 0; }
.launch-label { flex: none; padding: 7px 9px; color: var(--orange); border: 1px solid rgba(223,108,59,.28); border-radius: 999px; background: rgba(223,108,59,.08); font-size: 8px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.section-note { margin: 12px 0 25px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.campaign-list { display: grid; gap: 15px; }
.campaign-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: 0 13px 28px rgba(21,61,49,.06); }
.campaign-art { position: relative; height: 145px; overflow: hidden; }
.campaign-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.campaign-art svg > *:not(.art-line) { fill: rgba(21,61,49,.75); }
.campaign-art .art-line { fill: none; stroke: var(--paper); stroke-width: 5; stroke-linecap: round; }
.health-art { background: #e3a552; }
.education-art { background: #7fa28b; }
.art-label { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 7px 10px; color: var(--ink); border-radius: 999px; background: var(--paper); font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.campaign-body { padding: 18px; }
.location { color: var(--orange); font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.campaign-body h3 { margin: 8px 0 17px; font-size: 19px; line-height: 1.22; letter-spacing: -.45px; }
.progress { height: 6px; overflow: hidden; border-radius: 10px; background: var(--paper-warm); }
.progress span { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: var(--orange); }
.campaign-meta { display: flex; justify-content: space-between; margin: 9px 0 16px; }
.campaign-meta strong { font-size: 12px; }
.campaign-meta span { color: var(--muted); font-size: 10px; }
.campaign-body a { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 700; }
.button-outline { margin-top: 17px; color: var(--ink); border: 1px solid var(--ink); background: transparent; }

.principles { padding-top: 58px; padding-bottom: 60px; color: var(--paper); background: var(--ink); }
.principles h2 { max-width: 360px; }
.principle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 32px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: rgba(255,255,255,.12); }
.principle-grid article { min-height: 165px; padding: 18px; background: var(--ink); }
.principle-grid span { color: var(--sun); font-size: 9px; font-weight: 700; }
.principle-grid h3 { margin: 30px 0 6px; font-size: 18px; }
.principle-grid p { margin: 0; color: rgba(255,255,255,.61); font-size: 10px; line-height: 1.55; }

.volunteers { padding-top: 58px; padding-bottom: 58px; background: var(--white); }
.search-box { display: flex; align-items: center; gap: 8px; margin: 27px 0 14px; padding: 0 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.search-box span { color: var(--orange); font-size: 23px; }
.search-box input { width: 100%; height: 50px; color: var(--ink); border: 0; outline: 0; background: transparent; font-size: 12px; }
.volunteer-list { border-top: 1px solid var(--line); }
.volunteer-row { display: grid; grid-template-columns: 43px 1fr auto; gap: 11px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.volunteer-row[hidden] { display: none; }
.avatar { display: grid; width: 43px; height: 43px; place-items: center; color: var(--paper); border-radius: 50%; background: var(--ink); font-family: var(--font-serif); font-size: 15px; }
.avatar-two { color: var(--ink); background: var(--sun); }
.avatar-three { background: var(--orange); }
.open-avatar { color: var(--ink); border: 1px dashed var(--ink); background: transparent; font-family: var(--font-sans); font-size: 20px; }
.volunteer-row > div:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.volunteer-row strong { font-size: 12px; }
.volunteer-row div span { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.volunteer-row small { padding: 6px 8px; color: var(--ink); border-radius: 999px; background: var(--paper-warm); font-size: 8px; font-weight: 700; }
.demo-caption { margin: 14px 0 0 !important; font-size: 9px !important; line-height: 1.5 !important; }
.empty-state { padding: 24px 0; text-align: center; }

.join { padding-top: 64px; padding-bottom: 64px; color: var(--paper); background: var(--orange); }
.handwritten { color: var(--sun); font-family: var(--font-serif); font-size: 22px; font-style: italic; }
.section-handwritten { display: block; margin: 0 0 14px; color: var(--orange); line-height: 1.1; }
.principles .section-handwritten { color: var(--sun); }
.join .handwritten { display: block; margin: 0 0 14px; }
.join h2 { margin-top: 0; }
.join-intro p { color: rgba(255,255,255,.77); }
.volunteer-form { display: grid; gap: 17px; margin-top: 28px; padding: 22px 18px; color: var(--ink); border-radius: 24px; background: var(--paper); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.field { display: grid; gap: 7px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field label, .field legend { padding: 0; font-size: 10px; font-weight: 700; }
.field legend { margin-bottom: 5px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select { width: 100%; height: 46px; padding: 0 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; outline: 0; background: var(--white); font: inherit; font-size: 11px; transition: border .2s, box-shadow .2s; }
.field select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field select:disabled { color: var(--muted); cursor: not-allowed; background-color: #f5f3ee; }
.field input:focus, .field select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(223,108,59,.1); }
fieldset.field { margin: 0; padding: 0; border: 0; }
.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.choice-row label { position: relative; cursor: pointer; }
.choice-row input { position: absolute; opacity: 0; }
.choice-row span { display: grid; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--white); font-size: 9px; }
.choice-row input:checked + span { color: var(--white); border-color: var(--ink); background: var(--ink); }
.consent { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.consent input { margin-top: 2px; accent-color: var(--ink); }
.cf-turnstile { width: 100%; min-height: 65px; }
.button-sun { color: var(--ink); background: var(--sun); }
.button-sun:disabled { cursor: wait; opacity: .68; }
.form-note { margin: -7px 0 0; color: var(--muted); font-size: 8px; text-align: center; }

.site-footer { padding-top: 38px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); color: var(--paper); background: var(--ink-deep); }
.footer-brand .brand-mark { background: var(--sun); }
.footer-brand .brand-mark svg { fill: var(--ink); }
.footer-brand .brand-mark .mark-line { stroke: var(--paper); }
.footer-brand small { color: rgba(255,255,255,.55); }
.site-footer > p { max-width: 350px; margin: 24px 0; color: rgba(255,255,255,.57); font-size: 11px; line-height: 1.7; }
.footer-links { display: flex; flex-wrap: wrap; gap: 19px; font-size: 10px; font-weight: 700; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; margin-top: 35px; padding-top: 17px; color: rgba(255,255,255,.42); border-top: 1px solid rgba(255,255,255,.1); font-size: 8px; }
.footer-bottom a { color: rgba(255,255,255,.72); text-decoration: underline; text-underline-offset: 2px; }

.toast { position: fixed; z-index: 80; bottom: 20px; left: 50%; width: calc(100% - 40px); max-width: 440px; padding: 13px 16px; color: var(--paper); border-radius: 14px; background: var(--ink-deep); box-shadow: 0 10px 35px rgba(0,0,0,.23); font-size: 11px; text-align: center; opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .3s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.success-modal { position: fixed; z-index: 100; inset: 0; display: grid; padding: 22px; place-items: center; background: rgba(13,44,35,.73); opacity: 0; pointer-events: none; transition: opacity .25s; }
.success-modal.open { opacity: 1; pointer-events: auto; }
.modal-card { position: relative; width: 100%; max-width: 400px; padding: 34px 24px 24px; border-radius: 26px; background: var(--paper); text-align: center; transform: translateY(16px); transition: transform .25s; }
.success-modal.open .modal-card { transform: none; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; color: var(--ink); border: 0; border-radius: 50%; background: var(--paper-warm); font-size: 20px; cursor: pointer; }
.success-icon { display: grid; width: 55px; height: 55px; margin: 0 auto 12px; place-items: center; color: var(--paper); border-radius: 50%; background: var(--ink); font-size: 24px; }
.modal-card .handwritten { color: var(--orange); }
.modal-card h2 { margin: 8px 0 12px; font-size: 27px; }
.modal-card p { color: var(--muted); font-size: 11px; line-height: 1.65; }
.modal-card .button { margin-top: 20px; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Keep the 300px minimum Turnstile widget and form controls inside a 360px viewport. */
@media (max-width: 380px) {
  .join.section-pad { padding-right: 10px; padding-left: 10px; }
  .volunteer-form { padding-right: 12px; padding-left: 12px; }
  .field-row { gap: 8px; }
}

@media (min-width: 481px) {
  body { padding: 24px 0; }
  .page-shell { border-radius: 26px; }
  .site-header { top: 24px; border-radius: 26px 26px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
