/* Bend Waves Water Polo Club — v2
   Palette (sampled from the club logo):
   Ink navy #0C1B2A · Pool navy #12314E · Wave gold #A98A5B
   Ball yellow #D9A62E · Coral #C0392B · Paper #F7F5F0
   Type: Georgia serif display + system sans body. */

:root{
  --ink:#0C1B2A;
  --pool:#12314E;
  --gold:#A98A5B;
  --gold-text:#7A5E33; /* wave gold darkened for text on light grounds */
  --yellow:#D9A62E;
  --coral:#C0392B;
  --paper:#F7F5F0;
  --white:#FFFFFF;
  --ink-soft:#33475C;
  --line:#E3DED2;
  --line-navy:#24405E;
  --radius:12px;
  --pad:clamp(4.5rem,9vw,7rem);
  --serif:Georgia,'Iowan Old Style','Times New Roman',serif;
  --sans:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
}

*{margin:0;padding:0;box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth;scroll-padding-top:5.5rem} /* header is 4.8rem at every width */
::selection{background:var(--yellow);color:var(--ink)}
body{
  font-family:var(--sans);
  font-size:1.125rem;
  line-height:1.65;
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}
img{display:block;max-width:100%;height:auto}
a{color:var(--pool)}
a:hover{color:var(--gold-text)}
:focus-visible{outline:3px solid var(--gold-text);outline-offset:3px;border-radius:2px}
.skip-link:focus-visible,.site-header :focus-visible,.news :focus-visible,.hero :focus-visible,.section-navy :focus-visible,.site-footer :focus-visible{outline-color:var(--yellow)}

.wrap{width:min(72rem,100% - 3rem);margin-inline:auto}
.skip-link{
  position:absolute;left:1rem;top:-6rem;z-index:100;
  background:var(--ink);color:var(--white);font-weight:700;text-decoration:none;
  padding:.8rem 1.4rem;border-radius:0 0 var(--radius) var(--radius);
  transition:top .15s ease;
}
.skip-link:focus{top:0;color:var(--white)}
.narrow{width:min(48rem,100% - 3rem)}

h1,h2,h3{font-family:var(--serif);font-weight:700;line-height:1.12;letter-spacing:-.01em;text-wrap:balance}
p{max-width:38em;text-wrap:pretty}
h2{font-size:clamp(2.1rem,4.5vw,3rem);margin-bottom:1.25rem}
h3{font-size:1.35rem}
.lede{font-size:1.25rem;color:var(--ink-soft);max-width:44rem}

.eyebrow{
  font-size:.82rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;
  color:var(--gold-text);margin-bottom:1rem;
}
.eyebrow-light{color:var(--gold)}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:3rem;padding:.8rem 1.6rem;border-radius:999px;
  font-weight:700;font-size:1rem;text-decoration:none;line-height:1.2;
  transition:transform .15s ease,background-color .15s ease,color .15s ease;
}
.btn:active{transform:translateY(1px)}
button.btn{font-family:inherit;border:0;cursor:pointer}
.btn-big{min-height:3.5rem;padding:1rem 2rem;font-size:1.06rem}
.btn-register{background:var(--yellow);color:var(--ink)}
.btn-register:hover{background:var(--gold);color:var(--ink)}
.btn-ghost{background:transparent;color:var(--white);box-shadow:inset 0 0 0 2px rgba(255,255,255,.85)}
.btn-ghost:hover{background:rgba(255,255,255,.12);color:var(--white)}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:50;
  background:var(--ink);
  box-shadow:0 1px 0 rgba(255,255,255,.06);
}
.header-in{display:flex;align-items:center;gap:2rem;padding-top:.9rem;padding-bottom:.9rem}
.brand{flex:none;display:flex;align-items:center;min-height:2.75rem}
.brand img{height:3rem;width:auto}
.main-nav{margin-left:auto;display:flex;align-items:center;gap:1.9rem}
.main-nav a{
  color:#EDEBE4;text-decoration:none;font-weight:600;font-size:1rem;
  padding:.6rem .2rem;min-height:2.75rem;display:inline-flex;align-items:center;
}
.main-nav a:hover{color:var(--yellow)}
.main-nav .btn-register{color:var(--ink);padding:.8rem 1.4rem;min-height:3rem}
.main-nav .btn-register:hover{color:var(--ink)}
.nav-toggle{
  display:none;margin-left:auto;background:none;border:0;cursor:pointer;
  width:3rem;height:3rem;padding:.55rem .7rem;
}
.nav-toggle span{display:block;height:2px;background:var(--white);margin:5px 0;border-radius:2px}

