/* ==========================================================
   The Milkman of St. Gaff's
   ========================================================== */

:root{
  --teal:        #267069;
  --teal-dark:   #1d5751;
  --accent:      #82e1d8;
  --mint:        #e5f5f3;
  --ink:         #14201e;
  --white:       #ffffff;
  --deep:        #17313a;

  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body:    "EB Garamond", Georgia, "Times New Roman", serif;

  --wrap: 1180px;
  --bar-h: 74px;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:.01ms!important; transition-duration:.01ms!important; }
}

body{
  margin:0;
  font-family:var(--body);
  font-size:19px;
  line-height:1.55;
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; height:auto; display:block; }

a{ color:var(--teal-dark); }

.skip{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--white); color:var(--ink); padding:.7rem 1rem;
}
.skip:focus{ left:.5rem; top:.5rem; }

:focus-visible{ outline:3px solid var(--accent); outline-offset:3px; }

/* ---------------- top bar ---------------- */
.topbar{
  position:fixed; inset:0 0 auto 0; z-index:100;
  height:var(--bar-h);
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem; padding:0 clamp(1rem,4vw,2.5rem);
  background:rgba(23,49,58,.55);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}
.topbar-title{
  font-family:var(--display);
  font-size:clamp(1.05rem,2.4vw,1.6rem);
  color:var(--white);
  text-decoration:none;
  text-shadow:0 1px 12px rgba(0,0,0,.5);
}
.topbar-btn{ flex:none; padding:.5rem 1.9rem; font-size:1rem; }

/* ---------------- buttons ---------------- */
.btn{
  display:inline-block;
  font-family:var(--display);
  font-weight:600;
  text-decoration:none;
  text-align:center;
  padding:.85rem 2.2rem;
  border:3px solid transparent;
  transition:background-color .18s ease, color .18s ease;
}
.btn-solid{
  background:var(--teal); color:var(--white); border-color:var(--white);
}
.btn-solid:hover,.btn-solid:focus{ background:var(--teal-dark); }

.btn-outline{
  background:var(--teal); color:var(--white); border-color:var(--white);
  box-shadow:0 0 0 1px rgba(0,0,0,.06);
}
.btn-outline:hover,.btn-outline:focus{ background:var(--teal-dark); }

