/* ==========================================================================
   Light Years Ahead — shared stylesheet
   Plain CSS. No build step. Mobile-first.
   ========================================================================== */

/* --------------------------------------------------------------------------
   PALETTE
   Hardcoded from the cover art (no JS colour extraction on a page this size).
   When the real 3000x3000 art lands, tune these six values and the whole
   site follows. Everything else is derived from them.
   -------------------------------------------------------------------------- */
:root {
  --bg:        #0a0a0f;  /* page background — near-black, slightly blue */
  --bg-elev:   #14141c;  /* raised surfaces: cards, banner, secondary buttons */
  --line:      #262633;  /* hairline borders */
  --ink:       #f4f2ef;  /* primary text — warm white, not pure #fff */
  --ink-dim:   #a29eae;  /* secondary text */
  --accent:    #7b6cff;  /* primary accent — violet */
  --accent-2:  #ff8f5e;  /* warm secondary, used sparingly */

  /* Derived */
  --accent-ink: #0a0a0f;                 /* text on top of --accent */
  --focus:      var(--accent-2);
  --radius:     14px;
  --maxw:       34rem;                   /* content column */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);

  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* A `display` rule on an element beats its `hidden` attribute, so `.actions`
   and friends would still render when marked hidden. Make `hidden` win. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   LAYOUT
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.page > main { flex: 1 0 auto; }

/* --------------------------------------------------------------------------
   RELEASE PAGE LAYOUT

   Mobile-first and a single layout throughout — there is no separate desktop
   template. Phones get one stacked column; from 54rem the same markup becomes
   a two-column grid with the art beside the text instead of a narrow column
   floating in a wide empty page. --wide widens the container to match.
   -------------------------------------------------------------------------- */
.release { padding-top: 3rem; }

@media (min-width: 54rem) {
  .wrap--wide { max-width: 58rem; }

  .release {
    padding-top: 5rem;
    display: grid;
    grid-template-columns: minmax(0, 21rem) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
  }

  /* The art stays put while a longer body scrolls past it. */
  .release__media {
    position: sticky;
    top: 5rem;
  }

  /* Left-aligned labels in a full-width column leave a lot of dead space to
     the right. Cap the button stack so the rows stay tight. */
  .release__body .actions { max-width: 23rem; }
}

/* Soft glow behind the hero — lets the art's colour bleed into the page
   without loading anything extra. */
.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58rem 42rem at 50% -12rem,
      color-mix(in srgb, var(--accent) 22%, transparent) 0%,
      transparent 70%),
    radial-gradient(38rem 30rem at 88% 8%,
      color-mix(in srgb, var(--accent-2) 10%, transparent) 0%,
      transparent 68%);
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */
.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 9vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 680;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 620;
}

h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 620;
  letter-spacing: -0.005em;
}

p { margin: 0 0 1rem; }

.lede {
  font-size: 1.05rem;
  color: var(--ink-dim);
  text-wrap: pretty;
}

.byline {
  margin: 0.6rem 0 0;
  font-size: 1rem;
  color: var(--ink-dim);
  letter-spacing: 0.01em;
}

.muted { color: var(--ink-dim); }

.small {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-dim);
}

/* --------------------------------------------------------------------------
   COVER ART
   -------------------------------------------------------------------------- */
.cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 60px -20px rgba(0, 0, 0, 0.8);
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.75rem 0 0;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background-color 0.15s var(--ease),
              border-color 0.15s var(--ease), opacity 0.15s var(--ease);
}

.btn:active { transform: scale(0.985); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, white);
}

.btn--secondary {
  background: var(--bg-elev);
  color: var(--ink);
  border-color: var(--line);
}

.btn--secondary:hover {
  border-color: color-mix(in srgb, var(--ink-dim) 55%, transparent);
  background: color-mix(in srgb, var(--bg-elev) 80%, var(--ink));
}

/* --------------------------------------------------------------------------
   SERVICE BUTTONS (Spotify, Apple Music, ...)

   These are deliberately uniform dark rows rather than accent-filled ones:
   the real brand logos are full-colour, and Spotify green on a violet fill
   clashes badly. Hierarchy comes from order and from --featured instead.
   -------------------------------------------------------------------------- */
