/* Aldana Links — public pages.
   The page borrows its light from the cover art: assets/public.js samples
   the artwork and sets --tint-*, so every release page is washed in its
   own color. Everything else stays quiet: ink, warm white, hairlines. */

:root {
  --ink:      #0a0a0e;
  --paper:    #edebe4;
  --paper-60: rgba(237, 235, 228, .60);
  --paper-38: rgba(237, 235, 228, .38);
  --hair:     rgba(237, 235, 228, .14);
  --tint-h: 250;         /* replaced at runtime from the artwork */
  --tint-s: 28%;
  --tint-l: 58%;
  --tint:      hsl(var(--tint-h) var(--tint-s) var(--tint-l));
  --tint-soft: hsla(var(--tint-h), var(--tint-s), var(--tint-l), .16);
  --tint-glow: hsla(var(--tint-h), var(--tint-s), var(--tint-l), .34);
  --display: "Fraunces", Georgia, serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------- backdrop -- */

.wash { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--ink); }
.wash-art {
  position: absolute; inset: -22%;
  background-size: cover; background-position: center;
  filter: blur(64px) saturate(1.25) brightness(.62);
  transform: scale(1.04);
  animation: drift 46s ease-in-out infinite alternate;
}
.wash-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 0%, rgba(10,10,14,.55) 68%, rgba(10,10,14,.9) 100%),
    linear-gradient(rgba(10,10,14,.38), rgba(10,10,14,.66));
}
@keyframes drift {
  from { transform: scale(1.04) translateY(-1.5%); }
  to   { transform: scale(1.1)  translateY(1.5%); }
}

/* ------------------------------------------------------------- sheet -- */

.sheet {
  max-width: 420px;
  margin: 0 auto;
  padding: clamp(28px, 7vh, 64px) 22px 40px;
  min-height: 100svh;
  display: flex; flex-direction: column;
}

.art {
  position: relative;
  margin: 0 auto 26px;
  width: min(78vw, 316px);
  aspect-ratio: 1;
  border-radius: 10px;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, .75),
    0 0 120px -12px var(--tint-glow);
  animation: rise .7s cubic-bezier(.2,.7,.2,1) both;
}
.art img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: inherit; display: block;
}
.art--empty {
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--tint-soft), rgba(255,255,255,.04));
  border: 1px solid var(--hair);
}
.art-mono { font: italic 600 120px/1 var(--display); color: var(--paper-38); }

.preview {
  position: absolute; right: 12px; bottom: 12px;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(10,10,14,.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--paper); cursor: pointer;
  display: grid; place-items: center;
  transition: transform .18s ease, background .18s ease;
}
.preview:hover { transform: scale(1.06); background: rgba(10,10,14,.75); }
.preview svg { width: 22px; height: 22px; fill: currentColor; }
.preview .i-pause { display: none; }
.preview.playing .i-play { display: none; }
.preview.playing .i-pause { display: block; }

/* -------------------------------------------------------------- head -- */

.head { text-align: center; animation: rise .7s .06s cubic-bezier(.2,.7,.2,1) both; }
.artist {
  margin: 0 0 6px;
  font: 500 12px/1 var(--body);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--paper-60);
}
.title {
  margin: 0;
  font: italic 560 clamp(34px, 9vw, 44px)/1.06 var(--display);
  font-variation-settings: "opsz" 90;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.meta { margin: 10px 0 0; font-size: 13px; color: var(--paper-60); }

/* ---------------------------------------------------------- services -- */

.continue {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin: 26px 0 -8px;
  padding: 13px 16px;
  border-radius: 8px;
  background: var(--tint-soft);
  border: 1px solid var(--tint-glow);
  text-decoration: none; font-size: 14px;
}
.continue span { color: var(--paper-60); }
.continue strong { font-weight: 600; white-space: nowrap; }
.continue:hover { background: var(--tint-glow); }

.services {
  list-style: none;
  margin: 26px 0 0; padding: 0;
  border-top: 1px solid var(--hair);
}
.services li { animation: rise .55s cubic-bezier(.2,.7,.2,1) both; }
.services li:nth-child(1)  { animation-delay: .10s; }
.services li:nth-child(2)  { animation-delay: .14s; }
.services li:nth-child(3)  { animation-delay: .18s; }
.services li:nth-child(4)  { animation-delay: .22s; }
.services li:nth-child(5)  { animation-delay: .26s; }
.services li:nth-child(6)  { animation-delay: .30s; }
.services li:nth-child(7)  { animation-delay: .34s; }
.services li:nth-child(8)  { animation-delay: .38s; }
.services li:nth-child(n+9){ animation-delay: .42s; }

.row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
}
.row .name { font-weight: 500; font-size: 16.5px; transition: transform .16s ease; }
.row .act {
  font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--paper-38);
  padding: 7px 14px;
  border: 1px solid var(--hair);
  border-radius: 99px;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.row:hover .name, .row:focus-visible .name { transform: translateX(4px); }
.row:hover .act, .row:focus-visible .act {
  color: var(--paper);
  border-color: var(--tint);
  background: var(--tint-soft);
}
.row--none { color: var(--paper-60); font-size: 14.5px; }

.blurb {
  margin: 26px 0 0;
  font-size: 14px; line-height: 1.65;
  color: var(--paper-60);
  text-align: center;
}

/* -------------------------------------------------------------- foot -- */

.foot {
  margin-top: auto; padding-top: 44px;
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 12.5px; color: var(--paper-38);
}
.foot a { color: var(--paper-60); text-decoration: none; }
.foot a:hover { color: var(--paper); }

/* ----------------------------------------------------------- home ----- */

.wrap { max-width: 1020px; margin: 0 auto; padding: clamp(36px, 8vh, 88px) 24px 48px; min-height: 100svh; display: flex; flex-direction: column; }
.wrap--narrow { max-width: 560px; }

.masthead { margin-bottom: clamp(28px, 6vh, 56px); }
.eyebrow {
  margin: 0 0 10px;
  font: 500 12px/1 var(--body);
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--paper-60);
}
.brand {
  margin: 0;
  font: italic 560 clamp(40px, 7vw, 72px)/1.02 var(--display);
  font-variation-settings: "opsz" 120;
  letter-spacing: -.015em;
}
.lede { margin: 14px 0 0; color: var(--paper-60); max-width: 34em; }
.plain-link { color: var(--paper); }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 26px 22px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.card { display: block; text-decoration: none; }
.cover {
  display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--hair);
  transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s ease;
}
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover--empty { display: grid; place-items: center; background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); }
.cover-mono { font: italic 600 64px/1 var(--display); color: var(--paper-38); }
.card:hover .cover, .card:focus-visible .cover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -18px rgba(0,0,0,.8);
}
.card-title { display: block; margin-top: 12px; font-weight: 600; font-size: 15.5px; }
.card-meta { display: block; margin-top: 2px; font-size: 12.5px; color: var(--paper-38); }
.empty { color: var(--paper-60); }
.foot--home { border-top: 1px solid var(--hair); margin-top: 56px; padding-top: 20px; }

/* ------------------------------------------------------------ motion -- */

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wash-art { animation: none; }
  .art, .head, .services li { animation: none; }
  .cover, .row .name, .preview { transition: none; }
}

@media (max-width: 420px) {
  .row { padding: 14px 2px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
}
