/* 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);
}

/* home */
.home-main {
  display: grid;
  min-height: calc(100svh - 54px);
  padding: 100px 24px 80px;
  place-items: center;
}

.welcome {
  display: grid;
  justify-items: center;
  text-align: center;
}

.welcome h1 {
  margin: 0;
  font-size: clamp(3.3rem, 8vw, 6.2rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.06em;
  text-shadow: 0 0 20px rgba(247, 244, 255, 0.25), 0 0 56px rgba(164, 129, 255, 0.2);
}

.welcome-message {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 21px);
}

.floating-links {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 28px);
  margin-top: 39px;
}

.floating-links a {
  font-size: clamp(17px, 2.4vw, 23px);
  transition: color 180ms ease, transform 180ms ease;
}

.floating-links a:hover {
  color: var(--muted);
  transform: translateY(-3px);
}

/* 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,
.music-card p,
.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);
}

.shop-main {
  display: grid;
  place-items: center;
}

.shop-main .page-intro {
  margin: 0;
}

/* music embeds */
.music-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 45px);
  max-width: 1050px;
  margin: auto;
}

.music-card {
  min-width: 0;
}

.music-card h2,
.playlist-card h3 {
  margin: 0 0 4px;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.music-card p {
  margin: 0 0 13px;
  color: var(--muted);
}

.music-card iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
}

.release-section {
  max-width: 100%;
  padding-inline: 40px;
  margin: 86px auto 0;
}

.release-list {
  position: relative;
  height: clamp(370px, 45vw, 560px);
  margin-top: -28px;
  overflow: hidden;
}

.release-list::before {
  position: absolute;
  top: 7%;
  left: -5%;
  width: 110%;
  height: 80%;
  border-bottom: 1px dashed var(--line);
  border-radius: 0 0 50% 50%;
  content: "";
  transform: rotate(-8deg);
}

.release-item {
  position: absolute;
  width: clamp(96px, 14vw, 168px);
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.42));
  animation: cover-drift 6s ease-in-out infinite;
}

.release-item:nth-child(1) {
  top: 12%;
  left: 74%;
  animation-delay: -2.2s;
}

.release-item:nth-child(2) {
  top: 32%;
  left: 48%;
  animation-delay: -4.1s;
}

.release-item:nth-child(3) {
  top: 54%;
  left: 22%;
  animation-delay: -1.3s;
}

.release-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
  transition: transform 180ms ease;
}

.release-item img:hover {
  transform: scale(1.04);
}

@keyframes cover-drift {
  50% {
    transform: translateY(-11px) rotate(2deg);
  }
}

/* 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-tracks-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.modal-track-box {
  display: grid;
  gap: 6px;
  background: rgba(247, 244, 255, 0.02);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  text-align: left;
}

.modal-track-box span {
  font-size: 16px;
  color: var(--white);
}

.modal-track-box audio {
  width: 100%;
  height: 36px;
  filter: invert(1) hue-rotate(180deg);
}

.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);
}

.modal-covers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.modal-covers-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.modal-covers-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 18px rgba(204, 190, 255, 0.35);
}

/* 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;
}

.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) {
  .floating-links {
    flex-wrap: wrap;
    max-width: 290px;
  }

  .music-grid,
  .playlist-grid {
    grid-template-columns: 1fr;
  }

  .artist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .release-list {
    height: 390px;
    margin-inline: -22px;
  }
}