:root {
  --night: #070b16;
  --navy: #0d1528;
  --ink: #e9ecf3;
  --muted: #9aa3b8;
  --amber: #f2b45a;
  --line: rgba(233, 236, 243, 0.12);
  --display: "Big Shoulders Display", "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--amber);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--amber);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

/* Shooting stars stay in the open sky above the dome so they read as behind it. */
.hero__sky {
  position: absolute;
  top: 0;
  left: 35%;
  right: 0;
  height: 38%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero__sky i {
  position: absolute;
  width: 140px;
  height: 1.5px;
  border-radius: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95));
  opacity: 0;
  animation: shoot 11s linear infinite;
  --travel: 420px;
}

.hero__sky i:nth-child(1) {
  top: 14%;
  left: 78%;
  animation-delay: 2s;
}

.hero__sky i:nth-child(2) {
  top: 6%;
  left: 52%;
  animation-duration: 14s;
  animation-delay: 6.5s;
}

.hero__sky i:nth-child(3) {
  top: 24%;
  left: 92%;
  width: 100px;
  animation-duration: 19s;
  animation-delay: 11s;
}

@keyframes shoot {
  0% {
    opacity: 0;
    transform: rotate(155deg) translateX(0);
  }
  1% {
    opacity: 1;
  }
  5% {
    opacity: 0;
    transform: rotate(155deg) translateX(var(--travel));
  }
  100% {
    opacity: 0;
    transform: rotate(155deg) translateX(var(--travel));
  }
}

@keyframes glint {
  0%,
  100% {
    opacity: 0;
    transform: rotate(155deg) translateX(calc(var(--travel) * 0.4));
  }
  4% {
    opacity: 0.7;
    transform: rotate(155deg) translateX(calc(var(--travel) * 0.4));
  }
  10% {
    opacity: 0;
    transform: rotate(155deg) translateX(calc(var(--travel) * 0.4));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__sky i {
    animation-name: glint;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 11, 22, 0.92) 0%, rgba(7, 11, 22, 0.6) 45%, rgba(7, 11, 22, 0) 75%),
    linear-gradient(0deg, var(--night) 0%, rgba(7, 11, 22, 0) 30%);
}

.hero__inner {
  width: min(100% - 3rem, 72rem);
  margin: 0 auto;
  padding: 6rem 0;
}

.title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.5rem, 11vw, 8.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.title span {
  display: block;
  color: var(--amber);
}

.title small {
  font-size: 0.32em;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.lede {
  max-width: 30rem;
  margin: 1.5rem 0 0;
  font-size: 1.1875rem;
  color: #cfd5e3;
}

.date {
  margin: 1.75rem 0 0;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.moon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.375rem 0 0;
  color: var(--amber);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.moon::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #f4ead2;
  box-shadow: 0 0 10px rgba(244, 234, 210, 0.6);
}

/* Countdown */

.countdown {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.countdown[hidden],
.countdown__done[hidden] {
  display: none;
}

.countdown__unit {
  min-width: 5rem;
  padding: 0.75rem 0.5rem 0.625rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(13, 21, 40, 0.55);
  backdrop-filter: blur(6px);
  text-align: center;
}

.countdown__unit span {
  display: block;
  font-family: var(--display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown__unit small {
  display: block;
  margin-top: 0.375rem;
  color: var(--muted);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.countdown__done {
  margin: 1.5rem 0 0;
  color: var(--amber);
  font-weight: 600;
}

/* Story */

.story {
  display: grid;
  gap: 2rem;
  width: min(100% - 3rem, 72rem);
  margin: 0 auto;
  padding: 4rem 0;
}

.story__card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--navy);
}

.story__card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.story__text {
  padding: 1.5rem 1.5rem 1.75rem;
}

.story__text h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.story__text p:last-child {
  margin: 0.75rem 0 0;
  color: #c3cad9;
}

/* Details */

.details {
  width: min(100% - 3rem, 72rem);
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.details dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
}

.details dl > div {
  padding: 1.25rem 1.5rem;
  background: var(--night);
}

.details dt {
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.details dd {
  margin: 0.375rem 0 0;
  font-weight: 500;
}

.details__note {
  margin: 1.5rem 0 0;
  color: var(--muted);
  text-align: center;
}

/* Footer */

.footer {
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer__fine {
  margin-top: 0.5rem !important;
  color: #6f7890;
  font-size: 0.8125rem;
}

@media (max-width: 700px) {
  /* Image band sized by width so the headline always starts below the dome, whatever the screen height. */
  .hero {
    display: block;
    min-height: 0;
  }

  .hero__bg,
  .hero::after {
    bottom: auto;
    height: 112vw;
  }

  .hero__bg {
    object-position: 78% center;
  }

  .hero::after {
    background: linear-gradient(0deg, var(--night) 0%, rgba(7, 11, 22, 0) 30%);
  }

  .hero__sky {
    left: 0;
    height: 44vw;
  }

  .hero__sky i {
    width: 90px;
    --travel: 260px;
  }

  .hero__inner {
    padding: 84vw 0 3rem;
  }
}

@media (max-width: 480px) {
  .eyebrow {
    letter-spacing: 0.1em;
  }

  .countdown {
    gap: 0.5rem;
  }

  .countdown__unit {
    flex: 1;
    min-width: 0;
  }

  .countdown__unit span {
    font-size: 1.75rem;
  }

  .details dl {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 800px) {
  .story {
    grid-template-columns: 1fr 1fr;
  }

  .details dl {
    grid-template-columns: repeat(4, 1fr);
  }
}
