/* Layout: stage-light dark one-pager. Photo hero carries the next gig,
   full-width bands follow, a 3-2 son clave grid works as the rhythmic divider. */
:root {
  --ink: #0d0a0a;        /* page ground, warm black */
  --ink-2: #161112;      /* alternate band */
  --line: #33282a;       /* hairlines */
  --paper: #f4ede8;      /* text */
  --muted: #a99a94;      /* secondary text */
  --red: #d21d27;        /* CI red, fills and large type */
  --red-text: #f0545b;   /* CI red lifted for small text on dark */

  --f-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --s-xs: 0.8125rem;
  --s-sm: 0.9375rem;
  --s-md: 1.0625rem;
  --s-lg: 1.375rem;
  --s-xl: clamp(2.5rem, 6vw, 4rem);
  --s-xxl: clamp(4.5rem, 14vw, 9.5rem);

  --gutter: 16px;
  --max: 72rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4rem; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 var(--s-md)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--red-text); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
@media (min-width: 48rem) { :root { --gutter: 32px; } }

.label {
  font: 500 var(--s-xs)/1.2 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-text);
}
.meta { font: 400 var(--s-xs)/1.4 var(--f-mono); color: var(--muted); letter-spacing: 0.04em; }
.lead { font-size: var(--s-lg); line-height: 1.45; max-width: 38ch; }

/* top bar */
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ink);
}
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 3.5rem; }
.brand {
  font: 900 1.375rem/1 var(--f-display); text-transform: uppercase;
  letter-spacing: 0.02em; text-decoration: none; white-space: nowrap;
}
.nav {
  display: flex; gap: 1.25rem; margin-left: auto;
  overflow-x: auto; scrollbar-width: none; min-width: 0;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  font-size: var(--s-sm); font-weight: 500; text-decoration: none;
  white-space: nowrap; padding-block: 1rem; color: var(--muted);
}
.nav a:hover { color: var(--paper); }
@media (max-width: 40rem) { .brand { display: none; } .nav { margin-left: 0; } }

/* hero = next gig */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 3rem 2.5rem; }
.hero-photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 80%, transparent) 45%, color-mix(in srgb, var(--ink) 35%, transparent) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 40%);
}
.hero-inner {
  display: grid; gap: 2.5rem; align-items: end;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 60rem) {
  .hero { padding-block: 5rem 3rem; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 30rem; }
}
.hero-id { display: grid; gap: 1rem; align-content: end; }
.logo { width: 9rem; height: auto; mix-blend-mode: screen; margin-left: -0.75rem; }
.tagline {
  font: 900 var(--s-xl)/0.92 var(--f-display); text-transform: uppercase;
  letter-spacing: 0.01em; max-width: 12ch;
}
.hero-sub { color: var(--muted); max-width: 34ch; }

.next-gig {
  display: grid; gap: 0.75rem;
  padding: 1.5rem;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  backdrop-filter: blur(6px);
}
.next-loading, .next-none { color: var(--muted); }
.next-date {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem;
  font: 900 var(--s-xxl)/0.85 var(--f-display);
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.next-date small {
  font: 600 var(--s-lg)/1 var(--f-display); text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted);
}
.next-title { font: 800 clamp(1.75rem, 4vw, 2.5rem)/1.05 var(--f-display); text-transform: uppercase; }
.next-where { color: var(--muted); }
.next-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin-top: 0.5rem; }
.chip {
  font: 500 var(--s-xs)/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.45rem 0.6rem; border: 1px solid var(--line); color: var(--paper);
}
.chip-red { background: var(--red); border-color: var(--red); }
.chip-example { color: var(--muted); border-style: dashed; }
.button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: var(--s-sm); text-decoration: none;
  padding: 0.7rem 1rem; background: var(--paper); color: var(--ink);
}
.button:hover { background: var(--red); color: var(--paper); }

/* clave divider */
.clave {
  display: grid; grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 4px; margin-top: 3rem; max-width: 32rem;
}
.clave span { height: 6px; background: var(--line); }
.clave span:nth-child(4n+1) { height: 10px; }
.clave .on { background: var(--red); }
.clave-caption { margin-top: 0.5rem; font: 400 var(--s-xs)/1 var(--f-mono); color: var(--muted); letter-spacing: 0.08em; }
@media (prefers-reduced-motion: no-preference) {
  /* one bar of sixteenths at 80 bpm = 3 s */
  .clave span { animation: tick 3s steps(1) infinite; animation-delay: calc(var(--i) * 0.1875s); }
  @keyframes tick { 0% { filter: brightness(2.2); } 6.25% { filter: none; } }
}

/* section bands */
.band-section { padding-block: 4.5rem; border-top: 1px solid var(--line); }
.band-section.alt { background: var(--ink-2); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.5rem 2rem; margin-bottom: 1.5rem;
}
.section-head h2 {
  font: 900 var(--s-xl)/0.95 var(--f-display); text-transform: uppercase; letter-spacing: 0.01em;
}

