/* ==========================================================================
   Velo's Carti Archive
   Palette and type sampled from the compilation sleeve.
   ========================================================================== */

/* Fonts are embedded in assets/fonts.css (generated by scripts/build_assets.py)
   so they also load when the site is opened directly from disk. */

:root {
  --ink: #0c0d0a;
  --ink-2: #10110d;
  --surface: #16170f;
  --surface-2: #1c1d14;
  --paper: #f0e8d8;
  --paper-dim: #c9bea9;
  --muted: #918875;
  --faint: #655f50;
  --line: rgba(240, 232, 216, 0.13);
  --line-soft: rgba(240, 232, 216, 0.065);
  --accent: #d8a370;
  --accent-bright: #edbd8d;
  --accent-deep: #a86a3d;
  --accent-ink: #191108;
  --accent-06: rgba(216, 163, 112, 0.06);
  --accent-12: rgba(216, 163, 112, 0.12);
  --accent-24: rgba(216, 163, 112, 0.24);
  --paper-03: rgba(240, 232, 216, 0.03);
  --paper-06: rgba(240, 232, 216, 0.06);
  --ink-35: rgba(12, 13, 10, 0.35);
  --ink-70: rgba(12, 13, 10, 0.7);
  --ink-92: rgba(12, 13, 10, 0.92);
  --scrim: rgba(6, 7, 4, 0.56);
  --toolbar-bg: rgba(12, 13, 10, 0.9);
  --player-bg: rgba(14, 15, 11, 0.9);
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --ui: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Plex Mono", "SFMono-Regular", Consolas, monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --player-h: 88px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: #4a4636 var(--ink);
  scrollbar-width: thin;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

img {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

p,
h1,
h2,
h3,
figure,
dl,
dd {
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

svg {
  display: block;
}

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

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}

.icon--xs {
  width: 0.8em;
  height: 0.8em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

/* Header ------------------------------------------------------------------ */

.site-head {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  padding-top: 3px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--mono);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--muted);
}

.brand__text strong {
  font-family: var(--ui);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--paper-dim);
  transition: color 0.18s var(--ease-out);
}

.site-nav a:hover {
  color: var(--accent);
}

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(112px, 14vh, 158px) var(--gutter) clamp(54px, 7vw, 88px);
  overflow: hidden;
}

.hero__ambient {
  position: absolute;
  inset: -24% -16% -12% 34%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
  filter: blur(96px) saturate(1.2);
}

.hero__ambient img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(52% 62% at 74% 38%, var(--accent-12), transparent 72%),
    linear-gradient(90deg, var(--ink) 0%, var(--ink-92) 38%, var(--ink-35) 70%, var(--ink-70) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 62%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--paper-dim);
  animation: rise 0.65s var(--ease-out) both;
}

.eyebrow__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-24);
}

.eyebrow__slash {
  color: var(--accent);
}

.hero__title {
  display: flex;
  flex-direction: column;
  margin-top: clamp(14px, 2vh, 24px);
  font-family: var(--display);
  font-size: clamp(4.6rem, 11.4vw, 12.2rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  color: var(--paper);
  animation: rise 0.75s 0.05s var(--ease-out) both;
}

.hero__title span {
  display: block;
}

.hero__mark {
  display: inline-block;
  width: 0.15em;
  height: 0.15em;
  margin-left: 0.05em;
  border-radius: 2px;
  background: var(--accent);
  vertical-align: 0.16em;
}

.hero__sub {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(18px, 2.4vh, 26px);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--accent);
  animation: rise 0.75s 0.1s var(--ease-out) both;
}

.hero__sub::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero__lede {
  max-width: 50ch;
  margin-top: 18px;
  color: var(--paper-dim);
  font-size: 15.5px;
  line-height: 1.7;
  animation: rise 0.75s 0.14s var(--ease-out) both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(24px, 3.2vh, 34px);
  animation: rise 0.75s 0.18s var(--ease-out) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 21px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  white-space: nowrap;
  transition:
    color 0.18s var(--ease-out),
    background-color 0.18s var(--ease-out),
    border-color 0.18s var(--ease-out),
    transform 0.12s var(--ease-out);
}

