/* KSQ 2026 concept - discography page.
   Scoped to the two discography templates. Tokens live on the page body, not :root,
   so nothing here can leak into the other pages. No text shadows anywhere. */

body.page-template-template-discography,
body.page-template-template-discography-en {
  --disco-ink: #fff;
  --disco-line: rgba(255, 255, 255, .16);
  --disco-line-strong: rgba(255, 255, 255, .42);
  --disco-gap: clamp(1rem, 2vw, 1.75rem);
  --disco-radius: 4px;
}

/* 1. Header. Left exactly as every other page has it: the shared banner with its image, its tone and
   its 70vh. The cover grid below is what makes this page a discography, not a different header. */

/* 1b. Gutters come from the standard container in the template, so no padding hack lives here. */

/* 2. Page title. The page had none; the site name was doing h1 duty for every page. */
.disco-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--disco-line);
  margin-bottom: var(--disco-gap);
}

.disco-head__title {
  margin: 0;
  color: var(--disco-ink);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* 3. Grid rhythm. Columns stay the preset's own 4/3/2/1. */
body.page-template-template-discography .discoli-grid,
body.page-template-template-discography-en .discoli-grid {
  gap: var(--disco-gap);
}

/* 4. Cards: flat, hairline, lift on hover or keyboard focus. */
body.page-template-template-discography .discoli-item,
body.page-template-template-discography-en .discoli-item {
  border: 1px solid var(--disco-line);
  border-radius: var(--disco-radius);
  padding: .6rem;
  transition: transform .18s ease, border-color .18s ease;
}

body.page-template-template-discography .discoli-item:hover,
body.page-template-template-discography-en .discoli-item:hover,
body.page-template-template-discography .discoli-item:focus-within,
body.page-template-template-discography-en .discoli-item:focus-within {
  transform: translateY(-3px);
  border-color: var(--disco-line-strong);
}

body.page-template-template-discography .discoli-item__link:focus-visible,
body.page-template-template-discography-en .discoli-item__link:focus-visible {
  outline: 2px solid var(--disco-ink);
  outline-offset: 4px;
  border-radius: 4px;
}

/* 5. No-cover tile. The preset prints the first letter; give it a deliberate face. */
body.page-template-template-discography .discoli-item__cover,
body.page-template-template-discography-en .discoli-item__cover {
  border-radius: 4px;
  overflow: hidden;
}

body.page-template-template-discography .discoli-item__placeholder,
body.page-template-template-discography-en .discoli-item__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(150deg, #0b3f74 0%, #04203d 100%);
  color: rgba(255, 255, 255, .5);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: .04em;
}

/* 5b. Broken cover: a missing file shows the alt text. Style that state on purpose
   instead of leaving a black block. The real fix is the missing upload. */
body.page-template-template-discography .discoli-item__img,
body.page-template-template-discography-en .discoli-item__img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: linear-gradient(150deg, #0b3f74 0%, #04203d 100%);
  color: rgba(255, 255, 255, .58);
  font-size: clamp(.9rem, 1.2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  align-content: center;
}

/* 6. Meta line: label, year, price - quieter than the title. */
body.page-template-template-discography .discoli-item__meta,
body.page-template-template-discography-en .discoli-item__meta {
  font-size: .78rem;
  letter-spacing: .04em;
  opacity: .82;
}

@media (prefers-reduced-motion: reduce) {
  body.page-template-template-discography .discoli-item,
  body.page-template-template-discography-en .discoli-item {
    transition: none;
  }

  body.page-template-template-discography .discoli-item:hover,
  body.page-template-template-discography-en .discoli-item:hover,
  body.page-template-template-discography .discoli-item:focus-within,
  body.page-template-template-discography-en .discoli-item:focus-within {
    transform: none;
  }
}
