@font-face {
  font-family: "Anton";
  src: url("assets/font/Anton-Regular.ttf") format("truetype");
  font-display: swap;
}

/* Palette sampled from the ZB Riffs & Gigs logo: brushed gold and worn silver on stage black */
:root {
  --soot: #0e0d0b;
  --char: #1b1916;
  --silver: #dcd8cf;
  --ash: #9a958a;
  --gold: #c4943f;
  --error: #ee9a86;
  --gutter: clamp(16px, 3vw, 44px);
  --bar: 68px;
  --music-bar: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--bar); }

body {
  margin: 0;
  background: var(--soot);
  color: var(--silver);
  font-family: "Anton", "Arial Narrow", Impact, sans-serif;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: .025em;
}

img, video, svg { display: block; }

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--bar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: var(--gutter);
  background: var(--soot);
}

.topbar__mark img { width: auto; height: 50px; }

.topbar__nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }

.topbar__nav a {
  padding-block: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: color .15s;
}

.topbar__nav a:hover { color: var(--gold); }

/* Hero carousel: every clip is shown whole, over a blurred copy of itself */
.hero { background: var(--soot); }

.hero__stage {
  position: relative;
  height: min(68vh, 56.25vw);
  height: min(68svh, 56.25vw);
  min-height: 320px;
  overflow: hidden;
  background: #000;
}

.hero__slides, .slide { position: absolute; inset: 0; }

.slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility 0s .7s;
}

.slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; }

.slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Brings the pale walls in the home clips closer to the stage footage */
.slide--bright video { filter: brightness(.78) contrast(1.06); }

/* Scrim keeps the name and logo readable over the pale wall in the talking clips */
.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(12px, 2vw, 28px) var(--gutter);
  background: linear-gradient(to top, rgb(14 13 11 / .86) 0, rgb(14 13 11 / .46) 24%, rgb(14 13 11 / 0) 46%);
  pointer-events: none;
}

.hero__brand {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.hero__name {
  margin: 0;
  font-size: clamp(56px, 6.5vw, 112px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: .005em;
  text-transform: uppercase;
}

.hero__title { min-width: 0; }

.hero__tagline {
  max-width: 34em;
  margin: .5em 0 0;
  font-size: clamp(16px, 1.5vw, 24px);
  line-height: 1.2;
  letter-spacing: .04em;
  text-wrap: balance;
}

.hero__logo {
  flex: none;
  width: clamp(88px, 10vw, 170px);
  height: auto;
}

/* Signature: the logo's waveform, drawn as the carousel timeline */
.player { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); padding: 10px var(--gutter); }

.player__wave { flex: 1; min-width: 0; display: flex; gap: clamp(6px, 1vw, 16px); height: 48px; }

.seg {
  position: relative;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.seg__base, .seg__fill { position: absolute; inset: 0; display: block; }

.seg svg { width: 100%; height: 100%; }

.seg__base { fill: var(--silver); opacity: .4; transition: opacity .15s; }

.seg__fill { fill: var(--gold); clip-path: inset(0 calc(100% - var(--progress, 0%)) 0 0); }

.seg:hover .seg__base { opacity: .8; }

.player__buttons { flex: none; display: flex; gap: 4px; }

.player__buttons button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--silver);
  cursor: pointer;
  transition: color .15s;
}

.player__buttons button:hover { color: var(--gold); }

.player__buttons svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

.player__buttons .fill { fill: currentColor; stroke: none; }

.icon-play { display: none !important; }
.is-paused .icon-play { display: block !important; }
.is-paused .icon-pause { display: none !important; }

/* Music band: one slim row at rest. YouTube requires its player to stay visible and uncovered, at 200px by 200px or larger */
.music {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px clamp(16px, 3vw, 40px);
  min-height: var(--music-bar);
  padding: 12px var(--gutter);
  background: var(--char);
  scroll-margin-top: var(--bar);
}

.music.is-on { align-items: start; }

.music p { margin: 0; }

.music:not(.is-on) .music__controls,
.music:not(.is-on) .music__wave,
.music:not(.is-on) .music__song,
.music:not(.is-on) .music__band,
.music:not(.is-on) .music__frame { display: none; }

.music__actions { display: grid; gap: 4px; }

.music__toggle {
  min-height: 44px;
  padding: 8px 22px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--soot);
  font: inherit;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.music__toggle:hover { background: var(--silver); border-color: var(--silver); }

.music.is-on .music__toggle { background: none; color: var(--gold); }

.music.is-on .music__toggle:hover { background: none; border-color: var(--silver); color: var(--silver); }

.music__controls { display: flex; justify-content: space-between; gap: 16px; }

.music__controls button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--silver);
  font: inherit;
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .15s;
}

.music__controls button:hover { color: var(--gold); }

.music__info { min-width: 0; }

