/* =========================================================================
   Tank! — stylesheet
   Design system and rationale live in DESIGN.md. Read that before changing
   colour, type, spacing or motion so the site stays consistent.

   Palette: sophisticated jazz — an album-sleeve cream page, deep ink-blue text,
   a burnt-orange primary accent for anything that carries a letter, deep teal
   as the secondary (the "!" and the background glow). Light identity. All colour
   flows from the semantic tokens in :root — never hard-code a hex in a
   component rule.
   ========================================================================= */

:root {
  /* ---- surfaces ----
     One textured album-cream page (body::before); each section is a frosted
     glass panel floating on it. No per-section background tints. Warm paper,
     not brown — sophisticated jazz, at the band's request. */
  --canvas:          #f0ead9;   /* the whole page — warm album-sleeve cream */
  --surface:         #faf5ea;   /* the tint inside cards, panels, raised UI */

  /* ---- text ---- */
  --ink:             #23262f;   /* primary text — deep ink blue-black */
  --ink-soft:        #5b5d63;   /* secondary text — passes AA on cream and panels */

  /* ---- brand: cream + burnt orange + teal ----
     Primary accent is burnt orange — anything that carries a letter. Deep teal
     is the secondary: the "!" and the background glow only, never body text. */
  --accent:          #a8431f;   /* links, labels, the heading rule, primary action, focus */
  --accent-bright:   #e0996a;   /* light burnt-orange — only readable on the dark footer */
  --accent-wash:     #f4e6dc;   /* pale peach — selection, ghost-button hover bed */
  --flame:           #2a5f59;   /* deep teal — the "!" and the hero glow, never small text */

  /* ---- lines ---- */
  --line:            #ded3bd;   /* hairline separators */
  --border-strong:   #c3b393;   /* visible edges, control borders */

  /* ---- roles ---- */
  --link:            #a8431f;
  --link-hover:      #843215;
  --action-bg:       #a8431f;
  --action-fg:       #f7f3e8;
  --action-bg-hover: #843215;
  --focus:           #a8431f;

  /* footer — a deep-ink slab under the cream page, the one dark surface */
  --footer-bg:        #23262f;
  --footer-fg:        #cbc6b8;
  --footer-fg-strong: #f7f3e8;

  /* ---- semantic (kept for consistency; site barely uses them) ---- */
  --ok:      #2f6a4f;
  --warn:    #8a5a16;
  --danger:  #a23b32;
  --info:    var(--accent);

  /* ---- type ----
     Display: Bricolage Grotesque (700/800) — wordmark, headings, titles.
     Body: Inter (SF Pro on Apple devices). Both need their Google Fonts <link>
     in every page <head>. Member-card names use --body via a component rule. */
  --display: 'Bricolage Grotesque', 'Archivo', 'Inter Tight', -apple-system, 'Segoe UI', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* ---- shape ---- */
  --radius:      6px;
  --radius-lg:   18px;   /* the frosted section panels */
  --radius-pill: 999px;

  /* ---- depth (offset + soft blur, warm brown-grey tint so shadows sit on the
     cream instead of greying it) ---- */
  --shadow-sm: 0 1px 2px rgba(46, 38, 24, 0.07), 0 2px 6px rgba(46, 38, 24, 0.05);
  --shadow-md: 0 4px 14px rgba(46, 38, 24, 0.09), 0 14px 34px rgba(46, 38, 24, 0.10);
  --shadow-lg: 0 10px 28px rgba(46, 38, 24, 0.12), 0 28px 64px rgba(46, 38, 24, 0.14);

  /* ---- motion ---- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-fast: 130ms;
  --dur:      200ms;

  /* ---- metrics ---- */
  --wrap: 70rem;
  --measure: 66ch;
  --header-h: 4.5rem;

  color-scheme: light;
}

/* Single light identity — cream + teal + rust. No dark-mode remap (see DESIGN.md). */

/* ---------- reset / base ---------- */

* { box-sizing: border-box; }

