:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --bg-soft: #101012;
  --panel: #151517;
  --panel-2: #1b1b1f;
  --line: #2a2a2f;
  --line-soft: #202024;
  --text: #f5f1e8;
  --muted: #96969f;
  --faint: #66666f;
  --gold: #e8b44a;
  --gold-soft: rgba(232, 180, 74, 0.13);
  --danger: #f08b8b;
  --max: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(232, 180, 74, 0.09), transparent 65%),
    var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: #111; }

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

.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;
}

button, input { font: inherit; }

button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -100px;
  z-index: 20;
  background: var(--gold);
  color: #111;
  padding: .55rem .9rem;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(42, 42, 47, .75);
  background: rgba(10, 10, 11, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--max), calc(100% - 3rem));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.04em;
}

.brand-symbol {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--gold);
  color: #111;
  font-size: .95rem;
  font-weight: 900;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: .2rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  padding: .45rem .75rem;
  border-radius: 8px;
  font-size: .88rem;
  transition: color .18s ease, background .18s ease;
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--gold-soft); }

.free-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 180, 74, .12);
}

.site-main {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
  min-height: 65vh;
}

.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 4rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -250px;
  top: -220px;
  border: 1px solid rgba(232, 180, 74, .22);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  right: -420px;
  top: -370px;
  border: 1px solid rgba(232, 180, 74, .09);
  border-radius: 50%;
  pointer-events: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 1.1rem;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.8rem, 15vw, 10.5rem);
  font-weight: 500;
  line-height: .78;
  letter-spacing: -.085em;
}
.hero-title span { color: var(--gold); }

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.1rem;
}

.hero-copy {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}
.hero-copy strong { color: var(--text); font-weight: 500; }

.stats {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stats li {
  min-width: 78px;
  padding-left: .9rem;
  border-left: 1px solid var(--line);
}
.stats b {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
}
.stats span {
  display: block;
  margin-top: .25rem;
  color: var(--faint);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.toolbar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(27, 27, 31, .8), rgba(16, 16, 18, .9));
  padding: 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}

.search-row {
  display: flex;
  gap: .75rem;
  align-items: center;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.search-wrap svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}
.search-input {
  width: 100%;
  height: 48px;
  padding: 0 1rem 0 2.75rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0e0e10;
  color: var(--text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search-input::placeholder { color: var(--faint); }
.search-input:focus {
  border-color: rgba(232, 180, 74, .65);
  box-shadow: 0 0 0 4px rgba(232, 180, 74, .08);
}

.result-count {
  flex: none;
  color: var(--muted);
  font-size: .8rem;
  white-space: nowrap;
  padding: 0 .35rem;
}

.filters {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line-soft);
}

.filter {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: .38rem .78rem;
  font-size: .78rem;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.filter:hover { color: var(--text); border-color: var(--line); }
.filter[aria-pressed="true"] {
  color: var(--gold);
  background: var(--gold-soft);
  border-color: rgba(232, 180, 74, .25);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.4rem 0 1rem;
}
.section-head h2,
.page-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -.035em;
}
.section-head p { margin: 0; color: var(--faint); font-size: .78rem; }
.page-title { font-size: clamp(2.4rem, 6vw, 4.5rem); }

.release-grid,
.artist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.release-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.release-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 180, 74, .35);
  background: var(--panel-2);
}

