:root {
--ink: #1d1838;
--ink-2: #4a4566;
--muted: #6e6987;
--bg: #fbf8f2;
--paper: #ffffff;
--line: #e9e3d6;
--indigo: #2a2160;
--indigo-2: #3d2f86;
--gold: #e8a33d;
--gold-2: #f6c66b;
--saffron: #f08a2e;
--money: #2f8f6a;
--material: #3a6fc4;
--service: #a84fb5;
--danger: #c8443a;
--radius: 16px;
--shadow: 0 1px 2px rgba(29, 24, 56, .05), 0 8px 24px rgba(29, 24, 56, .07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
margin: 0;
font-family: Inter, system-ui, sans-serif;
color: var(--ink);
background: var(--bg);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: Fraunces, Georgia, serif; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.center { text-align: center; }
.sub { max-width: 640px; margin: 0 auto 2.5rem; color: var(--muted); }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--saffron); margin-bottom: .6rem; }
.section { padding: 80px 0; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; border: 0; border-radius: 999px; padding: .8em 1.5em; font: 600 .95rem Inter, sans-serif; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .chip:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.btn-sm { padding: .55em 1.1em; font-size: .88rem; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--saffron)); color: #2b1600; box-shadow: 0 6px 18px rgba(240, 138, 46, .3); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost-dark { background: transparent; color: var(--indigo); border: 1px solid var(--line); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(42, 33, 96, .96); backdrop-filter: blur(8px); color: #fff; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-family: Fraunces, serif; font-size: 1.35rem; }
.brand b, .brand-foot b { color: var(--gold-2); }
.nav-links { display: flex; align-items: center; gap: 1.4rem; font-size: .93rem; }
.nav-links a:not(.btn) { text-decoration: none; opacity: .85; }
.nav-links a:not(.btn):hover { opacity: 1; }
.menu-toggle { display: none; background: none; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: .4em .8em; font: inherit; cursor: pointer; }
@media (max-width: 820px) {
.menu-toggle { display: block; }
.nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--indigo); padding: 8px 16px 16px; }
.nav-links.open { display: flex; }
.nav-links a { padding: .7rem 0; }
.nav-links .btn { margin-top: .5rem; }
}