/* ---------- Club news (one dated line; how-to is in the comment in index.html) ---------- */
.news{background:var(--pool);color:#EDEBE4;font-size:1rem;line-height:1.5}
.news p{max-width:none;padding-top:.75rem;padding-bottom:.75rem}
.news strong{color:var(--yellow);font-size:.82rem;letter-spacing:.12em;text-transform:uppercase;margin-right:.6rem;white-space:nowrap}
.news a{color:var(--white);display:inline-block;padding:.625rem 0;margin:-.625rem 0} /* 44px tap height, line height unchanged */
.news a:hover{color:var(--yellow)}

/* ---------- Hero ---------- */
.hero{position:relative;background:var(--ink);color:var(--white);overflow:hidden}
.hero-img{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:center 38%;
}
.hero-shade{
  position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(12,27,42,.88) 0%,rgba(12,27,42,.62) 46%,rgba(12,27,42,.18) 78%),
             linear-gradient(0deg,rgba(12,27,42,.55) 0%,rgba(12,27,42,0) 40%);
}
.hero-in{position:relative;padding-top:clamp(5rem,12vw,9rem);padding-bottom:clamp(5rem,12vw,9rem)}
.hero .eyebrow{color:var(--yellow)} /* wave gold is too dim over the photo */
.hero h1{font-size:clamp(3rem,8vw,5.4rem);text-transform:uppercase;letter-spacing:.005em;max-width:10em}
.hero-sub{font-size:1.3rem;line-height:1.55;max-width:34rem;margin-top:1.4rem;color:#F2EFE6}
.hero-cta{display:flex;flex-wrap:wrap;gap:1rem;margin-top:2.4rem}

/* ---------- Sections ---------- */
.section{padding-top:var(--pad);padding-bottom:var(--pad)}
.section-paper{background:var(--paper)}
.section-navy{background:var(--ink);color:#F4F1E8}
.section-navy h2{color:var(--white)}

/* Intro */
.intro-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(2.5rem,6vw,5rem);align-items:center}
.intro-copy p:not(.eyebrow){color:var(--ink-soft);margin-bottom:1.1rem}
.intro-copy p:last-child{margin-bottom:0}
.intro-photo img{aspect-ratio:4/4.6;object-position:center 22%}
.stats{
  display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;
  margin-top:clamp(3rem,6vw,4.5rem);padding-top:2.5rem;border-top:1px solid var(--line);
}
.stat strong{font-family:var(--serif);font-size:2.6rem;line-height:1;display:block}
.stat span{color:var(--ink-soft);font-size:1rem}

/* Boxes: program cards, contact cards and the fact box share one recipe */
.card,.contact-card,.fact-box{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:2rem 1.8rem}

/* Photos: one treatment; each photo sets its own crop below */
.intro-photo img,.sched-photo img,.reg-side img,.wide-photo img{width:100%;border-radius:var(--radius);object-fit:cover}

/* Programs */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top:2.75rem}
.card h3{margin-bottom:.6rem}
.card h3::after{content:"";display:block;width:2.4rem;height:3px;background:var(--yellow);border-radius:2px;margin-top:.7rem}
.card-who{color:var(--ink-soft)}
.card-when{margin-top:1.1rem;font-weight:700;font-size:.95rem;color:var(--gold-text);letter-spacing:.01em}

/* Schedule */
.sched-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(2.5rem,6vw,5rem);align-items:center}
.sched-list{margin-top:1rem}
.sched-row{
  display:grid;grid-template-columns:10.5rem 1fr;gap:1.5rem;
  padding:1.15rem 0;border-bottom:1px solid var(--line-navy);
}
.sched-row:first-child{border-top:1px solid var(--line-navy)}
.sched-row:last-child{border-bottom:0}
.sched-row dt{font-weight:700;color:var(--gold);font-size:.95rem;letter-spacing:.06em;text-transform:uppercase;padding-top:.3rem}
.sched-row dd{font-size:1.12rem}
.print-btn{margin-top:2rem}
.sched-photo img{aspect-ratio:4/4.4;object-position:center 22%}

/* Registration */
.reg-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(2.5rem,6vw,5rem);align-items:start}
.steps{list-style:none;counter-reset:step;margin:2rem 0 2.5rem}
.steps li{counter-increment:step;position:relative;padding-left:4.2rem;margin-bottom:2rem}
.steps li:last-child{margin-bottom:0}
.steps li::before{
  content:counter(step);
  position:absolute;left:0;top:-.15rem;
  width:3rem;height:3rem;border-radius:50%;
  background:var(--pool);color:var(--white);
  font-family:var(--serif);font-size:1.35rem;font-weight:700;
  display:flex;align-items:center;justify-content:center;
}
.steps h3{margin-bottom:.35rem}
.steps p{color:var(--ink-soft)}
.reg-side img{aspect-ratio:5/4}
.fact-box{background:var(--paper);margin-top:1.5rem}
.fact-box h3{margin-bottom:.9rem}
.fact-box ul{list-style:none}
.fact-box li{padding:.55rem 0;border-bottom:1px solid var(--line);color:var(--ink-soft)}
.fact-box li:last-child{border-bottom:0}
.fact-box strong{color:var(--ink)}

