:root {
  --paper: #f3efe7;
  --ink: #16140f;
  --muted: rgba(22, 20, 15, 0.62);
  --line: rgba(22, 20, 15, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Outfit, sans-serif;
  font-weight: 300;
  letter-spacing: 0.01em;
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
}

body[data-world="home"] {
  --paper: #f3efe7;
  --ink: #16140f;
  --muted: rgba(22, 20, 15, 0.62);
  --line: rgba(22, 20, 15, 0.4);
  background: var(--paper);
  color: var(--ink);
}

body[data-world="spirithz"] {
  --paper: #07060c;
  --ink: #f6f3ea;
  --muted: rgba(246, 243, 234, 0.66);
  --line: rgba(198, 255, 74, 0.75);
  background:
    radial-gradient(900px 520px at 12% 20%, rgba(122, 60, 255, 0.28), transparent 60%),
    radial-gradient(700px 480px at 90% 80%, rgba(255, 45, 140, 0.18), transparent 55%),
    var(--paper);
  color: var(--ink);
}

body[data-world="jaime2000"] {
  --paper: #e7eef2;
  --ink: #12161a;
  --muted: rgba(18, 22, 26, 0.62);
  --line: rgba(226, 59, 134, 0.7);
  background:
    linear-gradient(180deg, #f7fafc 0%, #e7eef2 40%, #d5e2ea 100%);
  color: var(--ink);
}

body[data-world="quarteteuc"] {
  --paper: #140e0a;
  --ink: #f8efdc;
  --muted: rgba(248, 239, 220, 0.68);
  --line: rgba(240, 163, 94, 0.8);
  background:
    radial-gradient(800px 500px at 70% 10%, rgba(240, 140, 50, 0.18), transparent 60%),
    var(--paper);
  color: var(--ink);
}

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 9;
}

.skip:focus { top: 1rem; }

header, footer, main { position: relative; z-index: 1; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.35rem 7vw 0;
}

.brand {
  font-family: Fraunces, serif;
  font-weight: 560;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.lang { display: flex; gap: 0.35rem; }

.lang button {
  appearance: none;
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  padding: 0.4rem 0.2rem;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ink);
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 2rem 4vw 2.4rem;
  font-size: 0.95rem;
}

footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

footer svg { width: 1.15rem; height: 1.15rem; }

footer a:hover span,
footer a:hover { text-decoration: underline; text-underline-offset: 0.25em; }

body:not([data-world="home"]) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body:not([data-world="home"]) main {
  flex: 1;
  display: flex;
  align-items: center;
}

.home {
  display: grid;
  justify-items: center;
  gap: 9vh;
  padding: 4vh 4vw 8vh;
}

.card {
  display: block;
  width: min(100%, 40rem, 72vh);
  text-decoration: none;
  color: inherit;
}

.card[data-artist="jaime2000"] { --label: #e23b86; }
.card[data-artist="spirithz"] { --label: #d6ff4a; }
.card[data-artist="quarteteuc"] { --label: #f0a35e; }

.sleeve { position: relative; }

.vinyl {
  position: absolute;
  z-index: 0;
  top: 5%;
  left: 27%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #161310 0 3.1%, transparent 3.3% 16.2%, #111 16.6% 18%, transparent 18.3%),
    radial-gradient(circle at 50% 50%, var(--label) 0 17.4%, transparent 17.6%),
    repeating-radial-gradient(circle at 50% 50%, #121212 0 1px, #2a2a2a 2px, #0c0c0c 3px);
  box-shadow: 10px 14px 28px rgba(22, 20, 15, 0.2);
  transition: transform 0.55s var(--ease);
}

.vinyl::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.22), transparent 32%, transparent 68%, rgba(255, 255, 255, 0.08));
}

.card:hover .vinyl { transform: translateX(7%); }

.shot { position: relative; z-index: 1; width: 78%; }

.shot img,
.hero img,
.releases img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.shot img { box-shadow: 0 14px 32px rgba(22, 20, 15, 0.16); }

.card h2 {
  width: 78%;
  margin: 0.85rem 0 0;
  font-family: Syne, sans-serif;
  font-weight: 750;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(1.2rem, 3vw, 3rem);
  width: min(1120px, 100%);
  margin-inline: auto;
  padding: 0.75rem 4vw 1rem;
}

.hero,
.panel {
  width: 100%;
  margin: 0;
}

.hero {
  display: flex;
  justify-content: center;
}

.hero img {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 10.5rem);
}

main { overflow-anchor: none; }

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel h1 {
  margin: 0;
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.2vw, 3.3rem);
  letter-spacing: -0.05em;
  line-height: 0.92;
}

body[data-world="quarteteuc"] .panel h1 {
  font-family: Cinzel, serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: clamp(1.6rem, 2.8vw, 2.7rem);
  line-height: 1.02;
}

.releases {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0.85rem 0 0.75rem;
}

.releases:empty { display: none; }

.releases button {
  width: min(84px, 22vw);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

.releases button[aria-current="true"] img {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}

.player {
  margin-top: 0.2rem;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

body[data-world="jaime2000"] .player {
  border-color: rgba(18, 22, 26, 0.16);
}

.player iframe {
  display: block;
  width: 100%;
  height: clamp(168px, 30vh, 280px);
  border: 0;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.8rem;
}

.platforms a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.platforms svg { width: 1.05rem; height: 1.05rem; flex: none; }

.platforms a:hover { text-decoration: underline; text-underline-offset: 0.28em; }

.missing {
  min-height: 60vh;
  display: grid;
  place-items: center;
  font-family: Syne, sans-serif;
  font-size: 2rem;
}

.missing a { text-decoration: none; }

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

@media (max-width: 860px) {
  header, footer { padding-left: 1.3rem; padding-right: 1.3rem; }
  .home, .stage { padding-left: 1.1rem; padding-right: 1.1rem; }
  .home { gap: 6vh; }
  .stage {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding-top: 0.4rem;
    padding-bottom: 0.6rem;
  }
  .hero img { max-height: 30vh; }
  .releases { margin: 0.55rem 0; }
  .releases button { width: min(68px, 20vw); }
  .player iframe { height: 200px; }
  footer { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vinyl, body { transition: none; }
}
