@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #172f32;
  --muted: #71817e;
  --green: #15766a;
  --green-dark: #10584f;
  --mint: #e8f3ee;
  --paper: #fbfcf9;
  --line: #e8ece7;
  --orange: #e99361;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
.site-header { height: 78px; padding: 0 max(calc((100vw - 1120px) / 2), 5vw); display: flex; align-items: center; justify-content: space-between; background: rgba(251,252,249,.95); border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font: 800 17px Manrope, sans-serif; letter-spacing: -.5px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-right: 7px; color: white; background: var(--green); border-radius: 10px; }
nav { display: flex; align-items: center; gap: 27px; font-size: 13px; font-weight: 600; }
nav a, .nav-link { color: #536462; }
.nav-cta { padding: 11px 16px; color: white !important; background: var(--green); border-radius: 7px; }
.nav-cta:hover, .button-primary:hover { color: white; background: var(--green-dark); }
.nav-form { display: inline; }
.nav-link { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.container { width: min(1120px, 90%); min-height: calc(100vh - 144px); margin: 0 auto; padding: 44px 0 70px; }
.hero { min-height: 345px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 55px; padding: 18px 0 44px; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: Manrope, sans-serif; letter-spacing: -1.5px; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; }
.hero h1 span { color: var(--green); }
.hero-copy > p:not(.eyebrow) { max-width: 455px; margin: 18px 0 25px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; padding: 13px 19px; border: 0; border-radius: 7px; font: 700 13px "DM Sans", sans-serif; cursor: pointer; }
.button-primary { color: white; background: var(--green); }
.button-primary span { font-size: 18px; }
.hero-art { position: relative; height: 280px; overflow: hidden; border-radius: 14px; background: #e8f1eb; }
.sun { position: absolute; top: 35px; right: 56px; width: 74px; height: 74px; border-radius: 50%; background: #ecc79e; }
.hill { position: absolute; bottom: -115px; width: 410px; height: 270px; border-radius: 50%; transform: rotate(-15deg); }
.hill-back { left: -85px; background: #c0d7ca; }
.hill-front { right: -120px; bottom: -146px; background: #71998a; transform: rotate(20deg); }
.art-caption { position: absolute; top: 58px; left: 44px; color: var(--green-dark); font: 800 14px/1.5 Manrope, sans-serif; letter-spacing: 2px; }
.challenge-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 7px 0 55px; padding: 19px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.challenge-strip > div { display: grid; grid-template-columns: 39px 1fr; align-items: center; padding: 0 14px; }
.challenge-strip > div + div { border-left: 1px solid var(--line); }
.sport-icon { grid-row: span 2; font-size: 21px; }
.challenge-strip strong { font-size: 12px; }
.challenge-strip small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 19px; }
.section-heading .eyebrow { margin-bottom: 7px; }
h2 { font-size: 27px; }
.participant-count { padding: 7px 11px; border-radius: 20px; color: var(--green); background: var(--mint); font-size: 11px; font-weight: 700; }
.table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: white; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 14px 21px; color: var(--muted); background: #fafbf9; font-size: 10px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
td { padding: 15px 21px; border-top: 1px solid #f0f2ef; font-size: 13px; }
td:first-child { width: 75px; }
.rank { color: #97a39f; font: 700 12px Manrope, sans-serif; }
.rank-top { color: var(--orange); }
.avatar { display: inline-flex; width: 29px; height: 29px; margin-right: 10px; align-items: center; justify-content: center; border-radius: 50%; color: var(--green); background: var(--mint); font-size: 11px; font-weight: 700; }
.you-tag { margin-left: 9px; color: var(--green); font-size: 10px; }
.participant-link { color: var(--ink); }
.participant-link:hover { color: var(--green); text-decoration: underline; }
.points { color: var(--green-dark); font-weight: 700; }
.points small { color: var(--muted); font-weight: 500; }
.empty-state { padding: 28px; color: var(--muted); text-align: center; }
.form-card { width: min(440px, 100%); margin: 20px auto; padding: 34px 38px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 12px 40px rgba(27,65,57,.04); }
.form-card h1, .page-heading h1 { margin-bottom: 8px; font-size: 32px; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.7; }
.form-card > .muted { margin: 0 0 24px; }
.field { display: grid; gap: 7px; margin: 17px 0; }
.field label { font-size: 12px; font-weight: 700; }
.field input, .field select { width: 100%; padding: 11px 12px; border: 1px solid #dfe6e1; border-radius: 6px; outline: none; color: var(--ink); background: white; font: 13px "DM Sans", sans-serif; }
.field input:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(21,118,106,.1); }
.field input[type=file] { padding: 9px; }
.field small, .helptext { color: var(--muted); font-size: 11px; line-height: 1.5; }
.field ul { margin: 0; padding-left: 17px; color: #a44c3c; font-size: 11px; }
.full-width { width: 100%; margin-top: 7px; }
.form-footnote { margin: 19px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.form-errors { margin-bottom: 12px; color: #a44c3c; font-size: 12px; }
.wide-card { width: min(550px, 100%); }
.form-actions { margin-top: 24px; }
.page-heading { margin: 9px 0 28px; }
.page-heading .muted { margin: 0 0 17px; }
.accent { color: var(--green-dark); }
.entries-table td { white-space: nowrap; }
.notice { margin-bottom: 18px; padding: 12px 15px; border-radius: 7px; color: var(--green-dark); background: var(--mint); font-size: 13px; }
footer { min-height: 66px; padding: 23px 5%; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 11px; }
footer span { color: var(--green); }

@media (max-width: 720px) {
  .site-header { height: auto; min-height: 68px; padding: 13px 5%; align-items: flex-start; gap: 12px; }
  .brand { white-space: nowrap; font-size: 14px; }
  nav { justify-content: flex-end; flex-wrap: wrap; gap: 10px 14px; font-size: 11px; }
  .nav-cta { padding: 8px 10px; }
  .container { padding-top: 28px; }
  .hero { grid-template-columns: 1fr; gap: 25px; padding-bottom: 30px; }
  .hero-art { height: 220px; }
  .challenge-strip { grid-template-columns: 1fr 1fr; gap: 17px 0; margin-bottom: 38px; }
  .challenge-strip > div:nth-child(3) { border-left: 0; }
  .section-heading { align-items: center; }
  th, td { padding: 12px 10px; }
  .avatar { margin-right: 5px; }
  .form-card { padding: 27px 22px; }
  .entries-table { overflow-x: auto; }
}
