@property --void { syntax: "<color>"; inherits: true; initial-value: hsl(192 16% 5%); }
@property --void-deep { syntax: "<color>"; inherits: true; initial-value: hsl(192 20% 3%); }
@property --haze { syntax: "<color>"; inherits: true; initial-value: hsl(192 37% 16%); }
@property --haze-alt { syntax: "<color>"; inherits: true; initial-value: hsl(220 34% 14%); }
@property --bloom { syntax: "<color>"; inherits: true; initial-value: hsl(192 40% 58% / 0.18); }
@property --bloom-alt { syntax: "<color>"; inherits: true; initial-value: hsl(220 40% 56% / 0.15); }
@property --accent { syntax: "<color>"; inherits: true; initial-value: hsl(192 40% 68%); }
@property --accent-soft { syntax: "<color>"; inherits: true; initial-value: hsl(192 18% 30%); }
:root {
  color-scheme: dark;
  --ink: hsl(192 14% 93%);
  --muted: hsl(192 12% 74%);
  --dim: hsl(192 10% 64%);
  --void: hsl(192 16% 5%);
  --void-deep: hsl(192 20% 3%);
  --rule: rgba(233, 238, 243, 0.1);
  --rule-strong: rgba(233, 238, 243, 0.2);
  --accent: hsl(192 40% 68%);
  --accent-soft: hsl(192 18% 30%);
  --bloom: hsl(192 40% 58% / 0.18);
  --bloom-alt: hsl(220 40% 56% / 0.15);
  --haze: hsl(192 37% 16%);
  --haze-alt: hsl(220 34% 14%);
  --alert: #e2948c;
  --caution: #e0c48d;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: clamp(1.1rem, 4vw, 3.5rem);
  --label: 0.68rem;
  font-family: var(--sans);
  background: var(--void-deep);
  transition:
    --void 1200ms ease,
    --void-deep 1200ms ease,
    --haze 1200ms ease,
    --haze-alt 1200ms ease,
    --bloom 1200ms ease,
    --bloom-alt 1200ms ease,
    --accent 1200ms ease,
    --accent-soft 1200ms ease;
}
* { box-sizing: border-box; }
html {
  min-height: 100%;
  background: var(--void-deep);
  overflow-x: clip;
}
body {
  min-height: 100svh;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: linear-gradient(168deg, var(--void) 0%, var(--void-deep) 62%, var(--void) 100%);
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body::before {
  z-index: 2;
  background: radial-gradient(115% 85% at 50% 45%, transparent 42%, rgba(0, 0, 0, 0.6) 100%);
}
body::after {
  z-index: 1;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
}
.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.field > * {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}
.wash {
  width: 120vmax;
  height: 120vmax;
}
.wash-primary {
  top: -30%;
  left: -28%;
  background: radial-gradient(closest-side, var(--haze), transparent);
  animation: wander-primary 161s ease-in-out infinite alternate;
}
.wash-secondary {
  top: -18%;
  left: 18%;
  background: radial-gradient(closest-side, var(--haze-alt), transparent);
  animation: wander-secondary 223s ease-in-out infinite alternate;
}
.bloom {
  width: 58vmax;
  height: 58vmax;
  opacity: 0;
  animation-duration: 91s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.bloom-a {
  top: -24%;
  left: -18%;
  background: radial-gradient(closest-side, var(--bloom), transparent);
  animation-name: bloom-a;
}
.bloom-b {
  top: 22%;
  left: 44%;
  background: radial-gradient(closest-side, var(--bloom-alt), transparent);
  animation-name: bloom-b;
  animation-duration: 127s;
  animation-delay: -31s;
}
.bloom-c {
  top: 48%;
  left: 8%;
  background: radial-gradient(closest-side, var(--bloom), transparent);
  animation-name: bloom-c;
  animation-duration: 149s;
  animation-delay: -73s;
}
button, input { font: inherit; }
a { color: inherit; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.station-shell {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "spine stage"
    "spine readout";
  gap: 0 var(--gutter);
  width: min(100%, 96rem);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(1.2rem, 3.5vh, 2.6rem) var(--gutter) clamp(1rem, 3vh, 1.8rem);
}
.masthead {
  grid-area: spine;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.2rem;
}
.wordmark {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 500 var(--label) / 1 var(--mono);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 300ms ease;
}
.about-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 400 var(--label) / 1 var(--mono);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  white-space: nowrap;
  transition: color 300ms ease;
}
.about-link:hover, .back-link:hover { color: var(--ink); }
.stage {
  grid-area: stage;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  grid-template-areas: "specimen program";
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding-block: clamp(1rem, 4vh, 3rem);
}
.stage {
  --tilt-base: 0deg;
  --tilt: var(--tilt-base);
  --shift-x: 0%;
  --shift-y: 0%;
  --scale: 1;
}
.stage[data-composition="0"] { --tilt-base: -1.9deg; --shift-x: -2%; --shift-y: -3%; --scale: 0.97; }
.stage[data-composition="1"] { --tilt-base: 2.4deg; --shift-x: 3%; --shift-y: -2%; --scale: 1.03; }
.stage[data-composition="2"] { --tilt-base: -0.9deg; --shift-x: 1%; --shift-y: 4%; --scale: 0.94; }
.stage[data-composition="3"] { --tilt-base: 3.1deg; --shift-x: -3%; --shift-y: 2%; --scale: 1.05; }
.stage[data-composition="4"] { --tilt-base: 1.2deg; --shift-x: 4%; --shift-y: 3%; --scale: 0.91; }
.stage[data-composition="5"] { --tilt-base: -2.8deg; --shift-x: -4%; --shift-y: -4%; --scale: 1.07; }
.stage[data-composition="6"] { --tilt-base: 0.7deg; --shift-x: 2%; --shift-y: -4%; --scale: 0.95; }
.stage[data-composition="7"] { --tilt-base: -3.4deg; --shift-x: -1%; --shift-y: 3%; --scale: 1.02; }
.specimen {
  grid-area: specimen;
  justify-self: center;
  width: min(100%, clamp(14rem, 32vw, 32rem));
  transform: translate(var(--shift-x), var(--shift-y)) rotate(var(--tilt)) scale(var(--scale));
  transition: transform 1400ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.plate {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
#artwork,
#artwork-outgoing {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1100ms ease;
}
#artwork {
  z-index: 1;
  opacity: 0;
}
#artwork[data-visible="true"] { opacity: 1; }
#artwork-outgoing {
  z-index: 2;
  opacity: 0;
}
#artwork-outgoing[data-visible="true"] {
  opacity: 1;
  animation: plate-out 1100ms ease forwards;
}
#artwork[hidden],
#artwork-outgoing[hidden] { display: none; }
.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 3rem 0 rgba(0, 0, 0, 0.55);
}
.plate:has(#artwork[hidden])::after { display: none; }
.specimen-glow {
  position: absolute;
  inset: -30%;
  z-index: -1;
  opacity: 0.42;
  background:
    radial-gradient(circle at 42% 46%, var(--bloom), transparent 60%),
    radial-gradient(circle at 64% 62%, var(--bloom-alt), transparent 64%);
  filter: blur(30px);
  transition: opacity 900ms ease;
  pointer-events: none;
}
.stage[data-playing="true"] .specimen-glow { opacity: 0.72; animation: breathe 6s ease-in-out infinite; }
.artwork-placeholder[hidden] { display: none; }
.artwork-placeholder {
  display: grid;
  place-content: center;
  gap: 0.9rem;
  justify-items: center;
  width: 100%;
  height: 100%;
  border: 1px dashed var(--rule-strong);
  color: var(--dim);
}
.artwork-placeholder::before {
  content: "";
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  opacity: 0.7;
}
.artwork-placeholder::after {
  content: "no plate";
  font: 400 var(--label) / 1 var(--mono);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.program {
  grid-area: program;
  min-width: 0;
  padding-top: clamp(1rem, 2.5vh, 1.6rem);
  border-top: 1px solid var(--rule);
}
#track-title {
  margin: 0;
  font: 400 clamp(2.5rem, 6.4vw, 5.4rem) / 0.94 var(--serif);
  letter-spacing: -0.035em;
  text-transform: lowercase;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.release-title {
  font: 400 clamp(0.74rem, 1vw, 0.82rem) / 1.6 var(--mono);
  letter-spacing: 0.2em;
  text-transform: lowercase;
}
.plate-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin: 1.35rem 0 0;
}
.release-title { color: var(--dim); }
.bandcamp-link {
  display: inline-block;
  margin-top: 1.6rem;
  padding-bottom: 0.24rem;
  border-bottom: 1px solid var(--accent-soft);
  color: var(--accent);
  font: 400 var(--label) / 1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 300ms ease, color 300ms ease;
}
.bandcamp-link[hidden] { display: none; }
.bandcamp-link:hover { border-bottom-color: var(--accent); }
.link-mark {
  width: 0.6em;
  height: 0.6em;
  margin-left: 0.5em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 2.2rem);
  margin-top: clamp(1.8rem, 4vh, 3rem);
}
.playback-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.7rem;
  height: 3.7rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  color: var(--accent);
  cursor: pointer;
  transition: border-color 300ms ease, background 300ms ease, color 300ms ease, transform 200ms ease;
}
.playback-toggle:hover:not(:disabled) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  transform: scale(1.04);
}
.playback-toggle:active:not(:disabled) { transform: scale(0.97); }
.playback-toggle:disabled { cursor: not-allowed; opacity: 0.4; }
.play-icon {
  width: 0;
  height: 0;
  margin-left: 0.18rem;
  border-top: 0.32rem solid transparent;
  border-bottom: 0.32rem solid transparent;
  border-left: 0.52rem solid currentColor;
}
.is-playing .play-icon {
  width: 0.5rem;
  height: 0.66rem;
  margin-left: 0;
  border: 0;
  border-inline: 0.16rem solid currentColor;
}
.playback-toggle:focus-visible,
a:focus-visible,
#volume:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 0.3rem;
}
.volume-control {
  display: grid;
  gap: 0.15rem;
  color: var(--dim);
  font: 400 var(--label) / 1 var(--mono);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.volume-control[hidden] { display: none; }
#volume {
  -webkit-appearance: none;
  appearance: none;
  width: min(100%, 11rem);
  height: 2.75rem;
  margin: 0;
  background-color: transparent;
  background-image: linear-gradient(var(--rule-strong), var(--rule-strong));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 50% 50%;
  cursor: pointer;
}
#volume::-webkit-slider-runnable-track { height: 1px; background: transparent; }
#volume::-moz-range-track { height: 1px; background: transparent; }
#volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0.42rem;
  height: 0.9rem;
  margin-top: -0.44rem;
  border: 0;
  border-radius: 0;
  background: var(--accent);
}
#volume::-moz-range-thumb {
  width: 0.42rem;
  height: 0.9rem;
  border: 0;
  border-radius: 0;
  background: var(--accent);
}
#player { display: none; }
.readout {
  grid-area: readout;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem clamp(1rem, 3vw, 2.4rem);
  padding-top: clamp(0.9rem, 2.5vh, 1.4rem);
  border-top: 1px solid var(--rule);
  color: var(--dim);
  font: 400 var(--label) / 1.6 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.status { margin: 0; color: var(--muted); transition: color 400ms ease; }
.listeners { margin: 0; }
.status::before {
  content: "";
  display: inline-block;
  width: 0.36rem;
  height: 0.36rem;
  margin-right: 0.62rem;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0.08em;
}
::selection {
  background: color-mix(in srgb, var(--accent) 32%, transparent);
  color: var(--ink);
}
html { scrollbar-color: var(--accent-soft) transparent; }
::-webkit-scrollbar { width: 0.7rem; height: 0.7rem; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--accent-soft);
  border: 0.22rem solid transparent;
  background-clip: content-box;
  border-radius: 0.4rem;
}
.status[data-kind="live"], .status[data-kind="ready"] { color: var(--accent); }
.status[data-kind="reconnecting"], .status[data-kind="connecting"] { color: var(--caution); }
.status[data-kind="error"],
.status[data-kind="unsupported"],
.status[data-kind="unavailable"],
.status[data-kind="station-full"],
.status[data-kind="network-limit"] { color: var(--alert); }
.about-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "spine about";
  gap: var(--gutter);
  width: min(100%, 96rem);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(1.2rem, 3.5vh, 2.6rem) var(--gutter) clamp(2rem, 6vh, 4rem);
}
.about-shell .masthead { grid-area: spine; }
.about-card {
  grid-area: about;
  align-self: center;
  width: min(100%, 44rem);
  padding-block: clamp(1rem, 4vh, 3rem);
}
.about-card h1 {
  margin: 0.9rem 0 clamp(1.6rem, 4vh, 2.6rem);
  font: 400 clamp(2.4rem, 6vw, 4.4rem) / 0.98 var(--serif);
  letter-spacing: -0.035em;
  text-transform: lowercase;
}
.about-card p {
  max-width: 38rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.8;
}
.about-card strong { color: var(--ink); font-weight: 500; }
.about-panel {
  width: min(calc(100% - 2 * var(--gutter)), 40rem);
  max-height: min(86svh, 44rem);
  padding: clamp(1.5rem, 4vw, 2.8rem);
  border: 1px solid var(--rule-strong);
  background: color-mix(in srgb, var(--void-deep) 92%, transparent);
  color: var(--muted);
  font-family: var(--sans);
}
.about-panel::backdrop {
  background: rgba(2, 3, 4, 0.74);
}
.about-panel h2 {
  margin: 0 0 clamp(1.2rem, 3vh, 1.8rem);
  outline: none;
  -webkit-tap-highlight-color: transparent;
  font: 400 clamp(1.9rem, 4.5vw, 3rem) / 1 var(--serif);
  letter-spacing: -0.03em;
  text-transform: lowercase;
  color: var(--ink);
}
.about-panel p {
  max-width: 38rem;
  margin: 0 0 1.3rem;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.8;
}
.about-panel strong { color: var(--ink); font-weight: 500; }
.about-close {
  margin-top: 0.6rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  color: var(--accent);
  font: 400 var(--label) / 1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 300ms ease, background 300ms ease;
}
.about-close:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.back-link {
  display: inline-block;
  padding-bottom: 0.24rem;
  border-bottom: 1px solid var(--accent-soft);
  color: var(--accent);
  font: 400 var(--label) / 1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}