html {
  /* Fluid root — every rem-based size and space in this sheet scales from
     this one value, so text and spacing grow with the window instead of
     stepping at breakpoints. Calibrated so ~1440px matches the old
     16px x 0.9-zoom base; rem terms keep the user's own font setting
     meaningful. */
  font-size: clamp(0.75rem, 0.7rem + 0.23vw, 1.0625rem);
  scroll-behavior: smooth;
  caret-color: var(--accent);
  accent-color: var(--accent);
  scrollbar-color: var(--border-strong) transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* the page always fills the viewport so the footer sits on the bottom edge
   instead of floating mid-screen on a short page — the main column absorbs
   whatever vertical slack is left over */
main { flex: 1 0 auto; }

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

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

a {
  color: var(--link);
  text-underline-offset: 0.15em;
  transition: color var(--dur) ease;
}
a:hover { color: var(--link-hover); }

::selection { background: var(--accent-wash); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Anchor targets clear the sticky header when reached from the nav. */
:target { scroll-margin-top: calc(var(--header-h) + 1rem); }
main[id], main > section[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-pill);
  border: 3px solid var(--canvas);
}

/* ---------- page texture ----------
   A flat cream fill reads as blank paper. A single fixed layer under all content
   gives the page a material for the frosted panels to refract — all static:
     · grain — a tiled fractalNoise in deep ink at low alpha, so the cream has
       the tooth of a printed sleeve
     · warm top-light — a wide --accent (burnt orange) radial at the top of the page
     · stage glows — three soft blobs off-centre, orange and teal; fixed, so as a
       panel scrolls over one the blur drags the colour around behind the glass
     · comb — --ink verticals, 2px every 24px: the "straight lines down" the band
       liked, faint on the cream, a soft shimmer through a panel's blur
   The panels sit above this (z-index on main / footer) and blur it; between
   panels it shows sharp. See DESIGN.md → "Page texture". */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='140'%20height='140'%3E%3Cfilter%20id='g'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.8'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.14%200%200%200%200%200.15%200%200%200%200%200.18%200%200%200%201%200'/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type='linear'%20slope='0.1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect%20width='140'%20height='140'%20filter='url(%23g)'/%3E%3C/svg%3E") repeat top left / 140px 140px,
    radial-gradient(150% 70% at 50% -10%,
      color-mix(in srgb, var(--accent) 8%, transparent), transparent 55%),
    radial-gradient(48% 40% at 14% 20%,
      color-mix(in srgb, var(--flame) 8%, transparent), transparent 72%),
    radial-gradient(52% 44% at 88% 58%,
      color-mix(in srgb, var(--accent) 8%, transparent), transparent 72%),
    radial-gradient(44% 38% at 26% 96%,
      color-mix(in srgb, var(--flame) 6%, transparent), transparent 72%),
    repeating-linear-gradient(90deg,
      color-mix(in srgb, var(--ink) 7%, transparent) 0 2px,
      transparent 2px 24px);
}

main,
.site-footer { position: relative; z-index: 1; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding: 0.7rem clamp(1.25rem, 5vw, 3rem);
  background: var(--canvas);
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  /* Bricolage Grotesque is a variable font with an optical-size axis; left on
     auto, a 1.8rem wordmark renders in the flatter text cut while the hero gets
     the expressive display cut. Pin it to a display optical size so the header
     "Tank!" carries the same character as the rest of the display type. */
  font-variation-settings: "wght" 800, "opsz" 44;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span { color: var(--flame); }

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 3vw, 2rem);
}

.site-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) ease, border-color var(--dur) ease;
}

.site-header nav a:hover { color: var(--ink); border-bottom-color: var(--border-strong); }

.site-header nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* The booking link is the money action — promote it to a filled pill on
   every page, with no markup change, via its href. */
.site-header nav a[href$="#booking"] {
  padding: 0.5rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--action-bg);
  color: var(--action-fg);
  transition: background-color var(--dur) ease, transform var(--dur-fast) var(--ease-out);
}
.site-header nav a[href$="#booking"]:hover {
  background: var(--action-bg-hover);
  border-color: transparent;
  color: var(--action-fg);
}
.site-header nav a[href$="#booking"]:active { transform: scale(0.97); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  /* sizing, blur and the surface tint come from the .section-panel group
     below; the hero adds its own warm stage-light over that tint */
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.75rem, 14vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
  margin: 0 0 1.35rem;
  color: var(--ink);
}

