@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: oklch(0.145 0.008 65);
  --ivory: oklch(0.938 0.023 81);
  --muted: oklch(0.765 0.018 80);
  --quiet: oklch(0.64 0.015 80);
  --ready: oklch(0.823 0.18 160);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  background: var(--background);
  color: var(--ivory);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: clamp(32px, 6vh, 72px) clamp(16px, 4vw, 64px);
  position: relative;
  isolation: isolate;
}

.ambient, .grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.ambient {
  background:
    radial-gradient(ellipse 44% 38% at 35% 46%, oklch(0.58 0.14 48 / 0.19), transparent 74%),
    radial-gradient(ellipse 26% 30% at 73% 47%, oklch(0.61 0.12 165 / 0.07), transparent 76%),
    radial-gradient(ellipse 60% 58% at 85% 14%, oklch(0.35 0.08 346 / 0.24), transparent 72%),
    radial-gradient(ellipse 62% 56% at 12% 94%, oklch(0.35 0.08 346 / 0.14), transparent 76%);
}

.grain {
  background-image: url("/assets/grain.svg");
  background-size: 190px 190px;
  opacity: 0.055;
  mix-blend-mode: soft-light;
}

main {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.identity {
  width: min(530px, 50%);
  transform-origin: center;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1830 / 620;
}

.status {
  min-height: 1.7em;
  max-width: 100%;
  margin: clamp(28px, 4.4vh, 48px) 0 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: clamp(13px, 1.1vw, 17px);
  line-height: 1.6;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding-inline-start: 0.28em;
}

.status-light {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--ready);
  box-shadow: 0 0 11px oklch(0.823 0.18 160 / 0.55);
}

#coming-soon { transition: opacity 380ms ease; }
#coming-soon.is-changing { opacity: 0; }

.suite-link {
  margin-top: clamp(36px, 5.4vh, 64px);
  padding: 8px 10px;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.035em;
  text-decoration: none;
  text-underline-offset: 5px;
  transition: color 180ms ease;
}
.suite-link:hover { color: var(--ivory); text-decoration: underline; }
.suite-link:focus-visible { outline: 2px solid var(--ready); outline-offset: 5px; border-radius: 3px; }
.suite-link span { margin-left: 3px; }

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

@media (prefers-reduced-motion: no-preference) {
  .identity { animation: arrive 850ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .status-light { animation: ready 2.8s ease-in-out infinite; }
}
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ready { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

@media (max-width: 600px) {
  body { padding-inline: 18px; }
  .ambient { background: radial-gradient(ellipse 90% 38% at 42% 44%, oklch(0.52 0.13 48 / 0.2), transparent 80%), radial-gradient(ellipse 100% 70% at 90% 5%, oklch(0.35 0.08 346 / 0.18), transparent 75%); }
  .status { margin-top: 28px; font-size: 12px; letter-spacing: 0.21em; gap: 10px; }
  .suite-link { margin-top: 40px; font-size: 11px; }
}

@media (max-height: 500px) and (min-width: 601px) {
  body { padding-block: 24px; }
  .identity { width: min(360px, 45%); }
  .status { margin-top: 20px; }
  .suite-link { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
