/* music.subch.us - vaporwave. Near-black grounds (his main monitor is a TV that turns
   saturated dark blue into electric blue, so blue only lives in faint glows and the
   artwork), hot pink / cyan / purple / pale yellow as the accents, a striped sun for a
   mark instead of the s. monogram (his call, 2026-09-18). */
:root {
  --ground: #07060c;
  --panel: #0d0b15;
  --raised: #17132a;
  --line: #2a2340;
  --line-soft: #151127;
  --text: #f6ecff;
  --muted: #b9a9d6;
  --faint: #6f6390;
  --pink: #ff71ce;
  --pink-deep: #ff2e9a;
  --cyan: #01cdfe;
  --purple: #b967ff;
  --yellow: #fffb96;
  --mint: #05ffa1;
  --ink: #12061c;
  --f-display: "Audiowide", "Barlow Condensed", sans-serif;
  --f-neon: "Monoton", "Audiowide", sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --wrap: 1080px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
html { background: var(--ground); }
body { background: var(--ground); color: var(--text); font: 15px/1.5 var(--f-body); min-height: 100vh; position: relative; overflow-x: hidden; }
a { color: var(--cyan); }
img { display: block; }

/* the sky: three slow glows behind everything - pink, purple, a little cyan */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky .glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .18; animation: drift 28s ease-in-out infinite alternate; }
.sky .g1 { width: 48vw; height: 48vw; left: -14vw; top: -12vw; background: var(--pink-deep); }
.sky .g2 { width: 40vw; height: 40vw; right: -12vw; top: 20vh; background: var(--purple); animation-delay: -9s; animation-duration: 33s; }
.sky .g3 { width: 44vw; height: 44vw; left: 28vw; bottom: -20vw; background: var(--cyan); opacity: .08; animation-delay: -17s; animation-duration: 39s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vw, 5vh, 0) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .sky .glow, .eq i, .now-scene { animation: none !important; } }