.cover {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  isolation: isolate;
}
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .18), transparent 30%),
    linear-gradient(145deg, var(--a), var(--b));
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .22;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(0, 0, 0, .12) 7px 8px),
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(0, 0, 0, .12) 7px 8px);
  mix-blend-mode: multiply;
}
.cover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(10, 10, 11, .66);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cover-initials {
  position: absolute;
  right: 1rem;
  bottom: .6rem;
  color: rgba(10, 10, 11, .74);
  font-family: var(--display);
  font-size: clamp(3.6rem, 7vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -.08em;
  line-height: .8;
}
.cover-title {
  position: relative;
  z-index: 1;
  max-width: 82%;
  color: #12100b;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.art-0 { --a: #e8b44a; --b: #b5682d; }
.art-1 { --a: #d6d0c4; --b: #7b8b78; }
.art-2 { --a: #d97b63; --b: #6d3947; }
.art-3 { --a: #a6c8cc; --b: #3e6971; }
.art-4 { --a: #c5b5df; --b: #564d7a; }
.art-5 { --a: #e4c9a4; --b: #8e623f; }
.art-6 { --a: #9fbf9a; --b: #3f6547; }
.art-7 { --a: #e1d08a; --b: #74753d; }

.card-body {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem;
  flex: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--faint);
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.card-meta .type { color: var(--gold); }
.card-title {
  margin: .15rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.card-artist {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: .7rem;
  color: var(--faint);
  font-size: .7rem;
}
.card-arrow {
  color: var(--gold);
  font-size: 1rem;
  transition: transform .2s ease;
}
.release-card:hover .card-arrow { transform: translateX(3px); }

.artist-card {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  padding: 1.35rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color .2s ease, transform .2s ease;
}
.artist-card:hover { border-color: rgba(232, 180, 74, .35); transform: translateY(-3px); }
.artist-card-top { display: flex; align-items: center; gap: .85rem; }
.monogram {
  width: 54px;
  height: 54px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid rgba(232, 180, 74, .3);
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.35rem;
}
.artist-card h3 { margin: 0; font-family: var(--display); font-size: 1.4rem; font-weight: 500; letter-spacing: -.03em; }
.artist-card .where { margin: .05rem 0 0; color: var(--faint); font-size: .75rem; }
.artist-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.artist-card-foot { display: flex; gap: 1rem; margin-top: auto; padding-top: .5rem; color: var(--faint); font-size: .72rem; }
.artist-card-foot b { color: var(--text); font-weight: 500; }

.empty {
  padding: 4rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.empty h3 { margin: 0 0 .35rem; font-family: var(--display); font-size: 1.7rem; font-weight: 500; }
.empty p { margin: 0 auto 1.2rem; max-width: 34rem; color: var(--muted); font-size: .9rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 42px;
  padding: .55rem .9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  font-size: .82rem;
  font-weight: 600;
  transition: border-color .18s ease, background .18s ease;
}
.button:hover { border-color: var(--gold); background: var(--gold-soft); }
.button.primary { border-color: var(--gold); background: var(--gold); color: #111; }
.button.primary:hover { background: #f2c568; }
.button:disabled { opacity: .35; cursor: not-allowed; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin: 2.2rem 0 3rem;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: .8rem;
}
.page-btn:hover:not(:disabled) { color: var(--text); border-color: var(--gold); }
.page-btn[aria-current="page"] { color: #111; background: var(--gold); border-color: var(--gold); font-weight: 700; }
.page-btn:disabled { opacity: .3; cursor: not-allowed; }

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 2rem 0 1.5rem;
  color: var(--muted);
  font-size: .8rem;
}
.breadcrumb:hover { color: var(--gold); }

.detail {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  padding-bottom: 4rem;
}
.detail-cover .cover { border-radius: var(--radius); }
.detail-kicker {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .8rem;
  color: var(--gold);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.detail h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.detail-artist {
  display: inline-block;
  margin-top: .9rem;
  color: var(--muted);
  font-size: 1rem;
}
.detail-artist:hover { color: var(--gold); }
.detail-description { max-width: 580px; margin: 1.4rem 0 0; color: var(--muted); }
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.4rem;
}
.meta-chip {
  padding: .32rem .58rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .04em;
}

.tracklist {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.tracklist li {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.track-number { width: 1.5rem; color: var(--faint); font-size: .72rem; font-variant-numeric: tabular-nums; }
.track-name { font-size: .9rem; }
.track-note { margin-left: auto; color: var(--faint); font-size: .7rem; }

.artist-hero {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.artist-hero .monogram { width: 84px; height: 84px; font-size: 2rem; }
.artist-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.06em;
}
.artist-hero .where { margin: .35rem 0 0; color: var(--gold); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.artist-hero .bio { max-width: 580px; margin: .9rem 0 0; color: var(--muted); }
.artist-links { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.artist-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 4px; font-size: .8rem; }
.artist-links a:hover { color: var(--gold); }

.support-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(232, 180, 74, .25);
  border-radius: var(--radius);
  background: var(--gold-soft);
}
.support-box h2 { margin: 0; font-family: var(--display); font-size: 1.3rem; font-weight: 500; }
.support-box p { margin: .2rem 0 0; color: var(--muted); font-size: .78rem; }
.support-note { margin: 1rem 0 0; color: var(--faint); font-size: .72rem; }

.notice {
  margin: 2rem 0;
  padding: .9rem 1rem;
  border-left: 2px solid var(--gold);
  background: rgba(232, 180, 74, .06);
  color: var(--muted);
  font-size: .8rem;
}

.error-state { padding: 5rem 0; text-align: center; }
.error-state h1 { margin: 0 0 .5rem; font-family: var(--display); font-size: 3rem; font-weight: 500; }
.error-state p { margin: 0 auto 1.2rem; max-width: 34rem; color: var(--muted); }

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: #080809;
}
.footer-inner {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .8rem 2rem;
  align-items: start;
}
.footer-brand strong { font-size: 1.1rem; letter-spacing: -.03em; }
.footer-brand p { margin: .25rem 0 0; color: var(--faint); font-size: .78rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .78rem; }
.footer-links a:hover { color: var(--gold); }
.footer-note { grid-column: 1 / -1; margin: .4rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: .7rem; }

@media (max-width: 860px) {
  .hero-bottom { align-items: flex-start; flex-direction: column; }
  .release-grid, .artist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail { grid-template-columns: 1fr; max-width: 620px; }
  .detail-cover { max-width: 340px; }
}

@media (max-width: 560px) {
  .header-inner, .site-main, .footer-inner { width: min(var(--max), calc(100% - 2rem)); }
  .header-inner { gap: .6rem; min-height: 60px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: .4rem .5rem; font-size: .8rem; }
  .free-pill { display: none; }
  .hero { padding-top: 3rem; }
  .hero-title { font-size: clamp(4.2rem, 22vw, 7rem); }
  .hero-bottom { margin-top: 1.5rem; }
  .stats { gap: 1rem; }
  .stats li { min-width: 68px; padding-left: .65rem; }
  .search-row { align-items: stretch; flex-direction: column; gap: .5rem; }
  .result-count { padding: 0 .15rem; }
  .release-grid, .artist-grid { grid-template-columns: 1fr; }
  .release-card { display: grid; grid-template-columns: 118px minmax(0, 1fr); }
  .cover { aspect-ratio: 1 / 1; height: 100%; padding: .7rem; }
  .cover-initials { font-size: 2.8rem; right: .55rem; bottom: .45rem; }
  .cover-title { font-size: 1rem; }
  .cover-top { font-size: .52rem; }
  .card-body { padding: .85rem; }
  .artist-hero { flex-direction: column; gap: 1rem; }
  .artist-hero .monogram { width: 64px; height: 64px; }
  .support-box { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .detail { gap: 1.5rem; }
  .detail-cover { max-width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { gap: .8rem; }
}

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