/* ===================================================================
   Jazz Eclectic — "Late Set" base stylesheet
   Ported from _reference/late-set-concept.html (the .c1 concept).
   This site IS the design — no wrapper class, styled at body level.
   =================================================================== */

/* base reset (required for the ported grid/image components below) */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }

:root {
  --bg: #16110D;
  --bg-raised: #201810;
  --ink: #F2E8D5;
  --ink-dim: #C9BBA0;
  --gold: #C89B3C;
  --rust: #A23E2F;
  --line: #4A3B2A;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Optima, Candara, "Gill Sans", "Segoe UI", sans-serif;
  position: relative;
}

.display {
  font-family: "Playfair Display", Didot, "Bodoni MT", Georgia, serif;
}

body::before {
  /* film grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page { position: relative; z-index: 2; }

.wrap { max-width: 900px; margin: 0 auto; padding: 0 1.75rem; position: relative; z-index: 2; }
.hero {
  min-height: 82vh; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
  text-align: center;
  background: var(--bg); /* painted ground so nothing flashes before the photo decodes */
}
/* Band photo as the hero ground. Source is portrait; object-position keeps the four faces
   (upper ~65% of the frame) in view when cover crops the sides on wide viewports. */
.hero picture { position: absolute; inset: 0; z-index: 0; }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 38%; /* portrait source: faces in the upper ~65% */
  filter: saturate(0.85);
}
/* Warm charcoal scrim: heavy at the title band, lighter above so the faces still read,
   fading to the page ground at the bottom edge for a seamless hand-off into the bio. */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 58% 42% at 50% 55%, rgba(22,17,13,0.72) 0%, rgba(22,17,13,0.45) 55%, transparent 100%),
    linear-gradient(to bottom, rgba(22,17,13,0.5) 0%, rgba(22,17,13,0.28) 35%, rgba(22,17,13,0.55) 70%, var(--bg) 100%);
}
.hero::before {
  content: ""; position: absolute; left: 50%; top: 42%; width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(200,155,60,0.14) 0%, rgba(200,155,60,0.04) 40%, transparent 70%);
  z-index: 2; pointer-events: none;
}
.hero-inner { position: relative; z-index: 3; }
/* Wide viewports get the landscape source (see <picture> in index.html). Faces are laid out
   on a diagonal — Calvin top-centre, Trent centre-left, Katrina centre-right, Dave lower-left —
   so the wordmark is pushed below vertical centre to sit over the instruments rather than
   over faces. The scrim's dark ellipse moves with it. On the portrait/mobile source faces sit
   top AND bottom, so centred text (the default) is already the clear zone there. */
