:root {
  --blue: #0057b7;
  --blue-deep: #003e82;
  --navy: #0a1f33;
  --yellow: #ffd500;
  --yellow-soft: #ffe873;
  --cream: #fdfaf0;
  --white: #ffffff;
  --ink: #17232f;
  --ink-soft: #4a5a68;
  --line: rgba(10, 31, 51, 0.12);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(10, 31, 51, 0.12);
  --max: 640px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue-deep);
}

img, svg {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  position: relative;
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
  padding-bottom: 0;
}

.hero__lower {
  position: relative;
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow-soft) 100%);
  padding: 28px 0 36px;
}

.hero__content {
  position: relative;
  padding: 44px 20px 0;
  text-align: center;
}

.hero__flag-strip {
  display: inline-block;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: normal;
  margin-bottom: 18px;
}

.hero__flag-strip .flag-icon {
  display: inline-block;
  width: 15px;
  height: auto;
  vertical-align: -1px;
  border-radius: 2px;
  margin-right: 2px;
}

.hero__content h1 {
  font-size: 2rem;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.hero__content .sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 30em;
  margin: 0 auto 22px;
}

.hero__content .sub strong {
  color: var(--white);
}

/* ── Countdown ────────────────────────────────────────── */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 420px;
  margin: 0 auto 26px;
}

.countdown .unit {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 10px 4px;
}

.countdown .num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.countdown .lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.85);
}

/* ── Buttons ──────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.btn--primary:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: var(--blue-deep);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* ── Sections ─────────────────────────────────────────── */

section {
  padding: 40px 0;
}

.section--alt {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}

/* ── Progress ─────────────────────────────────────────── */

.progress-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  border: 1px solid var(--line);
}

.hero-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 31, 51, 0.1);
  border: 1px solid rgba(10, 31, 51, 0.18);
  color: var(--navy);
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

.progress-card .amounts {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.progress-card .raised {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--blue-deep);
}

.progress-card .goal {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.progress-track {
  height: 14px;
  background: #eef1f4;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-deep) 100%);
  border-radius: 999px 0 0 999px;
  transition: width 0.6s ease;
}

.progress-card .give-btn {
  margin-top: 18px;
}

/* ── Photo ────────────────────────────────────────────── */

.photo-card {
  margin: 0 0 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}

.photo-card img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-card figcaption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ── Note ─────────────────────────────────────────────── */

.note-card {
  background: var(--white);
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  font-size: 1.02rem;
  color: var(--ink);
}

.note-card .signoff {
  margin-top: 14px;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  color: var(--blue-deep);
}

/* ── Charity ──────────────────────────────────────────── */

.charity-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.charity-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Race info ────────────────────────────────────────── */

.race-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.race-fact {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.race-fact .ico {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--blue-deep);
}

.race-fact strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

/* ── Strava ───────────────────────────────────────────── */

.strava-embeds {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.strava-card {
  width: 100%;
  min-height: 200px;
  display: flex;
  justify-content: center;
}

.strava-empty {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  color: var(--ink-soft);
}

.strava-follow {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ── Share ────────────────────────────────────────────── */

.share-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 13px 10px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.share-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ── Divider motif ────────────────────────────────────── */

/* ── Footer ───────────────────────────────────────────── */

footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 32px 0 40px;
  text-align: center;
  font-size: 0.85rem;
}

footer a {
  color: var(--yellow-soft);
}

footer .tryzub {
  width: 26px;
  height: 26px;
  margin: 0 auto 12px;
  color: var(--yellow-soft);
}

/* ── Toast ────────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 480px) {
  .hero__content h1 {
    font-size: 2.3rem;
  }
}
