:root {
  color-scheme: dark;
  --black: #000;
  --panel: #0b0b0b;
  --line: #1e1e1e;
  --white: #f2f2f2;
  --grey: #8c8c8c;
  --dim: #4a4a4a;
  --lime: #d4ff00;
  --wide: "Archivo", "Arial Black", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: max(16px, 5.5vw);
}

* { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(60rem 40rem at 100% 0%, rgba(212, 255, 0, 0.06), transparent 70%) no-repeat, var(--black);
  color: var(--white);
  font: 400 1rem/1.6 var(--wide);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 1px solid var(--lime); outline-offset: 3px; }
button { font: inherit; color: inherit; }

.kicker, .status, .signal, .genres, .filter, .terminal-head, .copy, .footer, .code, .tag, .dur, .num, .placeholder {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kicker { margin: 0; color: var(--lime); display: flex; align-items: center; gap: 1rem; }
.hero .kicker::after { content: ""; width: 2.5rem; height: 1px; background: var(--lime); }
.accent { color: var(--lime); }

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  gap: 1rem 2.5rem;
  flex-wrap: wrap;
  padding: calc(env(safe-area-inset-top, 0px) + 1.4rem) var(--gutter) 1.4rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  margin-right: auto;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.95rem;
}
.status { margin: 0; color: var(--lime); display: flex; align-items: center; gap: 0.6rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.signal { margin: 0; color: var(--grey); min-width: 14ch; font-variant-numeric: tabular-nums; }
.signal.on { color: var(--white); }

/* Hero */
main { padding-inline: var(--gutter); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 3rem clamp(2rem, 6vw, 6rem);
  align-items: start;
  padding-block: clamp(4rem, 9vw, 7rem);
}
.hero-main { container-type: inline-size; }
.wordmark {
  margin: 1.75rem 0 2rem;
  font-weight: 900;
  font-stretch: 125%;
  font-size: min(12.5cqi, 7rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.genres { margin: 0; color: var(--white); display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.genres i { font-style: normal; color: var(--lime); }
.hero-side { padding-top: 1.5rem; }
.bio { margin: 0 0 2.5rem; color: var(--grey); font-size: 1.05rem; line-height: 1.7; max-width: 46ch; }

.terminal { border: 1px solid var(--line); background: var(--panel); padding: 1.5rem; }
.terminal-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--grey); font-size: 0.65rem; }
.terminal-body { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.1rem; }
.mail { font-weight: 700; font-stretch: 110%; font-size: clamp(0.95rem, 1.6vw, 1.2rem); overflow-wrap: anywhere; user-select: all; }
.copy {
  border: 0;
  background: var(--lime);
  color: var(--black);
  font-weight: 500;
  font-size: 0.65rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
}
.copy:hover { background: var(--white); }

/* Section heads */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 2px solid var(--lime);
}
h2 {
  margin: 0.75rem 0 0;
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
}
.filter { margin: 0; color: var(--grey); text-decoration: none; }
a.filter:hover { color: var(--lime); }

/* Track list */
.catalog { padding-bottom: clamp(4rem, 9vw, 7rem); }
.tracks { list-style: none; margin: 0; padding: 0; }
.placeholder { padding: 2rem 0; color: var(--grey); }
.track {
  display: grid;
  grid-template-columns: 2.5rem 2.75rem minmax(0, 1fr) 11rem 10rem 4rem;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.num { color: var(--dim); }
.play {
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--white);
  background: transparent;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.play svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.play .i-pause { display: none; }
.play:hover { border-color: var(--lime); color: var(--lime); }
.title { margin: 0; font-weight: 800; font-stretch: 115%; font-size: clamp(1rem, 1.6vw, 1.3rem); line-height: 1.2; overflow-wrap: anywhere; }
.title a { text-decoration: none; }
.title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.code { margin: 0.35rem 0 0; color: var(--grey); font-size: 0.66rem; }
.tag {
  justify-self: start;
  max-width: 100%;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--dim);
  color: var(--grey);
  font-size: 0.62rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wave { width: 100%; height: 2.25rem; display: block; cursor: pointer; }
.dur { color: var(--grey); text-align: right; font-size: 0.8rem; font-variant-numeric: tabular-nums; }

.track.current .play { background: var(--lime); border-color: var(--lime); color: var(--black); }
.track.current .title { color: var(--lime); }
.track.current .tag { border-color: var(--lime); color: var(--lime); }
.track.current .num { color: var(--lime); }
.track.current.playing .i-play { display: none; }
.track.current.playing .i-pause { display: block; }

/* The SoundCloud widget is the audio engine; it only becomes visible if the custom player fails. */
.sc-widget { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; }
body.fallback .sc-widget { position: static; width: 100%; height: 450px; opacity: 1; pointer-events: auto; margin-top: 2rem; }
body.fallback .tracks { display: none; }

/* Feed */
.feed { padding-bottom: clamp(4rem, 9vw, 7rem); }
.yt-frame { margin-top: 2.5rem; aspect-ratio: 16 / 9; max-width: 100%; background: var(--panel); border: 1px solid var(--line); }
.yt-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 2.25rem var(--gutter) calc(2.25rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  color: var(--grey);
  font-size: 0.66rem;
}
.footer p { margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 2.25rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--lime); }

@media (max-width: 1100px) {
  .track { grid-template-columns: 2.75rem minmax(0, 1fr) 9rem 4rem; gap: 1rem 1.25rem; }
  .num, .tag { display: none; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { padding-top: 0; }
  .signal { display: none; }
}
@media (max-width: 560px) {
  .track { grid-template-columns: 2.75rem minmax(0, 1fr) auto; row-gap: 0.9rem; padding: 1.25rem 0; }
  .wave { display: none; }
  .track.current .wave { display: block; grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
  .play { transition: none; }
}
