/* Standalone layout (layouts/standalone.njk): the 404 and coming-soon pages, a centred status
   message (.status) on a blue grid. */

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

body {
  font-family: var(--body);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 2rem;
  overflow-x: clip;
  background: radial-gradient(
    120% 120% at 50% 0%,
    var(--blue-light) 0%,
    var(--blue) 45%,
    var(--cobalt) 100%
  );
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    linear-gradient(var(--white-60) 1px, transparent 1px),
    linear-gradient(90deg, var(--white-60) 1px, transparent 1px);
  background-size: 64px 64px;
  /* stylelint-disable-next-line property-no-vendor-prefix -- Safari before 15.4 needs the prefix */
  -webkit-mask-image: radial-gradient(120% 80% at 50% 30%, var(--black) 30%, transparent 80%);
  mask-image: radial-gradient(120% 80% at 50% 30%, var(--black) 30%, transparent 80%);
}

.status {
  position: relative;
  z-index: 2;
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status__mark {
  height: 60px;
  width: auto;
  margin-block-end: 1.875rem;
  opacity: 0;
  animation: status-rise 0.7s var(--e-out) 0.05s forwards;
}

.status__kicker {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-block-end: 0.875rem;
  opacity: 0;
  animation: status-rise 0.8s var(--e-out) 0.12s forwards;
}

.status__title {
  font-family: var(--disp);
  font-size: clamp(2.75rem, 9vw, 5.375rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: status-rise 0.8s var(--e-out) 0.18s forwards;
}

.status__dot {
  color: var(--orange);
}

.status__text {
  margin-block-start: 1.125rem;
  font-size: clamp(1rem, 2.4vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--white-85);
  max-width: 46ch;
  opacity: 0;
  animation: status-rise 0.8s var(--e-out) 0.3s forwards;
}

.status__note {
  margin-block-start: 2.375rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--white-60);
  opacity: 0;
  animation: status-rise 0.8s var(--e-out) 0.42s forwards;
}

.status__count {
  color: var(--white);
  font-weight: 600;
}

.status__timer {
  margin-block-start: 0.875rem;
  width: 200px;
  max-width: 60vw;
  height: 3px;
  background: var(--white-25);
  overflow: hidden;
  opacity: 0;
  animation: status-rise 0.8s var(--e-out) 0.46s forwards;
}

.status__timer-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  transform-origin: left;
  animation: status-drain var(--status-delay, 6s) linear 0.5s forwards;
}

.status__link {
  margin-block-start: 1.375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  border-block-end: 1px solid var(--white-40);
  padding-block-end: 0.125rem;
  opacity: 0;
  animation: status-rise 0.8s var(--e-out) 0.5s forwards;
  transition:
    gap 0.25s var(--e-out),
    border-color 0.25s var(--e-out);
}

.status__link:hover {
  gap: 0.8em;
  border-color: var(--white);
}

.status__link:focus-visible {
  outline: var(--focus-width) solid var(--teal);
  outline-offset: var(--focus-offset);
}

@keyframes status-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes status-drain {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    /* stylelint-disable-next-line declaration-no-important -- reduced motion must beat every animation */
    animation: none !important;
  }

  .status__mark,
  .status__kicker,
  .status__title,
  .status__text,
  .status__note,
  .status__timer,
  .status__link {
    opacity: 1;
  }
}
