/* Record Selectors — the K-Tel Record Selector, 1970s: smoked perspex, harvest gold, burnt
   orange, a TV-ad red, and stacked italic lettering. One look, deliberately dark: the box the
   records sat in was smoked brown plastic.
   Layout: a single column of "bands", each with an inner wrapper that carries the side gutter;
   the stripe (gold/orange/red/brown) is the only ornament, and the wordmark the only shout. */
:root {
  --ground: #17110d;
  --perspex: #221813;
  --perspex-2: #2d2019;
  --ink: #f7ead0;
  --muted: #c4ab86;
  --gold: #f4b41a;
  --orange: #e8641c;
  --red: #c8321f;
  --brown: #7a4220;
  --line: #f7ead01f;

  --display: "Shrikhand", "Cooper Black", Georgia, serif;
  --caption: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: 2.5rem;
  --step-4: clamp(2.9rem, 9vw, 6.2rem);
  --wrap: 72rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--body);
}
img { max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ── The stripe ─────────────────────────────────────────────────────────────── */
.stripe {
  height: 18px;
  background: linear-gradient(var(--gold) 0 25%, var(--orange) 25% 50%, var(--red) 50% 75%, var(--brown) 75%);
}
.stripe.thin { height: 8px; }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.site-head { background: var(--ground); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--ground); }
.site-head .wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: 39px; flex: none; }
.brand span { font-family: var(--display); font-size: 1.25rem; line-height: 1; color: var(--gold); }
.site-nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: .15rem; }
.site-nav a {
  font: 600 1.05rem/1 var(--caption); text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); text-decoration: none; padding: .5rem .65rem; border-radius: 3px 3px 0 0;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ground); background: var(--gold); }

/* ── Hero / wordmark ───────────────────────────────────────────────────────── */
.hero .wrap { padding-block: clamp(2.2rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); display: grid; gap: 1.4rem; position: relative; }
.kicker { font: 600 var(--step--1)/1 var(--caption); letter-spacing: .22em; text-transform: uppercase; color: var(--orange); }
.wordmark {
  font: 400 var(--step-4)/.92 var(--display);
  color: var(--gold);
  letter-spacing: -.01em;
  /* The 70s stack: each colour of the stripe, stepped down and right. */
  text-shadow: .045em .045em 0 var(--orange), .09em .09em 0 var(--red), .135em .135em 0 var(--brown);
  padding-bottom: .15em;
  transform: rotate(-3deg);
  transform-origin: left bottom;
  max-width: 11ch;
}
.tagline { max-width: 34rem; font-size: var(--step-1); line-height: 1.45; color: var(--ink); }
.sticker {
  position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: clamp(1.4rem, 5vw, 3.5rem);
  width: clamp(8.5rem, 20vw, 11.5rem); aspect-ratio: 1; max-width: 100%;
  display: grid; place-items: center; text-align: center; padding: 1.4rem;
  background: var(--red); color: var(--ink);
  clip-path: polygon(50% 0, 61% 12%, 75% 6%, 79% 21%, 94% 25%, 88% 39%, 100% 50%, 88% 61%, 94% 75%, 79% 79%, 75% 94%, 61% 88%, 50% 100%, 39% 88%, 25% 94%, 21% 79%, 6% 75%, 12% 61%, 0 50%, 12% 39%, 6% 25%, 21% 21%, 25% 6%, 39% 12%);
  transform: rotate(9deg);
  font: 700 1rem/1.05 var(--caption); text-transform: uppercase; letter-spacing: .03em;
  text-decoration: none;
}
.sticker strong { display: block; font: 400 1.5rem/1 var(--display); text-transform: none; color: var(--gold); margin: .2rem 0; }
.sticker span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .8rem; max-width: 7rem; overflow-wrap: anywhere; }
.sticker:hover { color: var(--ink); background: var(--orange); }
@media (max-width: 700px) {
  .sticker { position: static; transform: rotate(4deg); justify-self: end; margin-top: -1rem; }
}

