:root {
  --maroon: #8a2b2b;
  --maroon-dark: #5e1c1c;
  --gold: #c8892b;
  --gold-light: #f3d38a;
  --jade: #2f5d50;
  --cream: #fbf6ec;
  --paper: #fffdf8;
  --ink: #2b211c;
  --muted: #6e625a;
  --line: #eadfcd;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(94, 28, 28, 0.12);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --hand: "Caveat", "Segoe Script", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--maroon); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--maroon-dark); }
section { padding: 72px 20px; }
.sub { color: var(--muted); margin-top: -0.6em; }

.icon { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -5px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(200, 137, 43, 0.35);
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { background: #b4771f; transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, 0.15); border: 1.5px solid rgba(255, 255, 255, 0.8); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.28); }
.btn-sm { padding: 8px 18px; font-size: 0.9rem; }
.btn-lg { padding: 18px 34px; font-size: 1.15rem; }

.chip {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font: 500 0.95rem var(--sans);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--gold); color: var(--maroon); }
.chip-main { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.chip-main:hover { color: #fff; background: var(--maroon-dark); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 20px;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--maroon-dark); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--gold); font-weight: 500; }
.nav nav { display: flex; align-items: center; gap: 18px; }
.nav nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
@media (max-width: 600px) { .nav nav a:not(.btn) { display: none; } .brand span { display: none; } }

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid; place-items: center;
  text-align: center; color: #fff;
  background: linear-gradient(180deg, rgba(43, 20, 15, 0.35), rgba(43, 20, 15, 0.7)), var(--hero) var(--hero-pos, center)/cover no-repeat, var(--maroon);
}
.hero-inner { max-width: 820px; position: relative; z-index: 1; }
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43, 20, 15, 0.35), rgba(43, 20, 15, 0.7)); }
.hero-slide { position: absolute; inset: 0; background: center 35% / cover no-repeat; opacity: 0; transition: opacity 1.6s ease; transform: scale(1.04); }
.hero-slide.on { opacity: 1; animation: drift 9s ease-out forwards; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.greeting { font-family: var(--hand); font-size: 1.8rem; color: var(--gold-light); margin: 0 0 8px; }
.greeting span { font-size: 1.3rem; opacity: 0.85; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.8rem); text-shadow: 0 3px 20px rgba(0, 0, 0, 0.35); }
.tagline { font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.6rem); margin: 0 0 10px; }
.dates { opacity: 0.9; margin: 0 0 28px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Progress */
.progress { margin-top: -110px; position: relative; padding-top: 0; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.progress-card {
  max-width: 980px; margin: 0 auto; padding: 36px;
  display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center;
}
@media (max-width: 760px) { .progress-card { grid-template-columns: 1fr; padding: 26px 20px; text-align: center; } .ring-wrap { margin: 0 auto; } }
.ring-wrap { position: relative; width: 220px; height: 220px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--line); stroke-width: 16; }
.ring-fill { fill: none; stroke: var(--gold); stroke-width: 16; stroke-linecap: round; transition: stroke-dashoffset 1.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ring-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; align-content: center; }
.ring-label strong { font: 700 3.4rem var(--serif); color: var(--maroon-dark); }
.ring-label span { font: 700 1.6rem var(--serif); color: var(--maroon-dark); }
.ring-label small { width: 100%; text-align: center; color: var(--muted); }
.progress-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.big { font-size: 1.2rem; margin: 0 0 18px; }
.big strong { font: 700 2rem var(--serif); color: var(--jade); }

.bar { position: relative; height: 16px; background: var(--line); border-radius: 999px; margin: 8px 0 44px; }
.bar-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--maroon)); transition: width 1.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.milestone { position: absolute; top: 0; transform: translateX(-50%); }
.milestone i { display: block; width: 4px; height: 16px; background: var(--paper); }
.milestone b { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-size: 0.8rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.milestone:last-child { transform: translateX(-100%); }
.milestone:last-child b { left: auto; right: 0; transform: none; }
.milestone.hit b { color: var(--maroon); }

.stats, .facts { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stats li, .facts li { background: var(--cream); border-radius: 12px; padding: 12px; text-align: center; }
.stats strong, .facts strong { display: block; font: 700 1.5rem var(--serif); color: var(--maroon-dark); }
.stats span, .facts span { font-size: 0.85rem; color: var(--muted); }
.amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
@media (max-width: 760px) { .amounts { justify-content: center; } }
.fine { font-size: 0.85rem; color: var(--muted); margin: 0; }
.team { max-width: 980px; margin: 22px auto 0; padding: 0 8px; font-size: 0.95rem; color: var(--muted); }
.team p { margin: 0 0 6px; }
.bar-thin { height: 8px; margin: 0; }

/* Story */
.story { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; gap: 28px; } .portrait { max-width: 340px; margin: 0 auto; position: static; } }
.portrait { margin: 0; background: #fff; padding: 14px 14px 8px; box-shadow: var(--shadow); transform: rotate(-2.5deg); position: sticky; top: 90px; }
.portrait img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.portrait figcaption { font: 600 1.7rem var(--hand); text-align: center; color: var(--maroon-dark); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 600; color: var(--gold); margin: 0 0 6px; }
.letter { font-size: 1.08rem; }
.letter .salutation { font: 600 1.3rem var(--serif); color: var(--maroon-dark); }
.signoff { margin-bottom: 0; font-style: italic; }
.signature { font: 600 2.4rem var(--hand); color: var(--maroon); margin: 0; }

/* Mission */
.mission { background: var(--jade); color: #fff; text-align: center; }
.mission h2 { color: #fff; }
.facts { max-width: 760px; margin: 0 auto 36px; }
.facts li { background: rgba(255, 255, 255, 0.1); }
.facts strong { color: var(--gold-light); font-size: 2.2rem; }
.facts span { color: rgba(255, 255, 255, 0.85); }
.cards { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.do { padding: 30px 24px; color: var(--ink); text-align: left; }
.do .icon { width: 40px; height: 40px; color: var(--gold); margin-bottom: 10px; }
.do h3 { color: var(--maroon-dark); font-size: 1.3rem; }
.do p { margin: 0; color: var(--muted); }

/* Gallery */
.gallery { text-align: center; max-width: 1200px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 28px; }
.tile { position: relative; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--line); aspect-ratio: 4 / 3; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 0.5s; }
.tile:hover img { transform: scale(1.06); }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; text-align: left; color: #fff; font-weight: 500; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 270px; } .tile { aspect-ratio: auto; } .grid .tile:first-child { grid-column: span 2; grid-row: span 2; } }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(20, 10, 8, 0.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 80vh; border-radius: 10px; }
.lightbox p { color: #fff; font-family: var(--serif); font-size: 1.2rem; }
.lb-close { position: absolute; top: 14px; right: 18px; font-size: 2.4rem; background: none; border: 0; color: #fff; cursor: pointer; }

/* Verse */
.verse { background: var(--maroon); color: #fff; text-align: center; }
.verses { display: grid; max-width: 820px; margin: 0 auto; }
.verse blockquote { grid-area: 1 / 1; margin: 0; opacity: 0; transition: opacity 1s ease; }
.verse blockquote.on { opacity: 1; }
.dots { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }
.dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.35); cursor: pointer; }
.dots button.on { background: var(--gold-light); }
.give-verse { font: italic 500 1.15rem / 1.5 var(--serif); color: var(--maroon-dark); }
.give-verse cite { display: block; margin-top: 6px; font: 600 0.8rem var(--sans); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
footer .niv { font-size: 0.75rem; opacity: 0.85; }
.verse p { font: 500 clamp(1.4rem, 3vw, 2rem) / 1.4 var(--serif); margin: 0 0 14px; }
.verse cite { color: var(--gold-light); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.9rem; }

/* Prayer */
.pray { max-width: 820px; margin: 0 auto; }
.pray h2 .icon { width: 36px; height: 36px; color: var(--gold); }
.pray ol { list-style: none; counter-reset: p; padding: 0; margin: 28px 0 0; }
.pray li { counter-increment: p; position: relative; padding: 18px 20px 18px 66px; margin-bottom: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.pray li::before { content: counter(p); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #fff; font: 700 1rem/32px var(--serif); text-align: center; }

/* Give */
.give { text-align: center; background: linear-gradient(180deg, var(--cream), #f5e6c8); }
.give > p { max-width: 640px; margin: 0 auto 26px; }
.check { margin-top: 26px !important; color: var(--muted); font-size: 0.95rem; }
.share { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.share p { width: 100%; margin: 0 0 4px; font-weight: 600; }
.follow { font-weight: 600; }

footer { padding: 36px 20px; text-align: center; font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); }
footer p { max-width: 720px; margin: 0 auto 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring-fill, .bar-fill, .tile img, .btn, .hero-slide { transition: none; }
  .hero-slide.on { animation: none; }
}

/* Ways to give */
.memo-callout { max-width: 640px; margin: 0 auto 28px; padding: 20px 22px; background: var(--paper); border: 2px dashed var(--gold); border-radius: var(--radius); }
.memo-callout p { margin: 0 0 12px; }
.memo { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.memo code { font: 600 1.15rem var(--sans); color: var(--maroon-dark); background: var(--cream); padding: 8px 16px; border-radius: 10px; }
.ways { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; text-align: left; }
.way { padding: 22px; display: flex; flex-direction: column; }
.way h3 { color: var(--maroon-dark); font-size: 1.25rem; }
.way p { flex: 1; color: var(--muted); margin: 0 0 14px; }
.way p strong { color: var(--ink); }
.way .btn { align-self: flex-start; }

/* Family landing page */
.intro { max-width: 760px; margin: 0 auto; font-size: 1.15rem; text-align: center; padding-bottom: 20px; }
.family { text-align: center; padding-top: 20px; }
.people { max-width: 1000px; margin: 28px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; text-align: left; }
.person { overflow: hidden; text-decoration: none; color: var(--ink); transition: transform 0.2s; }
.person:hover { transform: translateY(-4px); }
.person img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.person-body { padding: 22px; }
.person h3 { font-size: 1.7rem; color: var(--maroon-dark); margin-bottom: 4px; }
.person-body > p { color: var(--muted); margin: 0 0 14px; }
.person .bar { margin: 0 0 8px; }
.person-amt { font-size: 0.95rem; color: var(--muted); margin: 0 0 16px !important; }
.person-amt strong { color: var(--jade); }
.family .team { text-align: left; }
.trip-note { display: inline-block; background: rgba(243, 211, 138, 0.18); border: 1px solid var(--gold-light); color: inherit; border-radius: 999px; padding: 6px 16px; font-weight: 600; margin: 0 0 22px; }
.give .trip-note { color: var(--maroon-dark); background: var(--paper); border-color: var(--gold); }
.trip-group { margin-top: 36px; }
.trip-heading { font-size: 1.5rem; color: var(--maroon-dark); margin: 0; }
.trip-heading span { display: block; font: 500 0.95rem var(--sans); color: var(--muted); margin-top: 4px; }
.trip-who { margin: 4px 0 0; color: var(--gold); font-weight: 600; }
.trip-group .people { margin-top: 18px; }
.trip-who span { color: var(--muted); font-weight: 400; }

/* Family button, trip charts, and the phone dock */
.nav-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.family-btn {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--maroon); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.92rem;
  box-shadow: 0 4px 12px rgba(138, 43, 43, 0.25); transition: background 0.15s, transform 0.15s;
}
.family-btn:hover { background: var(--maroon-dark); transform: translateY(-1px); }
.family-btn .icon { width: 18px; height: 18px; vertical-align: 0; stroke-width: 2.4; }

.trip-card { display: flex; align-items: center; gap: 20px; padding: 18px 22px; text-align: left; }
.progress > .trip-card { max-width: 980px; margin: 18px auto 0; }
.ring-sm { width: 92px; height: 92px; flex: none; }
.ring-sm .ring-label strong { font-size: 1.6rem; }
.ring-sm .ring-label span { font-size: 0.9rem; }
.trip-card-body { flex: 1; min-width: 0; }
.trip-card .eyebrow { margin-bottom: 2px; }
.trip-card h3 { font-size: 1.25rem; color: var(--maroon-dark); margin: 0 0 10px; }
.trip-card h3 span { color: var(--jade); }
.trip-card-who { margin: 8px 0 0; font-size: 0.9rem; color: var(--muted); }

.family-progress { margin-top: -90px; padding-bottom: 20px; }
.family-progress-card { max-width: 980px; margin: 0 auto; padding: 32px; text-align: center; }
.family-progress-card h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 6px; }
.family-progress-card .big { margin-bottom: 22px; }
.trip-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 16px; }
.trip-cards .trip-card { box-shadow: none; background: var(--cream); }
.family-progress-card .fine strong { color: var(--maroon); font-family: var(--serif); font-size: 1.1rem; }
.trip-total { max-width: 520px; margin: 12px auto 0; }
.trip-total p { margin: 6px 0 0; font-size: 0.92rem; color: var(--muted); }
.trip-total strong { color: var(--jade); }

.dock { display: none; }

@media (max-width: 700px) {
  body { font-size: 16px; padding-bottom: 76px; }
  section { padding: 52px 18px; }
  .nav { padding: 10px 14px; }
  .brand { font-size: 1.05rem; }
  .nav nav .btn { display: none; }

  /* Hero leaves room for the card that overlaps it */
  .hero { min-height: 0; padding: 70px 18px 150px; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .greeting { font-size: 1.5rem; }
  .dates { font-size: 0.92rem; margin-bottom: 20px; }
  .trip-note { border-radius: 14px; font-size: 0.9rem; padding: 8px 14px; }
  .cta .btn { padding: 12px 22px; }
  .progress { margin-top: -110px; }
  .family-progress { margin-top: -110px; }

  .ring-wrap:not(.ring-sm) { width: 170px; height: 170px; }
  .ring-label strong { font-size: 2.6rem; }
  .stats { gap: 8px; }
  .stats li { padding: 10px 6px; }
  .stats strong { font-size: 1.25rem; }
  .stats span { font-size: 0.75rem; line-height: 1.3; display: block; }
  .amounts .chip { padding: 7px 13px; font-size: 0.9rem; }

  .trip-card { padding: 14px 16px; gap: 14px; }
  .ring-sm { width: 72px; height: 72px; }
  .ring-sm .ring-label strong { font-size: 1.25rem; }
  .trip-card h3 { font-size: 1.05rem; }
  .trip-cards { grid-template-columns: 1fr; }
  .family-progress-card { padding: 24px 16px; }

  /* Gallery: two columns of photos instead of one long scroll */
  .grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile { aspect-ratio: 1; border-radius: 10px; }
  .grid .tile:first-child { grid-column: auto; }
  .grid .tile:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 2 / 1; }
  .tile span { font-size: 0.78rem; padding: 18px 8px 6px; line-height: 1.25; }

  /* Family cards: photo beside the details so all five fit on a phone */
  .people { gap: 14px; }
  .person { display: grid; grid-template-columns: 120px 1fr; }
  .person img { height: 100%; aspect-ratio: auto; min-height: 150px; }
  .person-body { padding: 14px 14px 16px; }
  .person h3 { font-size: 1.35rem; }
  .person-body > p { font-size: 0.9rem; line-height: 1.4; margin-bottom: 10px; }
  .person-amt { font-size: 0.85rem; margin-bottom: 10px !important; }
  .person .btn-sm { padding: 6px 14px; font-size: 0.82rem; }

  .facts strong { font-size: 1.7rem; }
  .portrait { max-width: 260px; }
  .pray li { padding: 14px 14px 14px 56px; }
  .pray li::before { left: 14px; top: 14px; }

  .dock {
    display: flex; gap: 8px; align-items: center;
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 20;
    padding: 8px; border-radius: 999px;
    background: rgba(255, 253, 248, 0.96); backdrop-filter: blur(10px);
    border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(43, 20, 15, 0.22);
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px) / 2);
  }
  .dock a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 8px; border-radius: 999px; text-decoration: none;
    color: var(--maroon-dark); font-weight: 600; font-size: 0.95rem;
  }
  .dock .icon { width: 20px; height: 20px; vertical-align: 0; }
  .dock .dock-give { background: var(--gold); color: #fff; flex: 1.3; box-shadow: 0 4px 12px rgba(200, 137, 43, 0.35); }
}
@media (max-width: 380px) { .brand span, .brand { font-size: 0.95rem; } }
