:root {
  --bg: #0b0a09;
  --fg: #e9e4dc;
  --muted: #8a847b;
  --accent: #ed0c32;
  --line: rgba(233, 228, 220, 0.6);
  --pad: clamp(16px, 2.2vw, 28px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* soft warm light in the background */
.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60vmax 40vmax at 75% 30%, rgba(237, 12, 50, 0.07), transparent 60%),
    radial-gradient(50vmax 50vmax at 20% 110%, rgba(237, 12, 50, 0.04), transparent 60%);
}

/* ---------- navigation (top left) ---------- */
.nav {
  position: fixed;
  top: var(--pad);
  left: var(--pad);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wordmark {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.32em;
}

.tagline { color: var(--fg); }

.menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu a,
.menu .toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 1px 9px 1px 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
}

.menu .num {
  font-size: 7px;
  min-width: 6px;
  color: var(--fg);
  transform: translateY(-1px);
}

.menu .toggle {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  background: none;
  cursor: pointer;
}

.menu a:hover,
.menu a:focus-visible,
.menu .toggle:hover,
.menu .toggle:focus-visible { color: var(--accent); outline: none; }

.menu .ext,
.menu .caret {
  font-size: 9px;
  opacity: 0;
  margin-left: -3px;
  transition: opacity 0.2s;
}
.menu .caret { opacity: 0.6; display: inline-block; transition: transform 0.2s; }
.menu .toggle[aria-expanded="true"] .caret { transform: rotate(45deg); }
.menu a:hover .ext,
.menu a:focus-visible .ext { opacity: 1; }

/* sub items (3.1, 5.1 ...) */
.submenu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 4px 10px;
}
.submenu[hidden] { display: none; }

.menu a.active { border-color: var(--line); }
.menu a.active:hover { color: var(--fg); }

/* =========================================================
   Content pages (Music, ...)
   ========================================================= */
.page .content {
  position: relative;
  margin-left: max(300px, 28vw);
  margin-right: var(--pad);
  max-width: 760px;
  padding: 22vh 0 18vh;
  text-transform: none;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0;
}

.serif,
.page em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.kicker {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(32px, 4.6vw, 66px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero h1 em { letter-spacing: 0; }

.lead {
  margin: 9vh 0 0 18%;
  font-size: 19px;
  line-height: 1.5;
}

.rows {
  margin: 7vh 0 0 18%;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  color: var(--muted);
}

.row-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 5px;
}

/* fade in on scroll (only when JS is running) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* small screens: nav sits on top instead of floating */
@media (max-width: 760px) {
  .page .nav { position: relative; top: 0; left: 0; padding: var(--pad); }
  .page .content { margin-left: var(--pad); padding-top: 8vh; }
  .lead, .rows { margin-left: 0; }
  .row { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Sets (SoundCloud) ---------- */

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 340px;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: #151311;
  box-shadow: 0 30px 80px -30px rgba(237, 12, 50, 0.18);
}
.player iframe { position: absolute; left: 0; top: -4px; width: 100%; height: calc(100% + 4px); border: 0; } /* hides SoundCloud's orange top strip */

.setlist {
  list-style: none;
  margin-top: 22px;
  border-top: 1px solid rgba(233, 228, 220, 0.12);
}

.set {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr 18px;
  align-items: baseline; /* year lines up with the set title, even when tags wrap */
  gap: 12px;
  padding: 11px 2px;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(233, 228, 220, 0.12);
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s, padding 0.25s;
}
.set .set-num { font-size: 10px; color: var(--accent); font-variant-numeric: tabular-nums; }
.set:hover,
.set:focus-visible { color: var(--fg); padding-left: 8px; outline: none; }
.set.is-current { color: var(--fg); }

/* little equalizer on the current set */
.set-eq { display: flex; align-items: flex-end; gap: 2px; height: 10px; opacity: 0; }
.set-eq i { width: 2px; height: 100%; background: var(--accent); }
.set-eq i:nth-child(2) { animation-delay: -0.3s; }
.set-eq i:nth-child(3) { animation-delay: -0.6s; }
.set.is-current .set-eq { opacity: 1; }
.set-eq i { transform: scaleY(0.4); }
.set.is-playing .set-eq i { animation: eq 0.9s ease-in-out infinite; }
@keyframes eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
.set-eq i { transform-origin: bottom; }

@media (prefers-reduced-motion: reduce) { .set.is-playing .set-eq i { animation: none; } }

/* ---------- Sets as its own chapter ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.chapter { scroll-margin-top: 12vh; }

.sets {
  margin-top: 14vh;
}

/* ---------- divider between bio and sets ---------- */
.divider { margin-top: 18vh; }

.divider-line {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(233, 228, 220, 0.35), rgba(233, 228, 220, 0.12));
  transform-origin: left;
}
/* the line draws itself in from the left when it scrolls into view */
.js .divider .divider-line { transform: scaleX(0); transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s; }
.js .divider.in .divider-line { transform: scaleX(1); }

.divider-meta {
  display: flex;
  justify-content: flex-end;
  gap: clamp(48px, 9vw, 140px);
  margin-top: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.divider-place { display: inline-flex; align-items: center; gap: 10px; }

/* small pulsing location dot */
.ping {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.ping::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping { from { transform: scale(1); opacity: 0.6; } to { transform: scale(3.2); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .js .divider .divider-line { transform: none; transition: none; }
  .ping::after { animation: none; }
}

.sets-head {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 340px);
  align-items: center;
  gap: 24px;
}

.sets-title {
  font-size: clamp(32px, 4.6vw, 66px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.sets-sub {
  margin-top: 20px;
  max-width: 30em;
  color: var(--muted);
}

.burst { width: 100%; aspect-ratio: 1; display: block; }


/* nav: sub items that follow the scroll position */
.menu .spy-link { color: var(--muted); }
.menu .spy-link.current { color: var(--fg); border-color: var(--line); }
.menu .spy-link.current-parent { color: var(--fg); }

@media (max-width: 760px) {
  .sets-head { grid-template-columns: 1fr; }
  .burst { max-width: 300px; margin: 0 auto; }
}

/* ---------- Sets split by genre (side index like the manifesto page) ---------- */
.sets > .player { margin-top: 7vh; }

.genres {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 40px;
  margin-top: 9vh;
  scroll-margin-top: 22vh; /* leave room above the tabs when jumping here */
}

.genre-index {
  position: sticky;
  top: 30vh;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.genre-tab {
  align-self: flex-start;
  padding: 0 0 4px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.genre-tab:hover,
.genre-tab:focus-visible { color: var(--fg); outline: none; }
.genre-tab[aria-selected="true"] { color: var(--accent); border-color: var(--accent); }

.genre[hidden] { display: none; }
.genre:not([hidden]) { animation: genre-in 0.5s ease; }
@keyframes genre-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .genre:not([hidden]) { animation: none; } }

@media (max-width: 760px) {
  .genres { grid-template-columns: 1fr; gap: 24px; }
  .genre-index { position: static; flex-direction: row; gap: 24px; }
}

/* genre tags on a set row */
.set-title { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; } /* tags always sit on their own line under the title */
.set-eq { align-self: center; }
.tags { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.tag {
  padding: 1px 7px;
  border: 1px solid rgba(224, 82, 104, 0.3);
  border-radius: 999px;
  background: rgba(237, 12, 50, 0.07);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: #e05268;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.set:hover .tag,
.set.is-current .tag { border-color: rgba(240, 110, 130, 0.55); background: rgba(237, 12, 50, 0.12); color: #f07e90; }

/* home page 3D visual sits behind the menu */
.home-visual {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