@media (min-aspect-ratio: 4/5) {
  .hero-bg { object-position: 50% 42%; }
  .hero { justify-content: flex-end; }
  .hero-inner { padding-bottom: clamp(3.5rem, 9vh, 7rem); }
  .hero::before { top: 74%; }
  .hero-scrim {
    background:
      radial-gradient(ellipse 58% 40% at 50% 74%, rgba(22,17,13,0.74) 0%, rgba(22,17,13,0.45) 55%, transparent 100%),
      linear-gradient(to bottom, rgba(22,17,13,0.42) 0%, rgba(22,17,13,0.22) 30%, rgba(22,17,13,0.6) 72%, var(--bg) 100%);
  }
}
.hero h1, .hero .hero-sub { text-shadow: 0 2px 18px rgba(0,0,0,0.55); }
.hero h1 {
  font-size: clamp(3.2rem, 10vw, 6.4rem);
  line-height: 0.95; margin: 0; font-weight: 400;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-rule {
  width: 64px; height: 1px; background: var(--gold); margin: 1.75rem auto;
}
.hero-sub {
  font-size: 0.98rem; letter-spacing: 0.06em; color: var(--ink-dim);
  max-width: 30em; margin: 0 auto; font-style: italic;
}
section { padding: 5rem 0; border-top: 1px solid var(--line); }
.eyebrow {
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 1rem;
}
h2.display { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 2rem; font-weight: 400; }
.bio-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.bio p { line-height: 1.75; color: var(--ink-dim); font-size: 1rem; max-width: 62ch; }
.bio p + p { margin-top: 1.1rem; }
.members { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); margin-top: 2.5rem; }
.member { background: var(--bg); padding: 1.75rem 1.5rem; }
.member .name { font-family: "Playfair Display", Didot, "Bodoni MT", Georgia, serif; font-size: 1.2rem; margin: 0 0 0.3rem; }
.member .inst { font-size: 0.78rem; letter-spacing: 0.05em; color: var(--gold); text-transform: uppercase; }
.bill { list-style: none; margin: 0; padding: 0; position: relative; }
.bill::before { content: ""; position: absolute; left: 96px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.bill li { display: grid; grid-template-columns: 96px 1fr; gap: 1.5rem; padding: 1.05rem 0; position: relative; }
.bill .when { font-size: 0.78rem; color: var(--gold); letter-spacing: 0.04em; padding-top: 0.15rem; }
.bill .when::after { content: ""; position: absolute; left: 92px; top: 1.35rem; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); transform: translateX(-50%); }
.bill .what { font-size: 1.02rem; }
.bill .what .venue { color: var(--ink-dim); }
.side { color: var(--gold); font-family: "Playfair Display", Didot, "Bodoni MT", Georgia, serif; font-size: 0.85rem; letter-spacing: 0.1em; margin: 0 0 1.5rem; }
.tracks { list-style: none; margin: 0; padding: 0; }
.tracks li {
  display: flex; align-items: baseline; gap: 1.1rem;
  padding: 0.9rem 0; border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.tracks .num { font-family: "Playfair Display", Didot, "Bodoni MT", Georgia, serif; color: var(--gold); font-size: 0.95rem; width: 1.4em; }
blockquote {
  margin: 0; font-family: "Playfair Display", Didot, "Bodoni MT", Georgia, serif; font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.5; font-style: italic; max-width: 34em;
}
blockquote::before { content: "\201C"; color: var(--rust); }
blockquote::after { content: "\201D"; color: var(--rust); }
.attrib { margin-top: 1.25rem; font-size: 0.85rem; color: var(--ink-dim); font-style: normal; letter-spacing: 0.03em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2rem; }
.btn {
  display: inline-block; padding: 0.85rem 1.9rem; border: 1px solid var(--gold); color: var(--gold);
  text-decoration: none; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
  background: none; cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--gold); color: var(--bg); }
.social { display: flex; gap: 1.25rem; }
.social a { color: var(--ink-dim); font-size: 0.82rem; text-decoration: none; letter-spacing: 0.04em; }
.social a:hover { color: var(--gold); }
footer { padding: 3rem 0; text-align: center; color: var(--ink-dim); font-size: 0.78rem; letter-spacing: 0.05em; }

/* site nav (both pages) */
.site-nav { display: flex; justify-content: center; gap: 2.5rem; padding: 1.5rem 0 0; position: relative; z-index: 3; }
.site-nav a { color: var(--ink-dim); text-decoration: none; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }

/* photo gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.gallery img { width: 100%; height: 300px; object-fit: cover; object-position: 50% 40%; display: block; filter: saturate(0.9); transition: filter 0.2s ease; }
.gallery img:hover { filter: saturate(1.05); }
/* Face-aware crops: portrait stage shots put heads in the top of the frame, and cover would
   otherwise centre-crop them off. `top` pins the crop window to the top edge; `upper` biases
   toward the upper third. Set per-image via data-focus in the markup. */
.gallery img[data-focus="top"]   { object-position: 50% 0%; }
.gallery img[data-focus="upper"] { object-position: 50% 22%; }

/* audio player states (used by js/player.js) */
.tracks li { cursor: pointer; position: relative; }
.tracks li:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.tracks li.playing { color: var(--gold); }
.tracks li .progress { position: absolute; left: 0; bottom: -1px; height: 1px; background: var(--gold); width: 0; }
.tracks li .time { margin-left: auto; font-size: 0.8rem; color: var(--ink-dim); }

/* forms (contact page) */
.form-grid { display: grid; gap: 1rem; max-width: 34rem; }
.form-grid label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 0.4rem; }
.form-grid input, .form-grid textarea {
  width: 100%; background: var(--bg-raised); border: 1px solid var(--line); color: var(--ink);
  padding: 0.8rem 1rem; font-family: inherit; font-size: 1rem;
}
.form-grid input:focus, .form-grid textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.hidden { display: none !important; }

/* responsive: bill collapses under 480px */
@media (max-width: 480px) {
  .bill::before { display: none; }
  .bill li { grid-template-columns: 1fr; gap: 0.15rem; }
  .bill .when::after { display: none; }
}

/* reduced motion + focus floor */
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
