/* CoiBoi — trance night: deep space, cyan / magenta energy */

:root {
  --bg: #05040f;
  --bg-2: #0a0820;
  --ink: #eef3ff;
  --ink-soft: #a9b4d4;
  --muted: #7a84a8;
  --line: rgba(170, 200, 255, 0.12);
  --cyan: #2ef0ff;
  --magenta: #ff2ecb;
  --violet: #7b5cff;
  --mint: var(--cyan);
  --mint-deep: #7af7ff;
  --spot: #1ed760;
  --surface: rgba(90, 120, 255, 0.06);
  --glow-cyan: 0 0 28px rgba(46, 240, 255, 0.45);
  --glow-mag: 0 0 36px rgba(255, 46, 203, 0.35);
  --wrap: 1120px;
  --radius: 2px;
  --font-display: "Syne", sans-serif;
  --font-body: "Exo 2", "Manrope", sans-serif;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(255, 46, 203, 0.18), transparent 55%),
    radial-gradient(760px 480px at 8% 25%, rgba(46, 240, 255, 0.16), transparent 50%),
    radial-gradient(700px 500px at 50% 110%, rgba(123, 92, 255, 0.2), transparent 55%),
    linear-gradient(180deg, #07061a 0%, var(--bg) 40%, var(--bg-2) 100%);
  background-attachment: fixed;
  line-height: 1.55;
  min-height: 100vh;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cyan);
  color: #05040f;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(100% - 2rem, 42rem);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(5, 4, 15, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(46, 240, 255, 0.45);
}

.nav-cta {
  background: linear-gradient(120deg, var(--cyan), #6d7bff 50%, var(--magenta));
  color: #05040f !important;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  box-shadow: var(--glow-cyan);
}

.nav-cta:hover {
  background: var(--spot) !important;
  color: #04140a !important;
  box-shadow: none;
  text-shadow: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 2rem;
  overflow: hidden;
  padding: 4rem 0 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 70% 40%, rgba(46, 240, 255, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 35% at 20% 70%, rgba(255, 46, 203, 0.1), transparent 70%),
    repeating-linear-gradient(
      180deg,
      transparent,
      transparent 3px,
      rgba(120, 160, 255, 0.03) 3px,
      rgba(120, 160, 255, 0.03) 4px
    );
  overflow: hidden;
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: pulse-orb 8s ease-in-out infinite;
}

.hero-bg::before {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  right: 8%;
  top: 12%;
  background: rgba(46, 240, 255, 0.22);
}

.hero-bg::after {
  width: min(40vw, 340px);
  height: min(40vw, 340px);
  left: 5%;
  bottom: 8%;
  background: rgba(255, 46, 203, 0.18);
  animation-delay: -3s;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 2rem;
  grid-column: 1;
  width: min(100% - 2rem, 36rem);
  margin-left: max(1rem, calc((100% - var(--wrap)) / 2));
  margin-right: auto;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin: 0 0 1.25rem;
  background: linear-gradient(115deg, #ffffff 10%, var(--cyan) 42%, var(--violet) 68%, var(--magenta) 95%);
  background-size: 180% 180%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: aurora 10s ease-in-out infinite;
  filter: drop-shadow(0 0 24px rgba(46, 240, 255, 0.25));
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  max-width: 16ch;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: end;
  width: min(100% - 2rem, 420px);
  margin-right: max(1rem, calc((100% - var(--wrap)) / 2));
  aspect-ratio: 1;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: conic-gradient(from 180deg, transparent, rgba(46, 240, 255, 0.35), transparent 40%, rgba(255, 46, 203, 0.3), transparent 70%);
  animation: spin 14s linear infinite;
  z-index: -1;
  filter: blur(8px);
  opacity: 0.85;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow), var(--glow-cyan);
  transform: rotate(2deg);
  animation: float-in 1s ease both;
}

.hero-visual-fallback {
  display: grid;
  place-items: center;
}

.vinyl {
  width: min(70%, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #1a1430 0 12%, #05040f 13% 18%, #0c0a1c 19% 100%);
  box-shadow: var(--shadow), var(--glow-cyan), inset 0 0 40px rgba(255, 46, 203, 0.15);
  position: relative;
  animation: spin 18s linear infinite;
}

.vinyl::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(46, 240, 255, 0.25);
  box-shadow: 0 0 20px rgba(46, 240, 255, 0.2);
}

.vinyl::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  opacity: 0.95;
  box-shadow: var(--glow-mag);
}

