@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/space-grotesk-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Space Grotesk", Arial, sans-serif;
  background: #03060c;
  color: #e9eef5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
.universe {
  --scene-bleed: 18px;
  --parallax-x: 0;
  --parallax-y: 0;
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 70%, #0b1423 0%, #050913 45%, #020409 100%);
}
#starfield, .earth-stage, #earth { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#starfield { z-index: 0; transform: translate3d(calc(var(--parallax-x) * -2px), calc(var(--parallax-y) * -1.5px), 0) scale(1.015); }
.wordmark {
  position: absolute;
  z-index: 1;
  top: calc(33vh - min(16.83vw, 32.13vh));
  top: calc(33svh - min(16.83vw, 32.13svh));
  left: 50%;
  margin: 0;
  transform: translate3d(calc(-50% + var(--parallax-x) * -6px), calc(var(--parallax-y) * -4px), 0);
  font-size: min(33vw, 63svh);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.065em;
  padding-right: .065em;
  white-space: nowrap;
  color: #b4c7dc;
  user-select: none;
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .wordmark {
    background-image:
      radial-gradient(ellipse at calc(50% + var(--parallax-x) * 34%) calc(28% + var(--parallax-y) * 16%),
        rgb(233 244 255 / .85) 0%, rgb(197 223 248 / .2) 38%, transparent 70%),
      linear-gradient(165deg, #b9cbdc 8%, #8fa8c2 48%, #496582 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: .5px rgb(212 231 252 / .16);
  }
}
.earth-stage {
  z-index: 2;
  inset: calc(-1 * var(--scene-bleed));
  width: auto;
  height: auto;
  transform: translate3d(calc(var(--parallax-x) * 10px), calc(var(--parallax-y) * 6px), 0);
}
#earth { opacity: 0; transition: opacity 1.1s ease; }
.earth-stage.is-ready #earth { opacity: 1; }
.earth-fallback { position: absolute; top: calc(36svh + var(--scene-bleed)); left: 50%; width: min(136vw, 194svh); height: auto; max-width: none; transform: translateX(-50%); }
.footer { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.footer::before { content: ""; position: absolute; inset: auto 0 0; height: min(220px, 40svh); background: linear-gradient(transparent, rgb(1 4 9 / .75)); }
.destinations {
  position: absolute;
  top: 70svh;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(400px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  pointer-events: auto;
}
.destinations a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15px;
  align-items: start;
  gap: 6px 12px;
  min-width: 0;
  min-height: 96px;
  padding: 16px 24px;
  border: 1px solid rgb(239 247 255 / .65);
  border-radius: 2px;
  background: rgb(224 234 243 / .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgb(0 0 0 / .12);
  color: #111f2e;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .025em;
  line-height: 1.3;
  transition: background .25s, border-color .25s, transform .35s cubic-bezier(.22, 1, .36, 1);
}
.destinations a:first-child { letter-spacing: .12em; }
.destination-name { white-space: nowrap; }
.destination-description { grid-column: 1 / -1; min-height: 2.9em; font-size: 12px; line-height: 1.45; letter-spacing: .01em; opacity: .8; text-wrap: balance; }
.destinations a:is(:hover, :focus-visible) { background: #f4f8fc; border-color: white; transform: translateY(-2px); }
.destinations a:last-child { color: #edf4fc; background: rgb(7 16 27 / .78); border-color: rgb(226 239 253 / .65); box-shadow: none; }
.destinations a:last-child:is(:hover, :focus-visible) { background: rgb(26 44 65 / .94); border-color: #edf4fc; }
a:focus-visible { outline: 1px solid #d3dde8; outline-offset: 6px; }
.destinations svg { width: 15px; height: 15px; margin-top: 3px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform .2s; }
.destinations a:is(:hover, :focus-visible) svg { transform: translate(2px, -2px); }
@media (max-aspect-ratio: 4/5) {
  .wordmark { top: calc(28.5svh - 17.85vw); font-size: 35vw; }
  .earth-fallback { top: calc(30svh + var(--scene-bleed)); width: 216vw; }
  .destinations { width: min(336px, calc(100% - 40px)); gap: 12px; }
  .destinations a { min-height: 92px; padding: 15px 16px; font-size: 14px; gap: 6px 10px; }
  .destination-description { font-size: 11.5px; }
  .destinations svg { width: 14px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #starfield { transform: scale(1.015); }
  .wordmark { --parallax-x: 0; --parallax-y: 0; transform: translateX(-50%); }
  .earth-stage { transform: none; }
}
