/* Mamaroneck Community Chorus
   Palette: harbor navy, chorus red (the concert shirts), potluck yellow, sound sky. */
:root {
  --navy: #13284a;
  --navy-2: #1d3a66;
  --red: #c81d34;
  --red-dark: #a3162a;
  --yellow: #ffc83d;
  --sky: #e8f0f8;
  --ink: #14181f;
  --muted: #4a5568;
  --white: #ffffff;
  --display: "Bricolage Grotesque", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gut: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; box-shadow: 0 0 0 6px var(--navy); border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0 0 0.5em; font-weight: 750; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); font-variation-settings: "wdth" 85; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-variation-settings: "wdth" 85; color: var(--navy); }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.lede { font-size: 1.3rem; max-width: 38ch; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--ink); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.8em 1.35em;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.1;
  border: 2px solid transparent;
  transition: background-color .15s, color .15s;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--red); color: var(--white); }
.btn-big { font-size: 1.2rem; padding: 0.95em 1.6em; }
.link-strong { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--red); }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.6rem var(--gut);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #dde4ee;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); font-family: var(--display); font-weight: 750; line-height: 1.05; font-size: 1.02rem; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
#site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
#site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
#site-nav ul a { font-family: var(--display); font-weight: 600; text-decoration: none; color: var(--ink); font-size: 1.05rem; padding: .3rem 0; border-bottom: 3px solid transparent; }
#site-nav ul a:hover { color: var(--red); }
#site-nav ul a[aria-current="page"] { border-bottom-color: var(--red); }
.nav-cta { padding: .6em 1.1em; font-size: 1rem; }
.menu-btn { display: none; margin-left: auto; font: 700 1rem var(--display); background: var(--navy); color: var(--white); border: 0; border-radius: 999px; padding: .55em 1.1em; cursor: pointer; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  #site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid #dde4ee; flex-direction: column; align-items: flex-start; padding: 1rem var(--gut) 1.5rem; gap: 1rem; }
  #site-nav.open { display: flex; }
  #site-nav ul { flex-direction: column; gap: .4rem; }
  #site-nav ul a { font-size: 1.3rem; }
}

/* ---------- hero: a mosaic of singers ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(3, minmax(min(14vw, 30vh), auto));
  gap: 4px;
  background: var(--white);
}
.hero-text {
  grid-column: 1 / span 4;
  grid-row: 1 / span 3;
  background: var(--navy);
  color: var(--white);
  padding: clamp(1.5rem, 3.5vw, 3.5rem);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-text h1 { color: var(--white); max-width: 15ch; }
.hero-sub { font-size: clamp(1.05rem, 1.35vw, 1.25rem); max-width: 42ch; color: #d6e0ee; }
.hero-dates { font-family: var(--display); font-size: clamp(1.2rem, 1.8vw, 1.6rem); color: var(--yellow); margin-bottom: 1.2rem; }
.hero-dates strong { font-weight: 750; }
.hero-text .btn { align-self: flex-start; }
.tile { overflow: hidden; background: var(--navy-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

@media (prefers-reduced-motion: no-preference) {
  .tile img { animation: tile-in .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 45ms + 150ms); }
  @keyframes tile-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto; grid-auto-rows: 26vw; }
  .hero-text { grid-column: 1 / -1; grid-row: auto; }
  .tile:nth-of-type(n+10) { display: none; }
}

/* ---------- concert ---------- */
.concert { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.shows { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 3vw, 2rem); margin: 2rem 0 2.5rem; }
.show {
  border: 3px solid var(--navy);
  border-radius: 18px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--yellow);
}
.show-day { font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--navy); margin: 0; }
.show-date { display: flex; align-items: center; gap: .8rem; margin: .2rem 0 .3rem; }
.show-num { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 11vw, 8.5rem); line-height: .85; color: var(--red); font-variation-settings: "wdth" 75; letter-spacing: -0.03em; }
.show-month { font-family: var(--display); font-weight: 650; font-size: 1.3rem; line-height: 1.15; color: var(--navy); }
.show-time { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.4rem; }
.venue { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; padding-top: 1.5rem; border-top: 2px solid var(--sky); color: var(--muted); }
.venue strong { color: var(--ink); }
@media (max-width: 720px) {
  .shows, .venue { grid-template-columns: 1fr; }
}

