/* font and theme */
@font-face {
  font-family: "daniel";
  src: url("assets/daniel.ttf") format("truetype");
  font-display: swap;
}

:root {
  --background: #0a0910;
  --white: #f7f4ff;
  --muted: #beb6cf;
  --line: rgba(247, 244, 255, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 35%, rgba(116, 94, 169, 0.44), transparent 36%),
    url("assets/br-icons/bg-purple.png") center / cover fixed,
    var(--background);
  font-family: "daniel", sans-serif;
  letter-spacing: 0.04em;
}

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(8, 7, 13, 0.1), rgba(8, 7, 13, 0.84));
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* stars */
.stars {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 7px 2px rgba(218, 204, 255, 0.7);
  animation: twinkle 3.5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  to {
    opacity: 0.2;
    transform: scale(0.45);
  }
}

@keyframes letter-drift {
  50% {
    transform: translateY(-4px) rotate(1.5deg);
  }
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  padding: 23px clamp(20px, 4vw, 60px);
  pointer-events: none;
}

.page-icon {
  pointer-events: auto;
  display: block;
  width: 50px;
  height: 50px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #292929;
  box-shadow: 0 0 21px rgba(204, 190, 255, 0.16);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.page-icon:hover {
  box-shadow: 0 0 30px rgba(204, 190, 255, 0.4);
  transform: rotate(-8deg) scale(1.05);
}

.page-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* letter drift */
.letter {
  display: inline-block;
  animation: letter-drift var(--drift-duration) ease-in-out infinite;
  animation-delay: var(--drift-delay);
}

/* secondary pages */
.page-main {
  min-height: calc(100svh - 54px);
  padding: 145px clamp(22px, 8vw, 130px) 85px;
}

.page-intro {
  max-width: 690px;
  margin: 0 auto 65px;
  text-align: center;
}

.page-label,
.site-footer,
.artist-card p,
.playlist-card > p {
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: lowercase;
}

.page-label {
  margin: 0 0 17px;
  color: var(--muted);
}

.page-intro h1 {
  margin: 0;
  font-size: clamp(4.5rem, 11vw, 9rem);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.07em;
  text-shadow: 0 0 24px rgba(247, 244, 255, 0.25), 0 0 70px rgba(164, 129, 255, 0.2);
}

/* Sleek Modal Window Styling */
.quarters-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 7, 13, 0.88);
  backdrop-filter: blur(10px);
  place-items: center;
  padding: 20px;
}

.quarters-modal-content {
  position: relative;
  background: #141020;
  border: 1px solid var(--line);
  padding: 38px 30px 30px;
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 50px rgba(164, 129, 255, 0.22);
}

.quarters-modal-content h2 {
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.quarters-modal-content p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.3;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}

.modal-close:hover {
  color: var(--muted);
  transform: scale(1.1);
}

.modal-embed-container {
  display: grid;
  gap: 16px;
  margin-top: 10px;
}

.modal-link-btn {
  display: block;
  padding: 12px;
  background: var(--white);
  color: var(--background);
  font-size: 18px;
  border-radius: 8px;
  text-align: center;
  transition: transform 180ms ease, background 180ms ease;
}

.modal-link-btn:hover {
  transform: translateY(-2px);
  background: var(--muted);
}

/* the orbit */
.artist-section,
.playlist-section {
  max-width: 1050px;
  margin: 0 auto 88px;
}

.section-heading {
  margin: 0 0 26px;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 0.9;
  text-align: center;
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
}

.artist-card {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 140px;
  padding: 10px;
}

@keyframes cover-drift {
  50% {
    transform: translateY(-11px) rotate(2deg);
  }
}

.artist-avatar {
  display: block;
  width: 140px;
  height: 140px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  background:
    radial-gradient(circle at 35% 30%, rgba(218, 204, 255, 0.5), transparent 22%),
    radial-gradient(circle at 60% 70%, rgba(110, 78, 173, 0.66), transparent 50%),
    rgba(20, 16, 32, 0.76);
  box-shadow: 0 0 28px rgba(164, 129, 255, 0.18);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  animation: cover-drift 5s ease-in-out infinite;
}

.artist-avatar:hover {
  transform: scale(1.06);
  box-shadow: 0 0 35px rgba(204, 190, 255, 0.35);
}

.artist-card:nth-child(1) .artist-avatar { animation-delay: -0.5s; }
.artist-card:nth-child(2) .artist-avatar { animation-delay: -2.1s; }
.artist-card:nth-child(3) .artist-avatar { animation-delay: -1.2s; }
.artist-card:nth-child(4) .artist-avatar { animation-delay: -3.4s; }
.artist-card:nth-child(5) .artist-avatar { animation-delay: -4.0s; }

.spotify-icon {
  position: absolute;
  right: 11px;
  bottom: 11px;
  display: grid;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  place-items: center;
  background: #1ed760;
  transition: transform 180ms ease;
}

.spotify-icon:hover {
  transform: scale(1.1);
}

.spotify-icon span {
  display: grid;
  gap: 2px;
  width: 14px;
}

.spotify-icon i {
  display: block;
  height: 2px;
  border-radius: 99px;
  background: #0a0910;
  transform: rotate(8deg);
}

.spotify-icon i:nth-child(2) {
  width: 11px;
  justify-self: center;
}

.spotify-icon i:nth-child(3) {
  width: 8px;
  justify-self: center;
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 55px);
}

.playlist-card iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
}

/* footer */
.site-footer {
  padding: 18px clamp(22px, 4vw, 60px) 30px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 700px) {
  .playlist-grid {
    grid-template-columns: 1fr;
  }

  .artist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}