:root {
  --sky-1: #cdeafa;
  --sky-2: #e3f3fc;
  --sky-3: #f1f9fd;
  --sun: #ffce4f;
  --sun-soft: #ffe08a;
  --sun-deep: #f2ad2e;
  --paper: #fbf7ee;
  --paper-2: #ffffff;
  --paper-line: #e7ddc8;
  --ink: #243240;
  --ink-soft: #5e6b78;
  --ink-faint: #8a96a2;
  --green: #2f7d52;
  --green-deep: #245f3f;
  --terra: #d76453;
  --terra-deep: #b94a3a;
  --accent: #3a6ea5;
  --shadow: 0 14px 34px rgba(58, 90, 130, 0.14);
  --shadow-soft: 0 8px 20px rgba(58, 90, 130, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Mulish", system-ui, sans-serif;
  background: var(--paper);
  line-height: 1.62;
}

.wrap { width: min(1080px, 92vw); margin: 0 auto; }

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.1; margin: 0 0 .35em; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Mulish", sans-serif;
  font-weight: 800;
  font-size: .98rem;
  text-decoration: none;
  padding: .7em 1.4em;
  border-radius: 12px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-donate { background: var(--terra); color: #fff; box-shadow: var(--shadow-soft); }
.btn-donate:hover { transform: translateY(-2px); background: var(--terra-deep); box-shadow: var(--shadow); }
.btn-lg { font-size: 1.08rem; padding: .82em 1.8em; }
.btn-sm { font-size: .88rem; padding: .55em 1.1em; }
.btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid rgba(58, 110, 165, 0.4); font-weight: 700; }
.btn-ghost:hover { border-color: var(--accent); background: rgba(58, 110, 165, 0.07); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 247, 238, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--paper-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .65rem 0; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand-star { width: 20px; height: 20px; fill: var(--sun-deep); }
.brand-text { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.04rem; letter-spacing: .2px; }

/* ---------- hero / daytime sky ---------- */
.sky {
  position: relative;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%);
  color: var(--ink);
  overflow: hidden;
}
.sky-deco { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.sky-deco .sun { animation: sunpulse 9s ease-in-out infinite; transform-origin: 1030px 118px; }
@keyframes sunpulse { 0%,100% { opacity: .92; } 50% { opacity: 1; } }
.cloud { fill: #ffffff; opacity: 0.85; }
.cloud.soft { opacity: 0.55; }
.sky-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(180deg, transparent, var(--paper)); z-index: 1; }

.hero { position: relative; z-index: 2; text-align: center; padding: 4rem 0 3.4rem; }
.kicker { font-family: "Mulish", sans-serif; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); font-size: .8rem; margin: 0 0 .9rem; }
.hero-title { font-size: clamp(2.6rem, 6.6vw, 5rem); color: var(--ink); font-weight: 600; }
.hero-title em { display: block; font-style: italic; font-weight: 600; font-size: .44em; line-height: 1.08; margin-top: .18em; color: var(--terra); }
.hero-sub { font-size: 1.12rem; max-width: 640px; margin: 1.1rem auto 1.9rem; color: var(--ink-soft); }
.hero-sub strong { color: var(--ink); font-weight: 800; }
.hero-give { font-size: 1rem; color: var(--ink-soft); margin: -.3rem auto 1.1rem; max-width: 600px; }
.hero-give strong { color: var(--terra-deep); font-weight: 800; }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* HRW beneficiary badge */
.hrw-badge { display: inline-flex; align-items: center; gap: .7rem; background: rgba(255,255,255,0.72); border: 1px solid rgba(255,255,255,0.9); padding: .38rem .95rem .38rem .85rem; border-radius: 999px; margin: .1rem 0 1.6rem; box-shadow: var(--shadow-soft); }
.hrw-badge-label { font-family: "Mulish", sans-serif; font-weight: 800; font-size: .74rem; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); }
.hrw-badge-logo { height: 30px; width: auto; display: block; border-radius: 3px; }

