/* Everything is namespaced under coming-soon-* so it can live inside a
   WordPress page without clashing with theme or plugin styles. */

/* Pinned to the viewport, so the body's default margin never adds scroll. */
.coming-soon-wrapper {
  --coming-soon-bg: #07070a;

  /* S height: 45% of the viewport height, but never wider than 70% of the
     viewport width (the S is .9835 as wide as it is tall). The date is sized
     and placed on its own, pinned near the bottom edge. */
  --coming-soon-vh: 100vh;
  --coming-soon-s: min(calc(var(--coming-soon-vh) * .45), calc(70vw / 0.9835));
  --coming-soon-date-bottom: calc(var(--coming-soon-vh) * .08);

  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  overflow: hidden;
  background: var(--coming-soon-bg);
  /* Lets a finger drag stream pointermove to the S instead of starting a
     pan/zoom gesture (which would cancel the pointer on mobile). */
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

@supports (height: 100svh) {
  .coming-soon-wrapper { --coming-soon-vh: 100svh; }
}

.coming-soon-sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.coming-soon-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.coming-soon-canvas--hidden { display: none; }

.coming-soon-stack {
  position: relative;
  box-sizing: border-box;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.coming-soon-mark {
  flex: none;
  height: var(--coming-soon-s);
  width: calc(var(--coming-soon-s) * .9835);
}

.coming-soon-mark--fallback { background: url("s.svg") center / contain no-repeat; }

.coming-soon-date {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(var(--coming-soon-date-bottom) + env(safe-area-inset-bottom, 0px));
  display: block;
  width: 8rem;
  max-width: none;
  height: auto;
  margin: 0 auto;
  animation: coming-soon-rise 1.1s cubic-bezier(.2, .7, .25, 1) .9s both;
}

@keyframes coming-soon-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}