.music__playlist {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  color: var(--ash);
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.music__playlist a { color: var(--silver); transition: color .15s; }

.music__playlist a:hover { color: var(--gold); }

.music__count { white-space: nowrap; }

.music__note { color: var(--ash); font-size: 15px; line-height: 1.3; }

.music__note a { color: var(--silver); text-decoration: underline; text-underline-offset: 2px; }

.music__note a:hover { color: var(--gold); }

.music.is-on .music__note { display: none; }

.music__wave { position: relative; height: 26px; margin-block: 10px; fill: var(--gold); }

.music__wave svg { width: 100%; height: 100%; }

.music__song { font-size: clamp(27px, 3vw, 44px); line-height: 1.1; text-transform: uppercase; }

.music__band { margin-top: 4px !important; color: var(--gold); font-size: clamp(19px, 1.7vw, 24px); }

.music__frame { width: 356px; height: 200px; }

.music__frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Section titles */
.section-title {
  margin: 0;
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
  text-wrap: balance;
}

/* Link thumbnails */
.links { padding: clamp(56px, 8vw, 110px) var(--gutter); }

.links .section-title { margin-bottom: clamp(24px, 3vw, 40px); }

.links__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--gold);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15);
  mix-blend-mode: multiply;
  transition: transform .5s ease, filter .3s;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(14 13 11 / .92), rgb(14 13 11 / 0) 52%);
}

.card:hover img, .card:focus-visible img {
  filter: none;
  mix-blend-mode: normal;
  transform: scale(1.04);
}

.card__text {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  display: grid;
  gap: 4px;
  padding: clamp(12px, 1.6vw, 24px);
}

.card__name {
  font-size: clamp(24px, 2.6vw, 42px);
  line-height: 1.08;
  text-transform: uppercase;
}

.card__arrow {
  position: absolute;
  z-index: 1;
  top: clamp(10px, 1.2vw, 18px);
  right: clamp(10px, 1.2vw, 18px);
  width: clamp(26px, 2.6vw, 38px);
  height: clamp(26px, 2.6vw, 38px);
  fill: none;
  stroke: var(--silver);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 4px rgb(14 13 11 / .8));
}

.card:hover .card__arrow { stroke: var(--gold); }

.card__note { color: var(--silver); font-size: clamp(15px, 1.2vw, 18px); }

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--gutter);
  color: var(--ash);
  font-size: 16px;
}

.footer img { width: 190px; height: auto; }

.footer p { margin: 0; }

.footer__meta { display: grid; justify-items: end; gap: 4px; }

.footer__links { display: flex; gap: 18px; }

.footer__links a { padding-block: 8px; color: var(--silver); transition: color .15s; }

.footer__links a:hover { color: var(--gold); }

/* Legal pages: long text reads better in a system face than in Anton */
.legal {
  display: grid;
  gap: 24px;
  max-width: 760px;
  min-height: calc(100vh - var(--bar) - 220px);
  padding: clamp(32px, 5vw, 64px) var(--gutter);
}

.legal article { min-width: 0; }

.legal h2 {
  margin: 1.5em 0 .3em;
  color: var(--gold);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.2;
}

.legal p {
  max-width: 65ch;
  margin: 0 0 .9em;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.legal p a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

.legal__lang { display: flex; gap: 8px; }

.legal__lang button {
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--ash);
  background: none;
  color: var(--silver);
  font: inherit;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.legal__lang button:hover { border-color: var(--gold); color: var(--gold); }

.legal__lang button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold); color: var(--soot); }

.legal__todo { padding-inline: 4px; background: var(--gold); color: var(--soot); }

@media (max-width: 900px) {
  .links__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Five cards in two columns: Contact takes the last row on its own */
  .links__grid li:last-child { grid-column: 1 / -1; }
  .links__grid li:last-child .card { aspect-ratio: 2 / 1; }
  .links__grid li:last-child img { object-position: 50% 22%; }
  .music { grid-template-columns: auto minmax(0, 1fr); }
  .music__frame { grid-column: 1 / -1; width: min(356px, 100%); }
}

@media (max-width: 640px) {
  :root { --bar: 60px; }
  .topbar__mark img { height: 42px; }
  .topbar__nav a:not(.topbar__contact) { display: none; }
  /* Wide clips sit at the top, which leaves the area below them for the name */
  .hero__stage { height: 100vw; min-height: 0; }
  .slide video { object-position: 50% 0; }
  .hero__name { font-size: 16.5vw; }
  .hero__logo { width: 22vw; }
  .player { flex-wrap: wrap; gap: 4px 12px; }
  .player__wave { flex: 1 0 100%; height: 40px; gap: 4px; }
  .player__buttons { margin-left: auto; }
  .music { grid-template-columns: minmax(0, 1fr); }
  .music__toggle { width: 100%; }
  .music__frame { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .slide.is-active, .card img { transition: none; }
  .card:hover img, .card:focus-visible img { transform: none; }
}
