*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "Noto Serif SC", serif;
  color: #d8d4cc;
  background: #020308;
}

.nav {
  position: fixed;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.4rem 2.2rem;
  pointer-events: none;
}

.logo {
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.scene-switch {
  display: flex;
  gap: 1.35rem;
  align-items: baseline;
}

.nav a {
  pointer-events: auto;
  color: inherit;
  text-decoration: none;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  opacity: 0.72;
  transition: opacity 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 1;
}

.nav a[aria-current="page"] {
  opacity: 1;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
}

.space-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 48% at 26% 34%, #121a2a 0%, transparent 58%),
    radial-gradient(ellipse 50% 40% at 72% 55%, #0a101c 0%, transparent 55%),
    #020308;
}

.space-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 62% 52%, transparent 32%, rgba(0, 0, 0, 0.48) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 18%, transparent 78%, rgba(0, 0, 0, 0.4) 100%);
}

.starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.ship-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.xwing {
  position: absolute;
  /* Slightly right of center, shifted left from prior far-right placement */
  left: 56%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 167px;
  height: 167px;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 700px) {
  .nav {
    padding: 1rem 1.15rem;
  }

  .logo {
    font-size: 0.78rem;
  }

  .scene-switch {
    gap: 0.9rem;
  }

  .xwing {
    left: 54%;
    top: 50%;
    width: 140px;
    height: 140px;
  }
}
