/* RIDGE — mix: old padded catalogue + Ninja Tune cover wall.
   Covers stay small so Spotify art does not pixelate. */

:root {
  --bg: #000;
  --fg: #fff;
  --mute: #888;
  --line: #222;
  --pad: 1.5rem;
  --sans: Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

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

body.plain {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.6; }
button, input, textarea { font: inherit; color: inherit; background: none; border: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.15rem var(--pad);
  border-bottom: 1px solid var(--line);
}

.top__logo {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.top__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem 1.15rem;
  font-size: 0.75rem;
  color: var(--mute);
}

.top__nav a:hover { color: var(--fg); opacity: 1; }

main { padding: 0; }

/* Latest — old RIDGE block, cover capped so it stays sharp */
.feature {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: end;
  padding: 2rem var(--pad);
  border-bottom: 1px solid var(--line);
}
.feature[hidden] { display: none; }

.feature__art {
  width: 11.5rem;
  aspect-ratio: 1;
  background: #111 center / cover no-repeat;
}

.feature__kicker,
.feature__meta {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.feature__title {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0.25rem 0 0.15rem;
}

.feature__artist { color: var(--mute); }

.feature__link {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.82rem;
}

/* Two rows of covers — Ninja wall, 6-up so tiles stay ~180px */
.wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem 0.65rem;
  padding: 1.15rem var(--pad) 1.6rem;
}

.wall--recent {
  grid-template-rows: auto auto;
  grid-auto-rows: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.shelf__card { color: inherit; min-width: 0; }
.shelf__art {
  aspect-ratio: 1;
  background: #111 center / cover;
}
.shelf__title {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shelf__artist {
  display: block;
  font-size: 0.72rem;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shelf__card--more { display: none; }

#releases { padding: 1.6rem 0 0.4rem; }

.head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 var(--pad) 0.85rem;
}

h2, h3 {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.head h2 { margin: 0; }
.head__count { font-size: 0.75rem; color: var(--mute); }

.album-grid-shell,
.album-grid-scroll {
  overflow: visible;
  max-height: none !important;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem 0.65rem;
  padding: 0 var(--pad) 2rem;
}

.album-grid > .album-card,
.album-card {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
}

.album-card__cover {
  display: block;
  aspect-ratio: 1;
  background: #111 center / cover;
}

.album-card__title {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-card__art {
  font-size: 0.72rem;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-more { display: none; }
.album-scroll-cue { display: none; }

#artists {
  padding: 2rem var(--pad);
  border-top: 1px solid var(--line);
}

.album-grid--people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  padding: 0;
}

.album-grid--people .album-card {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.35rem 0;
}

.album-grid--people .album-card__cover { width: 2.8rem; }
.album-grid--people .album-card__title { margin-top: 0; }

.end {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 2.6rem var(--pad) 3rem;
  border-top: 1px solid var(--line);
  align-items: start;
}

#about,
#demo {
  padding: 0;
  border: 0;
}

#about { padding-right: 3.2rem; }

#demo {
  padding-left: 3.2rem;
  border-left: 1px solid var(--line);
}

.about__body {
  max-width: 28rem;
  font-size: 1.15rem;
  line-height: 1.45;
  white-space: pre-line;
  margin: 0.35rem 0 1.15rem;
}

.about__mail,
.demo__mail {
  font-size: 0.92rem;
}

.about__mail a,
.demo__mail a {
  border-bottom: 1px solid var(--line);
}

.about__mail a:hover,
.demo__mail a:hover {
  opacity: 1;
  color: var(--fg);
  border-color: var(--fg);
}

.about__facts:empty,
.about__outlets-list:empty,
.about__outlets-list[hidden] { display: none; }

.demo__desc {
  max-width: 26rem;
  color: var(--mute);
  margin: 0.35rem 0 0.7rem;
  line-height: 1.5;
}

.demo__mail {
  color: var(--mute);
  margin: 0 0 1.35rem;
}

.demo__form {
  display: grid;
  gap: 0.95rem;
  max-width: none;
}

.demo__form label {
  display: grid;
  gap: 0.28rem;
}

.demo__form label span {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

.demo__form input,
.demo__form textarea {
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0 0.5rem;
  width: 100%;
}

.demo__form textarea { resize: vertical; min-height: 4.2rem; }

.demo__form input::placeholder,
.demo__form textarea::placeholder { color: #555; }

.demo__form input:focus,
.demo__form textarea:focus { outline: none; border-color: var(--fg); }

.btn {
  justify-self: start;
  margin-top: 0.25rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #fff;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:hover { background: #fff; color: #000; }
.form-sent.is-error { color: #c44; font-size: 0.85rem; }

.toast {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
}
.toast[hidden] { display: none; }
.toast__panel {
  width: min(18rem, calc(100% - 2rem));
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 1.1rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem var(--pad) 2rem;
  font-size: 0.75rem;
  color: var(--mute);
  border-top: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .wall,
  .album-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .end { grid-template-columns: 1fr; }
  #about { padding-right: 0; }
  #demo {
    padding-left: 0;
    padding-top: 2.4rem;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  :root { --pad: 1rem; }
  .top { flex-direction: column; gap: 0.65rem; }
  .top__nav { justify-content: flex-start; }
  .feature { grid-template-columns: 7.5rem 1fr; }
  .feature__art { width: 7.5rem; }
  .wall,
  .wall--recent,
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .album-grid--people { grid-template-columns: 1fr; }
}