.btn-accent{
  background:var(--accent); color:#0f3a35; border-color:var(--accent);
  font-weight:700;
}
.btn-accent:hover,.btn-accent:focus{ background:#6ad3c9; }

.btn-wide{ min-width:min(420px,80vw); padding:1.15rem 2.2rem; font-size:1.25rem; }

.btn-support{
  max-width:min(460px,88vw);
  padding:1.1rem 2rem;
  font-size:clamp(1.05rem,2.2vw,1.35rem);
  line-height:1.25;
}

/* ---------------- hero ---------------- */
.hero{
  position:relative;
  padding:calc(var(--bar-h) + 4rem) 1.25rem 5rem;
  background:
    linear-gradient(to bottom, rgba(10,30,36,.10) 0%, rgba(10,30,36,.10) 55%, rgba(20,42,50,.75) 100%),
    url("images/whales-bg.jpg") center 22% / cover no-repeat,
    var(--deep);
  text-align:center;
}
.hero-inner{
  max-width:var(--wrap);
  margin:0 auto;
  display:flex; flex-direction:column; align-items:center;
  gap:2.5rem;
}
.cover{
  width:min(560px,88vw);
  border-radius:6px;
  box-shadow:0 18px 50px rgba(0,0,0,.45);
}
.promo{
  background:rgba(23,86,68,.72);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
  padding:1.6rem 2rem 1.9rem;
  border-radius:4px;
  max-width:min(560px,90vw);
}
.promo-text{
  margin:0 0 1.1rem;
  font-family:var(--display);
  font-weight:700;
  font-size:clamp(1.1rem,2.6vw,1.45rem);
  color:var(--white);
  text-shadow:0 1px 10px rgba(0,0,0,.45);
}
.tagline{
  margin:1rem 0 0;
  font-family:var(--display);
  font-weight:400;
  font-size:clamp(2.1rem,7vw,4.6rem);
  line-height:1.05;
  color:var(--white);
  text-shadow:0 2px 26px rgba(0,0,0,.5);
}
.player{ width:min(870px,92vw); }
.player-label{
  margin:0;
  font-family:var(--body);
  color:var(--white);
  text-align:left;
  font-size:1.05rem;
  padding:.55rem .9rem 0;
  background:#0e0e0e;
}
.player audio{
  display:block; width:100%;
  background:#0e0e0e;
  padding:.6rem .9rem 1rem;
}

/* ---------------- bands ---------------- */
.band{ padding:clamp(3.5rem,8vw,6.5rem) 1.25rem; }
.band-tight{ padding-top:0; }
.band-mint{ background:var(--mint); }
.band-white{ background:var(--white); }

.wrap{ max-width:var(--wrap); margin:0 auto; }

.section-head{
  margin:0 0 clamp(2.5rem,6vw,4.5rem);
  font-family:var(--display);
  font-weight:400;
  font-size:clamp(2.4rem,6.5vw,4.4rem);
  line-height:1.05;
  text-align:center;
}

/* ---------------- split (seal / listen) ---------------- */
.split{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:clamp(2rem,5vw,4rem);
  align-items:start;
  justify-items:center;
}
.split-col{
  display:flex; flex-direction:column; align-items:center; gap:clamp(2rem,5vw,3.5rem);
  width:100%;
}
.seal{ width:min(360px,72vw); }
.whales{ width:min(520px,86vw); border-radius:14px; }

/* ---------------- quotes ---------------- */
.quotes{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(2.5rem,6vw,5rem) clamp(2.5rem,7vw,6rem);
  align-items:start;
}
.quote:nth-child(even){ padding-top:clamp(1rem,4vw,3.5rem); }
@media (max-width:640px){
  .quotes{ grid-template-columns:1fr; }
  .quote:nth-child(even){ padding-top:0; }
}
.quote{ margin:0; text-align:center; }
.quote blockquote{
  margin:0;
  font-family:var(--display);
  font-weight:400;
  font-size:clamp(1.25rem,2.4vw,1.75rem);
  line-height:1.32;
}
.quote figcaption{
  margin-top:1.1rem;
  font-size:.95rem;
  letter-spacing:.01em;
}
.quote figcaption::before{ content:"— "; }

/* ---------------- gallery ---------------- */
.gallery{
  columns:3 260px;
  column-gap:1.4rem;
}
.gallery a{
  display:block;
  break-inside:avoid;
  margin:0 0 1.4rem;
  line-height:0;
  transition:opacity .18s ease;
}
.gallery a:hover,.gallery a:focus{ opacity:.85; }
.gallery img{ width:100%; }

/* ---------------- transcripts + footer ---------------- */
.transcripts{
  display:flex; flex-wrap:wrap; gap:clamp(1.5rem,4vw,3rem);
  justify-content:center;
}
.transcripts .btn-wide{ min-width:min(420px,90vw); }

.footer{ text-align:center; }
.contact{
  margin:clamp(2.5rem,6vw,4rem) 0 0;
  font-size:1.2rem;
}
.contact a{ color:var(--ink); }

/* ---------------- lightbox ---------------- */
.lightbox{
  position:fixed; inset:0; z-index:150;
  display:flex; align-items:center; justify-content:center;
  background:rgba(8,20,22,.94);
  padding:clamp(1rem,5vw,3.5rem);
}
.lightbox[hidden]{ display:none; }
.lb-img{
  max-width:100%; max-height:100%;
  object-fit:contain;
  box-shadow:0 10px 60px rgba(0,0,0,.6);
}
.lb-close,.lb-nav{
  position:absolute;
  background:none; border:0; cursor:pointer;
  color:var(--white);
  font-family:var(--body);
  line-height:1;
  padding:.4rem .9rem;
}
.lb-close{ top:1rem; right:1.2rem; font-size:2.6rem; }
.lb-nav{ top:50%; transform:translateY(-50%); font-size:4rem; }
.lb-prev{ left:.4rem; }
.lb-next{ right:.4rem; }
.lb-close:hover,.lb-nav:hover{ color:var(--accent); }

@media (max-width:700px){
  body{ font-size:18px; }
  .topbar-btn{ padding:.45rem 1.2rem; font-size:.95rem; border-width:2px; }
  .lb-nav{ font-size:2.8rem; }
  .gallery{ columns:2 150px; column-gap:1rem; }
  .gallery a{ margin-bottom:1rem; }
}
