:root {
  color-scheme: dark;
  --midnight: #090d1b;
  --pearl: #f3f0f1;
  --muted: #a9acc2;
  --lavender: #d7c9ef;
  --ice: #c3e5ed;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--pearl);
  background:
    radial-gradient(circle at 71% 49%, rgba(74, 77, 119, .15), transparent 34%),
    radial-gradient(circle at 16% 83%, rgba(52, 58, 91, .10), transparent 32%),
    var(--midnight);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .48;
  background-image:
    radial-gradient(circle, #dddaf5 0 .65px, transparent .9px),
    radial-gradient(circle, #b9dbe8 0 .55px, transparent .85px),
    radial-gradient(circle, #ded7e9 0 .55px, transparent .85px);
  background-size: 397px 329px, 491px 433px, 619px 523px;
  background-position: 37px 77px, 201px 123px, 311px 303px;
}

.page-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 1600px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(28px, 4.5vw, 68px) clamp(28px, 7.2vw, 116px) 42px;
  overflow: hidden;
}

.site-header { position: relative; z-index: 2; height: 38px; }

.signature {
  display: block;
  width: 18px;
  height: 18px;
  color: #e4dceb;
  filter: drop-shadow(0 0 8px rgba(211, 193, 239, .38));
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  flex: 1;
  min-height: 620px;
  isolation: isolate;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 0 0 14px clamp(0px, 1.2vw, 20px);
}

h1, .tagline {
  font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, serif;
  font-weight: 400;
}

h1 {
  margin: 0 0 25px -5px;
  font-size: clamp(76px, 8.5vw, 148px);
  line-height: .96;
  letter-spacing: -.076em;
  text-shadow: 0 0 30px rgba(225, 215, 238, .06);
}

.tagline {
  margin: 0;
  color: #e9e5ed;
  font-size: clamp(27px, 3.15vw, 47px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.description {
  margin: clamp(26px, 3.2vw, 46px) 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.08vw, 16px);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: .025em;
}

.rhythm-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: clamp(39px, 5vw, 74px);
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(211, 218, 235, .42);
  color: #dce7ec;
  font-size: 13px;
  letter-spacing: .13em;
  text-decoration: none;
  transition: color .25s ease, border-color .25s ease;
}

.rhythm-link span[aria-hidden] { font-size: 17px; line-height: .8; letter-spacing: 0; }
.rhythm-link:hover { color: white; border-color: var(--pearl); }
.rhythm-link:focus-visible { outline: 2px solid var(--ice); outline-offset: 7px; }

.universe {
  position: relative;
  width: min(100%, 680px);
  aspect-ratio: 1;
  justify-self: center;
  transform: translate(2%, -1%);
}

.ambient-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(177, 166, 218, .22) 0%, rgba(94, 126, 176, .10) 33%, transparent 67%);
  filter: blur(34px);
  animation: breathe 12s ease-in-out infinite alternate;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(196, 206, 237, .07);
  border-radius: 50%;
  transform: rotate(-22deg) scaleY(.84);
}
.orbit-outer { inset: 5%; }
.orbit-inner { inset: 14%; border-color: rgba(196, 206, 237, .045); transform: rotate(26deg) scaleY(.93); }

.orb-shadow {
  position: absolute;
  inset: 23%;
  border-radius: 50%;
  background: rgba(141, 136, 214, .26);
  filter: blur(45px);
}

.orb {
  position: absolute;
  inset: 23%;
  overflow: hidden;
  border: 1px solid rgba(225, 232, 249, .34);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 72% 19%, rgba(242, 235, 247, .92), transparent 18%),
    radial-gradient(ellipse at 20% 27%, rgba(185, 230, 239, .9), transparent 34%),
    radial-gradient(ellipse at 73% 65%, rgba(199, 168, 222, .94), transparent 40%),
    radial-gradient(ellipse at 42% 82%, rgba(93, 112, 168, .95), transparent 45%),
    #655f96;
  box-shadow:
    inset -25px -28px 45px rgba(17, 21, 53, .48),
    inset 13px 13px 35px rgba(247, 245, 255, .35),
    0 0 20px rgba(217, 208, 250, .27),
    0 0 95px rgba(141, 146, 219, .26);
  animation: float 11s ease-in-out infinite alternate;
}

