/* ==========================================================================
   Michael Circle — self-titled release page
   Palette pulled from the album art: night sky, flame-yellow logo,
   UFO-beam green, sunset clouds.
   ========================================================================== */

:root {
  --ink:    #0a0913;
  --yellow: #f7e646;
  --green:  #b6e83c;
  --cream:  #f6f1e2;
  --dust:   rgba(246, 241, 226, 0.62);

  --edge:   3px;                       /* sticker outline width */
  --pop:    5px;                       /* hard drop-shadow offset */
}

/* --------------------------------------------------------------- canvas -- */

html {
  /* The tilted cover and its sticker sit slightly past the page edges — clip
     them so they never produce a sideways scroll on narrow phones. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  margin: 0;
  background-color: #0b0a1e;
  background-image:
    radial-gradient(115% 70% at 50% 0%,   rgba(96, 66, 158, 0.60) 0%, rgba(11, 10, 30, 0) 62%),
    radial-gradient(95% 55% at 50% 100%,  rgba(197, 111, 122, 0.30) 0%, rgba(11, 10, 30, 0) 68%);
  background-attachment: fixed;
  color: var(--cream);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Star field — pure CSS, no image request. */
.starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1.5px 1.5px at 24px 38px,  #fff, transparent),
    radial-gradient(1px   1px   at 130px 90px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 76px 168px, #fff, transparent),
    radial-gradient(1px   1px   at 190px 22px, #fff, transparent),
    radial-gradient(1px   1px   at 158px 210px,#fff, transparent);
  background-size: 220px 240px;
  /* Fade the stars out toward the bottom, where the sunset glow takes over. */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 85%);
          mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 85%);
}

.page {
  position: relative;
  width: min(520px, 100%);
  margin-inline: auto;
  padding: clamp(1.75rem, 7vw, 3rem) 1.25rem calc(2.5rem + env(safe-area-inset-bottom));
}

/* ---------------------------------------------------------------- cover -- */

.cover {
  position: relative;
  /* Extra bottom room: the "out now" sticker hangs past the sleeve. */
  margin: 0 0 clamp(2.75rem, 10vw, 3.5rem);
  transform: rotate(-1.5deg);
  transition: transform 0.35s ease;
}

.cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: var(--edge) solid var(--ink);
  border-radius: 8px;
  box-shadow:
    10px 10px 0 rgba(0, 0, 0, 0.55),
    0 0 70px rgba(247, 230, 70, 0.13);
  background: #1a1636;                 /* placeholder tint while loading */
}

.cover:hover { transform: rotate(0deg); }

/* "Out now" sticker slapped on the corner of the sleeve. */
.cover__sticker {
  position: absolute;
  left: -0.35rem;
  bottom: -0.9rem;
  padding: 0.3rem 0.85rem 0.22rem;
  transform: rotate(-4deg);
  background: var(--yellow);
  color: var(--ink);
  border: var(--edge) solid var(--ink);
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: Anton, Impact, system-ui, sans-serif;
  font-size: clamp(0.8rem, 3.4vw, 0.95rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------- sections -- */

.section { margin-bottom: clamp(1.75rem, 6vw, 2.25rem); }

.section__title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dust);
}

.section__title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: currentColor;
  opacity: 0.35;
}

/* --------------------------------------------------------------- buttons -- */

.btn-sticker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.95rem;
  margin-bottom: 0.85rem;
  background: var(--cream);
  color: var(--ink);
  border: var(--edge) solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--pop) var(--pop) 0 var(--ink);
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.2s ease;
}

.btn-sticker__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  font-size: 1.5rem;
  line-height: 1;
}

.btn-sticker__icon svg { width: 1.5rem; height: 1.5rem; display: block; }

.btn-sticker__label {
  flex: 1;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-sticker__go {
  flex: 0 0 auto;
  font-size: 1.1rem;
  opacity: 0.4;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

/* Press the sticker down onto its own shadow. */
.btn-sticker:hover,
.btn-sticker:focus-visible {
  background: var(--yellow);
  color: var(--ink);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-sticker:hover .btn-sticker__go { transform: translateX(3px); opacity: 0.85; }

.btn-sticker:active {
  transform: translate(var(--pop), var(--pop));
  box-shadow: 0 0 0 var(--ink);
}

.btn-sticker:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

/* Two side-by-side social stickers. */
.social-row { display: flex; gap: 0.85rem; }

.btn-sticker--social {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  gap: 0.55rem;
}

.btn-sticker--social .btn-sticker__label {
  flex: 0 1 auto;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------------- footer -- */

.foot {
  margin-top: clamp(2rem, 8vw, 3rem);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dust);
}

.foot p { margin: 0; }

/* ------------------------------------------------------------ a11y prefs -- */

@media (prefers-reduced-motion: reduce) {
  .cover,
  .btn-sticker,
  .btn-sticker__go { transition: none; }
}

/* Very small phones: ease off the chunky offsets so nothing crowds. */
@media (max-width: 360px) {
  :root { --pop: 4px; }
  .btn-sticker { padding: 0.7rem 0.8rem; gap: 0.65rem; }
  .btn-sticker__label { font-size: 0.9rem; }
}
