:root {
  --cream: #fbf6ef;
  --blush: #fdecee;
  --paper: #fffdf9;
  --teal: #0f4a47;
  --teal-soft: #2f6b66;
  --crimson: #b8203d;
  --crimson-dark: #951932;
  --rose: #e06a80;
  --gold: #c99a2e;
  --ink: #2c2a27;
  --muted: #6b645c;
  --line: #eadfd2;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(84, 46, 30, 0.10);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Dancing Script", "Brush Script MT", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--crimson); }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--serif); color: var(--teal); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; }
.script { font-family: var(--script); color: var(--crimson); font-weight: 700; font-size: 1.12em; display: inline-block; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; color: var(--rose); margin: 0 0 .8em; }
.lead { font-size: 1.15rem; color: #4a453f; }
.attrib { font-weight: 700; color: var(--teal-soft); }
.fine { font-size: .85rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .85em 1.6em; border-radius: 999px; border: 2px solid var(--crimson);
  background: var(--crimson); color: #fff; font: 800 1rem/1 var(--sans);
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 16px rgba(184, 32, 61, .25);
}
.btn:hover { background: var(--crimson-dark); border-color: var(--crimson-dark); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--crimson); box-shadow: none; }
.btn-ghost:hover { background: var(--blush); color: var(--crimson-dark); }
.btn-small { padding: .6em 1.2em; font-size: .9rem; }
.btn-full { width: 100%; padding: 1.05em 1.2em; font-size: 1.1rem; }
.btn[disabled] { opacity: .7; cursor: wait; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
/* logo artwork has wide margins; crop to the lettering */
.brand img { width: 128px; height: 84px; object-fit: cover; }
.brand img, .footer-logo { mix-blend-mode: multiply; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a:not(.btn) { color: var(--teal); text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--crimson); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 40px; background: radial-gradient(1200px 500px at 85% 10%, var(--blush), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-logo { width: min(380px, 100%); aspect-ratio: 1.7; object-fit: cover; mix-blend-mode: multiply; margin: -12px 0 12px -10px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { border-radius: 28px; box-shadow: var(--shadow); border: 10px solid #fff; transform: rotate(1.5deg); }
.hero-photo figcaption {
  position: absolute; left: -18px; bottom: 28px; background: #fff; padding: .55em 1.1em; border-radius: 999px;
  font-family: var(--script); font-size: 1.35rem; color: var(--crimson); box-shadow: var(--shadow); transform: rotate(-3deg);
}

/* Heartbeat divider */
.beat { width: 100%; height: 60px; margin: 10px 0; }
.beat svg { width: 100%; height: 100%; }
.beat path { fill: none; stroke: var(--crimson); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 3.2s ease-out .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px 22px; position: relative; box-shadow: 0 4px 14px rgba(84, 46, 30, .05); }
.step p { margin: 0; font-size: .98rem; color: #4a453f; }
.step-dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blush); color: var(--crimson); font-size: 1.1rem; margin-bottom: 14px; }
.step-now { background: linear-gradient(160deg, #fff, var(--blush)); border-color: #f3c6cf; }
.step-now .step-dot { background: var(--crimson); color: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.15); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }

/* Verse */
.verse { background: var(--teal); color: #fff; padding: clamp(56px, 8vw, 90px) 0; position: relative; overflow: hidden; }
.verse::before { content: "♥"; position: absolute; font-size: 420px; color: rgba(255, 255, 255, .04); right: -40px; top: -120px; line-height: 1; }
.verse blockquote { margin: 0; }
.verse blockquote p { font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.35; margin: 0 0 .6em; }
.verse cite { font-style: normal; font-family: var(--script); font-size: 1.7rem; color: #f2c96b; }
.verse-note { margin: 1.6em 0 0; color: rgba(255, 255, 255, .8); font-size: 1rem; }

/* Give */
.give { background: linear-gradient(180deg, var(--cream), #fff6f2); }
.give-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.give-list { padding: 0; list-style: none; margin: 1.2em 0; }
.give-list li { padding-left: 1.8em; position: relative; margin: .5em 0; }
.give-list li::before { content: "♥"; position: absolute; left: 0; color: var(--crimson); }

.donate-card { background: #fff; border-radius: 24px; padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.donate-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.freq { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); border-radius: 999px; padding: 5px; margin-bottom: 20px; }
.freq span { display: block; text-align: center; padding: .6em; border-radius: 999px; font-weight: 800; color: var(--teal); cursor: pointer; }
.freq input:checked + span { background: var(--teal); color: #fff; }
.freq input:focus-visible + span, .amounts input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.freq-note { margin: -8px 0 18px; font-size: .9rem; color: var(--muted); text-align: center; }
.amounts { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
/* three buttons on the first row, two wider ones on the second */
.amounts label { position: relative; grid-column: span 2; }
.amounts label:nth-last-of-type(-n+2) { grid-column: span 3; }
.amounts span { display: block; text-align: center; padding: .85em .4em; border: 2px solid var(--line); border-radius: 14px; font-weight: 800; font-size: 1.1rem; color: var(--teal); cursor: pointer; transition: all .15s; }
.amounts span:hover { border-color: var(--rose); }
.amounts input:checked + span { border-color: var(--crimson); background: var(--blush); color: var(--crimson); }
.custom { display: block; margin-bottom: 20px; }
.custom > span:first-child { display: block; font-size: .9rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.custom-field { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 14px; padding: 0 14px; font-weight: 800; color: var(--teal); }
.custom-field:focus-within { border-color: var(--crimson); }
.custom-field input { border: 0; outline: 0; font: 700 1.1rem var(--sans); padding: .8em .4em; width: 100%; background: transparent; color: var(--ink); }
.tax-note { margin: 14px 0 0; text-align: center; font-size: .9rem; font-weight: 700; color: var(--teal); }
.tax-note::before { content: "✓ "; color: var(--gold); }
.donate-msg { min-height: 1.4em; margin: 12px 0 0; font-size: .95rem; color: var(--crimson-dark); text-align: center; }

/* Pray */
.pray { background: #fff; }
.prayer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.prayer { text-align: center; padding: 26px 20px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.prayer h3 { font-family: var(--script); color: var(--crimson); font-size: 1.7rem; margin-bottom: .2em; }
.prayer p { margin: 0; font-size: .98rem; color: #4a453f; }

/* Challenge */
.challenge { padding: clamp(56px, 8vw, 90px) 0; background: var(--blush); }
.share-label { font-weight: 800; color: var(--teal); margin: 1.6em 0 .6em; }
.share { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.share .btn-ghost { background: #fff; }

/* Letter */
.letter-section { background: var(--cream); }
.letter {
  margin-top: 36px; background: var(--paper); padding: clamp(28px, 6vw, 64px);
  border-radius: 6px; box-shadow: var(--shadow); border: 1px solid var(--line); position: relative;
  font-family: var(--serif); font-size: 1.08rem; line-height: 1.8; color: #36322d;
}
.letter::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--teal), var(--rose), var(--crimson)); border-radius: 6px 6px 0 0; }
.letter p { margin: 0 0 1.1em; }
.letter-verse { margin: 1.4em 0; padding: 1em 1.4em; border-left: 4px solid var(--gold); background: #fbf3e2; font-style: italic; }
.signoff { margin-top: 2em !important; }
.signoff .script { font-size: 2.1rem; margin-top: .2em; }
.after-letter { margin-top: 40px; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 36px 0 48px; text-align: center; }
.footer-logo { width: 260px; height: 156px; object-fit: cover; margin: 0 auto 8px; }
.site-footer p { margin: .3em 0; }

/* Thank-you page */
.thanks { min-height: 70vh; display: grid; place-items: center; padding: 60px 0; text-align: center; }
.thanks img.thanks-photo { width: 220px; height: 220px; object-fit: cover; object-position: 50% 30%; border-radius: 50%; border: 8px solid #fff; box-shadow: var(--shadow); margin: 0 auto 28px; }

@media (max-width: 900px) {
  .hero-grid, .give-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 440px; margin-inline: auto; }
  .timeline, .prayer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav a:not(.btn) { display: none; }
  .brand img { width: 108px; height: 60px; }
  .header-inner { height: 64px; }
  .timeline, .prayer-grid { grid-template-columns: 1fr; }
  .hero-photo figcaption { left: 8px; font-size: 1.15rem; }
  .hero-photo img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .beat path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
