/* Lantern Kids Home: warm lantern light on deep night navy */
@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --night: #0d1b2e;
  --night-2: #13263f;
  --night-3: #1b3354;
  --amber: #f5b942;
  --amber-2: #ffd27a;
  --ember: #e07a2f;
  --cream: #fbf4e6;
  --paper: #fffaf0;
  --ink: #1d2433;
  --ink-soft: #4a5468;
  --line: rgba(245, 185, 66, .25);
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(5, 12, 24, .55);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: #9a4d0c; text-underline-offset: .18em; }
a:hover { color: var(--ember); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--amber); color: var(--night); padding: .6rem 1rem; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a35a12; margin-bottom: .6rem; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .8rem 1.5rem; border-radius: 999px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, var(--amber-2), var(--amber)); color: var(--night); box-shadow: 0 10px 28px -10px rgba(245, 185, 66, .75); }
.btn-primary:hover { color: var(--night); box-shadow: 0 14px 34px -10px rgba(245, 185, 66, .95); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-small { min-height: 40px; padding: .45rem 1.1rem; font-size: .95rem; }
.btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13, 27, 46, .92); backdrop-filter: blur(10px); color: var(--cream); border-bottom: 1px solid rgba(245, 185, 66, .15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--cream); text-decoration: none; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.brand em { font-style: italic; font-weight: 400; color: var(--amber-2); }
.brand:hover { color: var(--cream); }
.brand-mark { width: 26px; height: 32px; color: var(--amber); filter: drop-shadow(0 0 8px rgba(245, 185, 66, .6)); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--cream); text-decoration: none; font-weight: 500; font-size: .98rem; opacity: .9; }
.nav a:not(.btn):hover { color: var(--amber-2); opacity: 1; }
.nav .btn-primary, .nav .btn-small { background: var(--amber); color: var(--night); }
.nav-toggle { display: none; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; background: none; border: 0; color: var(--cream); cursor: pointer; }
  .bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; } .bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
  .nav ul { display: none; position: absolute; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--night); padding: .5rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line); }
  .nav ul.open { display: flex; }
  .nav li a:not(.btn) { display: block; padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav li .btn { margin-top: 1rem; width: 100%; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 85% 10%, var(--night-3) 0%, var(--night) 60%); color: var(--cream); padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero-glow { position: absolute; width: 620px; height: 620px; right: 18%; top: -120px; background: radial-gradient(circle, rgba(245,185,66,.28) 0%, rgba(245,185,66,0) 65%); pointer-events: none; animation: flicker 6s ease-in-out infinite; }
@keyframes flicker { 0%,100% { opacity: .85; transform: scale(1); } 45% { opacity: 1; transform: scale(1.04); } 70% { opacity: .9; } }
.hero-grid { position: relative; display: grid; gap: 2.5rem; align-items: center; }
.hero .eyebrow { color: var(--amber-2); display: inline-flex; align-items: center; gap: .5rem; }
.hero .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--amber); }
.hero h1 span { color: var(--amber-2); }
.hero h1 .nowrap span { color: inherit; }
.hero h1 .nowrap { color: var(--amber-2); font-style: italic; font-weight: 500; }
.lede { font-size: clamp(1.1rem, 2.3vw, 1.3rem); color: #e8dfcd; max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2rem; }
.hero .btn-ghost { color: var(--cream); border-color: rgba(251,244,230,.5); }
.hero .btn-ghost:hover { border-color: var(--amber); color: var(--amber-2); }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 30%; border-radius: 28px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(245,185,66,.25); }
.hero-photo::after { content: ""; position: absolute; inset: auto -12px -12px auto; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(245,185,66,.55), transparent 70%); filter: blur(6px); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }

