/* ============================================
   Raincatchers: shared styles
   ============================================ */

:root {
  --parchment: #e2cba9;
  --parchment-dark: #d6bc92;
  --ink: #2a2018;
  --umber: #4a3524;
  --umber-deep: #241a12;
  --gold: #b8923f;
  --gold-bright: #c9a24b;
  --slate: #5c7a80;
  --slate-deep: #3d5459;
  --rule: rgba(42, 32, 24, 0.18);
  --max-w: 1080px;
}

* { box-sizing: border-box; }

/* Full reset: nothing carries a default top margin anywhere on the site.
   Every element's spacing is explicit and deliberate below, never inherited
   from the browser's default stylesheet. This is what actually fixes the
   recurring hero-to-content gap, rather than patching it page by page. */
h1, h2, h3, p, blockquote, figure, ul, ol, dl, dd {
  margin: 0;
  padding: 0;
}
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--parchment);
  background-image:
    radial-gradient(ellipse at top left, rgba(184, 146, 63, 0.07), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(92, 122, 128, 0.06), transparent 55%);
  color: var(--ink);
  font-family: 'Athelas', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--slate-deep); text-decoration: none; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

h1, h2, h3, .display {
  font-family: 'Iowan Old Style', 'Athelas', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.4em 0;
  color: var(--umber-deep);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(3rem, 7vw, 5rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-style: italic; font-weight: 600; }
h3 { font-size: 1.5rem; font-style: italic; font-weight: 600; }

p { max-width: 68ch; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.6rem;
}

/* ---------- Header / Nav ---------- */

.site-header {
  padding: 1.1rem 0 0;
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand img {
  height: 299px;
  width: auto;
}

body.home .brand img {
  height: 360px;
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.3rem;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

nav.site-nav a {
  font-variant: small-caps;
  letter-spacing: 0.03em;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--umber);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---------- Splash / entry page ---------- */

body.splash {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.6rem;
}

.splash-logo {
  width: clamp(260px, 46vw, 640px);
  height: auto;
  margin-bottom: -5.25rem;
}

.btn-enter {
  position: relative;
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  transition: transform 0.2s ease;
  animation: enterPulse 2.8s ease-in-out infinite;
}

.btn-enter img {
  display: block;
  width: clamp(67px, 10vw, 133px);
  height: auto;
}

.btn-enter:hover,
.btn-enter:focus-visible {
  transform: translateY(-3px);
}

@keyframes enterPulse {
  0%, 100% { box-shadow: 0 0 18px 5px rgba(201, 162, 75, 0.4), 0 0 0 0 rgba(184, 146, 63, 0.5); }
  50%      { box-shadow: 0 0 34px 12px rgba(201, 162, 75, 0.7), 0 0 0 20px rgba(184, 146, 63, 0); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 62vh;
  margin-bottom: 3rem;
  overflow: hidden;
  background: var(--umber-deep);
}

.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.88;
}

.hero svg.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.95;
}

body.home .hero img.hero-bg {
  object-position: center center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,14,9,0.15) 0%, rgba(20,14,9,0.55) 75%, rgba(20,14,9,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--parchment);
  padding: 3rem 1.6rem 1.6rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-content h1 {
  color: #f4ecd8;
  text-shadow: 0 2px 18px rgba(0,0,0,0.5);
  margin-bottom: 0.15em;
}

.hero-content .tagline {
  font-style: italic;
  font-size: 1.25rem;
  color: #e6d9bc;
  max-width: 46ch;
  margin-top: 0;
}

body.home .hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.home .hero-content h1 {
  font-size: clamp(2.1rem, 4.4vw, 2.9rem);
  letter-spacing: 0.03em;
}

body.home .hero-content .tagline {
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-small {
  min-height: 34vh;
}

/* ---------- Torn divider ---------- */

.torn {
  height: 20px;
  width: 100%;
  background: var(--parchment);
  clip-path: polygon(0% 100%, 2% 40%, 5% 90%, 8% 30%, 11% 70%, 14% 20%, 17% 85%, 20% 45%, 23% 95%, 26% 35%, 29% 75%, 32% 15%, 35% 80%, 38% 40%, 41% 90%, 44% 25%, 47% 70%, 50% 30%, 53% 85%, 56% 45%, 59% 95%, 62% 30%, 65% 75%, 68% 20%, 71% 80%, 74% 40%, 77% 90%, 80% 25%, 83% 70%, 86% 35%, 89% 85%, 92% 45%, 95% 90%, 98% 30%, 100% 100%);
  margin-top: -1px;
}

/* ---------- Sections ---------- */

section { padding: 2.6rem 0; }
section + section { border-top: 1px solid var(--rule); }
.section-first { padding-top: 0; }
.section-first p:first-child { margin-top: 0; }

.lede {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--umber);
  max-width: 58ch;
  margin-top: 0;
}

blockquote.pull {
  font-family: 'Iowan Old Style', 'Athelas', Georgia, serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--slate-deep);
  border-left: 3px solid var(--gold);
  margin: 2rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  max-width: 52ch;
}

/* ---------- Image grid / gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin: 1.8rem 0;
}

.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: var(--umber-deep);
  border: 1px solid var(--rule);
}
.gallery figcaption {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--umber);
  margin-top: 0.4rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.4rem;
  align-items: center;
}

.two-col img { border: 1px solid var(--rule); }

/* ---------- Members grid ---------- */

.members-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 1.6rem;
  margin-top: 0;
}

