/* ==========================================================================
   Ball Tampering Allowed Trust — shared stylesheet
   Brand: grass green #32a352 on black, with Quicksand (display) + Inter (body)
   Edit the variables in :root to recolour / retype the whole site at once.
   ========================================================================== */

:root{
  --green:        #32a352;
  --green-dark:   #2a8b44;
  --black:        #000000;
  --ink:          #11140f;   /* near-black text on light backgrounds */
  --muted-dark:   #cfd4cf;   /* body text on black */
  --muted-light:  #51564f;   /* body text on white */
  --white:        #ffffff;
  --card-line:    #d9ddd6;

  --maxw: 1180px;
  --pad: 24px;
  --radius: 6px;

  --font-display: 'Quicksand', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- reset / base ---------- */
*,*::before,*::after{ box-sizing:border-box; }
[hidden]{ display:none !important; }   /* ensure JS-hidden flex/grid items truly hide */
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--black);
  line-height:1.65;
  font-size:17px;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
h1,h2,h3,h4{ font-family:var(--font-display); font-weight:700; line-height:1.12; margin:0 0 .5em; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding-left:var(--pad); padding-right:var(--pad); }
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ---------- buttons ---------- */
.btn{
  display:inline-block;
  font-family:var(--font-display);
  font-weight:700;
  font-size:.78rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  text-decoration:none;
  padding:13px 26px;
  border-radius:var(--radius);
  border:2px solid transparent;
  cursor:pointer;
  transition:background .18s ease, color .18s ease, transform .18s ease;
}
.btn:focus-visible{ outline:3px solid var(--green); outline-offset:3px; }
.btn--green{ background:var(--green); color:var(--white); }
.btn--green:hover{ background:var(--green-dark); }
.btn--light{ background:var(--white); color:var(--ink); border-color:var(--white); }
.btn--light:hover{ background:transparent; color:var(--white); }
.btn--outline{ background:transparent; color:var(--ink); border-color:var(--card-line); }
.btn--outline:hover{ background:var(--ink); color:var(--white); border-color:var(--ink); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{ background:var(--black); position:sticky; top:0; z-index:50; }
.site-header .wrap{ display:flex; align-items:center; gap:24px; height:84px; }
.brand{ display:flex; align-items:center; flex:0 0 auto; }
.brand img{ height:52px; width:auto; }
.nav-toggle{ display:none; }

.main-nav{ margin-left:auto; }
.main-nav ul{ list-style:none; display:flex; align-items:center; gap:30px; margin:0; padding:0; }
.main-nav a{
  color:var(--white); text-decoration:none; font-size:.98rem; font-weight:500;
  padding:6px 0; border-bottom:2px solid transparent;
}
.main-nav a:hover{ color:var(--green); }
.main-nav a[aria-current="page"]{ color:var(--green); border-bottom-color:var(--green); }
.main-nav .donate{ margin-left:6px; }
.main-nav .donate a{ border-bottom:0; }

/* ==========================================================================
   Generic section helpers + wave dividers
   ========================================================================== */
.sec{ position:relative; overflow:hidden; }
.sec--black{ background:var(--black); color:var(--white); }
.sec--green{ background:var(--green); color:var(--white); }
.sec--light{ background:var(--white); color:var(--ink); }
.sec--dotted{
  background-color:var(--white);
  background-image:radial-gradient(rgba(17,20,15,.13) 1.5px, transparent 1.6px);
  background-size:15px 15px;
  color:var(--ink);
}
.pad-y{ padding-top:72px; padding-bottom:72px; }
.pad-y-lg{ padding-top:96px; padding-bottom:104px; }

/* wave sits at the bottom of a section; fill = the NEXT section's colour */
.wave{ position:absolute; left:0; bottom:-1px; width:100%; height:64px; display:block; pointer-events:none; }

.eyebrow{ font-family:var(--font-display); font-weight:600; color:var(--green); letter-spacing:.02em; }
h1.page-title{ font-size:clamp(2.2rem,5vw,3.2rem); }
h2.section-title{ font-size:clamp(1.7rem,3.4vw,2.3rem); margin-bottom:.7em; }

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero{ background:var(--black); color:var(--white); }
.hero .wrap{ display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center;
  padding-top:64px; padding-bottom:88px; }
.hero h1{ font-size:clamp(2.4rem,5.2vw,3.5rem); margin-bottom:.55em; }
.hero p{ color:var(--muted-dark); max-width:42ch; margin:0 0 1.8em; }

.sponsor-card{ position:relative; border-radius:8px; overflow:hidden; box-shadow:0 18px 40px rgba(0,0,0,.45); }
.sponsor-card img{ width:100%; height:auto; }
.sponsor-card .caption{
  background:var(--green); color:var(--white); text-align:center;
  font-family:var(--font-display); font-weight:600; font-size:.95rem;
  padding:13px 16px; text-decoration:none; display:block;
}
.sponsor-card a.caption:hover{ background:var(--green-dark); }

/* ==========================================================================
   Two-column "media + text" rows (checker promo, president, trustees)
   ========================================================================== */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.split--narrow-media{ grid-template-columns:.85fr 1.15fr; }

.checker-icon{ display:flex; justify-content:center; }
.checker-icon img{ width:min(340px,80%); }

/* president card */
.president{ display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center; }
.card-outline{
  background:var(--white); border:1px solid var(--card-line); border-radius:8px;
  padding:34px 34px 30px; box-shadow:0 10px 30px rgba(0,0,0,.06);
}
.card-outline h3{ font-size:1.6rem; margin-bottom:.1em; }
.card-outline .role{ font-family:var(--font-display); font-weight:700; margin-bottom:1em; }
.president-photo{ border-radius:6px; box-shadow:0 14px 34px rgba(0,0,0,.14); }

/* ==========================================================================
   Sponsors grid
   ========================================================================== */
.sponsors-title{ text-align:center; color:var(--white); margin-bottom:40px; }
.sponsor-grid{
  display:grid; grid-template-columns:repeat(6,1fr); gap:16px;
  max-width:1080px; margin:0 auto;
}
.sponsor-grid .logo{
  background:var(--white); border-radius:8px; aspect-ratio:16/9;
  display:flex; align-items:center; justify-content:center; padding:14px;
}
.sponsor-grid .logo img{ max-height:100%; max-width:100%; width:auto; object-fit:contain; }

/* ==========================================================================
   About page
   ========================================================================== */
.about-hero{ display:flex; align-items:center; gap:32px; padding-top:56px; padding-bottom:8px; flex-wrap:wrap; }
.about-hero .avatar{
  width:118px; height:118px; border-radius:8px; object-fit:cover; flex:0 0 auto;
  box-shadow:0 10px 26px rgba(0,0,0,.4);
}
.about-hero .titles h1{ font-size:clamp(2.2rem,5vw,3rem); margin-bottom:.15em; }
.about-hero .titles .eyebrow{ font-size:1.2rem; }

.prose{ max-width:none; }
.prose h2{ margin-top:1.3em; }
.prose h3.founder{ color:var(--green); font-size:1.35rem; margin-bottom:.6em; }
.prose p{ color:var(--muted-dark); margin:0 0 1.05em; }
.prose ul{ color:var(--muted-dark); padding-left:1.2em; margin:0 0 1.1em; }
.prose ul li{ margin:.35em 0; }
.prose .lead-emph{ font-weight:600; color:#e7eae5; }
.sponsor-strip{ margin-top:34px; }
.sponsor-strip img{ width:300px; max-width:70%; }

/* "more information" card */
.info-card{
  background:var(--white); border:1px solid var(--card-line); border-radius:8px;
  padding:34px; box-shadow:0 10px 30px rgba(0,0,0,.06);
}
.info-card h2{ font-size:1.7rem; margin-bottom:.7em; }
.info-card .actions{ display:flex; gap:16px; flex-wrap:wrap; }

/* ==========================================================================
   Checker page
   ========================================================================== */
.checker-card{
  background:var(--black); color:var(--white);
  border-radius:10px;
  padding:54px 56px;
  clip-path:polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}
.checker-card h2{ font-size:clamp(1.8rem,3.4vw,2.3rem); margin-bottom:.7em; }
.checker-card p{ color:var(--muted-dark); margin:0 0 1.05em; max-width:64ch; }
.checker-card .feel-list{ list-style:none; padding:0; margin:0 0 1.1em; }
.checker-card .feel-list li{ margin:.3em 0; color:#e7eae5; }
.checker-card .feel-list li::before{ content:"›"; color:var(--green); font-weight:700; margin-right:.6em; }

/* ==========================================================================
   News page
   ========================================================================== */
.news-toolbar{ display:flex; justify-content:flex-end; margin-bottom:26px; }
.search-box{ position:relative; }
.search-box input{
  font-family:var(--font-body); font-size:.95rem;
  padding:11px 40px 11px 16px; border:1px solid rgba(255,255,255,.6);
  border-radius:6px; background:rgba(255,255,255,.12); color:var(--white); min-width:230px;
}
.search-box input::placeholder{ color:rgba(255,255,255,.8); }
.search-box .icon{ position:absolute; right:12px; top:50%; transform:translateY(-50%); color:var(--white); }

.news-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.news-card{
  background:var(--black); color:var(--white); border-radius:10px; overflow:hidden;
  display:flex; flex-direction:column;
}
.news-card .thumb{ aspect-ratio:16/10; background:#0c0f0b; }
.news-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.news-card .body{ padding:20px 22px 24px; display:flex; flex-direction:column; flex:1; }
.tag{
  align-self:flex-start; font-family:var(--font-display); font-weight:600; font-size:.72rem;
  letter-spacing:.04em; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25);
  padding:3px 10px; border-radius:4px; margin-bottom:12px;
}
.news-card .date{ color:var(--muted-dark); font-size:.85rem; margin-bottom:8px; }
.news-card h3{ font-size:1.18rem; margin-bottom:.5em; }
.news-card p{ color:var(--muted-dark); font-size:.95rem; margin:0 0 18px; }
.news-card .read-more{
  margin-top:auto; align-self:flex-start; color:var(--green); font-weight:600; text-decoration:none;
}
.news-card .read-more:hover{ text-decoration:underline; }
.pager{ display:flex; justify-content:center; gap:10px; margin-top:40px; }
.pager .pg{
  width:38px; height:38px; display:flex; align-items:center; justify-content:center;
  border-radius:50%; font-family:var(--font-display); font-weight:600; text-decoration:none; color:var(--ink);
}
.pager .pg[aria-current="true"]{ background:var(--green); color:var(--white); }
.pager .pg.nav{ color:var(--muted-light); }

/* ==========================================================================
   Book a session page
   ========================================================================== */
.book-hero{ padding-top:64px; padding-bottom:96px; }
.book-hero h1{ font-size:clamp(2.2rem,5vw,3.2rem); margin-bottom:.7em; }
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:56px; }
.two-col h2{ font-size:1.6rem; margin-bottom:.6em; }
.two-col p{ color:#eef1ec; margin:0 0 1em; }
.offer-list{ list-style:none; padding:0; margin:0 0 1em; }
.offer-list li{ margin:.4em 0; color:#eef1ec; }
.offer-list li::before{ content:"→"; margin-right:.6em; color:#0a3a1c; font-weight:700; }

.book-card{ background:var(--white); border:1px solid var(--card-line); border-radius:8px;
  padding:40px 44px; box-shadow:0 10px 30px rgba(0,0,0,.06); }
.book-card .grid{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.book-card h2{ font-size:1.7rem; margin-bottom:.6em; }
.book-card p{ color:var(--muted-light); }
.book-card a{ color:var(--green); font-weight:600; }
.quote{ position:relative; }
.quote .mark{ font-family:Georgia, serif; font-size:3.4rem; color:var(--green); line-height:.5; }
.quote blockquote{ font-family:var(--font-display); font-weight:700; font-size:1.5rem; margin:.3em 0 .8em; color:var(--ink); }
.quote cite{ font-style:normal; color:var(--muted-light); }

/* ==========================================================================
   Trustees page
   ========================================================================== */
.trustee{ display:grid; grid-template-columns:300px 1fr; gap:44px; align-items:center; padding:26px 0; }
.trustee img{ width:300px; height:300px; object-fit:cover; border-radius:6px; box-shadow:0 12px 30px rgba(0,0,0,.18); }
.trustee h3{ font-size:1.7rem; margin-bottom:.2em; }
.trustee h3 small{ font-size:.95rem; font-weight:600; color:rgba(255,255,255,.85); }
.trustee p{ color:#eef1ec; margin:0; max-width:60ch; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background:var(--black); color:var(--white); }
.site-footer .top{ display:flex; align-items:center; justify-content:space-between; padding:48px 0 38px; gap:24px; }
.site-footer .foot-logo img{ height:96px; width:auto; }
.socials{ display:flex; gap:14px; }
.socials a{
  width:42px; height:42px; border-radius:7px; background:var(--white); color:var(--black);
  display:flex; align-items:center; justify-content:center; text-decoration:none;
}
.socials a:hover{ background:var(--green); color:var(--white); }
.socials svg{ width:20px; height:20px; fill:currentColor; }
.site-footer .bottom{
  border-top:1px solid rgba(255,255,255,.12);
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding:18px 0 30px; font-size:.82rem; color:rgba(255,255,255,.7); flex-wrap:wrap;
}
.powered{ display:flex; align-items:center; gap:8px; }
.powered img{ height:18px; width:auto; }

/* ==========================================================================
   Shoutout bar (home page, sits under the hero)
   ========================================================================== */
/* .hero.hero--shout beats both the base rule and the 900px media query */
.hero.hero--shout .wrap{ padding-bottom:34px; }
.shoutout-band{
  position:relative; z-index:2;
  max-width:var(--maxw); margin:0 auto;
  padding:0 var(--pad) 104px;   /* bottom clearance keeps the bar off the wave */
}
.shoutout{
  display:flex; align-items:center; gap:20px;
  background:var(--white); color:var(--ink);
  border:2px solid transparent; border-radius:10px;
  padding:14px 20px 14px 14px; text-decoration:none;
  box-shadow:0 16px 38px rgba(0,0,0,.45);
  transition:transform .18s ease, border-color .18s ease;
}
.shoutout:hover{ transform:translateY(-2px); border-color:var(--green); }
.shoutout:focus-visible{ outline:3px solid var(--green); outline-offset:3px; }
.shoutout .date-block{
  flex:0 0 auto; background:var(--green); color:var(--white);
  border-radius:7px; padding:9px 15px; text-align:center;
  font-family:var(--font-display); line-height:1.05;
}
.shoutout .date-block b{ display:block; font-size:1.4rem; font-weight:700; }
.shoutout .date-block span{ display:block; font-size:.68rem; letter-spacing:.14em; text-transform:uppercase; }
.shoutout .copy{ flex:1 1 auto; min-width:0; }
.shoutout .copy b{ display:block; font-family:var(--font-display); font-weight:700; font-size:1.12rem; }
.shoutout .copy span{ color:var(--muted-light); font-size:.94rem; }
.shoutout .cta{
  flex:0 0 auto; color:var(--green); font-family:var(--font-display); font-weight:700;
  font-size:.78rem; letter-spacing:.11em; text-transform:uppercase; white-space:nowrap;
}
.shoutout:hover .cta{ text-decoration:underline; }

/* ==========================================================================
   Article page (news detail)
   ========================================================================== */
.article-head{ padding-top:52px; padding-bottom:92px; }
.back-link{ display:inline-block; color:var(--green); font-weight:600; text-decoration:none;
  font-size:.95rem; margin-bottom:20px; }
.back-link:hover{ text-decoration:underline; }
.article-meta{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:14px; }
.article-meta .date{ color:var(--muted-dark); font-size:.9rem; }
.article-head .lead{ color:#e7eae5; font-size:1.15rem; max-width:60ch; margin:.7em 0 0; }

.article-split{ display:grid; grid-template-columns:.85fr 1.15fr; gap:52px; align-items:start; }
.article-figure{ margin:0; }
.article-figure img{ width:100%; border-radius:8px; box-shadow:0 16px 40px rgba(0,0,0,.3); }
.article-figure figcaption{ font-size:.82rem; color:#dbe6dd; margin-top:10px; line-height:1.5; }
.article-body p{ color:#eef1ec; margin:0 0 1.05em; }
.article-body .pull{
  border-left:4px solid rgba(255,255,255,.5); padding:2px 0 2px 22px; margin:1.6em 0;
}
.article-body .pull blockquote{
  font-family:var(--font-display); font-weight:700; font-size:1.3rem; color:var(--white);
  margin:0 0 .5em; line-height:1.4;
}
.article-body .pull cite{ font-style:normal; color:#dbe6dd; font-size:.92rem; }

.venue-split{ display:grid; grid-template-columns:.7fr 1.3fr; gap:48px; align-items:center; }
.venue-figure{ margin:0; }
.venue-figure img{ width:100%; border-radius:8px; box-shadow:0 12px 32px rgba(0,0,0,.16); }
.venue-figure figcaption{ font-size:.78rem; color:var(--muted-light); margin-top:8px; line-height:1.5; }
.venue-body p{ color:var(--muted-light); margin:0 0 1em; }
.venue-wide{ margin:38px 0 0; }
.venue-wide img{ width:100%; aspect-ratio:16/7; object-fit:cover; border-radius:8px;
  box-shadow:0 12px 32px rgba(0,0,0,.16); }
.venue-wide figcaption{ font-size:.78rem; color:var(--muted-light); margin-top:8px; line-height:1.5; }

.detail-card{ margin-top:40px; }
.detail-list{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin:0 0 26px; }
.detail-list dt{ font-family:var(--font-display); font-weight:700; font-size:.72rem;
  letter-spacing:.12em; text-transform:uppercase; color:var(--green); margin-bottom:6px; }
.detail-list dd{ margin:0; color:var(--ink); font-weight:500; line-height:1.5; }
.credits{ font-size:.78rem; color:var(--muted-light); margin-top:30px; line-height:1.6; }
.credits a{ color:var(--muted-light); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:900px){
  .hero .wrap{ grid-template-columns:1fr; gap:32px; padding-bottom:64px; }
  .split,.president,.two-col,.book-card .grid{ grid-template-columns:1fr; gap:32px; }
  .checker-icon{ order:-1; }
  .news-grid{ grid-template-columns:1fr 1fr; }
  .trustee{ grid-template-columns:1fr; justify-items:center; text-align:center; gap:18px; }
  .trustee p{ text-align:center; }
  .sponsor-grid{ grid-template-columns:repeat(4,1fr); }
  .article-split,.venue-split{ grid-template-columns:1fr; gap:32px; }
  .detail-list{ grid-template-columns:1fr 1fr; }
}
@media (max-width:760px){
  /* mobile nav */
  .nav-toggle{
    display:flex; flex-direction:column; gap:5px; margin-left:auto;
    background:none; border:0; padding:8px; cursor:pointer;
  }
  .nav-toggle span{ width:26px; height:3px; background:var(--white); border-radius:2px; }
  .main-nav{
    position:absolute; top:84px; left:0; right:0; background:var(--black);
    margin:0; display:none; border-top:1px solid rgba(255,255,255,.12);
  }
  .main-nav.open{ display:block; }
  .main-nav ul{ flex-direction:column; align-items:flex-start; gap:0; padding:8px 0; }
  .main-nav li{ width:100%; }
  .main-nav a{ display:block; padding:13px var(--pad); width:100%; }
  .main-nav .donate{ margin:10px var(--pad); }
  .main-nav .donate a{ display:inline-block; }
  .site-footer .top{ flex-direction:column; align-items:flex-start; }
  .site-footer .bottom{ flex-direction:column; align-items:flex-start; }
  .checker-card{ padding:40px 26px; clip-path:polygon(0 2%,100% 0,100% 98%,0 100%); }
}
@media (max-width:620px){
  /* shoutout: date block + CTA on one row, headline wraps underneath */
  .shoutout{ flex-wrap:wrap; gap:14px; padding:14px; }
  .shoutout .copy{ flex:1 1 100%; order:3; }
  .shoutout .cta{ margin-left:auto; }
}
@media (max-width:520px){
  .news-grid{ grid-template-columns:1fr; }
  .sponsor-grid{ grid-template-columns:repeat(3,1fr); }
  body{ font-size:16px; }
  .detail-list{ grid-template-columns:1fr; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; }
}