.btn .icon {
  width: 12px;
  height: 12px;
}

.btn:hover {
  border-color: var(--paper-dim);
  background: var(--paper-06);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.btn--small {
  min-height: 38px;
  padding: 0 15px;
  font-size: 8.5px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(32px, 4.4vh, 46px);
  padding-top: 15px;
  border-top: 1px solid var(--line);
  animation: rise 0.75s 0.22s var(--ease-out) both;
}

.stats dt {
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  white-space: nowrap;
}

.stats dd {
  margin-top: 5px;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--paper);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hero__cover {
  position: relative;
  isolation: isolate;
  justify-self: end;
  width: min(100%, 420px);
  animation: sleeve-in 0.85s 0.16s var(--ease-out) both;
}

.hero__cover::before {
  content: "";
  position: absolute;
  inset: 12% 4% -6% 10%;
  z-index: -1;
  border-radius: 50%;
  background: var(--accent-24);
  filter: blur(64px);
  pointer-events: none;
}

.sleeve {
  position: relative;
  display: flex;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sleeve::before {
  content: "";
  position: absolute;
  inset: 18px -14px -14px 18px;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.sleeve__spine {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  border-right: 1px solid var(--line);
  border-radius: 4px 0 0 4px;
  background: var(--ink-2);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.sleeve img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 2px;
  object-fit: cover;
  filter: saturate(0.98) contrast(1.02);
}

.hero__cover figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 0 2px;
  font-family: var(--mono);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.stamp {
  position: absolute;
  top: -16px;
  right: -14px;
  transform: rotate(-5deg);
  padding: 7px 9px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--ink-92);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  backdrop-filter: blur(8px);
}

.hero__foot {
  position: relative;
  z-index: 2;
  max-width: 1560px;
  margin: 34px auto 0;
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sleeve-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Ticker ------------------------------------------------------------------ */

.ticker {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  height: 38px;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--accent);
  color: var(--accent-ink);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 64s linear infinite;
  will-change: transform;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__group {
  display: flex;
  flex-shrink: 0;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.ticker__item::after {
  content: "✳";
  font-size: 11px;
  line-height: 1;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* Library ----------------------------------------------------------------- */

.library {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: clamp(58px, 8vw, 108px) var(--gutter) clamp(68px, 9vw, 126px);
}

.library__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 38ch);
  align-items: end;
  gap: clamp(26px, 5vw, 72px);
  padding-bottom: clamp(26px, 3.6vw, 40px);
  border-bottom: 1px solid var(--line);
}

.library__head h2 {
  font-family: var(--display);
  font-size: clamp(3.4rem, 8.4vw, 8.6rem);
  font-weight: 400;
  line-height: 0.82;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.section-count {
  display: inline-block;
  margin-left: 0.18em;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  vertical-align: top;
  transform: translateY(0.5em);
}

.library__intro {
  max-width: 38ch;
  padding-bottom: 5px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.68;
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  background: var(--toolbar-bg);
  backdrop-filter: blur(20px) saturate(1.1);
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}

.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-12);
}

.search__icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13.5px;
  letter-spacing: 0.01em;
}

.search input::placeholder {
  color: var(--faint);
}

.search input::-webkit-search-cancel-button {
  filter: invert(1);
  opacity: 0.5;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper-03);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
}

.search kbd {
  flex: none;
}