/* marathon bridge */
.bridge-wrap { position: relative; z-index: 2; width: 100%; line-height: 0; margin-top: .5rem; }
.bridge { width: 100%; height: auto; display: block; }
.bridge-tower { fill: #7f9db8; stroke: #5f7a92; stroke-width: 2; stroke-linejoin: round; }
.bridge-cable { fill: none; stroke: #c9a978; stroke-width: 3.5; stroke-linecap: round; }
#bridge-suspenders line { stroke: #a9bccd; stroke-width: 1.1; }
.bridge-deck { fill: #aebfce; stroke: #8ba0b3; stroke-width: 1.5; }
.bridge-anchor { fill: #cdbb98; stroke: #a2916f; stroke-width: 1.5; stroke-linejoin: round; }
.bridge-skyline { fill: #bcd3e0; }
.bridge-wave { fill: none; stroke: rgba(255,255,255,0.55); stroke-width: 2; stroke-linecap: round; }
.bridge-caption { fill: #5b86a6; opacity: .6; font-family: "Mulish", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 2px; text-anchor: middle; text-transform: uppercase; }
#bridge-runners circle { paint-order: stroke; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.4rem auto; max-width: 760px; }
.stat {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 1rem .5rem .9rem;
  box-shadow: var(--shadow-soft);
}
.stat-num { font-family: "Fraunces", serif; font-weight: 700; font-size: 2.1rem; color: var(--accent); line-height: 1; }
.stat-num small { font-size: .9rem; color: var(--ink-soft); font-weight: 600; }
.stat-label { font-size: .82rem; color: var(--ink-soft); margin-top: .35rem; }

/* ---------- section headers ---------- */
.section-title { font-size: clamp(2rem, 4.6vw, 3rem); color: var(--ink); margin-top: 0; font-weight: 600; }
.section-lead { color: var(--ink-soft); margin-top: -.1rem; max-width: 660px; }

/* ---------- journey / map ---------- */
.journey { position: relative; background: var(--paper); padding: 3.4rem 0 1rem; }
.journey .section-title { margin-top: 0; }
.map-card {
  background: #ffffff;
  border: 1px solid var(--paper-line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 12px 12px 0;
  margin-top: 1.4rem;
  overflow: hidden;
}
#map { width: 100%; height: auto; display: block; border-radius: 14px; }

#route-base { fill: none; stroke: #c9a978; stroke-width: 4; stroke-dasharray: 1 13; stroke-linecap: round; opacity: .8; }
#route-progress { fill: none; stroke: var(--terra); stroke-width: 5.5; stroke-linecap: round; filter: drop-shadow(0 1px 2px rgba(183,74,58,.4)); }

.sun-rays { animation: spin 60s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.plane-trail { fill: none; stroke: rgba(120, 150, 175, 0.45); stroke-width: 2.5; stroke-dasharray: 1 9; stroke-linecap: round; }
.plane { animation: floaty 9s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.sea .wave { fill: none; stroke: rgba(95, 165, 200, 0.55); stroke-width: 2.5; stroke-linecap: round; }
.sea-label { fill: rgba(80, 140, 175, 0.7); font-family: "Fraunces", serif; font-style: italic; font-weight: 500; font-size: 24px; text-anchor: middle; }

.place-label { font-family: "Fraunces", serif; font-style: italic; font-weight: 600; font-size: 28px; fill: var(--ink); text-anchor: middle; }
.finish-text { font-family: "Mulish", sans-serif; font-weight: 800; font-size: 11px; fill: #fff; }

/* runner */
#runner .runner-bob { animation: bob 1.5s ease-in-out infinite; transform-origin: center; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.runner-flag { font-family: "Fraunces", serif; font-style: italic; font-weight: 600; font-size: 18px; fill: var(--terra-deep); text-anchor: middle; }

/* milestone markers */
.milestone .ms-dot { fill: #fff; stroke: var(--sun-deep); stroke-width: 2.5; }
.milestone .ms-label { font-family: "Mulish", sans-serif; font-weight: 800; font-size: 12px; fill: var(--ink-soft); text-anchor: middle; }

/* progress meters under the map */
.journey-progress { padding: 1.2rem .5rem 1.3rem; display: grid; gap: .9rem; }
.jp-row { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: .9rem; }
.jp-money { grid-template-columns: 92px 1fr auto auto; }
.jp-label { font-family: "Mulish", sans-serif; font-weight: 800; font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-faint); }
.jp-val { font-family: "Fraunces", serif; font-weight: 600; color: var(--ink); white-space: nowrap; }
.meter { height: 15px; background: #eef0ed; border-radius: 999px; overflow: hidden; border: 1px solid var(--paper-line); }
.meter-fill { height: 100%; width: 0; border-radius: 999px; transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.meter-route .meter-fill { background: linear-gradient(90deg, #6fb3d6, #a9dcef); }
.meter-gold .meter-fill { background: linear-gradient(90deg, var(--sun-deep), var(--sun-soft)); }

/* ---------- content ---------- */
.content {
  background:
    radial-gradient(circle at 85% 6%, rgba(255,206,79,0.1), transparent 36%),
    radial-gradient(circle at 10% 60%, rgba(47,125,82,0.06), transparent 40%),
    var(--paper);
  padding: 1rem 0 1rem;
}
.highlights { padding-top: 3rem; }
.donate-section { padding-top: 3rem; }

/* highlighted trainings: alternating image / text rows */
.highlight-list { display: grid; gap: 1.6rem; margin-top: 1.6rem; }
.highlight {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.6rem;
  align-items: stretch;
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.highlight:nth-child(even) .hl-art { order: 2; }
.hl-art { min-height: 240px; position: relative; background: var(--sky-2); }
.hl-art .art { position: absolute; inset: 0; }
.hl-art img.art { width: 100%; height: 100%; object-fit: cover; display: block; }
.art.dawn { background: linear-gradient(160deg, #ffe0b0, #ffb4a8 52%, #d8a7d2); }
.art.park { background: linear-gradient(160deg, #cfeeac, #7cc080 58%, #2f7d52); }
.art.track { background: linear-gradient(160deg, #ffd9a0, #f0a45e 58%, #d76453); }
.art.dusk { background: linear-gradient(160deg, #ffd1a3, #f08f74 50%, #6a6fae); }
.hl-art .hl-km {
  position: absolute; left: 18px; bottom: 16px;
  background: rgba(255,255,255,0.92);
  border-radius: 12px; padding: .35rem .8rem;
  font-family: "Fraunces", serif; font-weight: 700; font-size: 1.7rem; color: var(--terra-deep);
  box-shadow: var(--shadow-soft);
}
.hl-art .hl-km small { font-size: .85rem; color: var(--ink-soft); font-weight: 500; }
.hl-body { padding: 1.6rem 1.7rem; display: flex; flex-direction: column; justify-content: center; }
.hl-title { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.5rem; color: var(--ink); margin: 0 0 .3rem; }
.hl-meta { color: var(--ink-faint); font-size: .9rem; font-weight: 600; margin-bottom: .7rem; display: flex; flex-wrap: wrap; gap: .2rem .9rem; }
.hl-note { color: var(--ink-soft); font-size: 1.02rem; margin: 0; }

/* where the donation goes */
.cause { padding-top: 3.4rem; }
.cause-hook { font-family: "Fraunces", serif; font-weight: 600; font-size: clamp(1.3rem, 2.5vw, 1.75rem); line-height: 1.28; color: var(--ink); max-width: 780px; margin: .2rem 0 1.1rem; }
.cause-text { color: var(--ink-soft); max-width: 780px; font-size: 1.05rem; margin: 0; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 2.2rem 0 1.8rem; }
.pillar { background: var(--paper-2); border: 1px solid var(--paper-line); border-radius: 18px; padding: 1.6rem 1.4rem; box-shadow: var(--shadow-soft); text-align: center; }
.pillar-ic { display: inline-flex; align-items: center; justify-content: center; width: 66px; height: 66px; border-radius: 50%; margin-bottom: .85rem; }
.pillar-ic svg { width: 34px; height: 34px; }
.ic-edu { background: rgba(58, 110, 165, 0.12); color: var(--accent); }
.ic-family { background: rgba(215, 100, 83, 0.14); color: var(--terra-deep); }
.ic-justice { background: rgba(47, 125, 82, 0.13); color: var(--green); }
.pillar h3 { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.2rem; margin: 0 0 .35rem; color: var(--ink); }
.pillar p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.cause-close { color: var(--ink); font-size: 1.06rem; max-width: 800px; border-left: 3px solid var(--sun); padding-left: 1.1rem; margin: 0 0 1.6rem; }
.cause-cta { }
.whydonate-widget { margin: 1.4rem 0 0; }
.whydonate-widget:empty { display: none; }

/* donations */
.donor-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.donor { background: var(--paper-2); border: 1px solid var(--paper-line); border-radius: 16px; padding: 1rem 1.1rem; box-shadow: var(--shadow-soft); }
.donor .d-top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.donor .d-name { font-weight: 800; display: flex; align-items: center; gap: .45rem; }
.donor .d-name .star-bullet { width: 14px; height: 14px; fill: var(--sun-deep); }
.donor .d-amt { font-family: "Fraunces", serif; font-weight: 700; font-size: 1.35rem; color: var(--green); }
.donor .d-msg { font-style: italic; font-size: 1rem; color: var(--ink-soft); margin-top: .25rem; }
.donor-empty { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); font-size: 1.05rem; padding: 1.6rem; background: var(--paper-2); border: 1px dashed var(--paper-line); border-radius: 16px; margin: 0; }
.donor-empty a { color: var(--terra-deep); font-weight: 800; text-decoration: none; }
.donor-empty a:hover { text-decoration: underline; }
.donor-cta { text-align: center; margin-top: 2rem; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: linear-gradient(180deg, #dff1fb, #cdeafa); color: var(--ink); padding: 2.6rem 0; text-align: center; border-top: 1px solid var(--paper-line); }
.foot-lead { font-family: "Fraunces", serif; font-size: 1.15rem; margin: 0 0 .3rem; }
.footnote { font-size: .9rem; color: var(--ink-soft); }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .brand-text { font-size: .82rem; }
  .jp-row { grid-template-columns: 1fr; gap: .35rem; text-align: left; }
  .jp-money { grid-template-columns: 1fr auto; }
  .jp-money .meter { grid-column: 1 / -1; order: 3; }
  .highlight { grid-template-columns: 1fr; }
  .highlight:nth-child(even) .hl-art { order: 0; }
  .hl-art { min-height: 180px; }
  .pillars { grid-template-columns: 1fr; }
}