.hero h1 .bang { color: var(--flame); }

.tagline {
  max-width: 42ch;
  margin: 0 0 2.25rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* --- the one authored motion moment: the hero settles in on load --- */
@keyframes tank-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.hero .eyebrow  { animation: tank-rise 460ms var(--ease-out) both; }
.hero h1        { animation: tank-rise 560ms var(--ease-out) 60ms both; }
.hero .tagline  { animation: tank-rise 520ms var(--ease-out) 140ms both; }
.hero .cta-row  { animation: tank-rise 520ms var(--ease-out) 220ms both; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur) ease,
              border-color var(--dur) ease,
              color var(--dur) ease,
              box-shadow var(--dur) ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--action-bg);
  color: var(--action-fg);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--action-bg-hover); color: var(--action-fg); }

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--ink);
}

.btn-lg {
  padding: 1rem 2.1rem;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .btn:active { transform: translateY(0) scale(0.98); }
}

/* ---------- section furniture ---------- */

section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3rem);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--wrap);
  margin: 0 auto 2.75rem;
}

.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

/* small orange accent bar beside every section heading */
.rule {
  flex: none;
  width: clamp(2.375rem, 6vw, 3.375rem);
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

/* ---------- frosted section panels ----------
   The page background is a textured cream field (body::before: ink grain, a
   teal top-light, teal/rust stage glows, a faint comb). Each section is a pane
   of frosted glass floating on it: a translucent surface tint + a real backdrop
   blur that refracts what scrolls behind, a bright inner top edge, a soft drop
   shadow. This IS the section grouping — there are no divider strips. Opaque
   children (member cards, buttons) read as figure on the glass. Solid fallback
   under prefers-reduced-transparency. */
.hero,
.about,
.band,
.booking,
.testimonials-teaser,
#gigs {
  max-width: var(--wrap);
  margin: clamp(1.25rem, 3.5vw, 2.5rem) auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* the hero adds its warm stage-light over the shared tint, and tucks up
   under the sticky header */
.hero {
  margin-top: clamp(0.75rem, 2vw, 1.5rem);
  padding-block: clamp(3rem, 8vw, 5.5rem);
  background:
    radial-gradient(120% 95% at 12% -20%, color-mix(in srgb, var(--flame) 13%, transparent), transparent 55%),
    radial-gradient(95% 90% at 96% 115%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 60%),
    color-mix(in srgb, var(--surface) 72%, transparent);
}

/* booking matches the Previous Gigs pane width (both --wrap); the ask stays
   focused via the narrower .booking-inner content column, not a smaller pane */

.lead {
  font-size: clamp(1.1rem, 2.1vw, 1.3rem);
  color: var(--ink);
}

.fine {
  margin: 1.5rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- about ---------- */

/* copy beside the band photo — one column until there is room for two, and
   the text column leads so it still reads first on a phone */
.about-layout {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

@media (min-width: 860px) {
  .about-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    /* photo centres on the full text column, "About" heading included */
    align-items: center;
  }
}

.about-photo {
  margin: 0;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

/* heading and copy share the wrap's left edge; paragraphs hold a readable measure */
.about-grid {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-grid > * { max-width: var(--measure); }

/* every About paragraph reads as one block — same size, weight and colour, no
   lead-in bump. Spacing between them comes from the flex gap above. */
.about-grid p { color: var(--ink); margin: 0; }

/* ---------- band ---------- */

/* Two rows: the front line (sax, trumpet) centred on row 1, the rhythm
   section (bass trombone, piano, drums) filling row 2. A 6-column grid — every
   card spans 2, and the two front-line cards are nudged in to centre. */
.roster {
  max-width: 47.5rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.roster li { display: flex; grid-column: span 2; }
.roster li:nth-child(1) { grid-column: 2 / span 2; }
.roster li:nth-child(2) { grid-column: 4 / span 2; }

@media (max-width: 620px) {
  .roster { grid-template-columns: 1fr; max-width: 21.25rem; }
  .roster li,
  .roster li:nth-child(1),
  .roster li:nth-child(2) { grid-column: 1 / -1; }
}

.member {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 2rem 1.4rem 1.55rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur) var(--ease-out),
              border-color var(--dur) ease,
              box-shadow var(--dur) ease;
}

.member:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.member-mark {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.7rem;
}

/* Neil's mark. Unicode has no trombone, so his is drawn — sized in em so it
   tracks the emoji marks it sits next to on the roster and his bio page. */
.mark-svg {
  display: block;
  margin-inline: auto;
  width: 1.7em;
  height: auto;
}

/* the member cards read as plain UI, not display type — name, instrument and
   "Read bio" all in the body font */
.member h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.005em;
  margin: 0 0 0.25rem;
  color: var(--ink);
}

.instrument {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* persistent "this is a link" cue */
.member-more {
  display: block;
  margin-top: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--link);
  transition: color var(--dur) ease;
}

@media (hover: hover) and (pointer: fine) {
  .member:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
  }
  .member:hover .member-more { color: var(--link-hover); }
}

/* ---------- booking ---------- */

.booking-inner {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.booking .section-head,
.testimonials-teaser .section-head { justify-content: center; }

.booking .lead,
.testimonials-teaser .lead { margin-bottom: 2rem; }

.booking .btn-primary { box-shadow: var(--shadow-md); }

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 0.75rem;
  padding: 2.5rem clamp(1.25rem, 5vw, 3rem);
  background: var(--footer-bg);
  color: var(--footer-fg);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.site-footer a { color: var(--footer-fg-strong); text-underline-offset: 0.2em; }
.site-footer a:hover { color: var(--footer-fg-strong); text-decoration-thickness: 2px; }

.site-footer p { margin: 0; }

/* email — the reason the footer exists, so keep them prominent */
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 1.5rem;
}

.footer-contact a {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-bright);   /* the deep --accent orange fails contrast on the ink footer; --accent-bright is the light-orange footer variant */
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--footer-fg-strong);
  text-decoration: underline;
}