.vinyl.large {
  width: min(80%, 360px);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(18px) rotate(2deg); }
  to { opacity: 1; transform: translateY(0) rotate(2deg); }
}

@keyframes pulse-orb {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes aurora {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

[data-animate] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].is-in {
  opacity: 1;
  transform: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--cyan), #6d8bff 55%, var(--magenta));
  color: #05040f;
  box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
  background: var(--spot);
  color: #04140a;
  box-shadow: 0 0 24px rgba(30, 215, 96, 0.4);
}

.btn-ghost {
  background: rgba(46, 240, 255, 0.06);
  border-color: rgba(46, 240, 255, 0.4);
  color: var(--ink);
}

.btn-ghost:hover {
  background: rgba(255, 46, 203, 0.15);
  border-color: var(--magenta);
  color: #fff;
  box-shadow: var(--glow-mag);
}

.btn-danger {
  background: #8b1e1e;
  color: #fff;
}

/* Sections */
.section {
  padding: 4.5rem 0;
  position: relative;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  background: linear-gradient(90deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.notice {
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.notice code {
  font-size: 0.9em;
}

.notice a {
  color: var(--cyan);
}

/* Song list */
.song-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.song-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  transition: background 0.25s ease;
}

.song-row:hover {
  background: linear-gradient(90deg, rgba(46, 240, 255, 0.06), transparent 60%);
}

.song-row-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
  text-decoration: none;
}

.song-row-link:hover .song-title {
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(46, 240, 255, 0.4);
}

.song-cover {
  flex: 0 0 72px;
}

.song-cover img,
.song-cover-ph {
  width: 72px;
  height: 72px;
  object-fit: cover;
  background: #12102a;
  box-shadow: 0 0 0 1px rgba(46, 240, 255, 0.15);
}

.song-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.song-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.song-meta time {
  color: var(--muted);
  font-size: 0.9rem;
}

.song-spotify {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.song-spotify:hover {
  background: var(--spot);
  border-color: var(--spot);
  color: #04140a;
}

/* Song page */
.song-hero {
  padding: 3rem 0 2rem;
  position: relative;
}

.song-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(500px 280px at 80% 20%, rgba(255, 46, 203, 0.12), transparent 70%),
    radial-gradient(420px 260px at 10% 60%, rgba(46, 240, 255, 0.1), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.song-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.crumbs {
  display: flex;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--cyan);
}

.eyebrow {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--cyan);
  margin: 0 0 0.5rem;
  text-shadow: 0 0 12px rgba(46, 240, 255, 0.35);
}

.song-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
}

.song-date {
  color: var(--muted);
  margin: 0 0 1rem;
}

.song-desc {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 38ch;
}

.song-hero-art {
  position: relative;
}

.song-hero-art img {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: var(--shadow), var(--glow-mag);
}

.embed-section {
  padding-top: 1rem;
}

.spotify-embed {
  max-width: 720px;
  filter: drop-shadow(0 0 24px rgba(46, 240, 255, 0.12));
}

.lyrics {
  white-space: pre-wrap;
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-section h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.04em;
  margin: 0 0 1.25rem;
  background: linear-gradient(115deg, #fff, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.prose p {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  margin-top: 2rem;
  background: linear-gradient(180deg, transparent, rgba(123, 92, 255, 0.08));
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  margin: 0 0 0.35rem;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--cyan);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg::before,
  .hero-bg::after,
  .brand-mark,
  .vinyl,
  .hero-visual::before {
    animation: none !important;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.5rem;
  }

  .hero-content,
  .hero-visual {
    margin-left: auto;
    margin-right: auto;
    width: min(100% - 2rem, var(--wrap));
  }

  .hero-visual {
    order: -1;
    max-width: 280px;
    justify-self: start;
  }

  .brand-mark {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .song-hero-grid {
    grid-template-columns: 1fr;
  }

  .song-hero-art img {
    margin: 0;
  }

  .nav-cta {
    display: none;
  }
}
