:root {
  color-scheme: dark;
  background: #102016;
  color: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #102016;
}

.cosmos {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 20, 14, 0.04), rgba(4, 12, 8, 0.38)),
    url("/assets/images/adele-fantasy-valley.webp") center / cover no-repeat;
}

.cosmos::before,
.cosmos::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cosmos::before {
  z-index: -1;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 246, 197, 0.18), transparent 24%),
    radial-gradient(circle at 50% 62%, rgba(160, 242, 203, 0.2), transparent 32%);
  mix-blend-mode: screen;
}

.cosmos::after {
  z-index: 4;
  background:
    linear-gradient(180deg, transparent 0 66%, rgba(5, 18, 10, 0.14) 80%, rgba(2, 8, 4, 0.42) 100%),
    radial-gradient(ellipse at center, transparent 0 58%, rgba(4, 12, 8, 0.26) 80%, rgba(2, 5, 3, 0.58) 100%);
}

.nebula,
.starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nebula-one {
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 62%, rgba(243, 255, 224, 0.34), transparent 24%),
    radial-gradient(ellipse at 50% 78%, rgba(32, 76, 40, 0.36), transparent 38%);
  filter: blur(10px);
}

.nebula-two {
  z-index: 2;
  background:
    linear-gradient(180deg, transparent 0 72%, rgba(6, 28, 12, 0.36) 100%),
    radial-gradient(ellipse at 20% 92%, rgba(4, 22, 9, 0.5), transparent 26%),
    radial-gradient(ellipse at 82% 90%, rgba(5, 24, 10, 0.46), transparent 25%);
}

.stars-near {
  z-index: 3;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 230, 0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle at 72% 22%, rgba(255, 255, 230, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 86% 58%, rgba(255, 255, 230, 0.62) 0 1px, transparent 1.4px);
  background-size: 160px 160px, 220px 220px, 190px 190px;
  opacity: 0.28;
  animation: shimmer 5.6s ease-in-out infinite alternate;
}

.stars-far {
  z-index: 3;
  background:
    linear-gradient(180deg, transparent 0 62%, rgba(5, 22, 9, 0.22) 100%);
}

.portrait-stage {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  width: min(76vmin, 650px);
  aspect-ratio: 1;
}

.portrait-stage::before {
  content: "";
  position: absolute;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 57%, rgba(255, 248, 198, 0.36), transparent 34%),
    radial-gradient(circle at 50% 52%, rgba(130, 230, 183, 0.24), transparent 56%);
  filter: blur(16px);
  opacity: 0.88;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(245, 255, 221, 0.22);
  box-shadow: 0 0 30px rgba(222, 255, 190, 0.14);
  transform: rotate(-14deg);
}

.orbit-one {
  width: 88%;
  height: 58%;
}

.orbit-two {
  width: 105%;
  height: 70%;
  transform: rotate(22deg);
  opacity: 0.38;
}

.adele {
  position: relative;
  z-index: 2;
  display: block;
  width: min(62vmin, 540px);
  height: auto;
  filter:
    drop-shadow(0 18px 26px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 22px rgba(249, 230, 160, 0.42))
    drop-shadow(0 0 58px rgba(128, 228, 181, 0.32));
  animation: float 5.8s ease-in-out infinite;
}

.email-bubble {
  position: absolute;
  left: 50%;
  top: calc(50% + min(31vmin, 270px));
  z-index: 6;
  transform: translateX(-50%);
  max-width: min(88vw, 520px);
  padding: 10px 18px 11px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(235, 255, 236, 0.58));
  color: #173221;
  font-size: clamp(15px, 2.8vw, 23px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.015em;
  text-align: center;
  white-space: nowrap;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(10px);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-12px) rotate(0.8deg); }
}

@keyframes shimmer {
  from { opacity: 0.18; }
  to { opacity: 0.38; }
}

@media (max-width: 700px) {
  .portrait-stage {
    width: min(90vmin, 620px);
  }

  .adele {
    width: min(76vmin, 520px);
  }

  .email-bubble {
    top: calc(50% + min(38vmin, 260px));
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stars-near,
  .adele {
    animation: none;
  }
}