.volumes {
  display: flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.volumes::-webkit-scrollbar {
  display: none;
}

.vol-btn {
  flex: none;
  min-width: 33px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition:
    color 0.16s var(--ease-out),
    border-color 0.16s var(--ease-out),
    background-color 0.16s var(--ease-out);
}

.vol-btn:hover {
  color: var(--paper);
  background: var(--paper-06);
}

.vol-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.sort {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  white-space: nowrap;
}

.sort__select {
  position: relative;
  display: inline-flex;
}

.sort__select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 13px;
  width: 5px;
  height: 5px;
  border-right: 1px solid var(--paper-dim);
  border-bottom: 1px solid var(--paper-dim);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.sort select {
  height: 32px;
  padding: 0 31px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  appearance: none;
  cursor: pointer;
}

.sort select:hover,
.sort select:focus-visible {
  border-color: var(--paper-dim);
  color: var(--paper);
}

.sort option {
  background: var(--ink);
  color: var(--paper);
}

.result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.result-line b {
  color: var(--paper);
  font-weight: 500;
}

.text-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-btn:hover {
  color: var(--paper);
}

/* Volumes and tracks ------------------------------------------------------ */

.volume {
  padding-top: clamp(32px, 4vw, 48px);
}

.volume[hidden] {
  display: none;
}

.volume__head {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin-bottom: 9px;
}

.volume__head h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 400;
}

.volume__num {
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 0.85;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.volume__word {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
}

.volume__meta {
  order: 3;
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.volume__rule {
  order: 2;
  flex: 1;
  height: 1px;
  background: var(--line);
}

.tracklist {
  border-top: 1px solid var(--line);
}

.track {
  position: relative;
  display: grid;
  grid-template-columns: 34px 56px minmax(0, 1fr) 58px 36px;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 6px;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.16s var(--ease-out);
}

.track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.18s var(--ease-out);
}

.track:hover {
  background: var(--paper-03);
}

.track.is-active {
  background: linear-gradient(90deg, var(--accent-12), transparent 62%);
}

.track.is-active::before {
  transform: scaleY(1);
}

.track[hidden] {
  display: none;
}

.track__index {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.track__art {
  position: relative;
  display: block;
  width: 56px;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
  color: var(--paper);
}

.track__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: opacity 0.2s var(--ease-out), transform 0.35s var(--ease-out);
}

.track:hover .track__art img,
.track.is-active .track__art img {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .track:hover .track__art img {
    transform: scale(1.04);
  }
}

.track__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--scrim);
  opacity: 0;
  transition: opacity 0.16s var(--ease-out);
}

.track:hover .track__overlay,
.track:focus-within .track__overlay,
.track.is-active .track__overlay {
  opacity: 1;
}

.track__overlay-play {
  width: 26px;
  height: 26px;
  padding: 6px;
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
}

.track.is-playing .track__overlay-play {
  display: none;
}

.eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.track.is-playing .eq,
body.is-playing .now__eq {
  display: flex;
}

.eq i {
  display: block;
  width: 2px;
  height: 100%;
  background: var(--accent);
  transform-origin: bottom;
  animation: equalize 0.72s ease-in-out infinite alternate;
}

.eq i:nth-child(2) {
  animation-delay: -0.18s;
}

.eq i:nth-child(3) {
  animation-delay: -0.36s;
}

@keyframes equalize {
  0% {
    transform: scaleY(0.18);
  }
  55% {
    transform: scaleY(0.95);
  }
  100% {
    transform: scaleY(0.36);
  }
}

.track__body {
  min-width: 0;
}

.track__line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.track__title {
  max-width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: none;
  color: var(--paper);
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.16s var(--ease-out);
}

.track__title:hover {
  color: var(--accent);
}

.track.is-active .track__title {
  color: var(--paper);
}

.track.is-active .track__index {
  color: var(--accent);
}

.track__quals {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
}

