:root {
  color-scheme: dark;
  background: #273143;
  color: #fff;
}

body { margin: 0; }
[hidden] { display: none !important; }

.landscape,
.snow {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.landscape picture,
.landscape img {
  display: block;
  width: 100%;
  height: 100%;
}

.landscape img {
  object-fit: cover;
}

.landscape::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0c14228c, #0c142226 65%, transparent);
}

.stage {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-inline: 8vw;
}

.wordmark {
  position: absolute;
  inset-block-start: clamp(16px, 3vw, 28px);
  inset-inline-start: clamp(16px, 3vw, 32px);
  display: grid;
  justify-items: center;
  gap: 5px;
  font: 700 .75rem/1 var(--font-pixel);
  letter-spacing: .16em;
  text-shadow: 0 2px 12px #111a2b;
}

.brand-mark {
  width: clamp(38px, 7vmin, 50px);
  aspect-ratio: 1308 / 821;
  background: currentColor;
  /* Mask out the black background of the supplied JPG. */
  mask: url('/assets/delirix-logo.jpg') center 46.6% / 117.4% auto no-repeat;
  mask-mode: luminance;
}

.release {
  width: max-content;
  max-width: 100%;
  padding-block: 90px 35px;
  font-family: Arial, Helvetica, sans-serif;
}
.release-date {
  margin: 0 0 18px;
  font-size: .825rem;
  font-weight: 700;
  font-family: var(--font-pixel);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px #111a2b;
}
.release-complete {
  display: inline-flex;
  align-items: center;
  gap: .85em;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #b5c7d9;
  background: #182334;
  color: #fff;
  font: 700 clamp(1rem, 2.6vw, 1.4rem)/1.2 var(--font-pixel);
  text-decoration: none;
}
.release-complete:hover { background: #273b53; }
.release-complete:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.countdown {
  display: flex;
  align-items: center;
  gap: .23em;
  width: max-content;
  font: 600 clamp(2.5rem, 5.8vw, 7rem)/1 var(--font-pixel);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.05em;
  text-shadow: 0 2px 14px #111a2b;
}

.countdown > div { display: grid; justify-items: center; gap: 8px; }
.countdown > div > span:first-child { min-width: 2.1ch; text-align: center; }
.separator { align-self: start; opacity: .72; }
.time-unit {
  font: 600 clamp(.75rem, 1.2vw, .875rem)/1.4 var(--font-pixel);
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .landscape img { object-position: center 43%; }
  .landscape::after {
    background: linear-gradient(0deg, #0c1422a6, transparent 53%);
  }
  .stage {
    box-sizing: border-box;
    align-items: end;
    justify-items: center;
    padding: 0 12px max(50px, 8svh);
  }
  .release { text-align: center; padding-block: 140px 0; }
  .countdown { margin-inline: auto; font-size: clamp(1.25rem, 8.7vw, 4rem); }
  .release-date { margin-bottom: 12px; font-size: .75rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .landscape img {
    animation: landscape-drift 4.8s ease-out both;
  }

  .snow:not(:empty) { animation: snow-fade 4.8s linear both; }

  .snow span {
    position: absolute;
    top: -10px;
    left: var(--left);
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: #eef5ff;
    opacity: var(--opacity);
    animation: snowfall var(--duration) linear var(--delay) infinite;
  }

  @keyframes landscape-drift {
    from { transform: scale(1.02); }
    to { transform: scale(1.045) translate(-.4%, .2%); }
  }

  @keyframes snow-fade {
    0%, 72% { opacity: 1; }
    100% { opacity: 0; }
  }

  @keyframes snowfall {
    to { transform: translate3d(var(--wind), calc(100dvh + 20px), 0); }
  }
}
