/*
 * Standpipe coming-soon page.
 * Night Swim palette from docs/brand/DESIGN.md. System fonts only:
 * the Nunito and Archivo names match only when installed locally.
 */

:root {
  --bg: #101820;
  --ink: #F4F7F5;
  --muted: #9aafb8;
  --sea: #39C0BA;
  --sea-ink: #5fd3cd;

  --display: "Nunito", ui-rounded, "Arial Rounded MT Bold", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  background-color: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  padding: clamp(1.5rem, 6vw, 4rem);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 55% at 50% -10%, color-mix(in srgb, var(--sea) 16%, transparent), transparent 70%),
    radial-gradient(ellipse 45% 35% at 85% 100%, color-mix(in srgb, var(--sea) 7%, transparent), transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.page {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.6rem);
  width: 100%;
  max-width: 40rem;
  text-align: center;
}

.symbol {
  width: clamp(58px, 12vw, 84px);
  height: auto;
  animation: bob 6s ease-in-out infinite;
}

.wordmark {
  margin: 0;
  width: min(100%, 33rem);
  font-family: var(--display);
  font-weight: 800;
}

.wordmark-mark {
  display: block;
  width: 100%;
  aspect-ratio: 621.96 / 76.7;
  /* Fallback when mask-image is not supported: show the SVG as a normal image. */
  background: url("brand/standpipe-wordmark.svg") center / contain no-repeat;
}

@supports (mask-image: url("brand/standpipe-wordmark.svg")) or
          (-webkit-mask-image: url("brand/standpipe-wordmark.svg")) {
  .wordmark-mark {
    background: var(--ink);
    -webkit-mask: url("brand/standpipe-wordmark.svg") center / contain no-repeat;
    mask: url("brand/standpipe-wordmark.svg") center / contain no-repeat;
  }
}

.tagline {
  margin: 0;
  max-width: 24ch;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.35rem, 4.4vw, 1.9rem);
  line-height: 1.25;
  text-wrap: balance;
}

.soon {
  margin: 0;
  color: var(--sea-ink);
  font-size: clamp(0.95rem, 2.6vw, 1.05rem);
  font-weight: 500;
}

.foot {
  padding-top: clamp(2rem, 6vw, 3.5rem);
  color: var(--muted);
  font-size: 0.8125rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .symbol {
    animation: none;
  }
}