.hero {
color: #fff;
padding: 72px 0 0;
background:
radial-gradient(ellipse 80% 60% at 75% 110%, rgba(246, 198, 107, .55), transparent 60%),
radial-gradient(ellipse 60% 50% at 10% 0%, rgba(168, 79, 181, .35), transparent 60%),
linear-gradient(180deg, var(--indigo) 0%, var(--indigo-2) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: .35em; }
.hero h1 em { color: var(--gold-2); font-style: italic; }
.hero .eyebrow { color: var(--gold-2); }
.lead { font-size: 1.12rem; color: rgba(255,255,255,.88); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.hero-quote { margin: 0; padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); }
.hero-quote blockquote { margin: 0 0 1em; font-family: Fraunces, serif; font-size: 1.3rem; line-height: 1.45; }
.hero-quote figcaption { color: var(--gold-2); font-size: .9rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 56px; transform: translateY(40px); background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); padding: 0; }
.stat { background: var(--paper); color: var(--ink); padding: 22px 20px; text-align: center; }
.stat b { display: block; font-family: Fraunces, serif; font-size: 1.9rem; color: var(--indigo); }
.stat span { font-size: .85rem; color: var(--muted); }
@media (max-width: 820px) {
.hero-grid { grid-template-columns: 1fr; gap: 32px; }
.stats { grid-template-columns: repeat(2, 1fr); margin-left: 16px; margin-right: 16px; }
}
.how { padding-top: 120px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--indigo); color: var(--gold-2); font-weight: 700; margin-bottom: 12px; }
.step p { color: var(--ink-2); font-size: .94rem; margin: 0; }
.give-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.gt { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.gt h4 { margin: 0 0 .2em; font-size: 1.1rem; }
.gt p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.gt-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; font-weight: 700; font-size: 1.2rem; }
.gt-money .gt-ico { background: var(--money); }
.gt-material .gt-ico { background: var(--material); }
.gt-service .gt-ico { background: var(--service); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } .give-types { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.filters input[type=search], .filters select { font: inherit; padding: .6em .9em; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.filters input[type=search] { flex: 1 1 220px; min-width: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: 500 .88rem Inter, sans-serif; padding: .5em 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); cursor: pointer; }
.chip.active { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.toggle { display: flex; gap: .4em; align-items: center; font-size: .9rem; color: var(--ink-2); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
@media (max-width: 360px) { .grid { grid-template-columns: 1fr; } }
.need { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.need::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.need[data-type=money] { --c: var(--money); }
.need[data-type=material] { --c: var(--material); }
.need[data-type=service] { --c: var(--service); }
.need-top { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tag { font-size: .72rem; font-weight: 600; padding: .25em .7em; border-radius: 999px; background: #f3efe6; color: var(--ink-2); }
.tag.type { background: color-mix(in srgb, var(--c) 14%, white); color: var(--c); }
.tag.urg-3 { background: #fde6e3; color: var(--danger); }
.tag.urg-2 { background: #fff1dc; color: #a35d00; }
.tag.ok { background: #e1f3ea; color: var(--money); }
.tag.pending { background: #eeeaf8; color: var(--indigo-2); }
.tag.done { background: var(--indigo); color: var(--gold-2); }
.need h3 { font-size: 1.15rem; margin-bottom: .25em; }
.need .loc { font-size: .85rem; color: var(--muted); margin-bottom: .6em; }
.need .story { font-size: .93rem; color: var(--ink-2); flex: 1; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.need .story.full { -webkit-line-clamp: unset; }
.more { background: none; border: 0; padding: 0; color: var(--indigo-2); font: 600 .85rem Inter, sans-serif; cursor: pointer; margin: -0.4em 0 1em; align-self: flex-start; }
.bar { height: 8px; border-radius: 999px; background: #f0ebe0; overflow: hidden; margin: 6px 0; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--c); transition: width .5s; }
.progress-meta { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.progress-meta b { color: var(--ink); }
.need .btn { width: 100%; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

.post { background: linear-gradient(180deg, #f4efe4, var(--bg)); }
.post-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.5em; }
.ticks li { padding-left: 1.8em; position: relative; margin-bottom: .6em; color: var(--ink-2); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--money); font-weight: 700; }
.small-quote { margin: 0; padding-left: 1em; border-left: 3px solid var(--gold); font-family: Fraunces, serif; font-size: 1.1rem; color: var(--indigo); }
.form label, .give-form label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-2); margin-bottom: 14px; min-width: 0; }
.form input, .form textarea, .form select, .give-form input, .inline-label input {
font: 400 1rem Inter, sans-serif; padding: .7em .85em; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
.form textarea { resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.row3:has(#unit-wrap[hidden]) { grid-template-columns: 1fr 1fr; }
.type-pick { border: 0; padding: 0; margin: 0 0 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.type-pick legend { font-size: .88rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.type-pick label { flex-direction: row; margin: 0; }
.type-pick input { position: absolute; opacity: 0; }
.type-pick span { padding: .55em 1.2em; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-weight: 500; background: #fff; }
.type-pick input:checked + span { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.type-pick input:focus-visible + span { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.form .consent, .give-form .consent { flex-direction: row; align-items: center; gap: .6em; font-weight: 500; }
.consent input { width: auto; }
.form-err { color: var(--danger); font-size: .9rem; min-height: 1.2em; margin: 0 0 8px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .row2, .row3, .row3:has(#unit-wrap[hidden]) { grid-template-columns: 1fr; } }

.ledger { background: var(--indigo); color: #fff; }
.ledger .sub { color: rgba(255,255,255,.75); }
.ledger .eyebrow { color: var(--gold-2); }
.ledger-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.ledger .card { color: var(--ink); }
.feed, .board { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.feed li:last-child { border: 0; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: .45em; }
.feed .msg { display: block; color: var(--muted); font-style: italic; font-size: .87rem; }
.feed time { display: block; color: var(--muted); font-size: .78rem; }
.board li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.board li:last-child { border: 0; }
.rank { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #f3efe6; font-weight: 700; font-size: .85rem; }
.board li:first-child .rank { background: var(--gold-2); }
.board .name { flex: 1; font-weight: 600; }
.board .pts { font-weight: 700; color: var(--indigo-2); }
@media (max-width: 820px) { .ledger-grid { grid-template-columns: 1fr; } }

.traj { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.inline-label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--ink-2); max-width: 360px; }
.traj-card h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.level { font-family: Inter, sans-serif; font-size: .8rem; background: var(--indigo); color: var(--gold-2); padding: .3em .8em; border-radius: 999px; }
.yield { font-family: Fraunces, serif; font-size: 3rem; color: var(--indigo); line-height: 1; }
.yield small { font-family: Inter, sans-serif; font-size: .9rem; color: var(--muted); }
.traj-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.traj-split div { background: #f8f5ee; border-radius: 12px; padding: 12px; text-align: center; }
.traj-split b { display: block; font-size: 1.2rem; }
.traj-split span { font-size: .78rem; color: var(--muted); }
.path { display: flex; justify-content: space-between; gap: 4px; margin-top: 8px; }
.path span { flex: 1; text-align: center; font-size: .72rem; color: var(--muted); padding-top: 8px; border-top: 4px solid #eee7d8; }
.path span.on { border-color: var(--gold); color: var(--ink); font-weight: 600; }
@media (max-width: 820px) { .traj { grid-template-columns: 1fr; gap: 28px; } }

.philo { background: linear-gradient(180deg, var(--bg), #f4efe4); }
.philo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.philo-grid article { background: var(--paper); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.philo-grid h3 { color: var(--indigo); }
.philo-grid p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.youth { margin-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: linear-gradient(135deg, var(--indigo), var(--indigo-2)); color: #fff; border: 0; }
.youth p { color: rgba(255,255,255,.85); margin: 0; max-width: 620px; }
.youth h3 { color: var(--gold-2); }
@media (max-width: 900px) { .philo-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .philo-grid { grid-template-columns: 1fr; } }

.site-footer { background: #15112e; color: #fff; padding: 48px 0 24px; }
.site-footer .muted { color: rgba(255,255,255,.6); }
.foot { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; }
.brand-foot { font-family: Fraunces, serif; font-size: 1.5rem; margin-bottom: .3em; }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-style: italic; font-size: .88rem; }
@media (max-width: 700px) { .foot { grid-template-columns: 1fr; } }

dialog { border: 0; border-radius: 20px; padding: 0; width: min(460px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(21, 17, 46, .6); }
.give-form { padding: 28px; position: relative; }
.give-form h3 { padding-right: 24px; }
.x { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 14px; }
.quick button { font: 500 .85rem Inter, sans-serif; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .35em .9em; cursor: pointer; }
.note { font-size: .83rem; background: #f8f5ee; border-radius: 10px; padding: 10px 12px; color: var(--ink-2); }
.give-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--indigo); color: #fff; padding: 14px 22px; border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.25); transition: transform .3s; z-index: 50; max-width: calc(100vw - 32px); font-size: .95rem; }
.toast.show { transform: translate(-50%, 0); }
.toast b { color: var(--gold-2); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }