:root {
  --bg: #ffffff;
  --surface: #f4f6fb;
  --ink: #101820;
  --ink-dim: #5b6472;
  --blue: #0033a0;
  --blue-dark: #00287d;
  --yellow: #ffd100;
  --line: rgba(16,24,32,0.10);
  --radius: 3px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  line-height: 1.5;
}

h1, h2, .display {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
}

a { color: inherit; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Nav banner ---- */
.site-nav {
  border-bottom: 3px solid var(--blue);
  background: var(--bg);
}

.nav-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-dim);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-links a.active {
  color: var(--blue);
  border-bottom-color: var(--yellow);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero .route {
  position: absolute;
  top: -10px;
  right: -60px;
  width: 300px;
  height: 300px;
  opacity: 0.5;
  pointer-events: none;
}

.bib {
  display: inline-block;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 6px 14px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--blue);
  margin-bottom: 24px;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-logo {
  height: clamp(100px, 16vw, 180px);
  width: auto;
}

.hero h1 {
  font-size: clamp(48px, 11vw, 92px);
  margin: 0;
  color: var(--ink);
}

.hero h1 span {
  color: var(--blue);
  background: linear-gradient(transparent 62%, var(--yellow) 62%);
}

.hero .subhead {
  max-width: 46ch;
  font-size: 18px;
  color: var(--ink-dim);
  margin-top: 18px;
}

.details {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail dt {
  font-size: 12px;
  color: var(--ink-dim);
  margin-bottom: 4px;
}

.detail dd {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

/* ---- Story / content sections ---- */
.story {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.story p {
  font-size: 17px;
  color: var(--ink-dim);
  max-width: 62ch;
}

.story p:first-of-type {
  color: var(--ink);
  font-size: 19px;
}

/* ---- Finish tape divider ---- */
.message-ticker {
  overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
}

.ticker-item {
  white-space: nowrap;
  padding: 0 40px;
  font-size: 15px;
  color: var(--ink);
}

.ticker-item strong {
  color: var(--blue);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tape {
  height: 30px;
  background: repeating-linear-gradient(
    -45deg,
    var(--blue) 0px, var(--blue) 22px,
    var(--yellow) 22px, var(--yellow) 44px
  );
}

/* ---- Action cards ---- */
.actions {
  padding: 48px 0 72px;
  display: grid;
  gap: 32px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.card h2 {
  font-size: 28px;
  margin: 0 0 10px;
  color: var(--ink);
}

.card .price {
  display: inline-block;
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  background: var(--yellow);
  color: var(--ink);
  padding: 4px 12px;
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.card p.desc {
  color: var(--ink-dim);
  font-size: 15px;
  margin: 0 0 22px;
}

.amount-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.amount-btn {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.amount-btn:hover,
.amount-btn.active {
  border-color: var(--blue);
  background: rgba(0,51,160,0.06);
  color: var(--blue);
}

.custom-amount {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.custom-amount span {
  color: var(--ink-dim);
  font-size: 15px;
}

.custom-amount input,
.field input,
.field select {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 15px;
  font-family: 'Work Sans', sans-serif;
}

.custom-amount input { width: 120px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 15px 20px;
  border-radius: var(--radius);
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn:hover { background: var(--blue-dark); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn.secondary {
  background: transparent;
  border: 1px solid var(--blue);
  color: var(--blue);
}

.btn.secondary:hover { background: rgba(0,51,160,0.06); }

.shirt-shop-callout {
  margin-top: 16px;
  padding: 16px;
  background: var(--surface);
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  text-align: center;
}

.shirt-shop-callout p {
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--ink);
}

.error-msg {
  color: #c6402b;
  font-size: 14px;
  margin-top: 10px;
  min-height: 1.2em;
}

/* ---- Forms (sign-up page) ---- */
.form-section {
  padding: 48px 0 72px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-dim);
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
}

.field-row {
  display: grid;
  gap: 16px;
}

@media (min-width: 560px) {
  .field-row.two { grid-template-columns: 1fr 1fr; }
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0;
  font-size: 14px;
  color: var(--ink-dim);
}

.checkbox-row input { margin-top: 3px; }

footer {
  padding: 32px 0 56px;
  color: var(--ink-dim);
  font-size: 13px;
  text-align: center;
}

@media (min-width: 640px) {
  .actions { grid-template-columns: 1fr 1fr; }
}
