/* First Go 'Round — public site
   Dark aesthetic: deep ink base, warm paper text, brass accent. */

:root {
  --ink: #0f1115;
  --ink-raised: #171a21;
  --ink-card: #1c2029;
  --line: #2a2f3a;
  --paper: #ece6d6;
  --paper-dim: #b7b1a4;
  --muted: #8a8578;
  /* Accent — FGR red (matches fgrband.com: hsl(0,100%,29.6%)) */
  --brass: #970000;          /* structural — borders, buttons, large fills */
  --brass-bright: #de3a3a;   /* text — contrast-safe on dark bg */
  --accent-deep: #5c0000;
  --maxw: 1120px;
  --radius: 2px;
  --serif: "Libre Caslon Text", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle grain on the background */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 3px 3px;
  z-index: 0;
}

a { color: var(--brass-bright); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--paper); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--paper);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.35rem; line-height: 1.25; }

p { margin: 0 0 1em; color: var(--paper-dim); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* --- Header / nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15,17,21,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
}
.brand:hover { color: var(--brass-bright); }
.brand .dot { color: var(--brass-bright); }

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--paper-dim);
  font-size: .85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: .25rem 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--paper);
  border-bottom-color: var(--brass);
}

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  color: var(--paper);
  padding: .5rem .75rem;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

/* --- Hero --- */
.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
/* Taller hero for pages with prominent background photos (heads visible). */
.hero.hero-tall {
  padding: clamp(9rem, 22vw, 17rem) 0 clamp(7rem, 14vw, 13rem);
  min-height: 78vh;
  display: flex;
  align-items: center;
}
/* Anchor headline block to the bottom-left of the hero instead of centered.
   Reduce bottom padding so the text sits close to the section's lower edge. */
.hero.hero-bottom-left {
  align-items: flex-end;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.hero.hero-bottom-left .container {
  max-width: none;           /* let the text hug the left edge */
  padding-left: clamp(1.25rem, 5vw, 4rem);
  padding-right: clamp(1.25rem, 5vw, 4rem);
  margin-left: 0;
}
.hero.hero-bottom-left h1,
.hero.hero-bottom-left .tagline {
  max-width: 44ch;
  /* Deepen readability on busy backgrounds. */
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.hero::after {
  content: "";
  position: absolute; right: -10%; top: -20%;
  width: 60%; height: 140%;
  background: radial-gradient(ellipse at center, rgba(151,0,0,0.12), transparent 60%);
  pointer-events: none;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
/* <img>-based hero backdrop (used on pages migrated to Netlify Image CDN
   + responsive srcset). Mirrors .hero-bg's visual behavior but applies to
   an <img> element instead of a div background-image. */
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;   /* per-page override via inline style */
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* Mobile: landscape 1920x900 hero can't cover a tall portrait container
   without cropping the sides (loses outer band members). Let the image flow
   at its natural aspect ratio and stack the headline/tagline below it. */
@media (max-width: 640px) {
  .hero.hero-tall {
    min-height: 0;
    padding-top: 0;
    padding-bottom: clamp(1.5rem, 5vw, 2.5rem);
    display: block;                  /* disengage the flex center alignment */
  }
  .hero-bg-img {
    position: relative;              /* flow with the section, not absolute */
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 1200;
    opacity: 1;                      /* text sits below; no need to darken */
    object-position: center center;  /* override desktop's inline offset */
  }
  .hero .container {
    padding-top: clamp(1rem, 4vw, 1.5rem);
  }
  /* Text no longer overlays the photo, so the dark shadow is unnecessary
     and would read as smudging on a light background. */
  .hero.hero-bottom-left h1,
  .hero.hero-bottom-left .tagline {
    text-shadow: none;
  }
  /* The radial red glow was tuned for a dark overlay; dial it back on
     mobile so it doesn't bleed into the headline area. */
  .hero::after { display: none; }
}

/* --- Member photos --- */
/* Render at natural aspect (source is 4:5). Same "no forced cover" pattern
   as .epk-photo so the CDN srcset can't stretch or crop unexpectedly. */
.member-photo {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1.25rem;
  border-top: 2px solid var(--brass);
  filter: grayscale(15%);
}
/* Keep the gold top-border on .member but remove it when photo is present */
.member:has(.member-photo) {
  border-top: none;
  padding-top: 0;
}

/* --- Press gallery --- */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.photo-gallery figure {
  margin: 0;
  overflow: hidden;
  background: var(--ink-card);
  border: 1px solid var(--line);
}
.photo-gallery img {
  /* Render at natural aspect (like .epk-photo on FGR Presents cards).
     HTML width/height attrs on the <img> reserve the correct box so
     no CLS during load. No cover-cropping means no clipped heads. */
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s ease, filter .4s ease;
  filter: grayscale(10%);
}
.photo-gallery figure:hover img {
  transform: scale(1.03);
  filter: grayscale(0%);
}
.photo-gallery figcaption {
  padding: .6rem .85rem;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- About group photo --- */
.about-photo {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  margin-bottom: 3rem;
  border: 1px solid var(--line);
}

/* --- FGR Presents promo photo --- */
.presents-photo {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin-bottom: 2.5rem;
  border: 1px solid var(--line);
  filter: grayscale(8%);
}

/* --- FGR Presents official poster (SVG/graphic, preserve artwork fully) --- */
.presents-poster {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 2.5rem;
  border: 1px solid var(--brass);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.eyebrow {
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 1.25rem;
}
.hero h1 { max-width: 18ch; }
.hero .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--paper-dim);
  max-width: 42ch;
  margin: 1.25rem 0 2.25rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: .9rem 1.75rem;
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid var(--brass);
  color: var(--paper);
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
  border-radius: var(--radius);
}
.btn:hover { background: var(--brass); color: var(--ink); }
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: var(--brass-bright); color: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--paper-dim); }
.btn-ghost:hover { border-color: var(--paper); background: transparent; color: var(--paper); }

/* --- Sections --- */
section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
section + section { border-top: 1px solid var(--line); }

.section-head {
  margin-bottom: 3rem;
  max-width: 60ch;
}
.section-head .eyebrow { margin-bottom: .75rem; }

/* --- FGR Presents / credentialing --- */
.credentials {
  background: var(--ink-raised);
}
.cred-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem 2rem;
  list-style: none;
  padding: 0; margin: 0;
}
.cred-list li {
  font-family: var(--serif);
  font-size: 1.15rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: var(--paper);
}

