/* Release blocks (Latest Album, Latest Release / EP, Previous Album).
   Three sections share the same .release / .release-grid skeleton with
   variant classes (.album, .prev-album) for color and brush mark swaps.
   Ported from design/kos-hp/project/styles.css lines 64-110. */

.release {
  position: relative;
  padding: 96px 0 96px;
  border-top: 1px solid var(--kos-concrete);
}

/* Default brush sweep — brick red, used by EP/.release */
.release::before {
  content: '';
  position: absolute;
  left: -80px; top: 20px;
  width: 180px; height: 320px;
  background: url('../assets/mark-brush-red.svg') no-repeat left center;
  background-size: contain;
  opacity: 0.9;
  pointer-events: none;
}
/* New Album variant — cobalt brush */
.release.album::before {
  content: '';
  position: absolute;
  left: -80px; top: 20px;
  width: 180px; height: 320px;
  background: url('../assets/mark-brush-cobalt.svg') no-repeat left center;
  background-size: contain;
  opacity: 0.9;
  pointer-events: none;
}
/* Previous Album variant — red scribble, top-aligned to match the other releases */
.release.prev-album::before {
  background: url('../assets/mark-scribble-red.svg') no-repeat left center !important;
  background-size: contain !important;
  opacity: 0.7 !important;
  /* Prototype set top: 40px here, but it made the section read as having
     more empty space at the top. Aligning to 20px matches the other
     two release blocks' brush marks. */
  top: 20px !important;
}

.release-grid {
  position: relative;
  display: grid;
  /* Cover ratio tuned to ~1.1fr so the cover stays the same size as before
     the gap halving (~466px at shell max-width). The freed 100px of gap
     space goes to the body+aside columns, not back to the cover. */
  grid-template-columns: 1.1fr 1.1fr 0.5fr;
  gap: 50px;
  align-items: stretch;
}

/* ---- Cover art (shared base) ----------------------------------------- */
.cover-art {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #89abc7 0%, #486a85 55%, #1a2a3c 100%);
  padding: 22px;
  box-shadow: 3px 3px 0 0 var(--kos-coal);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  /* Keep covers at their natural square size — don't let the grid's
     align-items: stretch pull them taller when body content is long. */
  align-self: start;
}

/* EP cover — image fills the frame, EP tag pinned bottom-left */
.ep-cover { background: var(--kos-coal); padding: 0; overflow: hidden; }
.ep-cover img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  position: absolute; inset: 0; z-index: 1;
}
.ep-cover .ep-tag {
  position: absolute; bottom: 12px; left: 14px;
  background: var(--kos-coal);
  padding: 6px 10px; z-index: 2;
  font-family: var(--font-body); font-weight: 700;
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--kos-bone); text-transform: uppercase;
}

/* Album cover — image fills the frame, album tag pinned bottom-left */
.album-cover {
  background: var(--kos-coal);
  padding: 0; overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 3px 3px 0 0 var(--kos-coal);
}
/* Absolute fill matches .ep-cover so all three release covers behave
   identically inside the .release-grid (no flex-height under-fill). */
.album-cover img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  position: absolute; inset: 0; z-index: 1;
}
.album-cover .album-tag {
  position: absolute; bottom: 12px; left: 14px;
  background: var(--kos-coal); color: var(--kos-bone);
  padding: 6px 10px;
  font-family: var(--font-body); font-weight: 700;
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; z-index: 2;
}

/* ---- Release body --------------------------------------------------- */
.release-body h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(44px, 4.8vw, 68px);
  line-height: 0.94;
  letter-spacing: -0.015em;
  margin: 6px 0 20px;
}
.release-body p {
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.55;
  color: var(--kos-coal);
  max-width: 420px;
  margin: 0 0 28px;
}

/* Streaming chips row */
.streams {
  display: flex; gap: 18px; flex-wrap: wrap;
  margin: 0 0 28px;
  align-items: center;
}
.stream-chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700;
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kos-coal);
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid transparent;
  transition: border-color 140ms var(--ease-out), color 140ms var(--ease-out);
  text-decoration: none;
}
.stream-chip:hover { border-color: var(--kos-coal); color: var(--kos-brick); }

/* Trailing actions row (button + textlink, etc.) */
.release-actions {
  display: flex; gap: 12px;
  flex-wrap: wrap; align-items: center;
}

/* ---- Date aside (right column) -------------------------------------- */
.release-aside {
  background: var(--kos-cobalt);
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 24% 100%);
  overflow: hidden;
}
.release-aside .ast {
  position: absolute; right: 28px; top: 28px;
  color: var(--kos-coal);
  font-size: 42px; font-weight: 700; line-height: 1;
  font-family: var(--font-display);
}
.release-aside .dots {
  position: absolute; right: 20px; bottom: 20px;
  width: 140px; height: 140px;
  background: url('../assets/mark-dot-matrix.svg') no-repeat right bottom;
  background-size: contain;
  opacity: 0.35;
}

/* New Album aside — brick instead of cobalt, with arc marks */
.album-aside {
  background: var(--kos-brick);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 24% 100%);
}
.album-aside .dots {
  position: absolute; right: 18px; bottom: 18px;
  width: 120px; height: 120px;
  background: url('../assets/mark-arcs-white.svg') no-repeat right bottom;
  background-size: contain;
  opacity: 0.5;
}

/* Previous Album aside — coal instead of cobalt */
.prev-aside { background: var(--kos-coal) !important; }
.prev-aside .date-chip { color: var(--kos-bone); }
.prev-aside .dots { opacity: 0.2 !important; }

/* Date chip floating inside the aside (Mo / day / yr) */
.date-chip {
  position: absolute;
  left: 28%; top: 22%; right: 20%;
  color: var(--kos-bone);
  font-family: var(--font-display);
  text-transform: uppercase;
  text-align: center;
}
.date-chip .mo { font-size: 18px; letter-spacing: 0.08em; }
.date-chip .d  { font-size: 88px; line-height: 0.9; margin: 4px 0 6px; letter-spacing: -0.02em; }
.date-chip .yr { font-size: 14px; letter-spacing: 0.12em; }
