:root {
  --paper: #f6f5ef;
  --ink: #20251f;
  --muted: #5b6457;
  --line: #d7dbcf;
  --surface: #e9eddf;
  --accent: #d3ee9b;
  --action: #34462c;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid #647b40; outline-offset: 4px; }
h1, h2, h3 { line-height: 1.1; }
h1 { font-size: clamp(46px, 5.8vw, 78px); letter-spacing: -.055em; margin: 20px 0 28px; }
h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.035em; }
h3 { font-size: 22px; letter-spacing: -.025em; }
p { margin: 0 0 20px; }
.site-header, main, .site-footer { max-width: 1200px; margin: auto; padding: 32px; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-block; font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: -.05em; }
.wordmark span { display: block; margin-top: 6px; font-size: 10px; letter-spacing: .16em; }
nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
nav a { font-size: 14px; font-weight: 650; }
nav a[aria-current=page] { text-decoration: underline; text-underline-offset: 6px; }
.skip-link { position: absolute; top: 0; left: 24px; transform: translateY(-150%); padding: 12px 20px; background: var(--ink); color: white; z-index: 2; }
.skip-link:focus { transform: translateY(0); }
.public-main { padding-top: 52px; }
.account-main { padding-top: 52px; min-height: 50vh; }
.eyebrow { font-size: 11px; font-weight: 750; letter-spacing: .16em; }
.intro { font-size: 19px; line-height: 1.65; color: var(--muted); max-width: 570px; }
.muted { color: var(--muted); font-size: 14px; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: stretch; }
.hero-copy { padding: 22px 0; }
.hero-art { position: relative; overflow: hidden; min-height: 420px; background: var(--ink); color: var(--accent); border-radius: 4px; }
.track-lines { position: absolute; width: 360px; height: 620px; border: 2px solid #708653; border-radius: 180px; transform: rotate(28deg); top: -90px; right: -100px; box-shadow: 0 0 0 28px var(--ink), 0 0 0 30px #708653, 0 0 0 58px var(--ink), 0 0 0 60px #708653, 0 0 0 88px var(--ink), 0 0 0 90px #708653; }
.art-label { position: absolute; bottom: 44px; left: 32px; font-weight: 850; font-size: clamp(32px, 3.8vw, 48px); letter-spacing: -.04em; line-height: 1.05; }
.art-mark { position: absolute; left: 32px; top: 30px; font-size: 12px; font-weight: 650; letter-spacing: .15em; }
.section-block { margin-top: 72px; }
.section-heading, .empty-state { background: var(--surface); padding: 36px; border-radius: 4px; }
.section-heading p { max-width: 660px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.card { padding: 28px; background: white; border: 1px solid var(--line); border-radius: 4px; min-width: 0; }
.card p { color: var(--muted); }
.card-number { color: var(--muted); font-size: 12px; font-weight: 650; }
.card h3 { margin-top: 26px; }
.text-link { font-size: 15px; text-decoration: underline; text-underline-offset: 4px; font-weight: 650; }
.page-intro { padding: 16px 0 28px; }
.page-title { font-size: clamp(36px, 5vw, 64px); letter-spacing: -.045em; overflow-wrap: anywhere; }
.split-section { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; border-top: 1px solid var(--line); padding-top: 30px; }
.split-section h2 { margin-top: 0; }
.faq-list { max-width: 820px; }
details { border-top: 1px solid var(--line); padding: 22px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { font-size: 19px; font-weight: 650; cursor: pointer; }
details p { margin: 20px 0 0; max-width: 700px; color: var(--muted); }
.race-card h2 { font-size: 26px; overflow-wrap: anywhere; }
.empty-state { margin-top: 20px; }
.event-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.event-description { white-space: pre-wrap; overflow-wrap: anywhere; }
dt { font-weight: 650; margin-top: 20px; }
dd { margin: 4px 0; overflow-wrap: anywhere; }
.timezone-label { display: block; }
.pagination { justify-content: center; margin-top: 32px; }
.account-form { max-width: 600px; }
.account-form + p { margin-top: 20px; }
.field { margin: 20px 0; }
.field label { display: block; font-weight: 650; margin-bottom: 8px; }
input, textarea, select { width: 100%; padding: 13px; border: 1px solid #89937f; border-radius: 4px; background: white; color: var(--ink); font: inherit; }
textarea { min-height: 150px; }
input[type=submit], button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; border: 0; border-radius: 4px; background: var(--action); color: white; padding: 12px 20px; font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; }
.button:hover, button:hover, input[type=submit]:hover { background: #25361f; text-decoration: none; }
input[type=submit] { width: auto; }
.button-small { min-height: 44px; padding: 10px 16px; font-size: 14px; }
button { margin: 8px 0; }
.field-error, .notice.error { color: #8d2626; }
.notice { padding: 16px; background: var(--surface); border-radius: 4px; }
.account-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 28px 0; }
.list-item { border-bottom: 1px solid var(--line); padding: 24px 0; overflow-wrap: anywhere; }
.account-main form+form { margin-top: 12px; }
.member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.member-grid h2 { font-size: 25px; }
.site-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; border-top: 1px solid var(--line); margin-top: 80px; padding-top: 40px; }
.site-footer .wordmark { font-size: 24px; }
.site-footer p { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.site-footer nav { align-content: start; justify-content: flex-end; }
.footer-note { grid-column: 1 / -1; }
@media (max-width: 850px) {
  .site-header { flex-wrap: wrap; }
  .site-nav { gap: 20px; }
  .hero { grid-template-columns: 1fr; gap: 16px; }
  .hero-art { min-height: 280px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-layout { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .site-header, main, .site-footer { padding: 24px; }
  .site-nav { width: 100%; gap: 6px 16px; }
  .site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .site-nav .button { margin-left: auto; }
  .public-main, .account-main { padding-top: 28px; }
  .hero-copy { padding: 8px 0; }
  .hero-art { min-height: 240px; }
  .art-label { bottom: 28px; left: 24px; }
  .art-mark { left: 24px; }
  .section-block { margin-top: 48px; }
  .section-heading, .empty-state, .card { padding: 24px; }
  .card-grid, .split-section, .site-footer { grid-template-columns: 1fr; }
  .card-grid { gap: 16px; }
  .split-section { gap: 12px; }
  .site-footer { margin-top: 48px; }
  .site-footer nav { justify-content: flex-start; }
}
