:root {
  /* cool sage and white; deep forest green for buttons and text */
  --bg: #e3eae3;
  --bg-deep: #d2ddd3;
  --card: #ffffff;
  --card-hi: #f4f8f4;
  --ink: #1b2a21;
  --muted: #4d6255;
  --line: rgba(27, 42, 33, 0.1);
  --accent: #23402f;
  --accent-ink: #ffffff;
  --sage: #8fae9a;
  --sc: #ff5500;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 18px;
  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255, 255, 255, 0.7), transparent 60%),
    linear-gradient(var(--bg), var(--bg-deep));
  color: var(--ink);
  font: 400 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--gutter) calc(40px + env(safe-area-inset-bottom));
}

/* ------------------------------------------------------------ hero */
.hero { text-align: center; padding: max(56px, env(safe-area-inset-top)) 0 28px; }
.avatar {
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent), 0 18px 40px rgba(27, 42, 33, 0.2);
}
.name {
  margin: 0;
  font: 700 clamp(40px, 12vw, 64px)/0.95 var(--display);
  letter-spacing: -0.04em;
}
.handle {
  margin: 12px 0 0;
  color: var(--muted);
  font: 400 12px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.socials { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 19px;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.socials a:hover { background: var(--card-hi); transform: translateY(-2px); }

/* ------------------------------------------------------------ blocks */
.block { margin-top: 32px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--muted);
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow__count {
  margin-left: auto;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.player {
  overflow: hidden;
  aspect-ratio: 1;
  max-height: 420px;
  width: 100%;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}
.player iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------------ rows */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 8px 14px 8px 8px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: background 0.2s;
}
.row:hover { background: var(--card-hi); }
.row__art {
  position: relative;
  flex: none;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--card-hi);
}
.row__art img { width: 100%; height: 100%; object-fit: cover; }
.row__text { display: grid; min-width: 0; flex: 1; }
.row__title { overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.row__meta { color: var(--muted); font: 400 11px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.row__go { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 13px; }
.row__go--mc { font-size: 16px; }

/* playing: equaliser over the artwork */
.row__eq {
  position: absolute;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 14px;
  background: rgba(0, 0, 0, 0.55);
}
.row__eq i { width: 4px; height: 18px; background: #fff; transform-origin: bottom; animation: eq 0.9s ease-in-out infinite alternate; }
.row__eq i:nth-child(2) { animation-delay: -0.3s; }
.row__eq i:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }
.row.is-current { border-color: var(--sage); background: var(--card-hi); }
.row.is-current .row__eq { display: flex; }
@media (prefers-reduced-motion: reduce) { .row__eq i { animation: none; } }

.more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(27, 42, 33, 0.25);
  color: var(--accent);
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  transition: background 0.2s;
}
.more:hover { background: var(--card); }
.more svg { transform: rotate(135deg); }

/* ------------------------------------------------------------ links */
.cta { margin-top: 16px; }
.links { display: grid; gap: 8px; }
.links .eyebrow { margin-bottom: 4px; }
.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: background 0.2s, transform 0.2s var(--ease);
}
.link:hover { background: var(--card-hi); transform: translateY(-1px); }
.link > svg:last-child { color: var(--muted); }
.link__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--card-hi); font-size: 20px; }
.link__text { display: grid; flex: 1; min-width: 0; }
.link__label { font-weight: 600; }
.link__sub { overflow: hidden; color: var(--muted); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.link--featured { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.link--featured:hover { background: #2e5240; }
.link--featured .link__icon { background: var(--accent-ink); color: var(--accent); }
.link--featured .link__sub, .link--featured > svg:last-child { color: rgba(255, 255, 255, 0.8); }
/* the SoundCloud button keeps SoundCloud's own orange */
.link--featured.link--soundcloud { background: var(--sc); }
.link--featured.link--soundcloud:hover { background: #ff6a1f; }
.link--featured.link--soundcloud .link__icon { color: var(--sc); background: #fff; }

/* ------------------------------------------------------------ footer */
.foot { margin-top: 48px; text-align: center; color: var(--muted); font: 400 11px/1.8 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.foot p { margin: 0; }
.dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--sage); vertical-align: 1px; }