/* ---------- header ---------- */
.bar { display: flex; align-items: center; gap: 14px; padding: 14px 16px; max-width: var(--wrap); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.sun { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 0 10px #ff71ce88); }
.wordmark { font: 400 30px/1 var(--f-neon); letter-spacing: .02em; color: var(--pink); text-shadow: 0 0 6px #ff71ce99, 0 0 22px #ff71ce55; }
.wordmark span { color: var(--cyan); text-shadow: 0 0 6px #01cdfe99, 0 0 22px #01cdfe55; }
.tag {
  font: 400 12px/1 var(--f-display); letter-spacing: .22em; text-transform: uppercase; color: var(--ink);
  background: linear-gradient(90deg, var(--yellow), var(--pink), var(--purple)); padding: 7px 10px 6px; border-radius: 4px;
}
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font: 400 12px var(--f-display); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; border-radius: 5px; }
.nav a:hover { color: var(--cyan); background: var(--raised); text-shadow: 0 0 8px #01cdfe88; }

main { max-width: var(--wrap); margin: 0 auto; padding: 8px 16px 40px; }
h2 {
  font: 400 22px/1.1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px;
  background: linear-gradient(90deg, #fff 0%, var(--pink) 45%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
h2 .sub { font: 500 14px var(--f-body); letter-spacing: 0; text-transform: none; color: var(--faint); -webkit-text-fill-color: var(--faint); }
h3 { font: 400 12px var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin: 0 0 8px; }
.block { margin-top: 42px; }
.empty { color: var(--faint); font-size: 14px; }

/* ---------- now playing ---------- */
.now {
  display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center;
  padding: 24px 24px 40px; border: 1px solid var(--line); border-radius: 18px; position: relative; overflow: hidden; margin-top: 12px;
  box-shadow: 0 0 0 1px #ff71ce22, 0 30px 80px #00000088;
}
/* the sunset scene sits under everything; album art blurs over it while something plays */
/* a drawn sunset, no artwork: gradient sky, the striped sun low on the right, the floor grid */
.now-scene { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, #1a0b2e 0%, #4a1152 38%, #a3206f 62%, #ff5fa8 78%, #07060c 88%); opacity: .55; }
.scene-sun { position: absolute; right: 7%; bottom: 22%; height: 66%; width: auto; opacity: .9; filter: drop-shadow(0 0 40px #ff71ce66); }
.now::before { content: ""; position: absolute; inset: 0; background: var(--backdrop, none) center/cover; filter: blur(48px) saturate(1.3); opacity: 0; z-index: 0; transition: opacity .6s; }
.now.playing::before, .now.paused::before { opacity: .45; }
.now > *:not(.now-scene):not(.grid-floor) { position: relative; z-index: 1; }
.now-art { width: 220px; height: 220px; border-radius: 14px; overflow: hidden; background: var(--raised); box-shadow: 0 0 0 1px #ff71ce55, 0 0 30px #ff71ce33, 0 20px 50px #000000a0; }
.idle-art { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(180deg, #17132a, #0d0b15); }
.idle-art svg { width: 62%; height: 62%; filter: drop-shadow(0 0 16px #ff71ce77); }
.now-art img { width: 100%; height: 100%; object-fit: cover; }
.now-label { display: flex; align-items: center; gap: 10px; font: 400 11px var(--f-display); letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); text-shadow: 0 0 10px #01cdfe66; }
.now-title { font: 400 38px/1.05 var(--f-display); margin: 8px 0 6px; overflow-wrap: anywhere; text-shadow: 0 0 18px #ff71ce44; }
.now-artist { font-size: 18px; color: var(--text); }
.now-artist a { color: inherit; text-decoration: none; border-bottom: 1px solid #ff71ce66; }
.now-artist a:hover { color: var(--pink); }
.now-album { color: var(--muted); font-size: 14px; margin-top: 2px; }
.now-prog { position: relative; height: 4px; margin: 16px 0 0; background: #ffffff22; border-radius: 2px; overflow: visible; }
.now-prog i { display: block; height: 100%; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--pink), var(--yellow)); box-shadow: 0 0 10px #ff71ce88; transition: width .5s linear; }
.now-prog .t { position: absolute; right: 0; top: 8px; font: 12px var(--f-mono); color: var(--muted); }
.now-links { display: flex; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; height: 36px; padding: 0 18px; border-radius: 6px; text-decoration: none;
  background: linear-gradient(90deg, var(--pink), var(--purple)); color: var(--ink); font: 400 12px var(--f-display); letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 0 18px #ff71ce55;
}
.btn:hover { filter: brightness(1.12); }
.note { color: var(--muted); font-size: 13px; }

/* the neon floor grid along the bottom of the hero, scrolling toward the viewer */
.grid-floor {
  position: absolute; left: -20%; right: -20%; bottom: 0; height: 90px; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, #ff71ce66 0 1px, transparent 1px 60px),
    repeating-linear-gradient(180deg, #ff71ce66 0 1px, transparent 1px 22px);
  transform: perspective(240px) rotateX(58deg); transform-origin: 50% 100%;
  mask-image: linear-gradient(180deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%);
  opacity: .6;
}
/* the grid stays put; the sky behind it pushes in and out, slowly, on the compositor */
.now-scene { animation: push 22s ease-in-out infinite alternate; transform-origin: 70% 80%; will-change: transform; }
@keyframes push { from { transform: scale(1); } to { transform: scale(1.06); } }

/* the equaliser: four bars that dance while something is actually playing */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; width: 18px; }
.eq i { width: 3px; height: 3px; background: var(--pink); border-radius: 1px; box-shadow: 0 0 6px var(--pink); }
.eq i:nth-child(even) { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.now.playing .eq i { animation: eq .9s ease-in-out infinite alternate; }
.now.playing .eq i:nth-child(2) { animation-delay: -.3s; animation-duration: 1.1s; }
.now.playing .eq i:nth-child(3) { animation-delay: -.6s; animation-duration: .8s; }
.now.playing .eq i:nth-child(4) { animation-delay: -.15s; animation-duration: 1.3s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }
.now.paused .eq i { height: 6px; opacity: .6; }
.now.idle .now-label { color: var(--muted); text-shadow: none; }
.now.idle .eq i { background: var(--faint); box-shadow: none; }

/* ---------- playlists ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
h2.later { margin-top: 26px; }
.card { display: block; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .15s, border-color .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); border-color: var(--pink); box-shadow: 0 0 20px #ff71ce33; }
.card .cover { aspect-ratio: 1; background: linear-gradient(160deg, var(--purple), var(--pink) 55%, var(--yellow)); display: grid; place-items: center; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .c-name { font: 400 15px/1.25 var(--f-display); padding: 10px 12px 2px; }
.card .c-tag { font: 400 10px var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); padding: 10px 12px 0; }
.card .c-tag + .c-name { padding-top: 4px; }
.card .c-meta { color: var(--faint); font-size: 12px; padding: 0 12px 12px; }
.card .c-desc { color: var(--muted); font-size: 12px; padding: 0 12px 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- lately ---------- */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 16px; }
.seg button { background: transparent; border: 0; color: var(--muted); padding: 7px 12px; cursor: pointer; font: 400 11px var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.seg button.on { background: var(--cyan); color: var(--ink); box-shadow: 0 0 14px #01cdfe66; }
.lately-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.list { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.list li { display: grid; grid-template-columns: 22px 40px 1fr; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.list li.empty { display: block; }
.list li::before { counter-increment: n; content: counter(n); font: 12px var(--f-mono); color: var(--pink); text-align: right; }
.list li.empty::before { content: none; }
.list .th { width: 40px; height: 40px; border-radius: 6px; background: var(--raised); object-fit: cover; }
.list .th.round { border-radius: 50%; }
.list .nm { font-weight: 600; font-size: 14px; line-height: 1.25; }
.list .nm a { color: inherit; text-decoration: none; }
.list .nm a:hover { color: var(--cyan); }
.list .by { color: var(--muted); font-size: 12px; line-height: 1.3; }
.list .when { color: var(--faint); font: 11px var(--f-mono); }

/* ---------- projects ---------- */
.projects-block { margin-top: 14px; }
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
/* the front door: a gradient frame with a glow, the name big */
.project {
  display: flex; flex-direction: column; text-decoration: none; color: var(--text); border-radius: 18px; overflow: hidden; position: relative;
  background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(135deg, var(--pink), var(--purple) 55%, var(--cyan)) border-box;
  border: 2px solid transparent; box-shadow: 0 0 30px #ff71ce22, 0 20px 50px #00000066; transition: transform .15s, box-shadow .15s;
}
.project:hover { transform: translateY(-3px); box-shadow: 0 0 40px #ff71ce44, 0 24px 60px #00000080; }
.project::after { content: "\2192"; position: absolute; right: 18px; top: 16px; font: 400 22px var(--f-display); color: var(--cyan); text-shadow: 0 0 10px #01cdfe88; }
.p-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 20px; flex: 1; }
.p-kicker { font: 400 10px var(--f-display); letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); }
.p-name { font: 400 32px/1.1 var(--f-display); text-shadow: 0 0 14px #ff71ce44; margin: 2px 0 4px; }
.p-desc { color: var(--muted); font-size: 14px; }
.p-foot { color: var(--faint); font-size: 12px; margin-top: auto; padding-top: 8px; }

.foot { max-width: var(--wrap); margin: 0 auto; padding: 20px 16px 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 12px; border-top: 1px solid var(--line-soft); }
.foot a { color: var(--muted); text-decoration: none; }

@media (max-width: 760px) {
  .nav { display: none; }
  .wordmark { font-size: 24px; }
  .now { grid-template-columns: 1fr; padding: 18px 18px 40px; }
  .now-art { width: 160px; height: 160px; }
  .now-title { font-size: 28px; }
  .lately-grid { grid-template-columns: 1fr; }
  .cards.four { grid-template-columns: repeat(2, 1fr); }
}
