/* Pink and yellow are taken from the Leeds Abbey Dash logo */
:root {
  --bg: #fdfbf6;
  --fg: #1f1a33;
  --muted: #5e5872;
  --accent: #c8076d;
  --accent-fg: #fff;
  --pink: #e1097c;
  --yellow: #f9cf14;
  --hero-bg: #1f1640;
  --hero-fg: #fff;
  --hero-muted: #cfc8e6;
  --card: #fff;
  --border: #e4dfea;
  --err: #b3261e;
  --ok-bg: #fff4c7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14111f;
    --fg: #efedf5;
    --muted: #aca6c0;
    --accent: #ff5aa8;
    --accent-fg: #1a0b14;
    --hero-bg: #1c1438;
    --card: #1e1a2e;
    --border: #322c47;
    --err: #ff8a80;
    --ok-bg: #3a3110;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.hero {
  padding: 40px 0 48px;
  background: var(--hero-bg);
  color: var(--hero-fg);
  border-bottom: 6px solid var(--yellow);
  box-shadow: 0 6px 0 var(--pink);
}
.hero .lede { color: var(--hero-muted); }
.hero .eyebrow { color: var(--yellow); }
.hero .btn { background: var(--pink); color: #fff; }
.race-logo { display: block; width: min(100%, 420px); height: auto; margin: 0 0 24px -8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: 1.4rem; margin: 40px 0 8px; }
.lede { font-size: 1.15rem; color: var(--muted); }
a { color: var(--accent); }
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-fg);
  border: 0;
  border-radius: 8px;
  padding: 12px 24px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:disabled { opacity: .6; cursor: wait; }
.btn-block { display: block; width: 100%; margin-top: 16px; }
.progress { margin-top: 40px; }
.bar { height: 16px; background: var(--border); border-radius: 8px; overflow: hidden; }
#bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--yellow)); transition: width .6s ease; }
#raised { font-size: 1.3rem; }
h2::after { content: ""; display: block; width: 40px; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--yellow); }
.card { background: var(--card); border: 1px solid var(--border); border-top: 6px solid var(--pink); border-radius: 12px; padding: 8px 24px 24px; margin-top: 40px; scroll-margin-top: 16px; }
.amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0 20px; }
.amounts button {
  padding: 10px 0;
  font: inherit;
  font-weight: 600;
  color: var(--fg);
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.amounts button.selected { border-color: var(--accent); color: var(--accent); }
label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 4px; }
input[type=number] {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.error { color: var(--err); margin: 8px 0 0; }
.small { font-size: .85rem; color: var(--muted); }
.thanks { background: var(--ok-bg); border-left: 6px solid var(--yellow); border-radius: 8px; padding: 14px 18px; margin-top: 24px; }
.notice { margin-bottom: 24px; }
footer { padding: 16px; border-top: 1px solid var(--border); margin-top: 32px; }
@media (max-width: 420px) { .amounts { grid-template-columns: repeat(3, 1fr); } }
