@font-face {
  font-family: "Anton";
  src: url("fonts/anton.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #0a0a0b;
  --ink: #f2f0ec;
  --muted: #8b8b93;
  --line: rgba(255, 255, 255, 0.09);
  --pad: clamp(20px, 5vw, 56px);
  --accent: #e8b4a0;
  --accent-soft: rgba(232, 180, 160, 0.14);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film-grain texture, fixed and non-interactive */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  z-index: 1000;
  font-size: 13px;
}
.skip:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ------------------------------------------------------------- masthead --- */
.masthead {
  position: relative;
  padding: clamp(52px, 10vw, 116px) var(--pad) clamp(26px, 4vw, 40px);
  overflow: hidden;
}
.masthead::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 130%;
  background: radial-gradient(60% 70% at 18% 0%, rgba(232, 180, 160, 0.13), transparent 70%),
    radial-gradient(50% 60% at 88% 12%, rgba(120, 140, 220, 0.1), transparent 72%);
  pointer-events: none;
}
.masthead__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  animation: rise 0.8s var(--ease) both;
}

.kicker {
  margin: 0;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.wordmark {
  margin: 0.22em 0 0.5em;
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-weight: 400;
  font-size: clamp(2.3rem, 7.4vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.012em;
  text-transform: uppercase;
}
.wordmark__amp {
  color: var(--accent);
  padding: 0 0.06em;
}

.lede {
  margin: 0 0 clamp(26px, 4vw, 38px);
  max-width: 44ch;
  font-size: clamp(14.5px, 1.5vw, 17px);
  color: #b6b6bd;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 6vw, 72px);
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}
.stats dt {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.stats dd {
  margin: 0;
  font-family: "Anton", sans-serif;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1;
}

/* -------------------------------------------------------------- filters --- */
.filters {
  display: flex;
  gap: 8px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--pad) 14px;
  margin-top: clamp(10px, 2vw, 22px);
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar {
  display: none;
}
.filter {
  flex: 0 0 auto;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: transparent;
  color: #a9a9b2;
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.filter:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.3);
}
.filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #0a0a0b;
}

/* ---------------------------------------------------------------- index --- */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(60px, 10vw, 120px);
}

.index {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.rel {
  position: relative;
  display: grid;
  grid-template-columns: 92px 296px minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 46px);
  align-items: start;
  padding: clamp(30px, 4.4vw, 56px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
  isolation: isolate;
}
.rel[hidden] {
  display: none;
}
.rel > * {
  position: relative;
  z-index: 1;
}

.rel__wash {
  position: absolute;
  top: 4%;
  bottom: 4%;
  left: -2%;
  width: 46%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(46px) saturate(1.1) brightness(0.42);
  opacity: 0.38;
  -webkit-mask-image: radial-gradient(58% 66% at 50% 50%, #000 0%, rgba(0, 0, 0, 0.6) 46%, transparent 74%);
  mask-image: radial-gradient(58% 66% at 50% 50%, #000 0%, rgba(0, 0, 0, 0.6) 46%, transparent 74%);
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.rel:hover .rel__wash,
.rel:target .rel__wash {
  opacity: 0.6;
}

.rel__no {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}
.rel__no-big {
  font-family: "Anton", sans-serif;
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  transition: color 0.35s var(--ease);
}
@supports not (-webkit-text-stroke: 1px black) {
  .rel__no-big {
    color: var(--accent);
  }
}
.rel:hover .rel__no-big,
.rel:target .rel__no-big {
  color: var(--accent);
}
.rel__no-tag {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.rel__art {
  margin: 0;
}
.rel__art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 26px 60px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: transform 0.5s var(--ease);
}
.rel:hover .rel__art img {
  transform: translateY(-2px);
}

.rel__artist {
  margin: 0 0 0.6em;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.rel__title {
  margin: 0 0 0.5em;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  line-height: 1;
  letter-spacing: 0.004em;
  text-wrap: balance;
}
.rel__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 22px;
  font-size: 13px;
  color: #b9b9c0;
  font-variant-numeric: tabular-nums;
}
.rel__meta .muted {
  color: var(--muted);
}
.badge {
  padding: 3px 9px 2px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.5;
}

.rel__listen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.label {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.22s, background 0.22s, transform 0.22s var(--ease);
}
.chip:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.chip:active {
  transform: translateY(0);
}
.chip__ico {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex: 0 0 auto;
}
.chip--icon {
  padding: 0;
  width: 28px;
  height: 28px;
  justify-content: center;
  border-radius: 50%;
}
.chip--icon .chip__ico {
  width: 12px;
  height: 12px;
}

/* ------------------------------------------------------------ tracklist --- */
.tl {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.tl summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  list-style: none;
  cursor: pointer;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.tl summary::-webkit-details-marker {
  display: none;
}
.tl summary:hover {
  color: var(--ink);
}
.tl summary::before {
  content: "+";
  font-size: 13px;
  line-height: 1;
  color: var(--accent);
}
.tl[open] summary::before {
  content: "–";
}
.tl__count {
  margin-left: auto;
  letter-spacing: 0.12em;
  opacity: 0.7;
}
.tl__list {
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
  animation: rise 0.35s var(--ease) both;
}
.track {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}
.track__n {
  font-family: "Anton", sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--accent);
  opacity: 0.85;
}
.track__t {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.track__d {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
.track__l {
  display: flex;
  gap: 4px;
}

/* ----------------------------------------------------------------- copy --- */
.copy {
  margin-top: 18px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.copy:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.28);
}
.copy[data-done="1"] {
  color: var(--accent);
  border-color: var(--accent);
}

.empty {
  padding: 40px 0;
  color: var(--muted);
  font-size: 14px;
}

/* ----------------------------------------------------------------- rail --- */
.rail {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: none;
  flex-direction: column;
  gap: 3px;
}
.rail__dot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 2px 0;
  text-decoration: none;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #43434b;
  transition: color 0.25s;
}
.rail__dot::before {
  content: "";
  width: 10px;
  height: 1px;
  background: currentColor;
  transition: width 0.25s var(--ease);
}
.rail__dot:hover,
.rail__dot[data-active="1"] {
  color: var(--accent);
}
.rail__dot[data-active="1"]::before {
  width: 22px;
}

/* ----------------------------------------------------------------- foot --- */
.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(48px, 8vw, 80px);
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.foot__line {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b6b6bd;
}
.foot__note {
  margin: 0 0 6px;
  max-width: 62ch;
  font-size: 12px;
  color: #8b8b93;
}
.foot__note--sm {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #66666e;
}

/* ------------------------------------------------------------ keyframes --- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------- responsive - */
@media (max-width: 900px) {
  .rel {
    grid-template-columns: 72px 220px minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .rel {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 0 34px;
  }
  .rel__no {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    order: -1;
  }
  .rel__no-big {
    font-size: 2.1rem;
    -webkit-text-stroke-width: 1px;
  }
  .rel__art {
    width: 78%;
    max-width: 340px;
  }
  .rel__title {
    font-size: clamp(1.75rem, 8.6vw, 2.4rem);
  }
  .rel__meta {
    margin-bottom: 18px;
  }
  .chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .chip {
    padding: 11px 14px;
    justify-content: center;
  }
  /* a lone trailing platform fills the row instead of sitting orphaned */
  .chips .chip:last-child:nth-child(odd) {
    grid-column: span 2;
  }
  .track {
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }
  .track__l {
    display: none;
  }
  .stats {
    gap: 24px;
  }
}

@media (min-width: 1240px) {
  .rail {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