.orb-colour {
  position: absolute;
  inset: -22%;
  border-radius: 43%;
  background:
    conic-gradient(from 27deg at 54% 50%, transparent 0deg, rgba(237, 211, 245, .42) 45deg, transparent 85deg, rgba(126, 205, 218, .36) 165deg, transparent 215deg, rgba(235, 203, 226, .55) 289deg, transparent 360deg);
  filter: blur(24px);
  transform: rotate(-17deg);
  animation: turn 35s linear infinite;
}

.orb-whisper {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 55% 45%, transparent 30%, rgba(248, 238, 250, .23) 32%, transparent 35%),
    radial-gradient(ellipse at 44% 63%, transparent 37%, rgba(210, 241, 247, .2) 39%, transparent 42%);
  filter: blur(6px);
  transform: rotate(-30deg) scale(1.2);
}

.orb-stars {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: .72;
  background:
    radial-gradient(circle at 31% 42%, #f7f5ff 0 1px, transparent 1.7px),
    radial-gradient(circle at 63% 32%, #e5f6fa 0 .8px, transparent 1.5px),
    radial-gradient(circle at 74% 53%, #fcf6ff 0 1px, transparent 1.7px),
    radial-gradient(circle at 39% 71%, #dfebff 0 .7px, transparent 1.4px),
    radial-gradient(circle at 56% 78%, #faf6ff 0 .65px, transparent 1.4px),
    radial-gradient(circle at 23% 60%, #e7f8ff 0 .6px, transparent 1.3px);
  box-shadow: inset 0 0 30px rgba(217, 213, 252, .12);
}

.orb-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 35% 21%, rgba(255, 255, 255, .43), transparent 29%),
    radial-gradient(ellipse at 50% 51%, transparent 46%, rgba(14, 17, 46, .17) 78%, rgba(9, 13, 31, .6) 100%);
}

.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d9e5f4;
  box-shadow: 0 0 9px 2px rgba(185, 202, 241, .48);
  animation: twinkle 7s ease-in-out infinite alternate;
}
.spark-one { top: 20%; left: 27%; }
.spark-two { top: 25%; right: 18%; width: 2px; height: 2px; animation-delay: -3s; }
.spark-three { top: 68%; right: 11%; width: 2px; height: 2px; animation-delay: -5s; }
.spark-four { bottom: 17%; left: 28%; width: 2px; height: 2px; animation-delay: -2s; }
.spark-five { top: 49%; left: 10%; width: 2px; height: 2px; animation-delay: -4s; }

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

@keyframes float { to { transform: translateY(-9px); } }
@keyframes breathe { to { opacity: .67; transform: scale(1.08); } }
@keyframes turn { to { transform: rotate(343deg); } }
@keyframes twinkle { to { opacity: .25; transform: scale(.7); } }

@media (max-width: 800px) {
  .page-shell { padding: 28px 27px 50px; }
  .site-header { height: 22px; }
  .hero { display: flex; flex-direction: column; justify-content: center; min-height: 0; }
  .universe { order: 0; width: min(100%, 480px); margin: -12px auto -28px; transform: none; }
  .hero-copy { order: 1; width: 100%; padding: 0; text-align: center; }
  h1 { margin: 0 0 17px -4px; font-size: clamp(68px, 14vw, 112px); }
  .tagline { font-size: clamp(28px, 5.4vw, 41px); }
  .description { margin-top: 22px; font-size: 14px; }
  .rhythm-link { margin-top: 34px; }
}

@media (max-width: 480px) {
  .page-shell { min-height: 100svh; padding: 23px 22px 42px; }
  .signature { width: 15px; height: 15px; }
  .universe { width: min(100%, 410px); margin: -10px auto -23px; }
  .tagline { line-height: 1.18; }
  .desktop-break { display: none; }
  .description { line-height: 1.75; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
