:root {
  color-scheme: dark;
  --ink: #090d20;
  --navy: #111936;
  --cloud: #f7f8ff;
  --mist: #cbd6f7;
  --lilac: #bcb8f1;
  --blue: #8eb9ef;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--cloud);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 80% 12%, rgba(126, 147, 221, 0.18), transparent 28rem),
    radial-gradient(circle at 18% 85%, rgba(92, 74, 151, 0.17), transparent 30rem),
    linear-gradient(145deg, var(--ink), var(--navy));
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(rgba(255, 255, 255, 0.75) 0.6px, transparent 0.6px);
  background-size: 31px 31px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: 1fr auto;
}

.hero {
  min-height: 740px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 3rem;
  padding: 80px 0 44px;
}

.copy {
  position: relative;
  z-index: 2;
}

h1 {
  margin: 0;
  max-width: 620px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.65rem, 7.5vw, 7rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.intro {
  max-width: 500px;
  margin: 2rem 0 0;
  color: var(--mist);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.7;
}

.portrait {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 590px;
  isolation: isolate;
}

.portrait img {
  position: relative;
  z-index: 2;
  display: block;
  width: min(720px, 122%);
  max-width: none;
  filter: drop-shadow(0 34px 60px rgba(1, 3, 14, 0.46));
  animation: drift 7s ease-in-out infinite;
}

.moon-glow {
  position: absolute;
  z-index: -1;
  width: min(35vw, 470px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(222, 229, 255, 0.25), rgba(171, 185, 245, 0.06) 55%, transparent 70%);
  filter: blur(1px);
}

.star {
  position: absolute;
  z-index: 3;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 18px 4px rgba(194, 214, 255, 0.85);
}

.star::after {
  content: "";
  position: absolute;
  inset: -5px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  transform: rotate(45deg);
}

.star-one {
  top: 15%;
  right: 15%;
}

.star-two {
  top: 42%;
  left: 2%;
  transform: scale(0.65);
}

.star-three {
  right: 4%;
  bottom: 23%;
  transform: scale(0.8);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0 2rem;
  color: rgba(222, 229, 255, 0.48);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-top: 1px solid rgba(222, 229, 255, 0.1);
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 32px, 680px);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 72px;
    text-align: center;
  }

  .copy {
    display: grid;
    justify-items: center;
  }

  h1 {
    font-size: clamp(3.35rem, 16vw, 5.8rem);
  }

  .intro {
    max-width: 560px;
  }

  .portrait {
    min-height: 430px;
    margin-top: -1rem;
  }

  .portrait img {
    width: min(650px, 113%);
  }

  .moon-glow {
    width: min(72vw, 410px);
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 24px, 460px);
  }

  .hero {
    padding-top: 48px;
  }

  .intro {
    font-size: 1rem;
  }

  .portrait {
    min-height: 330px;
  }

  footer {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portrait img {
    animation: none;
  }
}