.footer-mark {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wght" 800, "opsz" 44;   /* display optical cut, as in .wordmark */
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--footer-fg-strong);
}

.footer-mark span { color: var(--accent-bright); }  /* light-orange footer variant — deep --accent fails contrast on the ink footer */

/* ---------- gigs ----------
   The Previous Gigs teaser (#gigs) and the standalone gigs / gallery pages
   (.gigs-page). On the same semantic tokens as the rest of the sheet. */

.gigs-teaser {
  max-width: var(--wrap);
  margin: 0 auto;
  text-align: center;
}

.gigs-teaser .section-head { justify-content: center; }

.gig-list {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.gig-list-teaser {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

/* the full Previous Gigs page pane is --wrap wide; lay the cards out in a
   column grid that fills it as gigs accumulate, and holds a sensible card
   width (not one stretched card) while the list is short */
.gigs-page .gig-list {
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.gig {
  padding: 1.4rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  text-align: left;
  transition: transform var(--dur) var(--ease-out),
              border-color var(--dur) ease,
              box-shadow var(--dur) ease;
}

@media (hover: hover) and (pointer: fine) {
  .gig:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    border-left-color: var(--accent);
    box-shadow: var(--shadow-md);
  }
}

.gig-date {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* display-title treatment, tracking matched to .section-head h2 */
.gig-venue {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0.3rem 0 0.1rem;
}

.gig-city,
.gig-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.gig-note { margin-top: 0.35rem; font-style: italic; }

.gig-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--link);
  transition: color var(--dur) ease;
}

.gig-link:hover {
  color: var(--link-hover);
}

/* a card with its own details page: an invisible link stretched over the
   whole card, with the card's own link lifted above it */
.gig-clickable { position: relative; }

.gig-card-link {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.gig-clickable .gig-link {
  position: relative;
  z-index: 1;
}

/* a single full-width flyer image on a gig details page */
.gig-flyer {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 2.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.gig-empty {
  margin: 0 0 2.25rem;
  color: var(--ink-soft);
}

/* full page — a frosted pane on the cream field, same recipe as .bio-page, so
   the standalone gig pages sit in the site's section-grouping system instead
   of floating bare on the texture */

.gigs-page {
  width: 100%;   /* fill the flex column, then cap + centre — without this the
                    auto side-margins shrink the pane to its content width */
  max-width: var(--wrap);
  margin: clamp(1.25rem, 3.5vw, 2.5rem) auto;
  padding: clamp(2.25rem, 6vw, 3.5rem) clamp(1.5rem, 5vw, 3rem) clamp(3rem, 7vw, 4rem);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.gigs-page.gallery-page {
  max-width: 87.5rem;
  width: 100%;
}

/* the wide gallery page is broader than --wrap, so the centred .section-head
   would float in from the left while the intro copy and the grid sit flush
   against the padding edge. Pull the heading back to that same left edge so
   every element on the page shares one margin. */
.gigs-page.gallery-page .section-head {
  max-width: none;
  margin: 0 0 2.75rem;
}

.gigs-page h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  letter-spacing: -0.015em;   /* display tracking, matching .section-head h2 */
  margin: 0;
}

.gigs-page .lead { margin-bottom: 2.25rem; }

.gigs-cta {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.gigs-cta p { color: var(--ink-soft); margin: 0 0 1rem; }

/* intro prose on the interior pages — paragraphs hold a readable measure
   rather than running the full width of the panel */
.page-intro { margin-bottom: 2.25rem; }
.page-intro > * { max-width: var(--measure); }
.gigs-page .page-intro .lead { margin-bottom: 0.9rem; }

/* ---------- testimonials ----------
   testimonials/index.html — quote cards from assets/js/testimonials.js, then
   the submission form. Cards follow the .gig card recipe (opaque, accent
   left edge); the form controls sit opaque on the pane too. */

.testimonial-list {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
}

.testimonial {
  padding: 1.5rem 1.4rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.testimonial blockquote { margin: 0; }
.testimonial blockquote p {
  margin: 0;
  font-size: 1.05rem;
  text-wrap: pretty;
}
.testimonial blockquote p::before { content: "\201C"; }
.testimonial blockquote p::after  { content: "\201D"; }

.testimonial-who {
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.testimonial-name { font-weight: 700; color: var(--ink); }
.testimonial-role { font-size: 0.9rem; color: var(--ink-soft); }

.testimonial-form-wrap {
  margin-top: 3rem;
  padding: 2.25rem 0 0;
  border-top: 1px solid var(--line);
}
.testimonial-form-wrap > * { max-width: 44rem; }

.testimonial-form-wrap h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
}

.testimonial-form-intro { color: var(--ink-soft); margin: 0 0 1.75rem; }

.testimonial-form { display: grid; gap: 1.1rem; }

.field-row {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.field { display: grid; gap: 0.4rem; }

.field label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.field .optional {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  box-shadow: inset 0 1px 2px rgba(46, 38, 24, 0.06);
  transition: border-color var(--dur) ease;
}

.field textarea { resize: vertical; min-height: 8rem; }
.field input::placeholder { color: var(--ink-soft); opacity: 0.8; }
.field input:focus,
.field textarea:focus { border-color: var(--accent); }

.choice {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.choice legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.choice-opt {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--dur) ease, background-color var(--dur) ease;
}
.choice-opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-wash);
}
.choice-opt input { width: 1.1rem; height: 1.1rem; margin: 0; flex: none; }
.choice-opt strong { color: var(--ink); }

[hidden] { display: none !important; }

.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  cursor: pointer;
}
.check input { width: 1.1rem; height: 1.1rem; margin: 0; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0.4rem;
}
.form-actions .btn:disabled { opacity: 0.6; cursor: progress; }

.form-status { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.form-status.is-ok    { color: var(--ok); font-weight: 600; }
.form-status.is-error { color: var(--danger); }

/* honeypot field for spam bots — off-screen, never shown to people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- member bio pages ---------- */

.bio-page {
  max-width: 47.5rem;
  margin: clamp(1.25rem, 3.5vw, 2.5rem) auto;
  padding: clamp(2.25rem, 6vw, 3.5rem) clamp(1.5rem, 5vw, 3rem) clamp(3rem, 7vw, 4rem);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.back-link {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--link);
  transition: color var(--dur) ease;
}

.back-link:hover { color: var(--link-hover); }

.bio-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.bio-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 5.25rem;
  height: 5.25rem;
  font-size: 2.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.bio-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 1px);
}

.bio-head h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.bio-head .instrument { font-size: 0.82rem; }

.bio-body { max-width: var(--measure); }
.bio-body p { margin: 0 0 1.1rem; }
.bio-body .bio-todo { color: var(--ink-soft); }

.bio-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.bio-nav a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  transition: color var(--dur) ease;
}

.bio-nav a:hover { color: var(--link); }

.bio-nav-next { text-align: right; }

.bio-nav a span {
  display: block;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.bio-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.bio-photo {
  flex: none;
  width: 100%;
  max-width: 30rem;
}

.bio-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

/* photo beside the bio only once the frosted pane is wide enough for both to
   breathe (the pane's margins + padding eat into the old 680px threshold) */
@media (min-width: 860px) {
  .bio-content {
    flex-direction: row;
    gap: 3rem;
    align-items: start;
  }

  .bio-body {
    flex: 1;
  }

  .bio-photo {
    flex: 0 0 18.75rem;
  }
}

/* ---------- gallery page ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1.6fr 1fr;
    align-items: start;
  }
}

.gallery-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease-out);
}

.gallery-item img:hover {
  transform: scale(1.02);
}

.gig-video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: block;
}

/* phone videos shot upright */
.gig-video-portrait {
  aspect-ratio: 9/16;
}

/* centre a short item (e.g. a wide photo) beside tall portrait videos */
.gallery-column-middle {
  align-self: center;
}

.gallery-item {
  cursor: zoom-in;
  overflow: hidden;
  border-radius: var(--radius);
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: flex;
  visibility: hidden;
  position: fixed;
  z-index: 1000;
  inset: 0;
  align-items: center;
  justify-content: center;
  background-color: color-mix(in srgb, var(--footer-bg) 94%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) ease, visibility 0s linear var(--dur);
}

.lightbox.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity var(--dur) ease;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: scale(0.96);
  transition: transform var(--dur) ease;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5625rem;
  color: var(--footer-fg);
  font-size: 2.375rem;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: var(--accent-bright);
}

/* ---------- responsive ---------- */

@media (max-width: 620px) {
  .site-header { gap: 0.85rem; }
  .site-header { flex-wrap: wrap; }
  .site-header nav { gap: 0.5rem 0.75rem; flex-wrap: wrap; }
  .site-header nav a { font-size: 0.76rem; letter-spacing: 0.08em; }
  .site-header nav a[href$="#booking"] { padding: 0.45rem 0.8rem; }
}

@media (max-width: 420px) {
  .bio-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- user preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero .eyebrow,
  .hero h1,
  .hero .tagline,
  .hero .cta-row { opacity: 1; transform: none; }
  .btn:hover, .member:hover, .gig:hover, .gallery-item img:hover { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--canvas);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .hero, .about, .band, .booking, .testimonials-teaser, #gigs, .bio-page, .gigs-page {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .hero {
    background:
      radial-gradient(120% 95% at 12% -20%, color-mix(in srgb, var(--flame) 12%, transparent), transparent 55%),
      var(--surface);
  }
}

@media (prefers-contrast: more) {
  :root {
    --ink-soft: var(--ink);
    --line: var(--border-strong);
  }
  .btn-ghost { border-color: var(--ink); }
  .site-header nav a { color: var(--ink); }
  .hero, .about, .band, .booking, .testimonials-teaser, #gigs, .bio-page, .gigs-page {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: var(--border-strong);
  }
  /* the texture layer costs a sliver of contrast — drop it here */
  body::before { display: none; }
}