.btn--service {
  justify-content: flex-start;
  gap: 0.9rem;
  padding-left: 1.1rem;
  background: var(--bg-elev);
  color: var(--ink);
  border-color: var(--line);
  /* Fixed height rather than min-height + padding: the per-service logo sizes
     below differ, and with padding-driven height they made the rows unequal
     (52-56px). Height is set here and the logos sit inside it. */
  height: 3.5rem;
  padding-top: 0;
  padding-bottom: 0;
}

/* Never let a label wrap to a second line — it breaks the scan down the list.
   Measured at the 1rem inherited size: the longest label, "Listen on Apple
   Music", needs 167px and has 198px of room at a 320px viewport, so all four
   stay on one line from the narrowest phone up. No font-size reduction needed;
   if you add a longer service name, re-measure before trusting it. */
.btn__label { white-space: nowrap; }

.btn--service:hover {
  border-color: color-mix(in srgb, var(--ink-dim) 55%, transparent);
  background: color-mix(in srgb, var(--bg-elev) 80%, var(--ink));
}

/* Top two services get a brighter edge and a hairline accent, so the eye
   still lands on them first without fighting the logo colours. */
.btn--featured {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, var(--bg-elev));
}

.btn--featured:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--bg-elev));
}

/* Logo slot. Baseline is tuned to Spotify, which is the one with a hard
   constraint: their file is 236.05x225.25 around a 218.64 circle, so the
   visible mark renders at 0.926 x the box, and their stated minimum icon size
   is 21px digital. At 1.55rem (24.8px) the mark lands at 23.0px — don't go
   below ~1.42rem or it breaches their minimum. */
.btn__logo {
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
  object-fit: contain;
}

/* The official marks come from four different kits with different artboard
   padding and aspect ratios, so an identical box makes them look unequal.
   These two nudges are optical, not arbitrary — the artwork is untouched.

   Apple's is a full-bleed 361x361 rounded square with no padding, and a solid
   square reads noticeably heavier than a circle at the same width. */
.btn__logo--apple { width: 1.4rem; height: 1.4rem; }

/* Beatport's icon is portrait (1036x1200), so `contain` fits it by height and
   leaves it looking narrow and small next to the others. */
.btn__logo--beatport { width: 1.7rem; height: 1.7rem; }

/* If a logo file is missing, JS drops the <img> and this keeps the label
   from jumping left. */
.btn--service.no-logo { padding-left: 1.25rem; }

/* Placeholder state: URL not filled in yet. Only ever shown on local preview
   — on the live site an unset link is removed instead. Applied by JS in
   music/.../index.html. */
.btn.is-placeholder {
  background: transparent;
  color: var(--ink-dim);
  border: 1px dashed color-mix(in srgb, var(--accent-2) 55%, transparent);
  cursor: not-allowed;
  pointer-events: none;
}

/* Test mode (?lyatest on the live site) needs the placeholder to be clickable
   so it can fire its tracking event. Local preview keeps pointer-events: none
   above, because a preview must never write into the Meta dataset. */
.btn.is-placeholder.is-testable {
  pointer-events: auto;
  cursor: pointer;
}

.btn.is-placeholder.is-testable::after {
  content: "test click";
}

.btn.is-placeholder::after {
  content: "URL not set";
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  flex-shrink: 0;
  margin-top: 3.5rem;
  padding: 1.75rem 0 2.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-dim);
}

.footer a {
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.footer a:hover { color: var(--ink); border-bottom-color: var(--ink-dim); }

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
}

.footer__spacer { flex: 1 1 auto; }

.linkbtn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.linkbtn:hover { color: var(--ink); border-bottom-color: var(--ink-dim); }

/* --------------------------------------------------------------------------
   CONSENT BANNER
   Removed. Cookiebot renders and styles its own banner, so the hand-rolled
   .consent block that used to live here had no markup left to style. Its
   appearance is configured in the Cookiebot dashboard, not in this file.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   PROSE (privacy policy)
   -------------------------------------------------------------------------- */
.prose {
  max-width: 38rem;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.05rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

.prose li { margin-bottom: 0.4rem; }

.prose a { color: var(--ink); text-underline-offset: 3px; }

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  padding: 0.12em 0.35em;
  border-radius: 5px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   UTILITIES
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.7rem 1.1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
  z-index: 200;
}

.skip-link:focus { left: 0; }