.member-card { display: flex; flex-direction: column; flex: 0 1 320px; max-width: 320px; }
.member-card .photo-frame {
  border: 1px solid var(--rule);
  overflow: hidden;
  margin-bottom: 0.9rem;
  background: var(--umber-deep);
}
.member-card img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  transition: transform 0.5s ease;
}
.member-card:hover img { transform: scale(1.04); }

.member-card h3 { margin-bottom: 0.1rem; font-style: normal; }
.member-role {
  font-variant: small-caps;
  letter-spacing: 0.03em;
  color: var(--slate-deep);
  font-size: 1.02rem;
  margin: 0;
}

/* ---------- Gig cards ---------- */

.gig-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
}
.gig-card + .gig-card { border-top: 1px solid var(--rule); }
.gig-card img { border: 1px solid var(--rule); }

.gig-date {
  font-family: 'Iowan Old Style', 'Athelas', Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--umber-deep);
  margin-bottom: 0.2rem;
}
.gig-venue { font-size: 1.2rem; font-style: italic; color: var(--slate-deep); margin-bottom: 0.6rem; }
.gig-meta { margin: 0.3rem 0; }
.gig-meta strong { color: var(--umber); font-variant: small-caps; }

.btn {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.6rem 1.3rem;
  border: 1px solid var(--umber);
  color: var(--umber-deep);
  font-variant: small-caps;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--umber-deep); color: var(--parchment); }

/* ---------- News items ---------- */

.news-item { padding: 2.2rem 0; }
.news-item-first { padding-top: 0; }
.news-item-first .news-date { margin-top: 0; }
.news-item + .news-item { border-top: 1px solid var(--rule); }
.news-date {
  font-variant: small-caps;
  letter-spacing: 0.04em;
  color: var(--slate-deep);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

/* ---------- Discography strip ---------- */

.discog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.4rem;
  margin: 1.8rem 0;
}
.discog figure { margin: 0; text-align: center; }
.discog img { border: 1px solid var(--rule); }
.discog figcaption {
  margin-top: 0.6rem;
  font-family: 'Iowan Old Style', 'Athelas', Georgia, serif;
  font-style: italic;
  color: var(--umber);
}

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
  padding: 2.4rem 0 3rem;
  color: var(--umber);
  font-size: 0.95rem;
  text-align: center;
}
footer.site-footer img {
  height: 228px;
  margin: 0 auto 0.8rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 780px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .member-card { flex-basis: 45%; }
  .two-col { grid-template-columns: 1fr; }
  .gig-card { grid-template-columns: 1fr; }
  .gig-card img { max-width: 260px; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img { height: 180px; }
  .member-card { flex-basis: 45%; }
  .member-card img { height: 220px; }
  .discog { grid-template-columns: 1fr 1fr; }
  .header-inner { justify-content: center; text-align: center; }
  nav.site-nav ul { justify-content: center; gap: 0.9rem; }
  nav.site-nav a { font-size: 1.1rem; }
  .brand img { height: 242px; }
  body.home .brand img { height: 290px; }
  .btn-enter { padding: 0.5rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .member-card img { transition: none; }
  .btn-enter { animation: none; }
}

@media print {
  .member-card,
  .gallery figure,
  .discog figure,
  blockquote.pull {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* On wide/short desktop windows, a height set purely as a fraction of the
   viewport's height becomes a thin, wide letterbox that crops most of the
   hero photo away. Above 900px wide, size the hero relative to the
   viewport's width instead, so it stays a sensible, photo-friendly shape
   no matter how wide or short the browser window is. */
@media (min-width: 900px) {
  .hero {
    min-height: 46vw;
    max-height: 640px;
  }
  .hero-small {
    min-height: 30vw;
    max-height: 420px;
  }
}
