/* The logo box is a square; the artwork spans 83% of its width and the middle 60% of its height.
   Box size: 80% of the smaller viewport side, capped at 640px. */
:root {
  --logo: min(80vmin, 640px);
  color-scheme: dark;
  background: #000;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: #000;
  color: #8a8a8a; /* 6.1:1 on black */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  margin: 0;
  line-height: 0;
}

h1 img {
  display: block;
  width: var(--logo);
  height: var(--logo);
}

p {
  /* Pull the line up into the box's lower padding: it sits a tenth of the box below the circles. */
  margin: calc(var(--logo) * -0.1) 0 0;
  padding-left: 0.32em; /* balances the trailing letter-spacing */
  font-size: clamp(0.75rem, 0.55rem + 0.35vmin, 0.875rem);
  font-weight: 400;
  letter-spacing: 0.32em;
  line-height: 1;
}

@media (prefers-reduced-motion: no-preference) {
  h1 img {
    animation: rise 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  p {
    animation: rise 1.6s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: scale(0.985);
    }
  }
}