.qual {
  display: inline-block;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 400;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.track.is-active .qual {
  border-color: var(--accent-24);
}

.track__meta {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track__feat {
  color: var(--paper-dim);
}

.track__feat--solo {
  color: var(--faint);
}

.track__dot {
  margin: 0 7px;
  color: var(--faint);
}

.track__dur-mobile {
  display: none;
}

.track__dur {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.track__actions {
  display: flex;
  justify-content: flex-end;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--muted);
  transition:
    color 0.16s var(--ease-out),
    border-color 0.16s var(--ease-out),
    background-color 0.16s var(--ease-out);
}

.icon-btn .icon {
  width: 14px;
  height: 14px;
}

.icon-btn:hover {
  border-color: var(--line);
  background: var(--paper-06);
  color: var(--paper);
}

/* Empty state ------------------------------------------------------------- */

.empty {
  padding: clamp(64px, 10vw, 128px) 20px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.empty__mark {
  font-family: var(--display);
  font-size: clamp(5.5rem, 13vw, 10rem);
  line-height: 0.7;
  color: var(--accent);
}

.empty h3 {
  margin-top: 22px;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  font-weight: 400;
  text-transform: uppercase;
}

.empty p {
  margin: 8px 0 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Notes ------------------------------------------------------------------- */

.notes {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.6fr);
  gap: clamp(46px, 8vw, 124px);
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) var(--gutter);
  border-top: 1px solid var(--line);
}

.notes__main h2 {
  max-width: 13ch;
  margin-bottom: 28px;
  font-family: var(--display);
  font-size: clamp(2.5rem, 4.8vw, 4.8rem);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

.notes__main p {
  max-width: 62ch;
  margin-bottom: 18px;
  color: var(--paper-dim);
  font-size: 14.5px;
  line-height: 1.72;
}

.notes__main p a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.notes__main p a:hover {
  color: var(--paper);
}

.notes__caveat {
  margin-top: 28px;
  padding-left: 15px;
  border-left: 2px solid var(--accent);
  font-size: 11.5px !important;
  color: var(--muted) !important;
}

.notes__side {
  align-self: start;
}

.specs {
  border-top: 1px solid var(--line);
}

.specs > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.specs dt {
  color: var(--muted);
}

.specs dd {
  color: var(--paper);
  text-align: right;
}

.bulk,
.keys {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-03);
}

.bulk__title {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.bulk p:not(.bulk__title) {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.keys dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.keys dl > div:last-child {
  border-bottom: 0;
}

.keys dt {
  display: flex;
  gap: 4px;
  color: var(--paper-dim);
}

.keys dd {
  color: var(--muted);
  text-align: right;
}

/* Footer ------------------------------------------------------------------ */

.site-foot {
  padding: 46px var(--gutter) calc(var(--player-h) + 44px);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.site-foot__word {
  margin-bottom: 38px;
  font-family: var(--display);
  font-size: clamp(3.4rem, 11vw, 10.5rem);
  font-weight: 400;
  line-height: 0.78;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
}

.site-foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 30px;
  font-family: var(--mono);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
}

.site-foot__row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--paper-dim);
}

.site-foot__row a:hover {
  color: var(--accent);
}

/* Player ------------------------------------------------------------------ */

.player {
  --accent: #d8a370;
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 100;
  width: auto;
  max-width: 1480px;
  height: var(--player-h);
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--player-bg);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(22px) saturate(1.12);
}

.player__glow {
  position: absolute;
  inset: -60%;
  z-index: 0;
  background-image: var(--glow, none);
  background-position: center;
  background-size: cover;
  opacity: 0;
  filter: blur(64px) saturate(1.5);
  transform: scale(1.25);
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}

.player.has-track .player__glow {
  opacity: 0.14;
}

.player__progress {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: 2px;
  background: var(--paper-06);
}

.player__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.player__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(200px, 1.05fr) auto minmax(170px, 1.1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(14px, 2.4vw, 28px);
}

.now {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.now__art {
  position: relative;
  flex: none;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}

.now__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.94;
}

.now__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--scrim);
  opacity: 0;
  transition: opacity 0.16s var(--ease-out);
}

.now__play .icon {
  width: 16px;
  height: 16px;
}

.now__art:hover .now__play {
  opacity: 1;
}

body.is-playing .now__play {
  display: none;
}

.now__eq {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--scrim);
}

.now__eq i {
  display: block;
  width: 2px;
  height: 13px;
  background: var(--accent);
  transform-origin: bottom;
  animation: equalize 0.72s ease-in-out infinite alternate;
}

.now__eq i:nth-child(2) {
  animation-delay: -0.18s;
}

.now__eq i:nth-child(3) {
  animation-delay: -0.36s;
}

.now__body {
  min-width: 0;
}