/* ---------- season ---------- */
.season { background: var(--sky); padding: clamp(3.5rem, 7vw, 6rem) 0; }
.season-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.season-photos { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; align-items: end; }
.season-photos img { border-radius: 14px; width: 100%; object-fit: cover; }
.season-photos img:first-child { aspect-ratio: 4/5; }
.season-photos img:last-child { aspect-ratio: 3/4; margin-bottom: -2.5rem; border: 6px solid var(--sky); border-radius: 18px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3.6rem; margin-bottom: 1.4rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -.1rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--navy);
  font: 800 1.25rem var(--display);
}
.steps h3 { margin-bottom: .2rem; color: var(--navy); }
.steps p { margin: 0; color: #2d3748; }
@media (max-width: 860px) { .season-grid { grid-template-columns: 1fr; } .season-photos img:last-child { margin-bottom: 0; } }

/* ---------- wide photo ---------- */
.wide { margin: 0; }
.wide img { width: 100%; max-height: 78vh; object-fit: cover; }
.wide figcaption { font-size: .95rem; color: var(--muted); padding-top: .6rem; }

/* ---------- videos ---------- */
.listen-teaser { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.split-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.videos { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem 1.5rem; }
.videos-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .videos-3 { grid-template-columns: 1fr; } }
.video h3 { margin-top: .7rem; font-size: 1.25rem; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0; background: var(--navy); cursor: pointer; border-radius: 12px; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt .play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: var(--red); transition: transform .15s; }
.yt .play::after { content: ""; position: absolute; left: 27px; top: 21px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--white); }
.yt:hover .play { transform: scale(1.08); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.more { margin-top: 2.5rem; }

/* ---------- leaders + join ---------- */
.leaders { padding: 0 0 clamp(3.5rem, 7vw, 6rem); }
.leader-row { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 1.5rem; margin-top: 1.5rem; align-items: stretch; }
.leader { text-decoration: none; color: var(--ink); }
.leader img { aspect-ratio: 4/5; object-fit: cover; width: 100%; border-radius: 14px; }
.leader-name { display: block; font: 700 1.35rem var(--display); margin-top: .7rem; color: var(--navy); }
.leader-role { color: var(--muted); }
.join { background: var(--yellow); border-radius: 18px; padding: clamp(1.5rem, 3vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; }
.join h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--navy); font-variation-settings: "wdth" 85; }
.join a:not(.btn) { color: var(--navy); font-weight: 700; }
@media (max-width: 860px) { .leader-row { grid-template-columns: 1fr 1fr; } .join { grid-column: 1 / -1; } }

/* ---------- partners ---------- */
.partners { background: var(--sky); padding: clamp(3rem, 6vw, 5rem) 0; }
.partners h2 { margin-bottom: .3rem; }
.partners-intro { color: var(--muted); }
.logo-row { list-style: none; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.logo-row a { display: grid; place-items: center; height: 140px; padding: 1.4rem 1.6rem; background: var(--white); border-radius: 14px; border: 2px solid transparent; text-decoration: none; transition: border-color .15s; }
.logo-row a:hover { border-color: var(--navy); }
.logo-row img { max-height: 84px; max-width: 100%; width: auto; object-fit: contain; }
.logo-row .logo-text { font: 700 1.05rem/1.2 var(--display); color: var(--navy); text-align: center; }
.credit { font-size: .95rem; color: var(--muted); max-width: 70ch; }
@media (max-width: 860px) { .logo-row { grid-template-columns: 1fr 1fr; } .logo-row a { height: 110px; } }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #d6e0ee; padding: 3.5rem 0 1.5rem; font-size: 1rem; }
.footer a { color: var(--white); }
.footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-name { font: 750 1.6rem/1.1 var(--display); color: var(--white); }
.footer-h { font: 700 1.1rem var(--display); color: var(--yellow); margin-bottom: .4rem; }
.fineprint { margin-top: 2.5rem; font-size: .88rem; color: #9fb0c8; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- inner pages ---------- */
.page-head { background: var(--navy); color: var(--white); padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { color: var(--white); }
.page-head .lede { color: #d6e0ee; max-width: 46ch; }
.listen-all { padding: 3rem 0 5rem; }

.album { padding: 3rem 0 1rem; }
.album + .album { padding-top: 2rem; }
.gallery { list-style: none; padding: 0; margin: 1rem 0 0; columns: 4 240px; column-gap: 10px; }
.gallery li { break-inside: avoid; margin-bottom: 10px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; }
.gallery img { width: 100%; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }
.album:last-of-type { padding-bottom: 5rem; }

.about-story { padding: clamp(3rem, 6vw, 5rem) 0; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-grid img { border-radius: 16px; }
.prose { max-width: 62ch; }
.bios { background: var(--sky); padding: clamp(3rem, 6vw, 5rem) 0; }
.bio { display: grid; grid-template-columns: 320px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; scroll-margin-top: 90px; }
.bio + .bio { margin-top: 3.5rem; }
.bio img { border-radius: 16px; aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.bio h2 span { display: block; font: 400 1.15rem var(--body); color: var(--red); letter-spacing: 0; margin-top: .4rem; }
.members { padding: clamp(3rem, 6vw, 5rem) 0; }
.member-grid { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.5rem 1rem; }
.member-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 50%; border: 4px solid var(--sky); }
.member-grid span { display: block; text-align: center; font-weight: 700; margin-top: .5rem; line-height: 1.25; }
@media (max-width: 760px) { .about-grid, .bio { grid-template-columns: 1fr; } .bio img { max-width: 320px; } }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 20, 40, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; background: var(--white); color: var(--navy); border: 0; border-radius: 999px; font: 700 1rem var(--display); cursor: pointer; }
.lb-close { top: 1rem; right: 1rem; padding: .6em 1.1em; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; font-size: 1.8rem !important; line-height: 1; }
.lb-prev { left: 1rem; } .lb-next { right: 1rem; }