/* soundcheck */
.tracks {
  display: grid; gap: 1px; margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  background: var(--line); border: 1px solid var(--line);
}
.track { display: grid; gap: 0.5rem; align-content: start; padding: 1.5rem; background: var(--ink); }
.track h3 { font: 800 2.25rem/1 var(--f-display); text-transform: uppercase; }
.track-genre { font: 500 var(--s-xs)/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-text); }
.track-orig { color: var(--muted); font-size: var(--s-sm); }
.track-link {
  margin-top: 1rem; font-weight: 600; font-size: var(--s-sm);
  text-decoration-color: var(--red); text-underline-offset: 0.3em; text-decoration-thickness: 2px;
}
.track-link::after { content: " ↗"; }
.track:hover .track-link { color: var(--red-text); }

/* gig list */
.gig-list { border-top: 1px solid var(--line); }
.gig {
  display: grid; gap: 0.25rem 1.5rem; align-items: baseline;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  padding-block: 1.25rem; border-bottom: 1px solid var(--line);
}
@media (min-width: 48rem) { .gig { grid-template-columns: 9rem minmax(0, 1fr) auto; } }
.gig-date { font: 800 1.75rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.gig-date small { display: block; margin-top: 0.3rem; font: 400 var(--s-xs)/1 var(--f-mono); color: var(--muted); letter-spacing: 0.04em; }
.gig-main { display: grid; gap: 0.2rem; min-width: 0; }
.gig-title { font-weight: 600; font-size: var(--s-lg); line-height: 1.25; }
.gig-where { color: var(--muted); font-size: var(--s-sm); }
.gig-side { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; grid-column: 2; }
@media (min-width: 48rem) { .gig-side { grid-column: auto; justify-content: flex-end; } }
.gig-side a { font-size: var(--s-sm); font-weight: 600; text-underline-offset: 0.3em; text-decoration-color: var(--red); }
.gig-empty { padding-block: 1.5rem; color: var(--muted); }

/* band */
.band-intro { display: grid; gap: 1.25rem; max-width: 46rem; }
.band-intro p:not(.lead) { color: var(--muted); max-width: 60ch; }
.roster {
  display: grid; gap: 2rem 2.5rem; margin-top: 3rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
}
.roster h3 {
  font: 500 var(--s-xs)/1.2 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red-text); padding-bottom: 0.6rem; margin-bottom: 0.6rem; border-bottom: 1px solid var(--line);
}
.roster li { font-weight: 500; line-height: 1.8; }
.roster li span { color: var(--muted); font-weight: 400; font-size: var(--s-sm); margin-left: 0.25rem; }
.roster-guests li { color: var(--muted); }

