/* bngee.music: the mainstage screen. Plain CSS, no build step. */

@font-face { font-family: "Bungee"; src: url("../fonts/bungee-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --led: #050608;
  --white: #e9f0ff;
  --amber: #ffb340;
  --haze: #8d9bb5;      /* secondary text: tinted from the wall's light, 7.6:1 on the ground */
  --haze-2: #5b6b85;    /* rules and resting marks */
  --sign: "Bungee", sans-serif;
  --vinyl: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --rail: 1px solid var(--haze-2);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--led);
  color: var(--white);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--amber); color: var(--led); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
a { color: inherit; text-decoration-color: var(--haze-2); text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--amber); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { caret-color: var(--amber); accent-color: var(--amber); }

/* Scrollbars: the wall's own */
html { scrollbar-color: var(--haze-2) var(--led); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--led); }
::-webkit-scrollbar-thumb { background: var(--haze-2); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--amber); }

.skip { position: absolute; left: var(--gutter); top: -3rem; background: var(--amber); color: var(--led); padding: .4em .8em; font-family: var(--vinyl); text-transform: uppercase; letter-spacing: .06em; }
.skip:focus { top: 1rem; z-index: 10; }

/* Stage-left signage */
.signage {
  position: absolute; z-index: 3; left: var(--gutter); top: 20px;
  display: flex; align-items: center; gap: 1.4em; flex-wrap: wrap;
  font-family: var(--sign); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase;
}
.signage a { text-decoration: none; color: var(--haze); transition: color .25s; }
.signage a:hover, .signage a[aria-current] { color: var(--white); }
.signage .mark { display: inline-flex; align-items: center; gap: .55em; color: var(--white); font-size: 1.125rem; letter-spacing: .04em; }
.signage .face { width: 2.1em; height: auto; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.signage a[aria-current]::after { content: ""; display: inline-block; width: .5em; height: .5em; margin-left: .55em; background: var(--amber); vertical-align: .05em; }

/* The wall */
.wall { position: sticky; top: calc(40svh - 100svh); z-index: 2; height: 100svh; min-height: 620px; overflow: hidden; background: var(--led); }
@media (min-width: 900px) and (min-height: 700px) { .wall { height: 86svh; top: calc(40svh - 86svh); } }
main { position: relative; z-index: 1; background: var(--led); }
.block[id] { scroll-margin-top: 40svh; }
.wall.short { height: 56svh; min-height: 420px; top: calc(40svh - 56svh); }
.wall canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wall .haze { filter: blur(28px) saturate(1.1); opacity: .55; transform: scale(1.08); animation: breathe 7s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: .42; } to { opacity: .62; } }
.wall-title { position: absolute; left: -9999px; }
/* The stage: who this is, in lit lettering on the wall, with the face beside it */
.stage { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); top: 88px; max-width: 48ch; display: grid; gap: 10px; }
.stage .genre { margin: 0; font-family: var(--vinyl); font-weight: 600; font-size: .9375rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.stage .name { margin: 0; font-family: var(--sign); font-size: clamp(3.25rem, 7.5vw, 7rem); line-height: .92; letter-spacing: .01em; color: var(--white); }
.stage .bio { margin: 6px 0 0; font-size: 1.0625rem; line-height: 1.5; color: var(--white); max-width: 46ch; }
.stage .bio em { font-style: normal; color: var(--amber); }
.stage .follow { margin-top: 8px; gap: 10px 26px; font-size: 1rem; }
.stage .follow a { color: var(--haze); }
.stage .follow a:hover, .stage .follow a:focus-visible { color: var(--white); }
.stage > * { animation: light .6s ease-out both; }
.stage > :nth-child(2) { animation-delay: .25s; } .stage > :nth-child(3) { animation-delay: .5s; } .stage > :nth-child(4) { animation-delay: .7s; }
@keyframes light { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Lower third */
.lower {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) 22px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px 28px;
  font-family: var(--vinyl); letter-spacing: .05em;
}
.peek { grid-column: 1 / -1; text-transform: uppercase; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(141,155,181,.35); padding-top: 10px; margin-top: 4px; font-weight: 600; font-size: .875rem; color: var(--haze); text-decoration: none; }
.peek:hover, .peek:focus-visible { color: var(--white); border-top-color: var(--amber); }
.peek svg { width: 1em; height: 1em; vertical-align: -.15em; }
.now { display: grid; gap: 4px; min-width: 0; font-weight: 500; font-size: .875rem; color: var(--haze); max-width: 56ch; }
.now .label { text-transform: uppercase; font-weight: 700; color: var(--amber); font-size: .8125rem; }
.now .title { color: var(--white); font-size: clamp(1.375rem, 2.4vw, 2rem); line-height: 1.1; font-weight: 700; letter-spacing: .02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance; }
.now .scrub { position: relative; height: 2px; background: var(--haze-2); margin-top: 6px; }
.now .scrub i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--amber); }
.now[hidden] { display: none; }
.lower.empty .transport, .lower.empty .now { display: none; }
.transport { display: flex; align-items: center; gap: 10px; }
.prev, .next { width: 48px; height: 64px; display: grid; place-items: center; color: var(--haze); transition: color .2s; }
.prev:hover, .next:hover, .prev:focus-visible, .next:focus-visible { color: var(--white); }
.prev svg, .next svg { width: 22px; height: 22px; }
.play {
  width: 64px; height: 64px; display: grid; place-items: center;
  background: var(--white); color: var(--led);
}
.play:hover, .play:focus-visible { background: var(--amber); }
.play { transition: background .2s, transform .2s; }
.play:active { transform: scale(.94); }
.play svg { width: 24px; height: 24px; display: block; }
.play .ic-pause { display: none; }
.play[aria-pressed="true"] .ic-play { display: none; }
.play[aria-pressed="true"] .ic-pause { display: block; }
.play.busy { animation: pulse .9s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: 1; } to { opacity: .55; } }
.vol { display: none; }
@media (min-width: 900px) { .vol { display: block; width: 110px; height: 2px; -webkit-appearance: none; appearance: none; background: var(--haze-2); } .vol::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; background: var(--white); border: 0; } .vol::-moz-range-thumb { width: 12px; height: 12px; background: var(--white); border: 0; border-radius: 0; } }

