/* Nyxphere Catalogue — the cover template, rendered live in CSS.
   Loads after journal.css and only adds what the shelf needs. */

.wrap-cat { width: min(100% - 2.4rem, 920px); }

.cat-note {
  font-family: var(--italic);
  font-style: italic;
  font-weight: 300;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--fg-dim);
  max-width: 58ch;
  margin: -2.2rem auto 4.5rem;
  text-align: center;
  opacity: 0;
  animation: rise 2.4s var(--ease) 0.45s forwards;
}
.cat-note em { font-style: normal; font-family: var(--mono); font-size: 0.78em; letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg-soft); }

/* ---------- the shelf ---------- */
.releases {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5rem;
  padding-bottom: 2rem;
}
.release {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.4rem, 4vw, 3.2rem);
  align-items: start;
  opacity: 0;
  animation: rise 2s var(--ease) forwards;
  scroll-margin-top: 2rem;
}
.release:nth-child(1) { animation-delay: 0.5s; }
.release:nth-child(2) { animation-delay: 0.65s; }
.release:nth-child(3) { animation-delay: 0.8s; }
.release:nth-child(n+4) { animation-delay: 0.95s; }

/* ---------- cover frame: the rendered template (number, mark, art, artist, title baked in) ---------- */
.cover-frame {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--bg-deep);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--fg-trace);
  transition: box-shadow 0.8s ease;
}
.cover-frame:hover { box-shadow: inset 0 0 0 1px var(--fg-faint); }
.cover-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.45) brightness(0.86);
  opacity: 0.94;
  transform: scale(1.01);
  transition: filter 1.1s var(--ease), opacity 1.1s var(--ease), transform 1.6s var(--ease);
}
.cover-frame:hover img { filter: none; opacity: 1; transform: scale(1); }

/* ---------- entry text ---------- */
.release-text { display: flex; flex-direction: column; padding-top: 0.4rem; }
.release-text .meta { line-height: 1.9; }
.release-head { margin: 0; font-weight: 400; }
.release-artist {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  line-height: 1.3;
  margin: 1.1rem 0 0.2rem;
  color: var(--fg);
}
.release-title {
  display: block;
  font-family: var(--italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 1.1rem;
}
.release-body {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.68;
  color: var(--fg-soft);
  text-wrap: pretty;
}
.release-body + .release-body { margin-top: 0.8rem; }
.release-body em { font-style: italic; }
.release-credits {
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  margin-top: 1.1rem;
}
.release-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin-top: 1.3rem;
}
.release-links a {
  font-family: var(--italic);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--fg-faint);
  padding-bottom: 3px;
  letter-spacing: 0.04em;
  transition: border-color 0.5s ease, letter-spacing 0.5s ease;
}
.release-links a:hover { border-color: var(--fg); letter-spacing: 0.08em; }
.release-links .arrow { display: inline-block; margin-left: 0.4em; transition: transform 0.5s ease; }
.release-links a:hover .arrow { transform: translate(3px, -3px); }
.release-links a.inward:hover .arrow { transform: translateX(4px); }

/* ---------- numbered divider between years ---------- */
.year-mark {
  list-style: none;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: -1.5rem 0;
  opacity: 0;
  animation: fade 2s ease-out 1s forwards;
}
.year-mark::before, .year-mark::after {
  content: "";
  display: inline-block;
  width: 3rem;
  height: 1px;
  background: var(--fg-faint);
  vertical-align: middle;
  margin: 0 1.2rem;
}

.topbar .crumb-right { margin-left: auto; }

@media (max-width: 640px) {
  .release { grid-template-columns: 1fr; gap: 1.4rem; }
  .cover-frame { max-width: 420px; }
  .release-text { padding-top: 0; }
  .year-mark::before, .year-mark::after { width: 1.6rem; margin: 0 0.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .release, .cat-note, .year-mark { animation: none; opacity: 1; }
}
