/* Apex "coming soon" page. Tokens only, from tokens.css. */
* { box-sizing: border-box; }
html { background: var(--surface-100); color: var(--ink); font-family: var(--font-sans); }
body { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--space-6) var(--space-4); }
main { max-width: var(--form-width); }
.wordmark { margin: 0 0 var(--space-6); font-size: var(--text-md); font-weight: var(--weight-semibold); letter-spacing: -0.01em; }
.wordmark span { color: var(--ink-muted); font-weight: var(--weight-regular); }
h1 { margin: 0 0 var(--space-4); font-size: var(--text-xl); line-height: var(--leading-tight); font-weight: var(--weight-semibold); }
p { margin: 0 0 var(--space-4); font-size: var(--text-md); line-height: var(--leading-normal); }
.muted { color: var(--ink-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Headline ending: the phrases share one grid cell, so the tallest one sets the
   height and nothing below jumps. --t runs 0 to 1 over 2.5s per phrase, and each
   phrase fades itself in and out in its own slot, worked out from
   sibling-index(). Add or remove phrases in the HTML only. Without
   sibling-index() support, or with reduced motion, the first phrase stays. */
.rotator { display: grid; color: var(--ink-muted); }
.rotator > span { grid-area: 1 / 1; }
.rotator > span:not(:first-child) { visibility: hidden; }
@property --t { syntax: "<number>"; inherits: false; initial-value: 0; }
@keyframes rotator { to { --t: 1; } }
@supports (order: sibling-index()) {
  @media (prefers-reduced-motion: no-preference) {
    .rotator > span:not(:first-child) { visibility: visible; }
    .rotator > span {
      --p: calc(var(--t) * sibling-count() - sibling-index() + 1);
      opacity: clamp(0, min(var(--p) * 8, (1 - var(--p)) * 8), 1);
      animation: rotator calc(sibling-count() * 2.5s) linear infinite;
    }
  }
}