/* --- Endorsements --- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}
.quote {
  border-left: 2px solid var(--brass);
  padding: .25rem 0 .25rem 1.75rem;
}
.quote-photo {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 2px solid var(--brass);
}
.quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.4;
  margin: 0 0 1rem;
  color: var(--paper);
}
.quote cite {
  font-style: normal;
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--brass-bright);
}
.quote cite span {
  display: block;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .1em;
  margin-top: .35rem;
}

/* --- Tour list --- */
.tour-list { list-style: none; padding: 0; margin: 0; }
.tour-row {
  display: grid;
  grid-template-columns: 130px 1fr 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.tour-row:last-child { border-bottom: 1px solid var(--line); }
.tour-date {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--brass-bright);
}
.tour-venue { font-weight: 500; color: var(--paper); }
.tour-city { color: var(--paper-dim); font-size: .95rem; }
.tour-empty {
  padding: 4rem 1rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  font-style: italic;
}

/* --- Music --- */
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}
.album {
  background: var(--ink-card);
  border: 1px solid var(--line);
  padding: 2rem;
}
.album h3 {
  font-size: 1.6rem;
  margin-bottom: .25rem;
}
.album .year {
  color: var(--brass-bright);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.album-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}
.album-links a {
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .5rem .9rem;
  border: 1px solid var(--line);
  color: var(--paper);
}
.album-links a:hover { border-color: var(--brass); color: var(--brass-bright); }

.spotify-embed {
  width: 100%;
  border-radius: var(--radius);
  border: 0;
}

/* --- Members --- */
.members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.member {
  padding-top: 1.5rem;
  border-top: 2px solid var(--brass);
}
.member h3 {
  font-size: 1.3rem;
  margin-bottom: .15rem;
}
.member .role {
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: .75rem;
}

/* --- Press / EPK --- */
.epk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.epk-card {
  background: var(--ink-raised);
  border: 1px solid var(--line);
  padding: 1.75rem;
  overflow: hidden;
}
.epk-photo {
  display: block;
  width: calc(100% + 3.5rem);
  margin: -1.75rem -1.75rem 1.25rem;
  /* Show the full image at its natural aspect ratio on every device.
     The width/height attrs on the <img> reserve the correct box so there's
     no CLS during load. All caption/heading content sits below the image
     inside .epk-card, so no overlay compositing is needed. */
  height: auto;
  border-bottom: 1px solid var(--line);
}
.epk-card h3 {
  font-size: 1.15rem;
  color: var(--brass-bright);
}
.epk-card ul { padding-left: 1.25rem; margin: 0; color: var(--paper-dim); }
.epk-card li { margin-bottom: .4rem; }

.photo-placeholder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.photo-placeholder div {
  aspect-ratio: 4/3;
  background: var(--ink-card);
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* --- FGR Presents event --- */
.event-feature {
  background: linear-gradient(180deg, var(--ink-raised) 0%, var(--ink) 100%);
  border: 1px solid var(--brass);
  padding: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 3rem;
}
.event-feature .event-date {
  font-family: var(--serif);
  color: var(--brass-bright);
  font-size: 1.5rem;
  margin-bottom: .5rem;
}
.event-feature h2 { margin-bottom: 1rem; }
.event-lineup {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}
.event-lineup li {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--paper);
}
.event-lineup li::before {
  content: "✦";
  color: var(--brass-bright);
  margin-right: .75rem;
}

/* --- Booking form --- */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 760px;
}
.form-wrap .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label {
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.field input, .field select, .field textarea {
  background: var(--ink-card);
  border: 1px solid var(--line);
  color: var(--paper);
  padding: .75rem .9rem;
  font: inherit;
  font-family: var(--sans);
  border-radius: var(--radius);
  transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
}
.field textarea { min-height: 140px; resize: vertical; }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2.5rem;
  margin-top: 4rem;
  background: var(--ink-raised);
}
.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: .85rem;
}
.site-footer a { color: var(--paper-dim); }
.site-footer a:hover { color: var(--brass-bright); }
.site-footer .social-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.site-footer .social-links a {
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* --- Responsive --- */
@media (max-width: 780px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink-raised);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links li:first-child { border-top: none; }
  .nav-links a { display: block; padding: .85rem 0; }
  .nav-toggle { display: inline-block; }

  .tour-row {
    grid-template-columns: 1fr;
    gap: .35rem;
  }
  .form-wrap { grid-template-columns: 1fr; }
}
