/* Shared styles for every public page: colours, base type, hero, thank-you box, footer. */
/* VOICE Marco's brand: calm, muted, minimalist, "structure beats guesswork"
   IDEA his content deck: turf-green photo, huge tight cream titles, cream pages with deep green type
   PICTURE his own cover photo of runners on turf (img/hero.jpg), full bleed behind the title; then the form
   COLOUR cream #f8f5e9, deep green #152812, forest #1d2b19, moss #5f6d3c accent; white lane lines
   MODE always light, also when the visitor's device is set to dark mode
   TYPE Inter Tight 800 tight for titles, 300-400 for soft headings + Source Sans 3 body (both from Google Fonts)
   LAYOUT photo band with title, cream intro, form in one column, forest thank-you; phone stacks the same */
:root{--hero:url("../img/hero.jpg")}
:root{color-scheme:light;--bg:#f8f5e9;--ink:#152812;--soft:#55604c;--forest:#1d2b19;--deep:#152812;--cream:#f8f5e9;--moss:#5f6d3c;--panel:#ffffff;--line:#dcd7c6;--sel:#e8ecdc;--error:#9a3b1e}
*{box-sizing:border-box;min-width:0}
html,body{margin:0}
body{background:var(--bg);color:var(--ink);font:17px/1.6 "Source Sans 3",system-ui,sans-serif;overflow-x:clip}
h1,h2,h3{font-family:"Inter Tight","Helvetica Neue",Arial,sans-serif;line-height:.98;letter-spacing:-.03em;word-spacing:.08em;text-wrap:balance;margin:0}
.band{padding-block:clamp(28px,4vw,64px);padding-left:max(5vw,16px,env(safe-area-inset-left,0px));padding-right:max(5vw,16px,env(safe-area-inset-right,0px))}
.wrap{max-width:780px;margin:0 auto}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Hero */
.hero{position:relative;color:var(--cream);background:var(--forest) var(--hero) center 55%/cover no-repeat;min-height:min(78svh,640px);display:grid;grid-template-rows:auto 1fr auto}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(21,40,18,.72) 0%,rgba(21,40,18,.45) 45%,rgba(21,40,18,.88) 100%)}
.hero>*{position:relative}
.corner{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 20px;padding:18px max(5vw,16px);font-family:"Inter Tight",sans-serif;font-size:13px;line-height:1.3;text-transform:uppercase;letter-spacing:.02em}
.corner a{color:var(--cream);text-decoration:none}
.corner a:hover{text-decoration:underline}
.logo{font-weight:800;font-size:15px;letter-spacing:-.02em;white-space:nowrap}
.hero h1{align-self:end;padding:0 max(5vw,16px);font-weight:800;text-transform:uppercase;font-size:clamp(40px,8.2vw,104px);max-width:13ch;color:var(--cream)}
.hero .sub{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 20px;padding:18px max(5vw,16px) 22px;font-family:"Inter Tight",sans-serif;font-size:13px;text-transform:uppercase;letter-spacing:.02em}

/* Thank-you box */
.thanks{padding:clamp(28px,5vw,56px) clamp(18px,4vw,44px);border-radius:6px;color:var(--cream);background:var(--forest) var(--hero) center/cover;position:relative;overflow:hidden}
.thanks::before{content:"";position:absolute;inset:0;background:rgba(21,40,18,.86)}
.thanks>*{position:relative}
.thanks h2{font-weight:800;text-transform:uppercase;font-size:clamp(34px,6vw,60px);margin-bottom:20px;color:var(--cream);max-width:14ch}
.thanks p{margin:0 0 12px;max-width:58ch;color:var(--cream)}
.thanks .sig{font-family:"Inter Tight",sans-serif;font-weight:400;font-size:30px;letter-spacing:-.04em;margin-top:22px}
.note{margin-top:14px;font-size:15px;color:var(--soft)}
.thanks[hidden],.note[hidden]{display:none}

/* Footer */
footer{background:var(--deep);color:var(--cream);margin-top:clamp(28px,4vw,56px)}
footer .wrap{max-width:1100px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:10px 24px;font-size:15px}
footer .big{font-family:"Inter Tight",sans-serif;font-weight:800;text-transform:uppercase;letter-spacing:-.03em;word-spacing:.08em;font-size:clamp(22px,4.5vw,44px);line-height:1;white-space:nowrap}
.nw{white-space:nowrap}
footer a{color:var(--cream)}
