/* The Phase 0 coming-soon page (decision 69). Colours and type come from tokens.css, which
   sync_brand.py generates from brand/tokens/brand.json; this file holds layout only. */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 2rem;
  text-align: center;
}

.logo {
  margin: 0;
}

.logo a {
  display: block;
}

.logo img {
  display: block;
  width: min(21rem, 74vw);
  height: auto;
}

/* A short gold rule under the logo. It is decorative, so gold on ivory is allowed here (decision 67). */
.logo::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  margin: 2.5rem auto 0;
  background: var(--color-decorative);
}

.eyebrow {
  margin: 2.25rem 0 0;
  color: var(--color-accent);
  font-size: var(--size-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--letter-spacing-eyebrow);
  text-transform: uppercase;
}

.headline {
  margin: 0.875rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(var(--size-3xl), 1.4rem + 2vw, var(--size-5xl));
  font-weight: var(--weight-display);
  line-height: var(--line-height-heading);
  text-wrap: balance;
}

.headline-small {
  margin-top: 2.25rem;
  font-size: clamp(var(--size-2xl), 1.2rem + 1vw, var(--size-3xl));
}

.lede {
  max-width: 32rem;
  margin: 1.25rem 0 0;
  color: var(--color-text-muted);
  font-size: var(--size-base);
  text-wrap: pretty;
}

footer {
  padding: 1.5rem 1.5rem 2.25rem;
  text-align: center;
  font-size: var(--size-sm);
  font-weight: var(--weight-medium);
}

a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

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

a:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  main > * {
    animation: appear 0.9s ease-out both;
  }

  main > :nth-child(2) {
    animation-delay: 0.15s;
  }

  main > :nth-child(3) {
    animation-delay: 0.3s;
  }

  main > :nth-child(n + 4) {
    animation-delay: 0.45s;
  }
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }

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