/* Sections */
main > section { padding: 0 var(--gutter); }
.block { border-top: var(--rail); padding-top: 18px; margin-top: 56px; }
.block.first { border-top: 0; margin-top: 0; padding-top: 28px; }
.block.first .block-head { position: absolute; left: -9999px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.block-head h2 { margin: 0; font-family: var(--sign); font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.block-head p { margin: 0; color: var(--haze); font-family: var(--vinyl); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.block-head a { color: var(--white); }

/* Timetable rail */
.rail { list-style: none; margin: 0; padding: 0; }
.year { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0 32px; border-top: var(--rail); padding: 18px 0 10px; }
.year > h3 { margin: 0; font-family: var(--vinyl); font-weight: 700; font-size: clamp(2.25rem, 6vw, 4rem); line-height: .9; letter-spacing: -.01em; color: var(--white); }
.year > h3 small { display: block; font-size: .75rem; letter-spacing: .12em; font-weight: 600; color: var(--haze); margin-top: 10px; }
.sets { list-style: none; margin: 0; padding: 0; }
.set { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr) auto auto; align-items: center; gap: 0 20px; padding: 10px 0; border-top: 1px solid rgba(141,155,181,.22); color: var(--haze); }
.set:first-child { border-top: 0; }
.dim { opacity: .18; transform: translateY(6px); transition: opacity .55s ease-out, transform .55s cubic-bezier(.2,.7,.2,1); }
.dim.lit { opacity: 1; transform: none; }
.set .date, .set .pick, .set .pick .with { transition: color .25s; }
.set .date { font-family: var(--vinyl); font-weight: 600; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.set .pick { display: flex; align-items: baseline; gap: .6em; min-width: 0; text-align: left; font-family: var(--vinyl); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.3; letter-spacing: .01em; text-transform: uppercase; color: var(--haze); }
.set .pick .with { font-family: var(--body); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .9375rem; color: var(--haze); }
.set .pick:hover, .set .pick:focus-visible { color: var(--white); }
.set .pick:hover .with, .set .pick:focus-visible .with { color: var(--white); }
.set[aria-current="true"] { color: var(--white); }
.set[aria-current="true"] .pick, .set[aria-current="true"] .pick .with { color: var(--white); }
.set[aria-current="true"] .date { color: var(--amber); }
.set .pick::before { content: ""; flex: none; width: .5em; height: .5em; margin-right: .2em; background: transparent; align-self: center; }
.set[aria-current="true"] .pick::before { background: var(--amber); }
.set[data-playing="true"] .pick::before { background: var(--amber); animation: pulse .7s ease-in-out infinite alternate; }
.stores { display: grid; grid-template-columns: repeat(4, 5.6rem); gap: 10px; font-family: var(--vinyl); font-weight: 600; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; }
.stores a { text-decoration: none; color: var(--haze); border-bottom: 1px solid var(--haze-2); padding-bottom: 2px; }
.stores a:hover, .stores a:focus-visible { color: var(--white); border-bottom-color: var(--amber); }
.stores .gap { visibility: hidden; }  /* the gap in the row: the release is not on that platform */
.set .len { font-family: var(--vinyl); font-size: .9375rem; letter-spacing: .06em; color: var(--haze); min-width: 3.2em; text-align: right; }
.set .note { grid-column: 2 / -1; font-size: .9375rem; color: var(--haze); margin: 2px 0 0; }

/* Afterhours (demos) */
.demos .set { grid-template-columns: 4.75rem minmax(0, 1fr) auto; }
.demos .set .pick { font-size: clamp(1.125rem, 2vw, 1.5rem); }
.lede { max-width: 62ch; color: var(--haze); margin: -8px 0 28px; }
.lede a { color: var(--white); }

/* Contact: a lit panel on the black, fields as rules, nothing boxed */
.contact { background: var(--led); color: var(--white); border: 0; border-top: 1px solid var(--amber); padding: 28px clamp(20px, 4vw, 40px) 24px; width: min(92vw, 520px); margin: auto; }
.contact::backdrop { background: rgba(5,6,8,.78); }
.contact .label { margin: 0 0 6px; font-family: var(--vinyl); font-weight: 700; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.contact h2 { margin: 0 0 8px; font-family: var(--sign); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1; text-transform: uppercase; }
.contact .hint { margin: 0 0 18px; color: var(--haze); font-size: .9375rem; }
.contact label { display: grid; gap: 6px; margin: 0 0 16px; font-family: var(--vinyl); font-weight: 600; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--haze); }
.contact input, .contact textarea { font: inherit; font-family: var(--body); font-size: 1.0625rem; letter-spacing: 0; text-transform: none; color: var(--white); background: transparent; border: 0; border-bottom: 1px solid var(--haze-2); padding: 6px 0; border-radius: 0; resize: vertical; }
.contact input:focus-visible, .contact textarea:focus-visible { outline: none; border-bottom-color: var(--amber); }
.contact .hp { position: absolute; left: -9999px; }
.contact .status { margin: 0 0 12px; min-height: 1.4em; color: var(--amber); font-family: var(--vinyl); font-weight: 600; letter-spacing: .04em; }
.contact .status.err { color: var(--white); }
.contact .status a { color: var(--amber); }
.contact .actions { display: flex; gap: 10px; align-items: center; }
.contact .send { background: var(--white); color: var(--led); font-family: var(--vinyl); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 12px 22px; transition: background .2s; }
.contact .send:hover, .contact .send:focus-visible { background: var(--amber); }
.contact .send[disabled] { opacity: .5; cursor: default; }
.contact .close { font-family: var(--vinyl); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--haze); padding: 12px 14px; }
.contact .close:hover, .contact .close:focus-visible { color: var(--white); }

/* Follow strip and foot */
.follow { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 0; padding: 0; list-style: none; font-family: var(--vinyl); font-weight: 600; font-size: 1.125rem; letter-spacing: .06em; text-transform: uppercase; }
.follow a { text-decoration: none; display: inline-flex; align-items: center; gap: .5em; color: var(--haze); }
.follow a:hover, .follow a:focus-visible { color: var(--white); }
.follow svg { width: 1.1em; height: 1.1em; }
footer { padding: 72px var(--gutter) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; color: var(--haze); font-size: .9375rem; }
footer a { color: var(--white); }
footer p { margin: 0; }

.notfound { min-height: 40svh; display: grid; align-content: center; gap: 12px; padding: 56px var(--gutter); }
.notfound h1 { font-family: var(--sign); font-size: clamp(2rem, 6vw, 4rem); margin: 0; text-transform: uppercase; line-height: 1; }
.notfound p { color: var(--haze); margin: 0; max-width: 50ch; }

/* narrow desktops and tablets: four store columns no longer fit beside the title, so the stores drop under it */
@media (max-width: 1180px) {
  .set { grid-template-columns: 4.75rem minmax(0, 1fr) auto; }
  .set .date { grid-column: 1; grid-row: 1; }
  .set .pick { grid-column: 2; grid-row: 1; }
  .set .len { grid-column: 3; grid-row: 1; }
  .stores { grid-column: 2 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; }
  .set .note { grid-column: 2 / -1; grid-row: 3; }
}
@media (max-width: 760px) {
  .wall { min-height: 760px; }
  .signage { gap: 1em; font-size: .75rem; }
  .stage { top: 72px; gap: 6px; }
  .stage .name { font-size: clamp(3rem, 16vw, 4rem); }
  .stage .bio { font-size: .9rem; max-width: 100%; line-height: 1.38; }
  .stage .genre { font-size: .8125rem; }
  .stage .follow { gap: 6px 18px; font-size: .9375rem; }
  .lower { grid-template-columns: 1fr; padding-bottom: 18px; }
  .transport { justify-content: flex-start; }
  .signage .mark { font-size: 1rem; }
  .year { grid-template-columns: 1fr; gap: 10px; }
  .year > h3 { font-size: 2rem; display: flex; align-items: baseline; gap: 14px; }
  .year > h3 small { margin: 0; }
  .set { grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: 2px 12px; }
  .set .date { font-size: .8125rem; grid-column: 1; grid-row: 1; }
  .set .pick { grid-column: 2; grid-row: 1; }
  .set .pick::before { display: none; }   /* the amber date carries the cued state on a phone */
  .set .len { font-size: .8125rem; min-width: 0; grid-column: 3; grid-row: 1; }
  .stores { grid-column: 2 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 2px; }
  .set .note { grid-column: 2 / -1; grid-row: 3; }
  .demos .set { grid-template-columns: 3.5rem minmax(0, 1fr) auto; }
  .set .pick { font-size: 1.125rem; flex-wrap: wrap; gap: .3em .6em; }
}

@media (prefers-reduced-motion: reduce) {
  .play.busy, .set[data-playing="true"] .pick::before, .wall .haze, .stage > * { animation: none; }
  .dim { opacity: 1; transform: none; transition: none; }
}

/* short desktop windows: the stage text scales down so it never meets the lower third */
@media (min-width: 900px) and (max-height: 820px) { .stage { top: 72px; gap: 6px; } .stage .name { font-size: clamp(2.75rem, 5.5vh, 4rem); } .stage .bio { font-size: .9375rem; line-height: 1.4; max-width: 50ch; } .stage .follow { font-size: .9375rem; gap: 6px 20px; } .lower { padding-bottom: 14px; } .play { width: 56px; height: 56px; } .prev, .next { height: 56px; } }