/* ── Sections ──────────────────────────────────────────────────────────────── */
.band { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.band.alt { background: var(--perspex); }
.band-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.band-head h2, .page-title {
  font: 700 var(--step-3)/1 var(--caption); text-transform: uppercase; letter-spacing: .02em; color: var(--ink);
}
.band-head h2 em, .page-title em { font: 400 .9em/1 var(--display); text-transform: none; color: var(--gold); letter-spacing: 0; }
.band-head .more { font: 600 1rem/1 var(--caption); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; }
.lede { color: var(--muted); max-width: 40rem; margin-top: .6rem; }
.page-intro { padding-block: clamp(2rem, 5vw, 3.5rem) 1rem; }
.empty { color: var(--muted); font-style: italic; padding: 1rem 0; }

/* ── The Selector: upcoming gigs as sleeves in a rack ─────────────────────── */
.selector { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.rack {
  position: relative; perspective: 1400px;
  padding: 3.4rem 1rem 1rem;
  background: linear-gradient(180deg, #ffffff0d, #0000 40%), var(--perspex-2);
  border: 1px solid var(--line); border-radius: 6px;
  box-shadow: inset 0 1px 0 #ffffff14, 0 20px 50px #0006;
  min-height: 21rem;
}
.rack::after { /* the smoked lid's edge */
  content: ""; position: absolute; inset: 0 0 auto; height: 2.4rem;
  background: linear-gradient(#0000, #00000040); border-radius: 6px 6px 0 0; pointer-events: none;
}
.sleeve {
  position: absolute; left: 1rem; right: 1rem; top: 3.4rem;
  transform-origin: 50% 100%;
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .4s ease, filter .4s;
  background: var(--ink); color: var(--ground);
  border-radius: 3px; overflow: hidden;
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr);
  box-shadow: 0 -2px 0 #0002, 0 10px 30px #0007;
}
.sleeve[data-pos="behind"] { transform: translateY(calc(var(--depth) * -.85rem)) scale(calc(1 - var(--depth) * .035)); filter: brightness(calc(1 - var(--depth) * .16)); }
.sleeve[data-pos="flipped"] { transform: rotateX(-82deg) translateY(1rem); opacity: 0; pointer-events: none; }
.sleeve[data-pos="front"] { transform: none; }
.sleeve .date {
  background: var(--orange); color: var(--ground); padding: 1rem .9rem; display: grid; align-content: start; gap: .1rem;
  font-family: var(--caption); text-transform: uppercase;
}
.sleeve .date .dow { font-weight: 600; letter-spacing: .14em; font-size: .95rem; }
.sleeve .date .day { font: 400 3.6rem/.95 var(--display); text-transform: none; }
.sleeve .date .mon { font-weight: 700; font-size: 1.25rem; letter-spacing: .06em; }
.sleeve .date .time { font: 500 .85rem/1.2 var(--mono); margin-top: .5rem; }
.sleeve .info { padding: 1rem 1.1rem 1.1rem; display: grid; gap: .4rem; align-content: start; min-width: 0; }
.sleeve .cat { font: 500 .78rem/1 var(--mono); letter-spacing: .08em; color: var(--brown); }
.sleeve h3 { font: 700 1.8rem/1.05 var(--caption); text-transform: uppercase; overflow-wrap: anywhere; }
.sleeve .where { color: #5a4334; }
.sleeve .notes { color: #3b2b20; font-size: .95rem; }
.sleeve .actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.sleeve.cancelled h3 { text-decoration: line-through; }
.tag { font: 700 .8rem/1 var(--caption); text-transform: uppercase; letter-spacing: .1em; padding: .3rem .5rem; border-radius: 2px; background: var(--ground); color: var(--gold); justify-self: start; }

.tabs { display: flex; gap: .35rem; flex-wrap: wrap; }
.tabs button, .chip {
  font: 700 .95rem/1 var(--caption); text-transform: uppercase; letter-spacing: .06em;
  background: var(--perspex-2); color: var(--muted); border: 1px solid var(--line);
  padding: .55rem .75rem; border-radius: 4px 4px 0 0; cursor: pointer;
}
.tabs button[aria-pressed="true"], .chip[aria-pressed="true"] { background: var(--gold); color: var(--ground); border-color: var(--gold); }
.tabs button:hover, .chip:hover { color: var(--ink); }
.tabs button[aria-pressed="true"]:hover { color: var(--ground); }
.flip { display: flex; gap: .5rem; align-items: center; justify-content: space-between; }
.flip .count { font: 500 .9rem/1 var(--mono); color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font: 700 1rem/1 var(--caption); text-transform: uppercase; letter-spacing: .08em;
  padding: .65rem 1.05rem; border-radius: 99px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--orange); color: var(--ground);
}
.btn:hover { background: var(--gold); color: var(--ground); }
.btn.ghost { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 2px currentColor; }
.btn.ghost:hover { color: var(--ink); background: transparent; }
.btn.dark { background: var(--ground); color: var(--gold); }
.btn.small { padding: .45rem .8rem; font-size: .88rem; }

/* ── Gig list & calendar ──────────────────────────────────────────────────── */
.gig-list { list-style: none; margin: 0; padding: 0; display: grid; }
.gig-row {
  display: grid; grid-template-columns: 6.2rem minmax(0, 1fr) auto; gap: 1.1rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.gig-row .when { font-family: var(--caption); text-transform: uppercase; line-height: 1; }
.gig-row .when b { display: block; font: 400 2.3rem/1 var(--display); text-transform: none; color: var(--gold); }
.gig-row .when span { font-weight: 600; letter-spacing: .08em; color: var(--muted); font-size: .9rem; }
.gig-row h3 { font: 700 1.35rem/1.15 var(--caption); text-transform: uppercase; }
.gig-row .meta { color: var(--muted); font-size: .95rem; }
.gig-row .side { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: end; }
.gig-row.cancelled h3 { text-decoration: line-through; color: var(--muted); }
.gig-row.past .when b { color: var(--muted); }
.gig-row:target { background: linear-gradient(90deg, #f4b41a22, #0000); }
@media (max-width: 640px) {
  .gig-row { grid-template-columns: 4.8rem minmax(0, 1fr); }
  .gig-row .side { grid-column: 2; justify-content: start; }
  .sleeve { grid-template-columns: 6.6rem minmax(0, 1fr); }
  .sleeve .date .day { font-size: 2.7rem; }
  .sleeve h3 { font-size: 1.4rem; }
}

.cal { display: grid; gap: .8rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.cal-head h3 { font: 700 1.5rem/1 var(--caption); text-transform: uppercase; letter-spacing: .04em; }
.cal-head button { background: var(--perspex-2); color: var(--ink); border: 1px solid var(--line); border-radius: 99px; width: 2.4rem; height: 2.4rem; cursor: pointer; font-size: 1.1rem; }
.cal-head button:hover { background: var(--gold); color: var(--ground); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-grid .dow { font: 600 .8rem/1 var(--caption); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: .3rem .2rem; text-align: center; }
.cal-day {
  min-height: 4.6rem; background: var(--perspex-2); border-radius: 3px; padding: .3rem .35rem;
  font: 500 .85rem/1 var(--mono); color: var(--muted); display: grid; align-content: start; gap: .25rem; min-width: 0;
}
.cal-day.out { background: transparent; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--orange); color: var(--ink); }
.cal-day a {
  display: block; background: var(--gold); color: var(--ground); text-decoration: none; border-radius: 2px;
  font: 700 .78rem/1.15 var(--caption); text-transform: uppercase; padding: .2rem .25rem; overflow-wrap: anywhere;
}
.cal-day a.cancelled { background: var(--muted); text-decoration: line-through; }
.cal-day a:hover { background: var(--orange); }
@media (max-width: 560px) { .cal-day { min-height: 3.2rem; } .cal-day a { font-size: 0; height: .5rem; padding: 0; } }
.subscribe { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.subscribe code { font: 500 .85rem/1.4 var(--mono); color: var(--muted); overflow-wrap: anywhere; }

.two-up { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .two-up { grid-template-columns: minmax(0, 1fr); } }

/* ── Repertoire: a compilation tracklist ──────────────────────────────────── */
.hits { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.hits .big { font: 400 var(--step-3)/1 var(--display); color: var(--gold); text-shadow: .05em .05em 0 var(--red); }
.hits .claim { font: 700 var(--step-1)/1.1 var(--caption); text-transform: uppercase; letter-spacing: .04em; }
.filters { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; justify-content: space-between; margin: 1.6rem 0 0; border-bottom: 2px solid var(--gold); }
.search { display: grid; gap: .25rem; padding-bottom: .5rem; }
.search label { font: 600 .8rem/1 var(--caption); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.search input {
  font: 400 1rem/1.2 var(--body); color: var(--ink); background: var(--perspex-2); border: 1px solid var(--line);
  border-radius: 4px; padding: .55rem .7rem; width: min(18rem, 100%);
}
.sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); margin-top: 1.4rem; }
@media (max-width: 760px) { .sides { grid-template-columns: minmax(0, 1fr); } }
.side-label { font: 700 1rem/1 var(--caption); letter-spacing: .2em; text-transform: uppercase; color: var(--orange); padding: .6rem 0; border-bottom: 1px solid var(--line); }
.tracks { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.track { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: .6rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px dotted var(--line); }
.track .no { font: 500 .85rem/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.track .t { font-weight: 600; overflow-wrap: anywhere; }
.track .a { color: var(--muted); font-size: .95rem; }
.track .y { font: 500 .85rem/1 var(--mono); color: var(--gold); font-variant-numeric: tabular-nums; }
.track .new { font: 700 .72rem/1 var(--caption); letter-spacing: .1em; text-transform: uppercase; color: var(--ground); background: var(--orange); padding: .15rem .35rem; border-radius: 2px; margin-left: .4rem; vertical-align: .15em; }
.fineprint { color: var(--muted); font-size: var(--step--1); margin-top: 1rem; }

/* ── Music ────────────────────────────────────────────────────────────────── */
.songs-play { list-style: none; margin: 0; padding: 0; display: grid; }
.play-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.play-row button.play {
  width: 3rem; height: 3rem; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle, var(--ground) 0 18%, var(--gold) 19% 22%, var(--ground) 23% 100%);
  box-shadow: inset 0 0 0 2px var(--line); color: var(--gold); display: grid; place-items: center;
}
.play-row button.play svg { width: 1.1rem; height: 1.1rem; fill: currentColor; background: var(--ground); border-radius: 50%; }
.play-row.playing button.play { animation: spin 1.8s linear infinite; background: radial-gradient(circle, var(--orange) 0 18%, var(--gold) 19% 22%, var(--ground) 23% 100%); }
.play-row .title { font: 700 1.2rem/1.15 var(--caption); text-transform: uppercase; overflow-wrap: anywhere; }
.play-row .sub { color: var(--muted); font-size: .92rem; }
.play-row .len { font: 500 .85rem/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.play-row.playing .title { color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }

.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--perspex-2); border-top: 3px solid var(--gold);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -10px 30px #0008;
}
.player .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding-block: .6rem; }
.player .now { min-width: 0; }
.player .now b { display: block; font: 700 1.05rem/1.1 var(--caption); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .now span { font: 500 .8rem/1 var(--mono); color: var(--muted); }
.player input[type=range] { width: 100%; accent-color: var(--orange); }
.player .controls { display: flex; gap: .35rem; }
.player .controls button { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: var(--gold); color: var(--ground); cursor: pointer; display: grid; place-items: center; }
.player .controls button svg { width: 1rem; height: 1rem; fill: currentColor; }
body.has-player { padding-bottom: 6rem; }

/* ── Posters ──────────────────────────────────────────────────────────────── */
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 1.6rem; }
.poster { display: grid; gap: .7rem; align-content: start; }
.poster a.art { display: block; background: var(--perspex-2); border-radius: 3px; overflow: hidden; box-shadow: 0 12px 30px #0007; transition: transform .25s ease; }
.poster a.art:hover { transform: translateY(-4px) rotate(-.6deg); }
.poster img { display: block; width: 100%; height: auto; }
.poster h3 { font: 700 1.15rem/1.15 var(--caption); text-transform: uppercase; }
.poster .tools { display: flex; flex-wrap: wrap; gap: .4rem; }
.copied { font: 600 .85rem/1 var(--caption); color: var(--gold); letter-spacing: .08em; text-transform: uppercase; align-self: center; }

/* ── About & footer ───────────────────────────────────────────────────────── */
.about p { font-size: var(--step-1); line-height: 1.5; max-width: 38rem; }
.about .contact { margin-top: 1.4rem; display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.site-foot { background: var(--perspex); }
.site-foot .wrap { padding-block: 2rem 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; color: var(--muted); font-size: var(--step--1); }
.site-foot nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--gold); }
.catno { font: 500 .8rem/1 var(--mono); letter-spacing: .06em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