.now__kicker {
  overflow: hidden;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now__title {
  margin-top: 2px;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now__meta {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transport {
  display: flex;
  align-items: center;
  gap: 2px;
}

.ctrl {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--paper-dim);
  transition:
    color 0.16s var(--ease-out),
    background-color 0.16s var(--ease-out),
    transform 0.12s var(--ease-out);
}

.ctrl .icon {
  width: 16px;
  height: 16px;
}

.ctrl:hover {
  background: var(--paper-06);
  color: var(--paper);
}

.ctrl:active {
  transform: scale(0.94);
}

.ctrl--play {
  width: 46px;
  height: 46px;
  margin: 0 4px;
  background: var(--accent);
  color: var(--accent-ink);
}

.ctrl--play:hover {
  background: var(--accent-bright);
  color: var(--accent-ink);
}

.ctrl--play .icon {
  width: 17px;
  height: 17px;
}

.ctrl--play .ctrl__pause {
  display: none;
}

body.is-playing .ctrl--play .ctrl__play {
  display: none;
}

body.is-playing .ctrl--play .ctrl__pause {
  display: block;
}

.ctrl[aria-pressed="true"] {
  color: var(--accent);
}

.ctrl__badge {
  position: absolute;
  right: 4px;
  bottom: 3px;
  display: none;
  place-items: center;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 500;
  line-height: 1;
}

.ctrl--repeat[data-mode="one"] .ctrl__badge {
  display: grid;
}

.timeline {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.timeline__time {
  min-width: 31px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.range {
  width: 100%;
  height: 20px;
  margin: 0;
  padding: 0;
  background: transparent;
  appearance: none;
  cursor: pointer;
}

.range::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0 var(--fill, 0%), var(--paper-06) var(--fill, 0%) 100%);
}

.range::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  appearance: none;
  opacity: 0;
  transition: opacity 0.15s var(--ease-out);
}

.range:hover::-webkit-slider-thumb,
.range:focus-visible::-webkit-slider-thumb {
  opacity: 1;
}

.range::-moz-range-track {
  height: 2px;
  background: var(--paper-06);
}

.range::-moz-range-progress {
  height: 2px;
  background: var(--accent);
}

.range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  opacity: 0;
}

.range:hover::-moz-range-thumb,
.range:focus-visible::-moz-range-thumb {
  opacity: 1;
}

.player__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ctrl--vol .ctrl__vol-off {
  display: none;
}

.player.is-muted .ctrl--vol .ctrl__vol-on {
  display: none;
}

.player.is-muted .ctrl--vol .ctrl__vol-off {
  display: block;
}

.range--vol {
  width: 72px;
}

.ctrl--download {
  color: var(--paper-dim);
}

.ctrl--download:hover {
  color: var(--accent);
}

.ctrl--download[hidden] {
  display: none;
}

.noscript {
  position: fixed;
  inset: auto 0 0;
  z-index: 150;
  padding: 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 10px;
  text-align: center;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1240px) {
  .toolbar {
    grid-template-columns: minmax(200px, 1fr) auto;
  }

  .volumes {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .sort {
    grid-column: 2;
    grid-row: 1;
  }

  .range--vol {
    display: none;
  }

  .player__inner {
    grid-template-columns: minmax(200px, 1fr) auto minmax(160px, 0.9fr) auto;
  }
}

@media (max-width: 1040px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.52fr);
    gap: 44px;
  }

  .hero__cover {
    width: min(100%, 350px);
  }

  .notes {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
    gap: 50px;
  }
}