/* Progress component */
.progress { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.15rem; max-width: 30rem; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; font-size: .95rem; }
.progress-amount { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.progress-bar { height: 10px; border-radius: 999px; background: rgba(127,127,127,.22); overflow: hidden; margin: .6rem 0 .5rem; }
.progress-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--ember), var(--amber), var(--amber-2)); box-shadow: 0 0 14px rgba(245,185,66,.7); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.progress-meta { font-size: .85rem; opacity: .85; margin: 0; }
.progress-pending { font-style: italic; }
.progress-meta a { color: inherit; }
.hero .progress-amount { color: var(--amber-2); }
.light .progress { background: #fff; border-color: #ecdcc0; }

/* About */
.two-col { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.quote { margin: 0; position: relative; background: var(--night); color: var(--cream); padding: 2.5rem 2rem 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.55rem); line-height: 1.45; }
.quote footer { font-size: .95rem; color: var(--amber-2); }
.quote footer a { color: var(--amber-2); }
.quote-mark { position: absolute; top: -22px; left: 2rem; width: 36px; height: 45px; color: var(--amber); background: var(--night); padding: 4px; border-radius: 10px; filter: drop-shadow(0 0 10px rgba(245,185,66,.6)); }

/* Daily life */
.life { background: var(--cream); }
.life-grid { display: grid; gap: 1.5rem; margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.life-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px -18px rgba(13,27,46,.35); }
.life-card img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.life-card h3, .life-card p { padding-inline: 1.25rem; }
.life-card h3 { margin-top: 1.1rem; }
.life-card p { color: var(--ink-soft); font-size: 1rem; }

/* Hope banner */
.hope { background: var(--night); }
.hope { padding: clamp(1rem, 3vw, 2rem) 0; }
.hope img { width: min(1100px, 100%); margin-inline: auto; opacity: .96; }
@media (min-width: 1140px) { .hope img { border-radius: 20px; } }

/* Campaigns */
.campaigns { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: var(--cream); }
.campaigns .eyebrow { color: var(--amber-2); }
.campaigns .section-lede { color: #d9cfbd; }
.campaigns a:not(.btn) { color: var(--amber-2); }
.campaign-list { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 980px) { .campaign-list { grid-template-columns: 1.25fr 1fr 1fr; align-items: stretch; } }
.campaign { position: relative; display: flex; flex-direction: column; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 22px; padding: 1.75rem; scroll-margin-top: 90px; }
.campaign.featured { background: linear-gradient(160deg, rgba(245,185,66,.16), rgba(255,255,255,.03) 55%); border-color: rgba(245,185,66,.5); }
.campaign-num { font-family: var(--serif); font-size: .95rem; color: var(--night); background: var(--amber); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; margin-bottom: 1rem; }
.campaign-kicker { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-2); font-weight: 700; margin-bottom: .35rem; }
.campaign h3 { font-size: 1.6rem; }
.campaign p { color: #e1d8c6; }
.campaign .progress { margin: .5rem 0 1.25rem; max-width: none; }
.campaign .btn { margin-top: auto; align-self: flex-start; }
.campaign .pending-link { margin-top: auto; font-size: .95rem; color: #d9cfbd; border-top: 1px dashed var(--line); padding-top: 1rem; }
.tiers { list-style: none; padding: 0; margin: .25rem 0 1.5rem; display: grid; gap: .55rem; }
.tiers li { display: grid; grid-template-columns: 4.2rem 1fr; gap: .75rem; align-items: baseline; padding: .55rem .8rem; border-radius: 12px; background: rgba(13,27,46,.55); }
.tier-amt { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--amber-2); }
.tiers .src { font-size: .78rem; margin-left: .35rem; }
.tier-note { font-size: .85rem; color: #bfb5a3 !important; }
.src { font-size: .85rem; white-space: nowrap; }

/* Gallery */
.gallery { list-style: none; padding: 0; margin: 2rem 0 0; columns: 2 160px; column-gap: 1rem; }
@media (min-width: 700px) { .gallery { columns: 3; } }
@media (min-width: 1050px) { .gallery { columns: 4; } }
.gallery li { break-inside: avoid; margin-bottom: 1rem; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; }
.gallery img { width: 100%; transition: transform .4s ease, filter .3s; }
.gallery button:hover img { transform: scale(1.03); filter: saturate(1.1) brightness(1.04); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(5,12,24,.88); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox p { color: var(--cream); text-align: center; font-size: .95rem; margin: .8rem 1rem 0; }
.lightbox p a { color: var(--amber-2); }
.lightbox-close { position: fixed; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--amber); color: var(--night); font-size: 1.8rem; line-height: 1; cursor: pointer; }

/* Give */
.give { background: var(--cream); }
.give-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 900px) { .give-grid { grid-template-columns: 1.3fr .9fr; gap: 4rem; } .give-photo { position: sticky; top: 100px; } }
.quote-inline { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink); }
.give-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; margin-top: 1.25rem; box-shadow: 0 10px 30px -20px rgba(13,27,46,.4); }
.give-card-primary { background: var(--night); color: var(--cream); }
.give-card-primary .progress { margin-bottom: 1.25rem; }
.give-card-primary .progress-amount { color: var(--amber-2); }
.badge { display: inline-block; vertical-align: middle; font-family: var(--sans); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; background: #2f9e62; color: #fff; padding: .2rem .55rem; border-radius: 999px; margin-left: .4rem; }
.copy-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.copy-row code { background: var(--cream); padding: .5rem .7rem; border-radius: 8px; word-break: break-all; font-size: .9rem; }
.give-photo { margin: 0; }
.give-photo img { border-radius: 24px; box-shadow: var(--shadow); transform: rotate(1.5deg); }

/* Contact */
.contact { background: var(--paper); }
.contact-inner { display: grid; gap: 2rem; align-items: center; max-width: 860px; }
@media (min-width: 700px) { .contact-inner { grid-template-columns: 200px 1fr; gap: 3rem; } }
.avatar { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px var(--cream), 0 0 0 8px var(--amber), var(--shadow); }
.x-handle { font-weight: 700; }
.contact-extra { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.contact .btn-ghost { color: var(--night); }

/* Footer */
.site-footer { background: var(--night); color: #cfc6b4; padding: 3rem 0; font-size: .95rem; }
.site-footer a { color: var(--amber-2); }
.brand-footer { font-size: 1.3rem; color: var(--cream); }
.small { font-size: .85rem; opacity: .85; }

/* v2 additions */
.tier-amt small { font-family: var(--sans); font-size: .7rem; font-weight: 600; opacity: .8; margin-left: 1px; }
.tiers li { grid-template-columns: 5.2rem 1fr; }
.campaign-note { font-size: .9rem; color: #d9cfbd !important; border-left: 3px solid var(--amber); padding-left: .75rem; margin-top: -.5rem; }
.campaign-photos { margin: .25rem 0 1.25rem; }
.campaign-photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.campaign-photo-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.campaign-photos figcaption { font-size: .8rem; color: #bfb5a3; margin-top: .45rem; }
.maliki { background: var(--paper); padding-top: 0; }
.maliki-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .maliki-grid { grid-template-columns: .8fr 1.2fr; gap: 4.5rem; } }
.maliki-photo { margin: 0; }
.maliki-photo img { width: 100%; max-width: 420px; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.maliki .btn-ghost { color: var(--night); margin-top: .5rem; }

/* Campaign share & subpages */
.campaign-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.15rem; padding-top: .5rem; }
.campaign-actions-pending { flex-direction: column; align-items: flex-start; gap: .7rem; border-top: 1px dashed var(--line); padding-top: 1rem; }
.campaign-actions-pending .pending-link { margin: 0; border-top: 0; padding-top: 0; }
.campaign-share { font-size: .92rem; font-weight: 600; color: var(--amber-2); text-decoration: underline; text-underline-offset: .22em; }
.campaign-share:hover { color: var(--cream); }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin: .85rem 0; font-size: .9rem; }

.subpage-hero { background: radial-gradient(120% 90% at 85% 10%, var(--night-3) 0%, var(--night) 65%); color: var(--cream); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.subpage-hero .eyebrow { color: var(--amber-2); }
.subpage-hero .lede { margin-bottom: 1.5rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .9rem; color: #cfc6b4; margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--amber-2); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.subpage-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .subpage-grid { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; } }
.subpage-body { background: var(--paper); padding: clamp(3rem, 7vw, 5rem) 0; }
.subpage-card { background: var(--night); color: var(--cream); border: 1px solid var(--line); border-radius: 22px; padding: 1.75rem; box-shadow: var(--shadow); }
.subpage-card h2 { font-size: 1.55rem; margin-bottom: .75rem; }
.subpage-card p { color: #e1d8c6; }
.subpage-card a:not(.btn) { color: var(--amber-2); }
.subpage-card .progress { margin: 1rem 0 1.35rem; max-width: none; }
.subpage-card .progress-amount { color: var(--amber-2); }
.subpage-card .campaign-photo-row { margin-top: .5rem; }
.subpage-media { margin: 0; }
.subpage-media img { width: 100%; border-radius: 22px; box-shadow: var(--shadow); }
.subpage-media figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: .65rem; }
.share-box { background: var(--cream); border: 1px solid #ead8b8; border-radius: 16px; padding: 1.15rem 1.35rem; margin-top: 1.5rem; }
.share-box h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.share-box .copy-row code { background: #fff; border: 1px solid #ead8b8; }
.other-campaigns { background: var(--cream); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.other-grid { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 700px) { .other-grid { grid-template-columns: repeat(3, 1fr); } }
.other-card { background: #fff; border-radius: 16px; padding: 1.35rem; box-shadow: 0 10px 26px -20px rgba(13,27,46,.35); display: flex; flex-direction: column; }
.other-card .eyebrow { font-size: .72rem; margin-bottom: .35rem; }
.other-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.other-card p { font-size: .95rem; color: var(--ink-soft); }
.other-card a { margin-top: auto; font-weight: 600; }
.error-page { min-height: 62vh; display: grid; place-items: center; background: var(--paper); padding: 4rem 0; }
.error-card { max-width: 620px; }
