/* The coming-soon page: the only page that is live before the launch.
   One screen: the mark, breathing as it does while the hub's interface loads,
   one line, and what the borrow checker has to say about the launch. */

.soon {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.soon__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.soon__main {
  display: grid;
  align-content: center;
  gap: clamp(28px, 4.5svh, 48px);
  padding-block: clamp(24px, 5svh, 64px);
}

.soon__words { display: grid; gap: var(--s5); }
.soon h1 { max-width: 14em; }
.soon .lede { max-width: 30rem; }

.soon__mark {
  transform-origin: 50% 55%;
  animation: breathe 3.2s ease-in-out infinite;
}

.soon__main > * { min-width: 0; }
.soon__figure { max-width: 100%; width: fit-content; }
.soon__figure .code { max-width: 100%; }

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.9); opacity: 0.6; }
}

.soon__foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s8);
  justify-content: space-between;
  padding-block: var(--s6) var(--s8);
  box-shadow: inset 0 1px 0 var(--line);
  font-size: var(--t-caption);
  color: var(--text-3);
}

.soon__foot a { color: var(--text-2); }
.soon__foot a:hover { color: var(--text); }

/* The compiler's answer, line by line: the one load moment. */
.soon .code__line { animation: line-in 260ms var(--ease-out) backwards; animation-delay: calc(500ms + var(--l) * 70ms); }

@keyframes line-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .soon__mark, .soon .code__line { animation: none; }
}

