:root {
  --ink: #0d0d0d;
  --surface: #141414;
  --panel: rgb(20 20 20 / 0.95);
  --line: #2b2b2b;
  --text: #ece7dc;
  --muted: #a7a29a;
  --red-fill: #a3151c;
  --red-fill-hover: #c41d25;
  --red-text: #ff4d4d;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Archivo', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --header-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); line-height: 1.5; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--red-text); }
a:hover { color: #ff7a7a; }
h1, h2, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-decoration: none; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.btn-primary { background: var(--red-fill); color: var(--text); }
.btn-primary:hover { background: var(--red-fill-hover); color: var(--text); }
.btn-ghost { border: 1px solid rgb(236 231 220 / 0.4); color: var(--text); }
.btn-ghost:hover { border-color: var(--red-text); color: var(--red-text); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 10; height: var(--header-height); background: rgb(13 13 13 / 0.85); border-bottom: 1px solid rgb(236 231 220 / 0.12); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { width: 42px; height: 52px; }
.wordmark { font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: 0.06em; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; list-style: none; }
.nav-links a { color: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { border-bottom: 2px solid var(--red-text); padding-bottom: 4px; }
.nav-book { min-height: 44px; padding: 0 20px; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid rgb(236 231 220 / 0.25); color: var(--text); cursor: pointer; }

/* Backgrounds: one image per breakpoint, shared by hero and texture */
.hero, .texture { background-color: var(--ink); background-repeat: no-repeat; }
.hero {
  background-image: linear-gradient(to bottom, rgb(13 13 13 / 0.85) 0, rgb(13 13 13 / 0.15) 160px, rgb(13 13 13 / 0.15) 72%, var(--ink) 100%), url("../img/background-2400.jpg");
  background-image: linear-gradient(to bottom, rgb(13 13 13 / 0.85) 0, rgb(13 13 13 / 0.15) 160px, rgb(13 13 13 / 0.15) 72%, var(--ink) 100%), image-set(url("../img/background-2400.webp") type("image/webp"), url("../img/background-2400.jpg") type("image/jpeg"));
  background-size: 100% 100%, cover;
  background-position: center top, center;
}
.texture {
  background-image: linear-gradient(to bottom, var(--ink) 0, rgb(13 13 13 / 0.7) 280px, rgb(13 13 13 / 0.7) calc(100% - 240px), var(--ink) 100%), url("../img/background-2400.jpg");
  background-image: linear-gradient(to bottom, var(--ink) 0, rgb(13 13 13 / 0.7) 280px, rgb(13 13 13 / 0.7) calc(100% - 240px), var(--ink) 100%), image-set(url("../img/background-2400.webp") type("image/webp"), url("../img/background-2400.jpg") type("image/jpeg"));
  background-size: 100% 100%, cover;
  background-position: center, center top;
}

/* Hero */
.hero { display: flex; flex-direction: column; align-items: center; padding: calc(var(--header-height) + 56px) 24px 56px; text-align: center; }
.hero-tagline { font-family: var(--display); font-weight: 900; font-size: 40px; line-height: 1; letter-spacing: 0.08em; }
.hero-tagline span { color: var(--red-text); }
.hero h1 { margin-top: 40px; }
.hero-badge { width: 540px; height: 540px; }
/* Switched on by scripts/wall-paint.js once the mask has loaded, so a failed load keeps the clean badge. */
.mask-ready .wall-paint { -webkit-mask-image: url("../img/wall-mask.webp"); mask-image: url("../img/wall-mask.webp"); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.hero-location { margin-top: 28px; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.32em; color: var(--red-text); }
.hero-description { max-width: 600px; margin-top: 16px; font-size: 18px; line-height: 1.6; color: #c9c4ba; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }
.hero-actions .btn { min-height: 52px; padding: 0 28px; font-size: 14px; }

/* Content sections */
.texture { padding: 56px 0 96px; }
.wrap { display: flex; flex-direction: column; gap: 56px; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.panel { background: var(--panel); border: 1px solid var(--line); padding: 56px 48px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.section-title { font-family: var(--display); font-weight: 900; font-size: 96px; line-height: 0.9; }
.section-title-small { font-size: 44px; letter-spacing: 0.02em; }
.label { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.2em; color: var(--red-text); }
.note { margin-bottom: 32px; font-size: 16px; color: var(--muted); }

/* Promo reel */
.reel { display: flex; flex-direction: column; gap: 20px; }
.reel-title { font-family: var(--display); font-weight: 900; font-size: 72px; line-height: 0.9; }
.reel-poster, .reel-player { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: #000; }
.reel-poster { position: relative; padding: 0; overflow: hidden; color: var(--text); cursor: pointer; font: inherit; }
.reel-poster img { width: 100%; height: 100%; object-fit: cover; }
.reel-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(13 13 13 / 0.85) 0, rgb(13 13 13 / 0) 45%); }
.reel-play { position: absolute; z-index: 1; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 112px; height: 112px; border-radius: 50%; background: var(--red-fill); box-shadow: 0 0 0 10px rgb(163 21 28 / 0.25); transform: translate(-50%, -50%); transition: transform 0.2s; }
.reel-poster:hover .reel-play { transform: translate(-50%, -50%) scale(1.06); }
.reel-caption { position: absolute; z-index: 1; left: 28px; bottom: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; }
.reel-caption strong { font-family: var(--display); font-weight: 900; font-size: 36px; line-height: 1; }
.reel-caption small { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: #c9c4ba; }

/* Shows */
.ticket { display: grid; grid-template-columns: 240px minmax(0, 1fr); background: var(--panel); border: 1px solid var(--line); }
.ticket.is-empty { grid-template-columns: minmax(0, 1fr); }
.ticket-stub { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 24px; background: var(--red-fill); border-right: 2px dashed rgb(13 13 13 / 0.55); color: var(--text); text-align: center; }
.ticket-weekday, .ticket-month { font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: 0.3em; }
.ticket-day { font-family: var(--display); font-weight: 900; font-size: 128px; line-height: 0.9; }
.ticket-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 44px 48px; }
.ticket-label { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.3em; color: var(--red-text); }
.ticket-venue { font-family: var(--display); font-weight: 900; font-size: 76px; line-height: 0.95; text-transform: uppercase; }
.ticket-time { font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: 0.12em; }
.ticket-address { font-style: normal; font-size: 17px; color: var(--muted); }
.ticket-directions { margin-top: 12px; }
.ticket-empty { font-size: 18px; color: var(--muted); }
.show-list:empty { display: none; }
.show-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); }
.show-date { font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: 0.12em; color: var(--red-text); }
.show-details { display: flex; flex-direction: column; gap: 4px; }
.show-venue { font-size: 18px; font-weight: 700; }
.show-name, .ticket-name { font-size: 14px; color: var(--muted); }
.ticket-name { font-size: 17px; }
#more-shows { padding: 8px 48px 24px; background: var(--panel); border: 1px solid var(--line); border-top: 0; }
.past-shows { padding: 44px 48px; }
.past-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 48px; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; text-transform: inherit; cursor: pointer; }
.past-toggle:hover { color: var(--red-text); }
.past-chevron { flex: none; transition: transform 0.2s; }
.past-toggle[aria-expanded="true"] .past-chevron { transform: rotate(180deg); }
#past-shows { margin-top: 20px; }
#past-shows[hidden] { display: none; }

/* Songs */
.song-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
.song { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.song-artist { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.song-title { font-size: 18px; font-weight: 700; line-height: 1.25; }
.song-playable { flex-direction: row; align-items: center; gap: 14px; }
.song-text { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.song-play { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #3a3a3a; background: transparent; color: var(--text); cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.song-play:hover { border-color: var(--red-text); }
.song-play .icon-stop, .song-play[aria-pressed="true"] .icon-play { display: none; }
.song-play[aria-pressed="true"] .icon-stop { display: block; }
.song-play[aria-pressed="true"] { border-color: var(--red-fill); background: var(--red-fill); }
.song-play[aria-pressed="true"] + .song-text .song-title { color: var(--red-text); }
.now-playing { display: grid; gap: 14px; margin-top: 32px; padding: 16px 20px; border: 1px solid #3a3a3a; background: var(--ink); }
.now-playing[hidden] { display: none; }
.now-playing-head { display: flex; flex-direction: column; gap: 6px; }
.now-playing-song { font-size: 18px; font-weight: 700; }
.now-playing-frame { display: block; width: 100%; height: 175px; border: 0; background: var(--surface); }
.now-playing-frame-spotify { height: 152px; border-radius: 12px; }
.now-playing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.now-playing-close { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-left: auto; border: 1px solid #3a3a3a; background: transparent; color: var(--text); cursor: pointer; }
.now-playing-close:hover { border-color: var(--red-text); color: var(--red-text); }

/* Band */
.member-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.member-card { display: flex; flex-direction: column; gap: 12px; }
.member-card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); }
.member-card figcaption { display: flex; flex-direction: column; gap: 6px; }
.member-name { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; text-transform: uppercase; }
.member-role { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--red-text); }

/* Booking */
.booking { display: flex; flex-direction: column; gap: 20px; padding: 64px 48px; }
.booking .section-title { font-size: 112px; line-height: 0.88; }
.booking p { font-size: 18px; color: var(--muted); }
.contact-email { font-family: var(--mono); font-size: 28px; font-weight: 700; overflow-wrap: anywhere; text-underline-offset: 6px; }
.follow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }
.follow-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--muted); }
.social-links { display: flex; gap: 14px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid #3a3a3a; color: var(--text); transition: border-color 0.2s, color 0.2s; }
.social-link:hover { border-color: var(--red-text); color: var(--red-text); }

/* Footer */
.site-footer { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 36px 24px; background: var(--ink); border-top: 1px solid var(--line); }
.site-footer img { width: 96px; height: 96px; }
.site-footer p { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--muted); text-align: center; }

/* Phones and small tablets */
@media (max-width: 760px) {
  :root { --header-height: 64px; }
  .header-inner { gap: 10px; padding: 0 16px; }
  .brand { gap: 8px; }
  .brand img { width: 36px; height: 45px; }
  .wordmark { font-size: 18px; letter-spacing: 0.04em; }
  .wordmark span { display: block; }
  .site-nav { gap: 8px; }
  .menu-toggle { display: inline-flex; }
  .nav-links { position: absolute; top: var(--header-height); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: rgb(13 13 13 / 0.98); border-bottom: 1px solid var(--line); }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-book { min-height: 44px; padding: 0 10px; font-size: 11px; letter-spacing: 0.08em; }
  .hero {
    background-image: linear-gradient(to bottom, rgb(13 13 13 / 0.85) 0, rgb(13 13 13 / 0.15) 120px, rgb(13 13 13 / 0.15) 65%, var(--ink) 100%), url("../img/background-1280.jpg");
    background-image: linear-gradient(to bottom, rgb(13 13 13 / 0.85) 0, rgb(13 13 13 / 0.15) 120px, rgb(13 13 13 / 0.15) 65%, var(--ink) 100%), image-set(url("../img/background-1280.webp") type("image/webp"), url("../img/background-1280.jpg") type("image/jpeg"));
  }
  .texture {
    background-image: linear-gradient(to bottom, var(--ink) 0, rgb(13 13 13 / 0.7) 200px, rgb(13 13 13 / 0.7) calc(100% - 200px), var(--ink) 100%), url("../img/background-1280.jpg");
    background-image: linear-gradient(to bottom, var(--ink) 0, rgb(13 13 13 / 0.7) 200px, rgb(13 13 13 / 0.7) calc(100% - 200px), var(--ink) 100%), image-set(url("../img/background-1280.webp") type("image/webp"), url("../img/background-1280.jpg") type("image/jpeg"));
  }
  .hero { padding: calc(var(--header-height) + 40px) 20px 32px; }
  .hero-tagline { font-size: 32px; letter-spacing: 0.06em; }
  .hero h1 { margin-top: 24px; }
  .hero-badge { width: 300px; height: 300px; }
  .hero-description { font-size: 16px; }
  .hero-actions { flex-direction: column; align-self: stretch; gap: 12px; margin-top: 24px; }
  .texture { padding: 32px 0 64px; }
  .wrap { gap: 32px; padding: 0 16px; }
  .panel, .past-shows, .booking { padding: 32px 20px; }
  .section-title { font-size: 64px; }
  .section-title-small { font-size: 36px; }
  .reel-title { font-size: 52px; }
  .reel-play { width: 64px; height: 64px; box-shadow: 0 0 0 6px rgb(163 21 28 / 0.25); }
  .reel-play svg { width: 26px; height: 26px; }
  .reel-caption { left: 14px; right: 96px; bottom: 12px; }
  .reel-caption strong { font-size: 20px; text-wrap: balance; }
  .reel-caption small { display: none; }
  .ticket { grid-template-columns: minmax(0, 1fr); }
  .ticket-stub { flex-direction: row; gap: 16px; padding: 18px 20px; border-right: 0; border-bottom: 2px dashed rgb(13 13 13 / 0.55); }
  .ticket-day { font-size: 72px; }
  .ticket-body { padding: 24px 20px; }
  .ticket-venue { font-size: 44px; }
  .ticket-directions { align-self: stretch; }
  #more-shows { padding: 0 20px 16px; }
  .show-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .song-grid { grid-template-columns: minmax(0, 1fr); }
  .now-playing { position: fixed; right: 0; bottom: 0; left: 0; z-index: 20; gap: 10px; max-height: 70vh; margin: 0; padding: 12px 16px; overflow-y: auto; border-width: 1px 0 0; box-shadow: 0 -12px 32px rgb(0 0 0 / 0.6); }
  .now-playing-head .label { display: none; }
  .player-open body { padding-bottom: var(--player-height, 320px); }
  .player-open { scroll-padding-bottom: var(--player-height, 320px); }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .member-name { font-size: 22px; }
  .booking .section-title { font-size: 64px; }
  .contact-email { font-size: 17px; }
  .site-footer img { width: 80px; height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reel-poster:hover .reel-play { transform: translate(-50%, -50%); }
}
