:root {
  color-scheme: light;
  color: #000;
  background: #fff;
  font-family: system-ui, sans-serif;
}

body {
  --viewport-height: 100vh;
  --orb-size: min(calc(100vw - 2rem), 26rem, calc(var(--viewport-height) * 0.58));
  --orb-visible-radius: calc(var(--orb-size) * 0.29);
  display: grid;
  grid-template-rows: calc(var(--viewport-height) / 2 + var(--orb-visible-radius)) 1fr;
  min-block-size: var(--viewport-height);
  margin: 0;
}

@supports (height: 1dvh) {
  body {
    --viewport-height: 100dvh;
  }
}

main {
  display: grid;
  place-items: end center;
  padding-inline: 1rem;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  text-align: center;
}

.orb {
  position: relative;
  inline-size: var(--orb-size);
  aspect-ratio: 1;
  /* Align the visible edge of the Orb with the start of the footer row. */
  margin-block-end: calc(var(--orb-visible-radius) - var(--orb-size) / 2);
}

.orb canvas {
  position: absolute;
  inset: 0;
  display: block;
  inline-size: 100%;
  block-size: 100%;
}

.orb-fallback {
  position: absolute;
  inset: 21%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 46% 70%, #fff 6%, transparent 72%),
    linear-gradient(145deg, #91a6ff 5%, #d4dafa 48%, #fbc9e7 90%);
  mask-image: radial-gradient(circle, #000 62%, transparent 73%);
}

.orb.is-rendering .orb-fallback {
  visibility: hidden;
}

.orb button {
  position: absolute;
  inset: 22%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.orb button:focus-visible {
  outline: 2px solid #545a9a;
  outline-offset: 5px;
}

.logo {
  display: block;
  inline-size: clamp(5.5rem, 35vw, 8.5rem);
  max-inline-size: 100%;
  block-size: auto;
}

.tagline {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  line-height: 1.45;
  text-transform: uppercase;
  text-wrap: balance;
}

.tagline-term {
  white-space: nowrap;
}