@keyframes breathe {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 1; }
}
@keyframes plate-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes wander-primary {
  0% { transform: translate3d(-14%, -10%, 0) scale(1.02); }
  22% { transform: translate3d(6%, -14%, 0) scale(0.94); }
  48% { transform: translate3d(14%, 2%, 0) scale(1.08); }
  74% { transform: translate3d(-4%, 12%, 0) scale(0.98); }
  100% { transform: translate3d(-12%, 6%, 0) scale(1.04); }
}
@keyframes wander-secondary {
  0% { transform: translate3d(10%, -6%, 0) scale(0.96); }
  26% { transform: translate3d(-8%, 8%, 0) scale(1.1); }
  58% { transform: translate3d(-14%, -12%, 0) scale(1); }
  82% { transform: translate3d(4%, -4%, 0) scale(1.06); }
  100% { transform: translate3d(12%, 10%, 0) scale(0.92); }
}
@keyframes bloom-a {
  0%, 54%, 100% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.72); }
  62% { opacity: 0.85; }
  74% { opacity: 0.2; transform: translate3d(9%, -7%, 0) scale(1.18); }
  86% { opacity: 0; transform: translate3d(14%, -12%, 0) scale(1.3); }
}
@keyframes bloom-b {
  0%, 30%, 78%, 100% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.8); }
  40% { opacity: 0.7; }
  56% { opacity: 0.12; transform: translate3d(-11%, 9%, 0) scale(1.24); }
  68% { opacity: 0; transform: translate3d(-16%, 14%, 0) scale(1.34); }
}
@keyframes bloom-c {
  0%, 12%, 62%, 100% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.76); }
  22% { opacity: 0.6; }
  40% { opacity: 0.14; transform: translate3d(12%, 11%, 0) scale(1.2); }
  52% { opacity: 0; transform: translate3d(18%, 16%, 0) scale(1.32); }
}
@media (max-width: 860px) {
  .station-shell,
  .about-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "spine"
      "stage"
      "readout";
    min-height: 100svh;
    gap: 0;
    padding-top: 1.15rem;
  }
  .masthead {
    grid-area: spine;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: clamp(1.4rem, 5vh, 2.5rem);
  }
  .wordmark, .about-link { writing-mode: horizontal-tb; transform: none; }
  .stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "specimen"
      "program";
    gap: clamp(1.8rem, 6vh, 2.8rem);
    align-content: start;
    padding-block: 0;
  }
  .specimen {
    width: min(100%, 19rem);
    --shift-x: 0%;
    --shift-y: 0%;
    --scale: 1;
    --tilt: calc(var(--tilt-base) * 0.45);
  }
  .program { text-align: center; }
  #track-title { font-size: clamp(2.4rem, 11.5vw, 3.6rem); }
  .plate-meta { justify-content: center; }
  .controls {
    justify-content: center;
    gap: 1.2rem;
    margin-top: clamp(1.6rem, 4vh, 2.2rem);
  }
  .volume-control { justify-items: center; text-align: center; }
  #volume { width: min(100%, 9rem); }
  .readout {
    margin-top: clamp(1.6rem, 5vh, 2.5rem);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .about-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "spine"
      "about";
  }
  .about-card { align-self: start; }
}
@media (max-width: 380px) {
  .eyebrow { letter-spacing: 0.2em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  #artwork-outgoing[data-visible="true"] { opacity: 0; }
}
