:root {
  --black: #02050b;
  --midnight: #07152a;
  --ice: #eaf5ff;
  --signal: #8ec5ff;
  --steel: #6b84a8;
  --line: rgba(174, 215, 255, 0.34);
  --display: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
  color-scheme: dark;
}

body {
  min-width: 20rem;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--ice);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(2, 5, 11, 0.95) 0%, rgba(2, 5, 11, 0.75) 37%, rgba(2, 5, 11, 0.12) 68%),
    linear-gradient(180deg, rgba(2, 5, 11, 0.16) 0%, rgba(2, 5, 11, 0.14) 62%, rgba(2, 5, 11, 0.9) 100%),
    url("/assets/stage.jpg") center / cover no-repeat;
  transform: scale(1.015);
  animation: stage-focus 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 4px;
  mix-blend-mode: screen;
  opacity: 0.35;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 100rem);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 3rem) clamp(1.25rem, 4vw, 4.5rem) 1.2rem;
}

.masthead,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.masthead {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: var(--ice);
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  font-weight: 650;
  letter-spacing: 0.24em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 0.45rem;
}

.masthead-date,
footer {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.release {
  display: grid;
  grid-template-columns: minmax(17rem, 0.82fr) minmax(20rem, 0.72fr);
  align-items: center;
  justify-content: space-between;
  gap: clamp(2.5rem, 6vw, 7rem);
  padding: clamp(3rem, 7vh, 7rem) 0;
}

.release-copy {
  max-width: 43rem;
  text-shadow: 0 2px 24px rgba(0, 5, 15, 0.75);
}

.release-type {
  margin: 0 0 0.8rem;
  color: var(--signal);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 550;
  letter-spacing: 0.08em;
}

h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(4.1rem, 9vw, 8.8rem);
  font-stretch: condensed;
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.78;
  text-transform: uppercase;
}

.release-date {
  margin: clamp(1.5rem, 3vw, 2.6rem) 0 0;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  letter-spacing: 0.045em;
}

.countdown {
  margin-top: clamp(2rem, 4vw, 3.75rem);
}

.countdown-status {
  margin: 0 0 0.85rem;
  color: rgba(234, 245, 255, 0.72);
  font-size: 0.87rem;
  letter-spacing: 0.04em;
}

.countdown-units {
  display: flex;
  width: fit-content;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.countdown-unit {
  display: grid;
  min-width: clamp(4rem, 7vw, 6.25rem);
  padding: 0.8rem 1rem 0.75rem 0;
}

.countdown-unit + .countdown-unit {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.countdown-unit strong,
.countdown-unit span {
  font-family: var(--mono);
  font-weight: 400;
}

.countdown-unit strong {
  color: var(--ice);
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

.countdown-unit span {
  margin-top: 0.42rem;
  color: var(--steel);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.cover-wrap {
  position: relative;
  width: min(100%, 35rem);
  margin: 0 0 0 auto;
}

.cover-wrap::before {
  content: "";
  position: absolute;
  inset: 7% -5% -5% 7%;
  z-index: -1;
  background: rgba(74, 154, 238, 0.24);
  filter: blur(42px);
}

.cover {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(202, 228, 255, 0.48);
  box-shadow:
    0 1.75rem 5rem rgba(0, 3, 10, 0.58),
    0 0 0 1px rgba(88, 162, 241, 0.16);
}

footer {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: rgba(174, 215, 255, 0.62);
}

@keyframes stage-focus {
  from {
    opacity: 0.35;
    transform: scale(1.045);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: scale(1.015);
    filter: blur(0);
  }
}

@media (max-width: 760px) {
  .stage {
    background:
      linear-gradient(180deg, rgba(2, 5, 11, 0.35) 0%, rgba(2, 5, 11, 0.52) 38%, rgba(2, 5, 11, 0.97) 78%),
      url("/assets/stage.jpg") 53% top / auto 62svh no-repeat,
      var(--black);
  }

  .page-shell {
    padding: 1.2rem 1.15rem 1rem;
  }

  .masthead-date {
    display: none;
  }

  .release {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding: 3rem 0 4.2rem;
  }

  .cover-wrap {
    grid-row: 1;
    width: min(82vw, 25rem);
    margin: 0 auto;
  }

  .release-copy {
    grid-row: 2;
    text-align: center;
  }

  h1 {
    max-width: none;
    font-size: clamp(3.6rem, 18vw, 6.3rem);
    line-height: 0.82;
  }

  .countdown-units {
    width: 100%;
    justify-content: center;
  }

  .countdown-unit {
    min-width: 0;
    flex: 1;
    padding: 0.75rem 0.45rem;
  }

  .countdown-unit + .countdown-unit {
    padding-left: 0.45rem;
  }

  footer {
    font-size: 0.6rem;
  }
}

@media (max-height: 730px) and (min-width: 761px) {
  .release {
    padding: 2rem 0;
  }

  .cover-wrap {
    max-width: 26rem;
  }

  .countdown {
    margin-top: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage {
    animation: none;
  }
}
