/* Shared look: night sky, stars, aurora, mountains. Used by every page. */
:root {
  --night: #08111d;
  --night-2: #0d1a2b;
  --snow: #e9eef0;
  --mist: #93a7b8;
  --green: #7df0b4;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: var(--green); color: var(--night); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

html { background: var(--night); }
body {
  min-height: 100vh;
  min-height: 100svh;
  background: linear-gradient(to bottom, var(--night) 0%, var(--night-2) 100%);
  color: var(--snow);
  font-family: "Karla", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

a { color: var(--snow); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--green); }

.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* one soft green curtain, like the real thing on a decent night */
.aurora {
  position: absolute;
  left: -30%;
  width: 160%;
  top: 4vh;
  height: 55vh;
  background:
    radial-gradient(ellipse 38% 22% at 35% 40%, rgba(125, 240, 180, 0.5), transparent 70%),
    radial-gradient(ellipse 30% 16% at 62% 30%, rgba(125, 240, 180, 0.3), transparent 70%);
  filter: blur(28px);
  transform-origin: 50% 0;
}
@media (prefers-reduced-motion: no-preference) {
  .aurora { animation: sway 24s ease-in-out infinite alternate; }
  @keyframes sway {
    from { transform: translateX(-6%) skewX(-8deg) scaleY(0.9); }
    to   { transform: translateX(6%)  skewX(6deg)  scaleY(1.1); }
  }
}

.mountains {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 26vh; min-height: 140px;
}

main {
  position: relative; z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) 16px calc(26vh + 24px);
  display: flex;
  flex-direction: column;
}

h1 {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 8vw, 60px);
  line-height: 1;
  letter-spacing: 0.01em;
}

/* the huge number used on the countdown and the 404 */
.big {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 900;
  font-size: clamp(170px, 50vw, 360px);
  line-height: 0.8;
  letter-spacing: -0.02em;
  margin-left: -0.04em;
  font-variant-numeric: tabular-nums;
}
.big-word {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(28px, 7.5vw, 50px);
  line-height: 1;
  margin-top: 10px;
}
@media (prefers-reduced-motion: no-preference) {
  .big { animation: settle 0.7s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes settle { from { transform: translateY(14px); opacity: 0; } }
}