@media (max-width: 900px) {
  :root {
    --player-h: 118px;
  }

  .hero {
    padding-top: 118px;
    padding-bottom: 46px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .hero__cover {
    justify-self: start;
    width: min(72vw, 340px);
    margin-left: 4px;
  }

  .hero__title {
    font-size: clamp(4.4rem, 18vw, 9.6rem);
  }

  .hero__foot {
    margin-top: 40px;
  }

  .library__head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .library__intro {
    max-width: 48ch;
  }

  .track {
    grid-template-columns: 28px 48px minmax(0, 1fr) 36px;
    gap: 12px;
  }

  .track__art {
    width: 48px;
  }

  .track__dur {
    display: none;
  }

  .track__dur-mobile {
    display: inline;
  }

  .notes {
    grid-template-columns: 1fr;
  }

  .notes__main h2 {
    max-width: 16ch;
  }

  .notes__side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }

  .specs {
    grid-column: 1 / -1;
  }

  .bulk,
  .keys {
    margin-top: 0;
    height: 100%;
  }

  .player__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 5px 14px;
    padding: 10px 16px 12px;
  }

  .now {
    grid-column: 1;
    grid-row: 1;
  }

  .transport {
    grid-column: 2;
    grid-row: 1;
  }

  .transport .ctrl--shuffle,
  .transport .ctrl--repeat {
    display: none;
  }

  .transport .ctrl--play {
    width: 44px;
    height: 44px;
  }

  .timeline {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .player__actions {
    display: none;
  }

  .now__art {
    width: 44px;
    height: 44px;
  }

  .now__title {
    font-size: 12px;
  }

  .now__meta {
    font-size: 7.5px;
  }
}

@media (max-width: 720px) {
  .site-head {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .toolbar {
    position: relative;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0;
  }

  .search,
  .volumes,
  .sort {
    grid-column: 1;
    grid-row: auto;
  }

  .sort {
    justify-content: space-between;
  }

  .sort__select {
    flex: 1;
    max-width: 260px;
  }

  .sort select {
    width: 100%;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }

  .track {
    grid-template-columns: 46px minmax(0, 1fr) 34px;
    gap: 11px;
    padding: 8px 2px;
  }

  .track__index {
    display: none;
  }

  .track__art {
    width: 46px;
  }

  .track__title {
    font-size: 14px;
  }

  .track__meta {
    font-size: 8px;
  }

  .qual {
    font-size: 7px;
  }

  .volume__head {
    gap: 10px;
  }

  .volume__meta {
    font-size: 7.5px;
  }

  .notes__side {
    grid-template-columns: 1fr;
  }

  .specs {
    grid-column: auto;
  }

  .site-foot {
    padding-bottom: calc(var(--player-h) + 32px);
  }

  .site-foot__word {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  :root {
    --player-h: 108px;
  }

  .brand__mark {
    width: 32px;
    height: 32px;
    font-size: 19px;
  }

  .brand__text strong {
    font-size: 11px;
  }

  .brand__text span {
    font-size: 8px;
  }

  .site-nav {
    gap: 14px;
    font-size: 8.5px;
  }

  .site-nav a:first-child {
    display: none;
  }

  .hero {
    padding-top: 106px;
  }

  .hero__title {
    font-size: clamp(4rem, 21vw, 7.2rem);
  }

  .hero__sub {
    letter-spacing: 0.28em;
    font-size: 9px;
  }

  .hero__lede {
    font-size: 14.5px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    min-height: 44px;
  }

  .hero__cover {
    width: min(80vw, 300px);
  }

  .stamp {
    top: -12px;
    right: -10px;
    font-size: 7px;
    padding: 6px 8px;
  }

  .hero__foot {
    font-size: 7.5px;
  }

  .library__head h2 {
    font-size: clamp(3rem, 15vw, 5.4rem);
  }

  .result-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .track {
    grid-template-columns: 44px minmax(0, 1fr) 30px;
    gap: 10px;
  }

  .track__art {
    width: 44px;
  }

  .track__line {
    gap: 3px 6px;
  }

  .track__title {
    font-size: 13.5px;
  }

  .track__actions .icon-btn {
    width: 28px;
    height: 28px;
  }

  .now {
    gap: 9px;
  }

  .now__art {
    width: 40px;
    height: 40px;
  }

  .now__kicker {
    display: none;
  }

  .transport .ctrl {
    width: 30px;
    height: 30px;
  }

  .transport .ctrl--play {
    width: 40px;
    height: 40px;
    margin: 0 1px;
  }

  .now__title {
    font-size: 11.5px;
  }

  .site-foot__row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  .transport .ctrl[data-action="prev"] {
    display: none;
  }

  .site-nav {
    gap: 10px;
  }

  .now__meta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .ticker__track {
    animation: none;
  }
}