/* contact */
.contact-grid { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52rem) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); } }
.contact, .tech { display: grid; gap: 0.75rem; align-content: start; }
.contact-name { font: 800 2.25rem/1 var(--f-display); text-transform: uppercase; margin-top: 0.25rem; }
.contact-line { font: 400 var(--s-lg)/1.4 var(--f-mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; user-select: all; }
.contact-line a { text-decoration: none; }
.contact-line a:hover { color: var(--red-text); }
.social { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.social a { display: inline-block; padding: 0.5rem 0.75rem; border: 1px solid var(--line); text-decoration: none; font-size: var(--s-sm); font-weight: 500; }
.social a:hover { border-color: var(--red); }
.specs { margin: 0.25rem 0 0; border-top: 1px solid var(--line); }
.specs div { display: grid; gap: 0.25rem 1.5rem; grid-template-columns: minmax(0, 1fr); padding-block: 1rem; border-bottom: 1px solid var(--line); }
@media (min-width: 36rem) { .specs div { grid-template-columns: 10rem minmax(0, 1fr); } }
.specs dt { font-weight: 600; }
.specs dd { margin: 0; color: var(--muted); }
.downloads { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }
.downloads a {
  display: inline-flex; gap: 0.75rem; align-items: baseline;
  padding: 0.75rem 1rem; background: var(--red); text-decoration: none; font-weight: 600;
}
.downloads a:hover { background: color-mix(in srgb, var(--red) 80%, var(--paper)); }
.downloads span { font: 400 var(--s-xs)/1 var(--f-mono); opacity: 0.85; }

/* footer / imprint */
.footer { border-top: 1px solid var(--line); padding-block: 2rem 3rem; font-size: var(--s-sm); color: var(--muted); }
.legal summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 0.75rem; }
.legal summary::-webkit-details-marker { display: none; }
.legal summary::before { content: "+"; font: 500 1.25rem/1 var(--f-mono); color: var(--red-text); width: 1ch; }
.legal[open] summary::before { content: "−"; }
.legal summary h2 { font: 600 var(--s-md)/1.3 var(--f-body); color: var(--paper); }
.legal-body { display: grid; gap: 2rem; margin-top: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.legal-body > div { display: grid; gap: 0.6rem; align-content: start; max-width: 62ch; }
.legal-body h3 { font: 500 var(--s-xs)/1.3 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper); margin-top: 0.75rem; }
.legal-body h3:first-child { margin-top: 0; }
.copyright { margin-top: 2rem; font: 400 var(--s-xs)/1 var(--f-mono); letter-spacing: 0.04em; }

/* icons (Font Awesome, local) */
.fa-solid, .fa-brands { line-height: 1; }
.meta-link { text-decoration: none; display: inline-flex; gap: 0.4rem; align-items: center; }
.meta-link:hover { color: var(--red-text); }
.contact-line { display: flex; gap: 0.75rem; align-items: baseline; }
.contact-line i { color: var(--red-text); font-size: 0.85em; width: 1.1em; flex: none; }
.social a i { margin-right: 0.25rem; }
.next-where i { color: var(--red-text); margin-right: 0.4rem; }

/* instagram tiles, always 3 x 3 */
.insta-grid {
  display: grid; gap: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 54rem;
}
.insta-tile { position: relative; aspect-ratio: 1; max-width: 100%; background: var(--ink); overflow: hidden; }
.insta-tile a { position: absolute; inset: 0; display: block; color: var(--paper); text-decoration: none; }
.insta-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, filter 0.4s ease; }
.insta-type {
  position: absolute; top: 0.5rem; right: 0.5rem; font-size: 0.9rem;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.7));
}
.insta-caption {
  position: absolute; inset: auto 0 0 0; padding: 2rem 0.75rem 0.75rem;
  font-size: var(--s-xs); line-height: 1.4;
  background: linear-gradient(0deg, color-mix(in srgb, var(--ink) 92%, transparent), transparent);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  opacity: 0; transition: opacity 0.25s ease;
}
.insta-caption time { display: block; font-family: var(--f-mono); color: var(--red-text); margin-bottom: 0.25rem; }
.insta-tile a:hover img, .insta-tile a:focus-visible img { transform: scale(1.04); filter: brightness(0.7); }
.insta-tile a:hover .insta-caption, .insta-tile a:focus-visible .insta-caption { opacity: 1; }
@media (hover: none) { .insta-caption { display: none; } }
.insta-placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.5rem;
  border: 1px dashed var(--line); color: var(--muted);
  font: 400 var(--s-xs)/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.insta-placeholder i { font-size: 1.75rem; color: var(--line); }
.insta-empty { grid-column: 1 / -1; padding-block: 1.5rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .insta-tile img, .insta-caption { transition: none; } }

/* youtube two-click player */
.yt {
  position: relative; aspect-ratio: 16 / 9;
  width: calc(100% + 3rem); max-width: none; /* bleed to the tile edges, offsets the 1.5rem track padding */
  margin: -1.5rem -1.5rem 0.75rem; background: #000;
}
.yt-play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; cursor: pointer; color: var(--paper);
}
.yt-play img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.3s ease; }
.yt-play:hover img, .yt-play:focus-visible img { filter: brightness(0.75); }
.yt-play:focus-visible { outline: 2px solid var(--red-text); outline-offset: -4px; }
.yt-icon {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--red); font-size: 1.25rem; padding-left: 0.2rem;
  box-shadow: 0 4px 18px rgb(0 0 0 / 0.45); transition: transform 0.2s ease;
}
.yt-play:hover .yt-icon { transform: scale(1.08); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-note { margin-top: 1rem; max-width: 70ch; font-size: var(--s-xs); color: var(--muted); }
.yt-note a { color: var(--paper); }
@media (prefers-reduced-motion: reduce) { .yt-play img, .yt-icon { transition: none; } }
.yt-channel { display: block; color: var(--paper); }
.yt-channel img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6) saturate(0.8); transition: filter 0.3s ease; }
.yt-channel:hover img { filter: brightness(0.45); }
.yt-channel .yt-icon { padding-left: 0; font-size: 1.5rem; background: color-mix(in srgb, var(--ink) 70%, transparent); border: 2px solid var(--paper); }

/* public appointment description from Konzertmeister */
.next-note, .gig-note { white-space: pre-line; overflow-wrap: anywhere; max-width: 60ch; }
.next-note { color: var(--paper); font-size: var(--s-md); }
.gig-note { color: var(--muted); font-size: var(--s-sm); font-style: italic; }

/* mobile: photo becomes a square band on top, centred on the lead singer
   (white shirt, hat); content starts below his face */
@media (max-width: 40rem) {
  .hero { padding-top: 78vw; }
  .hero-photo { inset: 0 0 auto; height: 100vw; object-position: 48% 60%; }
  .hero::before {
    background: linear-gradient(180deg, transparent 0, transparent 55vw, var(--ink) 98vw);
  }
  .logo { width: 7rem; }
}
