:root {
  --ink: #111217;
  --paper: #f5f1ea;
  --panel: #ffffff;
  --muted: #61636e;
  --line: #d6d0c6;
  --ztt-blue: #293a8b;
  --red: #d22f27;
  --green: #00756f;
  --gold: #c89530;
  --shadow: 0 18px 48px rgba(17, 18, 23, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(41, 58, 139, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(41, 58, 139, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(17, 18, 23, 0.12);
  background: rgba(245, 241, 234, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 36px;
  color: #fff;
  background: linear-gradient(135deg, var(--ztt-blue) 0 48%, #050505 48%);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--ink);
  font-size: 0.82rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

nav a,
.button {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(17, 18, 23, 0.18);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 750;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.58);
}

nav a:hover,
.button:hover,
nav a.is-active {
  border-color: var(--ztt-blue);
}

nav a.is-active {
  color: #fff;
  background: var(--ztt-blue);
}

.page-view[hidden] {
  display: none;
}

.hero {
  min-height: calc(100vh - 260px);
  display: grid;
  grid-template-columns: minmax(280px, 0.94fr) minmax(320px, 1.06fr);
  align-items: center;
  gap: clamp(28px, 6vw, 92px);
  padding: clamp(24px, 4vw, 46px) clamp(18px, 5vw, 72px) 24px;
}

.hero-media {
  position: relative;
  isolation: isolate;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -18px 18px 18px -18px;
  z-index: -1;
  background: repeating-linear-gradient(135deg, var(--red) 0 12px, transparent 12px 24px);
  opacity: 0.28;
}

.hero-media img {
  display: block;
  width: 100%;
  max-height: 42vh;
  object-fit: contain;
  background: #d9d2dc;
  border: 1px solid rgba(17, 18, 23, 0.22);
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ztt-blue);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: 13ch;
  font-size: clamp(2.85rem, 5.3vw, 4.75rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 660px;
  color: #30323a;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button.primary {
  color: #fff;
  background: var(--ztt-blue);
  border-color: var(--ztt-blue);
}

.button.secondary {
  background: #fff;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid rgba(17, 18, 23, 0.16);
  background: var(--ink);
  color: #fff;
}

.stats-band article {
  min-height: 96px;
  padding: 18px clamp(18px, 3vw, 38px);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.stats-band span {
  display: block;
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1;
}

.stats-band p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 750;
}

section:not(.hero):not(.stats-band) {
  min-height: calc(100vh - 72px);
  padding: clamp(42px, 6vw, 70px) clamp(18px, 5vw, 72px);
}

.history-section,
.catalogue-section {
  background: rgba(255, 255, 255, 0.35);
}

.artists-section {
  border-block: 1px solid rgba(17, 18, 23, 0.12);
  background:
    linear-gradient(135deg, rgba(210, 47, 39, 0.08), transparent 42%),
    rgba(245, 241, 234, 0.7);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(280px, 0.66fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading.compact {
  display: block;
  max-width: 880px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.history-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 430px);
  gap: clamp(24px, 5vw, 72px);
}

.history-main {
  font-size: clamp(1.04rem, 1.8vw, 1.24rem);
  line-height: 1.72;
}

.timeline {
  border-left: 5px solid var(--ztt-blue);
  background: rgba(255, 255, 255, 0.68);
}

.timeline div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.timeline span {
  color: var(--red);
  font-weight: 950;
}

.timeline p {
  margin: 0;
  color: #353741;
  line-height: 1.5;
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.artist-card,
.release-card {
  border: 1px solid rgba(17, 18, 23, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 32px rgba(17, 18, 23, 0.08);
}

.artist-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 280px;
  max-height: 280px;
  padding: 0;
  overflow: hidden;
}

.artist-summary {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.artist-thumb {
  width: 92px;
  height: 92px;
  border-radius: 6px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--ztt-blue), var(--ink));
}

.artist-thumb-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.artist-card strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.artist-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.4;
}

.artist-format-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-content: flex-start;
  overflow: auto;
  padding: 12px 16px 16px;
}

.mini-filter {
  min-height: 30px;
  border: 1px solid rgba(41, 58, 139, 0.22);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--ztt-blue);
  background: #fff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}

.mini-filter:hover {
  border-color: var(--ztt-blue);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(160px, 0.7fr));
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(17, 18, 23, 0.14);
  background: rgba(255, 255, 255, 0.76);
}

.catalogue-heading {
  max-width: none;
  margin-bottom: 18px;
}

.catalogue-heading h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.catalogue-heading p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.5;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(17, 18, 23, 0.2);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.result-count {
  color: var(--muted);
  font-weight: 750;
}

.release-sections {
  display: grid;
  gap: 34px;
}

.release-year-section {
  padding-top: 24px;
  border-top: 5px solid var(--ink);
}

.release-year-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.release-year-heading h3 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1;
}

.release-year-heading span {
  color: var(--muted);
  font-weight: 850;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.release-card {
  overflow: hidden;
}

.cover-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(135deg, rgba(41, 58, 139, 0.9), rgba(17, 18, 23, 0.96)),
    #1f2443;
}

.cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-button {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.missing-cover {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  padding: 26px;
  text-align: center;
  font-weight: 900;
}

.release-body {
  padding: 18px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 0.76rem;
  font-weight: 850;
}

.pill.blue {
  background: var(--ztt-blue);
}

.pill.gold {
  color: var(--ink);
  background: #f0c55a;
}

.release-card h3 {
  margin-bottom: 4px;
  font-size: 1.24rem;
  line-height: 1.16;
}

.release-card .artist-name {
  color: var(--muted);
  font-weight: 850;
}

.detail-list {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 8px 12px;
  margin: 16px 0;
  font-size: 0.94rem;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 850;
}

.detail-list dd {
  margin: 0;
}

.release-notes {
  margin: 12px 0;
  color: #3c3f48;
  line-height: 1.5;
}

details {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

summary {
  cursor: pointer;
  color: var(--ztt-blue);
  font-weight: 900;
}

.track-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #373a43;
  line-height: 1.5;
}

.discogs-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--ztt-blue);
  font-weight: 900;
}

code {
  word-break: break-word;
  color: var(--ztt-blue);
}

footer {
  padding: 26px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

footer p {
  margin: 0;
}

.return-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 18, 23, 0.82);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  display: block;
  max-width: min(500px, calc(100vw - 48px));
  max-height: min(500px, calc(100vh - 132px));
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #fff;
  box-shadow: var(--shadow);
}

.lightbox p {
  max-width: min(500px, calc(100vw - 48px));
  margin: 12px 0 0;
  color: #fff;
  text-align: center;
  font-weight: 800;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  padding: 10px 14px;
  color: #fff;
  background: rgba(17, 18, 23, 0.92);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

@media (max-width: 920px) {
  .site-header,
  .hero,
  .section-heading,
  .history-grid,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .stats-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .release-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header {
    position: static;
  }

  nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  h1 {
    font-size: 3.2rem;
  }

  .stats-band {
    grid-template-columns: 1fr;
  }

  .timeline div,
  .detail-list {
    grid-template-columns: 1fr;
  }

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

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

  .release-year-heading {
    display: block;
  }
}
