/* Snipe Fleet 12 San Francisco — v2 */
:root{
  --bg:#F2F2F2;
  --ink:#1C1C1C;
  --muted:#555;
  --red:#EE3123;
  --red-text:#B8170D;   /* red for small text links (contrast) */
  --rule:#9C9C9C;
  --field:#E8E8E8;
  --hull:#A51C22;
  --font:"Archivo",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --wrap:1120px;
  color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:84px}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:1.0625rem;line-height:1.6}
img{max-width:100%;height:auto;display:block}
a{color:var(--red-text);text-underline-offset:.18em}
a:hover{color:var(--red)}
:focus-visible{outline:3px solid var(--red);outline-offset:2px}
h1,h2,h3{font-weight:700;line-height:1.05;letter-spacing:-.025em;margin:0 0 .45em}
h1{font-size:clamp(2.4rem,5.6vw,4.4rem)}
h2{font-size:clamp(2rem,4vw,3rem)}
h3{font-size:1.35rem;letter-spacing:-.015em;line-height:1.2}
p{margin:0 0 1em;max-width:62ch}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 1.5rem}
.skip{position:absolute;left:-999px;top:0;background:var(--ink);color:#fff;padding:.5rem 1rem;z-index:10}
.skip:focus{left:0}
.eyebrow{display:block;font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;color:var(--red-text);margin-bottom:1rem;font-weight:500}
.lead{font-size:1.15rem;color:#333}
.muted{color:var(--muted)}
.rule{border:0;border-top:2px solid var(--rule);margin:0}

/* header */
.site-header{background:var(--bg);border-bottom:2px solid var(--rule);position:sticky;top:0;z-index:5}
.site-header .wrap{display:flex;align-items:center;gap:1.25rem;min-height:68px}
.brand{display:flex;align-items:center;gap:.65rem;text-decoration:none;color:var(--ink);font-weight:700;font-size:1.1rem;letter-spacing:-.01em;margin-right:auto}
.brand img{width:40px;height:40px}
.nav ul{list-style:none;margin:0;padding:0;display:flex;gap:.1rem}
.nav a{display:block;padding:.45rem .6rem;text-decoration:none;color:var(--ink);font-weight:500;font-size:.98rem}
.nav a:hover{color:var(--red)}
.nav a[aria-current="page"]{color:var(--red-text);box-shadow:inset 0 -2px 0 var(--red)}
.menu-btn{display:none;background:none;border:2px solid var(--ink);padding:.35rem .7rem;font:inherit;font-weight:600;color:var(--ink);cursor:pointer}
@media (max-width:1020px){
  .menu-btn{display:block;order:3}
  .nav{position:absolute;left:0;right:0;top:100%;background:var(--bg);border-bottom:2px solid var(--rule);display:none}
  .nav.open{display:block}
  .nav ul{flex-direction:column;padding:.5rem 1.5rem 1rem}
  .nav a{padding:.7rem 0;border-bottom:1px solid #ddd;box-shadow:none}
  .nav a[aria-current="page"]{box-shadow:none}
}
@media (max-width:420px){.site-header .btn{padding:.5rem .7rem;font-size:.9rem}}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:space-between;gap:1.5rem;font-weight:600;font-size:.98rem;text-decoration:none;padding:.65rem 1rem;background:var(--red);color:#fff;border:2px solid var(--red);line-height:1.2;cursor:pointer;font-family:inherit}
.btn:hover{background:var(--ink);border-color:var(--ink);color:#fff}
.btn.arrow::after{content:"\2192"}
.btn.wide{min-width:13rem}
.btn.small{padding:.4rem .75rem;font-size:.9rem}
.btn.outline{background:transparent;border-color:#fff;color:#fff}
.btn.outline:hover{background:#fff;color:var(--red)}
.link{font-weight:600;text-decoration:none;color:var(--red-text)}
.link:hover{color:var(--red)}
.link.arrow::after{content:" \2192"}
.actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 1.75rem;margin-top:1.5rem}

/* sections */
.section{padding:4.5rem 0}
.section + .section{padding-top:0}
.section > .wrap > .rule:first-child{margin-bottom:4rem}
.section-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem 2rem;flex-wrap:wrap;margin-bottom:2rem}
.section-intro p{margin:0}
.section-intro h2{margin-bottom:.3em}

/* hero */
.hero{padding:4.5rem 0 0}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:2rem 3rem;align-items:center}
.hero h1{max-width:13ch}
.hero .lead{max-width:44ch}
.badge-big{width:min(100%,440px);justify-self:end}
.photo{filter:grayscale(1) contrast(1.05)}
.hero-photo{margin-top:3rem;aspect-ratio:21/9;width:100%;object-fit:cover;object-position:center 45%}
@media (max-width:820px){
  .hero-grid{grid-template-columns:1fr}
  .badge-big{justify-self:start;width:min(80%,360px)}
  .hero-photo{aspect-ratio:16/9}
}
.next-up{display:flex;align-items:center;gap:1.25rem;padding:1.1rem 0;border-bottom:2px solid var(--rule);text-decoration:none;color:var(--ink)}
.next-up .eyebrow{margin:0;flex:none}
.next-up .what{flex:1;font-size:1.15rem;color:var(--muted)}
.next-up .what strong{color:var(--ink);font-weight:700}
.next-up::after{content:"\2192";font-size:1.2rem}
.next-up:hover strong{color:var(--red-text)}

/* steps */
.steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 2rem;border-top:2px solid var(--rule)}
.step{padding:1.75rem 0 2rem;display:flex;flex-direction:column}
.step p{color:#333;font-size:1rem;flex:1}
.step-num{display:flex;align-items:center;gap:.6rem;font-size:.85rem;letter-spacing:.06em;margin-bottom:1rem}
.step-num::before{content:"";width:10px;height:10px;background:var(--red);display:inline-block;flex:none}
@media (max-width:980px){.steps{grid-template-columns:repeat(2,minmax(0,1fr))}.step:nth-child(n+3){border-top:2px solid var(--rule)}}
@media (max-width:560px){.steps{grid-template-columns:1fr}.step+.step{border-top:2px solid var(--rule)}}

/* officers */
.officers{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem;margin-top:3rem}
.officer{display:grid;grid-template-columns:120px 1fr;gap:1.25rem;align-items:start}
.officer img{width:120px;height:150px;object-fit:cover}
.officer .eyebrow{margin-bottom:.4rem}
.officer h3{margin-bottom:.3rem}
.officer p{font-size:1rem;color:#333;margin:0}

/* legend & category markers */
.legend{display:flex;gap:1.25rem;flex-wrap:wrap;font-size:.92rem;list-style:none;margin:0;padding:0}
.legend li,.cat{display:inline-flex;align-items:center;gap:.45rem}
.cat::before{content:"";width:11px;height:11px;display:inline-block;flex:none;background:var(--ink)}
.cat.champ::before{background:var(--red)}
.cat.away::before{background:transparent;border:2px solid var(--ink)}

/* regatta list */
.regattas{list-style:none;margin:0;padding:0;border-top:2px solid var(--rule)}
.regattas li{border-bottom:2px solid var(--rule)}
.r-row{display:grid;grid-template-columns:9rem minmax(0,1fr) auto;gap:.5rem 1.5rem;align-items:center;padding:1.3rem 0}
.r-date{font-size:.92rem;letter-spacing:.06em;text-transform:uppercase}
.r-row h3{margin:0 0 .2rem;font-size:1.3rem;display:flex;align-items:center;gap:.6rem}
.r-row h3 a{color:var(--ink);text-decoration:none}
.r-row h3 a:hover{color:var(--red-text);text-decoration:underline}
.r-row .meta{margin:0;color:var(--muted);font-size:.95rem}
.r-row .cat{font-size:0}
.r-row .cat::before{width:12px;height:12px}
.r-row.past .r-date,.r-row.past h3 a{color:var(--muted)}
@media (max-width:640px){
  .r-row{grid-template-columns:1fr auto;padding:1.1rem 0}
  .r-date{grid-column:1/-1}
}
.season-label{font-size:1.5rem;margin:3rem 0 1rem}

/* tables */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
table.data{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:1rem}
table.data th{font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;font-weight:600;color:var(--muted);text-align:left;padding:.6rem 1rem .6rem 0;border-bottom:2px solid var(--rule);white-space:nowrap}
table.data td{padding:.7rem 1rem .7rem 0;border-bottom:1px solid #C8C8C8;white-space:nowrap}
table.data .num{text-align:right}
table.data th abbr{text-decoration:none;cursor:help}
table.data td.name{font-weight:700}
table.data td.total{font-weight:700}
table.data tr:first-child td.pos{color:var(--red-text);font-weight:700}
.dnc{font-size:.75rem;color:var(--muted);margin-left:.2rem}
.note{color:var(--muted);font-size:.92rem;margin-top:1rem}
.empty{border-top:2px solid var(--rule);border-bottom:2px solid var(--rule);padding:1.5rem 0;color:var(--muted)}
.empty a{font-weight:600}

/* fleet & class */
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3rem;align-items:start}
@media (max-width:860px){.split{grid-template-columns:1fr}}
.cta-line{border-top:2px solid var(--rule);border-bottom:2px solid var(--rule);padding:1.25rem 0;margin:2rem 0 1.25rem;max-width:62ch}
.cta-line h3{font-size:1.15rem;margin-bottom:.4rem}

/* page head (interior) */
.page-head{padding:4rem 0 2.5rem}
.page-head h1{margin-bottom:.3em}
.page-head .lead{margin:0}

/* regatta detail */
.detail{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:3.5rem;align-items:start}
@media (max-width:860px){.detail{grid-template-columns:1fr;gap:2rem}}
.facts{border-top:2px solid var(--rule)}
.facts dl{margin:0}
.facts div{padding:.8rem 0;border-bottom:1px solid #C8C8C8}
.facts dt{font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:600}
.facts dd{margin:.15rem 0 0;font-weight:600}
.facts .btn{display:flex;width:100%;margin-top:1rem}
.facts .link{display:block;margin-top:.9rem}
.cover{width:100%;aspect-ratio:21/9;object-fit:cover;margin-bottom:2.5rem}
h2.sub{font-size:1.8rem;margin-top:2.5rem}
.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.25rem}
.media-grid figure{margin:0}
.media-grid img{width:100%;aspect-ratio:16/9;object-fit:cover;background:var(--field)}
.media-grid figcaption{font-size:.9rem;color:var(--muted);margin-top:.4rem}
.video{position:relative;aspect-ratio:16/9;background:var(--ink)}
.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
details.rr{border-bottom:2px solid var(--rule)}
details.rr summary{cursor:pointer;padding:1.1rem 0;font-weight:700;font-size:1.2rem;display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}
details.rr summary .muted{font-weight:400;font-size:.95rem}
details.rr .inner{padding:0 0 1.5rem}
.rr-list{border-top:2px solid var(--rule)}
.field-inline{display:flex;align-items:center;gap:.75rem;margin-bottom:2rem}
select,input,textarea{font:inherit;color:var(--ink)}
.field-inline select{padding:.4rem .6rem;background:var(--field);border:1px solid var(--rule)}

/* resources */
.res-group{margin-bottom:3rem}
.res-group h2{font-size:1.6rem}
.res-list{list-style:none;padding:0;margin:0;border-top:2px solid var(--rule)}
.res-list li{padding:1rem 0;border-bottom:1px solid #C8C8C8}
.res-list a{font-weight:700;font-size:1.1rem;text-decoration:none}
.res-list a::after{content:" \2197";font-weight:400}
.res-list p{margin:.2rem 0 0;color:var(--muted);font-size:1rem}

/* form */
form.contact{max-width:780px;margin-top:2rem}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 1.25rem}
@media (max-width:560px){.form-grid{grid-template-columns:1fr}}
.form-row{margin-bottom:1.1rem}
.form-row label{display:block;font-size:.95rem;margin-bottom:.3rem}
.form-row input,.form-row select,.form-row textarea{width:100%;padding:.6rem .7rem;background:var(--field);border:1px solid var(--rule);border-radius:0}
.form-row textarea{min-height:130px;resize:vertical}
.form-row input:focus,.form-row select:focus,.form-row textarea:focus{outline:2px solid var(--red);outline-offset:0;background:#fff}
.hidden{display:none}

/* banner + footer */
.banner{background:var(--red);color:#fff;padding:4.5rem 0}
.banner h2{font-size:clamp(2rem,4.6vw,3.4rem);margin-bottom:1.5rem}
.site-footer{padding:3rem 0 3.5rem;font-size:.98rem}
.site-footer .wrap{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:2rem}
@media (max-width:700px){.site-footer .wrap{grid-template-columns:1fr}}
.f-brand{display:flex;gap:.9rem;align-items:flex-start}
.f-brand img{width:48px;height:48px}
.site-footer h4{font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;color:var(--red-text);font-weight:500;margin:0 0 .6rem}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin-bottom:.35rem}
.site-footer a{color:var(--ink);text-decoration:none}
.site-footer a:hover{color:var(--red-text);text-decoration:underline}

@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.brand,.site-header .btn{white-space:nowrap}
@media (max-width:520px){
  .site-header .wrap{gap:.6rem;padding:0 1rem}
  .brand{font-size:1rem}
  .brand img{width:34px;height:34px}
  .site-header .btn{padding:.45rem .65rem;font-size:.88rem}
  .menu-btn{padding:.3rem .55rem;font-size:.88rem}
  .next-up{flex-wrap:wrap;gap:.25rem 1rem}
  .next-up .eyebrow{width:100%}
  .next-up .what{font-size:1.05rem}
}

/* full-bleed photo hero (home) */
.hero-photo-bg{position:relative;padding:0;min-height:min(86vh,760px);display:flex;align-items:center;color:#fff;background:#1C1C1C;overflow:hidden}
.hero-photo-bg > img.photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 40%}
.hero-photo-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(18,18,18,.82) 0%,rgba(18,18,18,.55) 50%,rgba(18,18,18,.25) 100%)}
.hero-photo-bg .wrap{position:relative;z-index:1;width:100%;padding-top:5rem;padding-bottom:5rem}
.hero-photo-bg .eyebrow{color:#fff;opacity:.85}
.hero-photo-bg .lead{color:#fff;opacity:.92}
.hero-photo-bg .link{color:#fff}
.hero-photo-bg .link:hover{color:#fff;text-decoration:underline}
.hero-photo-bg .btn:hover{background:#fff;border-color:#fff;color:var(--red)}
.hero-photo-bg .badge-big{width:min(100%,400px);filter:drop-shadow(0 12px 30px rgba(0,0,0,.35))}
@media (max-width:820px){
  .hero-photo-bg{min-height:0}
  .hero-photo-bg .wrap{padding-top:3.5rem;padding-bottom:3.5rem}
  .hero-photo-bg .badge-big{width:min(55%,240px);order:-1}
}
@media (min-width:861px){.sticky-photo{position:sticky;top:96px}}
table.data th.ev{white-space:normal;min-width:7rem;max-width:11rem;vertical-align:bottom;line-height:1.3}

/* standings title + scoring modal */
.title-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem 1.5rem;flex-wrap:wrap;margin-bottom:1.25rem}
.btn.outline-dark{background:transparent;color:var(--ink);border-color:var(--ink)}
.btn.outline-dark:hover{background:var(--ink);color:#fff}
dialog.modal{border:0;padding:0;width:min(680px,calc(100% - 2rem));max-height:calc(100vh - 3rem);background:var(--bg);color:var(--ink);box-shadow:0 20px 60px rgba(0,0,0,.35)}
dialog.modal::backdrop{background:rgba(20,20,20,.6)}
.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;padding:1.5rem 1.5rem 1rem;border-bottom:2px solid var(--rule);position:sticky;top:0;background:var(--bg)}
.modal-head h2{font-size:1.6rem;margin:0}
.modal-close{background:none;border:0;font-size:2rem;line-height:1;cursor:pointer;color:var(--ink);padding:0 .25rem}
.modal-close:hover{color:var(--red)}
.modal-body{padding:1.25rem 1.5rem 1.75rem}
.modal-body h3{font-size:1.1rem;margin:1.5rem 0 .4rem;display:flex;align-items:center;gap:.5rem}
.modal-body h3::before{content:"";width:9px;height:9px;background:var(--red);flex:none}
.modal-body p{font-size:1rem}

/* archive gallery */
.archive-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem 1.5rem}
@media (max-width:700px){.archive-grid{grid-template-columns:1fr}}
.arch{margin:0}
.arch a{display:block;overflow:hidden;cursor:zoom-in}
.arch img{width:100%;aspect-ratio:4/3;object-fit:cover;transition:transform .4s ease}
.arch a:hover img{transform:scale(1.03)}
.arch figcaption{font-size:.95rem;color:var(--muted);margin-top:.6rem;padding-top:.6rem;border-top:2px solid var(--rule)}
dialog.lightbox{border:0;padding:0;background:transparent;max-width:min(1200px,calc(100% - 2rem));max-height:calc(100vh - 2rem);overflow:visible}
dialog.lightbox::backdrop{background:rgba(15,15,15,.9)}
dialog.lightbox img{display:block;max-width:100%;max-height:calc(100vh - 7rem);width:auto;height:auto;margin:0 auto;filter:grayscale(1) contrast(1.05)}
dialog.lightbox .lb-cap{color:#fff;text-align:center;margin:.75rem auto 0;max-width:none}
dialog.lightbox .modal-close{position:absolute;top:.5rem;right:.5rem;color:#fff;background:rgba(0,0,0,.55);width:2.5rem;height:2.5rem;font-size:1.8rem}

/* color photo hero (home) */
.hero-photo-bg > img.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 55%}
.hero-color::after{background:linear-gradient(90deg,rgba(14,22,34,.78) 0%,rgba(14,22,34,.5) 45%,rgba(14,22,34,.08) 75%)}

/* home: regatta cards */
.r-cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}
@media (max-width:900px){.r-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.r-cards{grid-template-columns:1fr}}
.r-card{display:flex;flex-direction:column;border-top:4px solid var(--ink);background:#fff;padding:1.5rem 1.5rem 1.6rem}
.r-card.champ{border-top-color:var(--red)}
.r-card.away{border-top-color:var(--rule)}
.r-card p{margin:0;max-width:none}
.rc-date{display:flex;align-items:center;gap:.6rem;font-size:1.125rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;margin-bottom:1rem!important}
.rc-date .cat::before{width:14px;height:14px}
.r-card h3{font-size:1.45rem;line-height:1.15;margin:0 0 .6rem}
.r-card h3 a{color:var(--ink);text-decoration:none}
.r-card h3 a:hover{color:var(--red-text);text-decoration:underline}
.rc-club{color:var(--ink);font-size:1rem}
.rc-type{color:var(--muted);font-size:.95rem;margin-top:.15rem!important}
.rc-act{margin-top:auto;padding-top:1.5rem}
.rc-act .btn{width:100%}

/* news */
.wrap.narrow{max-width:820px}
.n-cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}
@media (max-width:900px){.n-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.n-cards{grid-template-columns:1fr}}
.n-card{display:flex;flex-direction:column;background:#fff}
.n-img{display:block;aspect-ratio:16/10;background:var(--field) url(/assets/img/logo.png) center/64px no-repeat;overflow:hidden}
.n-img img{width:100%;height:100%;object-fit:cover;display:block}
.n-text{display:flex;flex-direction:column;flex:1;padding:1.25rem 1.5rem 1.5rem}
.n-text p{margin:0;max-width:none}
.n-date{font-size:.85rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:.6rem!important;display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}
.n-ext{font-size:.72rem;letter-spacing:.06em;border:1px solid var(--rule);padding:.05rem .4rem;color:var(--ink)}
.n-card h3{font-size:1.35rem;line-height:1.2;margin:0 0 .5rem}
.n-card h3 a{color:var(--ink);text-decoration:none}
.n-card h3 a:hover{color:var(--red-text);text-decoration:underline}
.n-sum{color:#333;font-size:1rem}
.n-more{margin-top:auto;padding-top:1.1rem}
.post-photo{margin:0 0 2rem}
.post-photo img{width:100%;max-height:560px;object-fit:cover}
.post-photo figcaption{font-size:.92rem;color:var(--muted);margin-top:.5rem}
.post-sum{font-weight:500}
.post-body p{font-size:1.08rem;line-height:1.7;max-width:68ch}
.post-actions{margin-top:2rem}