/* Cascade Classic */
.wide-photo{margin-top:2.5rem}
.wide-photo img{aspect-ratio:21/9;object-position:center 30%}
.classic-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;margin-top:2.5rem}
.classic-facts strong{display:block;font-size:.85rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-text);margin-bottom:.4rem}
.classic-facts span{font-family:var(--serif);font-size:1.25rem}
.note{margin-top:2rem;color:var(--ink-soft)}

/* Scholarship */
#scholarship p:not(.eyebrow){color:#D8DEE6;max-width:44rem}
#scholarship blockquote{
  font-family:var(--serif);font-size:clamp(1.5rem,3.4vw,2rem);line-height:1.35;font-style:italic;
  color:var(--white);border-left:4px solid var(--coral);padding-left:1.4rem;
  margin:2.2rem 0 2.6rem;max-width:36rem;
}

/* Donate page */
.page-head h1{font-size:clamp(2.4rem,5.5vw,3.5rem);color:var(--white)}
.page-head .lede{color:#D8DEE6;margin-top:1.1rem}
.card .btn{margin-top:1.5rem}
.give-any{margin-top:3rem}
.give-any p{color:var(--ink-soft);margin:.6rem 0 1.5rem}

/* Scholarship page */
.page-title{font-size:clamp(2.4rem,5.5vw,3.6rem);margin-bottom:1.25rem}
.cards.tiers{grid-template-columns:repeat(4,1fr)}
@media (max-width:1100px){.cards.tiers{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.cards.tiers{grid-template-columns:1fr}}
.stack p{margin-bottom:1.1rem}
.stack p:last-child{margin-bottom:0}
.section-navy .text-link{color:var(--yellow)}
.section-navy .text-link:hover{color:var(--white)}
.rows{margin-top:.5rem}
.rows .row{
  display:grid;grid-template-columns:11rem 1fr;gap:1.5rem;
  padding:1.15rem 0;border-bottom:1px solid var(--line);
}
.rows .row:first-child{border-top:1px solid var(--line)}
.rows dt{font-weight:700;color:var(--gold-text);font-size:.95rem;letter-spacing:.06em;text-transform:uppercase;padding-top:.3rem}
.rows dd{font-size:1.12rem}
@media (max-width:560px){.rows .row{grid-template-columns:1fr;gap:.2rem}}

/* Safe Sports */
.safe-sports p:not(.eyebrow){color:var(--ink-soft);font-size:1.2rem}

/* Contact */
.contact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top:2.75rem}
.contact-role{font-weight:700;color:var(--gold-text);font-size:.9rem;letter-spacing:.1em;text-transform:uppercase;margin:.3rem 0 .9rem}
.contact-card p:not(.contact-role){color:var(--ink-soft)}
.contact-card a{font-weight:600;word-break:break-word;display:inline-block;padding:.6rem 0}

/* ---------- Footer ---------- */
.site-footer{background:var(--ink);color:#C9D2DC;padding-top:3.5rem;padding-bottom:3.5rem}
.footer-in{display:flex;flex-direction:column;gap:1.6rem}
.footer-nav{display:flex;flex-wrap:wrap;gap:.4rem 1.8rem}
.footer-nav a{color:#EDEBE4;text-decoration:none;font-weight:600;padding:.5rem 0;min-height:2.75rem;display:inline-flex;align-items:center}
.footer-nav a:hover{color:var(--yellow)}
.footer-line{font-family:var(--serif);font-size:1.15rem;color:var(--white)}
.footer-small{font-size:.95rem;color:#8FA1B3}

/* ---------- Registration pop-up ----------
   Registration is not open right now (it opens in January), so the Register
   buttons open this dialog instead of a sign-up page. Behavior in script.js. */
body.modal-open{overflow:hidden}
.modal-backdrop{
  position:fixed;inset:0;z-index:200;
  background:rgba(12,27,42,.72);
  display:flex;align-items:center;justify-content:center;
  padding:1.25rem;
}
.modal-backdrop[hidden]{display:none!important}
.modal{
  position:relative;background:var(--white);color:var(--ink);
  border-radius:var(--radius);max-width:34rem;width:100%;
  max-height:calc(100vh - 2.5rem);max-height:calc(100dvh - 2.5rem);overflow-y:auto;
  padding:2.5rem clamp(1.5rem,5vw,2.75rem);
  box-shadow:0 1.5rem 3rem rgba(12,27,42,.4);
}
.modal h2{font-size:clamp(1.7rem,4vw,2.2rem);margin-bottom:1rem}
.modal p:not(.eyebrow){color:var(--ink-soft);margin-bottom:1rem}
.modal-actions{display:flex;flex-wrap:wrap;gap:1rem;margin-top:1.75rem}
.btn-quiet{background:transparent;color:var(--pool);box-shadow:inset 0 0 0 2px var(--pool)}
.btn-quiet:hover{background:var(--paper);color:var(--pool)}
.modal-close{
  position:absolute;top:.6rem;right:.6rem;
  width:3rem;height:3rem;background:none;border:0;cursor:pointer;
  font-size:1.7rem;line-height:1;color:var(--ink-soft);border-radius:50%;
}
.modal-close:hover{color:var(--ink);background:var(--paper)}

/* ---------- Mobile ---------- */
@media (max-width:1100px){ /* the full nav needs ~1,040px; below that, use the menu button */
  .nav-toggle{display:block}
  .main-nav{
    display:none;position:absolute;top:100%;left:0;right:0;
    max-height:calc(100vh - 100%);max-height:calc(100dvh - 100%); /* 100% = header height */
    overflow-y:auto;
    background:var(--ink);flex-direction:column;align-items:stretch;
    gap:0;padding:.5rem 1.5rem 1.5rem;border-top:1px solid var(--line-navy);
  }
  .main-nav.open{display:flex}
  .main-nav a{padding:.9rem .2rem;border-bottom:1px solid var(--line-navy);min-height:3rem}
  .main-nav .btn-register{margin-top:1rem;border-bottom:0}
}
@media (max-width:900px){
  .cards{grid-template-columns:repeat(2,1fr)}
  .contact-grid{grid-template-columns:repeat(2,1fr)}
  .classic-facts{grid-template-columns:1fr;gap:1.2rem}
}
@media (max-width:860px){
  .hero-shade{background:rgba(12,27,42,.8)} /* text runs the full width here, so shade evenly */
  .intro-grid,.sched-grid,.reg-grid{grid-template-columns:1fr}
  .intro-photo img,.sched-photo img{aspect-ratio:16/10}
  .stats{grid-template-columns:1fr;gap:1.4rem}
}
@media (max-width:560px){
  :root{--pad:3.75rem} /* tighter section rhythm on phones (D8) */
  body{font-size:1.06rem}
  .cards,.contact-grid{grid-template-columns:1fr}
  .hero-cta .btn{width:100%}
  .brand img{height:2.4rem}
  .sched-row{grid-template-columns:1fr;gap:.2rem}
  .wrap{width:calc(100% - 2.5rem)} /* .narrow blocks are .wrap too */
}
/* ---------- Print ----------
   Any print: ink on white; no navigation, photos or buttons. The header keeps its
   navy bar because the logo is drawn for navy (BRAND.md).
   The "Print the schedule" button adds .print-schedule to <html>: a one-page
   handout with just the schedule and the contacts. */
@media print{
  @page{margin:1.5cm}
  html{font-size:13px}
  *,*::before,*::after{color:var(--ink)!important;background:transparent!important;box-shadow:none!important}
  .site-header{position:static;background:var(--ink)!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .skip-link,.nav-toggle,.main-nav,.hero-img,.hero-shade,.btn,figure,.reg-side img,.footer-nav,.site-footer .brand,.modal-backdrop{display:none!important}
  .wrap,.narrow{width:auto}
  .section,.hero-in{padding-top:1.5rem;padding-bottom:1.5rem}
  .hero h1{font-size:2.8rem}
  .intro-grid,.sched-grid,.reg-grid{display:block}
  .stats,.classic-facts,.contact-grid{grid-template-columns:repeat(3,1fr)}
  .cards,.contact-grid{margin-top:1.25rem}
  .site-footer{padding:1rem 0 0}
  .footer-in{gap:.4rem}
  h2,h3,.eyebrow{break-after:avoid}
  .card,.contact-card,.fact-box,.steps li,.classic-facts>div,blockquote,#schedule,.rows .row{break-inside:avoid}
  .print-schedule main>:not(#schedule):not(#contact){display:none!important}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .btn,.skip-link{transition:none}
}

/* ---------- 404 (404.html) ---------- */
.notfound{background:var(--ink);color:#F4F1E8;min-height:100vh;display:flex;align-items:center}
.notfound .wrap{padding-top:4rem;padding-bottom:4rem}
.notfound .brand{display:inline-flex;margin-bottom:3rem}
.notfound .brand img{height:3rem;width:auto}
.notfound h1{color:var(--white);font-size:clamp(2.4rem,6vw,3.6rem);margin-bottom:1rem}
.notfound p:not(.eyebrow){color:#D8DEE6;margin-bottom:2.2rem}
