/* hero — see hero.html for the data it reads. */

.s-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(82vh, 48rem);
  overflow: hidden;
  isolation: isolate;
}

.s-hero__bg { position: absolute; inset: 0; z-index: -1; }
.s-hero__bg img { width: 100%; height: 100%; object-fit: cover; }

/* The hero picture is never veiled or tinted in the site's colours: it shows
   exactly as uploaded (ziim, 2026-11-26). When there is a picture, the text
   sits on its own panel instead, so it stays readable over any photo. */
.s-hero:has(.s-hero__bg) .s-hero__text {
  justify-self: start;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 40rem;
  padding: clamp(var(--s-space-4), 4vw, var(--s-space-6));
  background: color-mix(in srgb, var(--s-bg) 92%, transparent);
  border: var(--s-border-w) var(--s-rule-style) var(--s-border);
  border-radius: var(--s-radius-md);
  box-shadow: var(--s-shadow-2);
}
.s-hero:has(.s-hero__bg) .s-hero__inner.is-center .s-hero__text { justify-self: center; }
.s-hero:has(.s-hero__bg) .s-hero__caption {
  padding: var(--s-space-2) var(--s-space-3);
  background: color-mix(in srgb, var(--s-bg) 92%, transparent);
  border-radius: var(--s-radius-sm);
}

.s-hero__inner {
  display: grid;
  gap: var(--s-space-7);
  align-items: center;
  width: 100%;
  max-width: var(--s-container);
  margin-inline: auto;
  padding: var(--s-space-9) var(--s-gutter) var(--s-space-8);
}
.s-hero__inner.is-center { justify-items: center; text-align: center; }

.s-hero__name {
  margin-bottom: var(--s-space-3);
  /* the display scale is sized against the viewport, so a long single-word
     name can outgrow a narrow column (the split layout, a phone). This is the
     safety net: break the word rather than let it run over the artwork. */
  overflow-wrap: anywhere;
}

.s-hero__tagline {
  font-size: var(--s-text-lg);
  color: var(--s-fg-muted);
  max-width: 44ch;
  margin-bottom: var(--s-space-4);
}
.s-hero__inner.is-center .s-hero__tagline { margin-inline: auto; }

.s-hero__blurb { margin-bottom: var(--s-space-5); max-width: 52ch; }

.s-hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-space-3); }
.s-hero__inner.is-center .s-hero__actions { justify-content: center; }

.s-hero__art { margin: 0; width: min(22rem, 70vw); }
.s-hero__art .s-media {
  border: var(--s-border-w) var(--s-rule-style) var(--s-border-strong);
  box-shadow: var(--s-shadow-3);
  border-radius: var(--s-radius-md);
}
.s-hero__caption {
  display: flex;
  flex-direction: column;
  gap: var(--s-space-1);
  margin-top: var(--s-space-3);
  font-family: var(--s-font-mono);
  font-size: var(--s-text-xs);
  letter-spacing: var(--s-tracking-wide);
  text-transform: uppercase;
}
.s-hero__release { color: var(--s-fg); }
.s-hero__meta { color: var(--s-fg-muted); }

@media (min-width: 56rem) {
  .s-hero__inner { grid-template-columns: minmax(0, 1.25fr) auto; }
  .s-hero__inner.is-center { grid-template-columns: minmax(0, 1fr); }
}
