:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #faf1ff;
  background: #100b17;
}

* { box-sizing: border-box; }
body { margin: 0; }

main {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 100svh;
  padding: clamp(1.3rem, 5vw, 5rem);
  background: radial-gradient(ellipse at 60% 54%, #2b173f 0, #140d20 49%, #100b17 76%);
}

h1 {
  margin: 0;
  font: 400 clamp(3rem, 7vw, 7.5rem)/0.9 Georgia, serif;
  letter-spacing: -0.06em;
}

h1 em { color: #c599ff; }
header p, #status { color: #e0cfe9; font-size: 0.9rem; }

#viewport {
  position: absolute;
  z-index: -1;
  inset: 8% 0 0;
  overflow: hidden;
}

canvas { display: block; width: 100%; height: 100%; }

footer { display: flex; flex-wrap: wrap; gap: 0.5rem; }
button, a {
  border: 1px solid #715987;
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  background: #1f142c;
  color: inherit;
  text-decoration: none;
  font: inherit;
  font-size: 0.82rem;
}
button:not(:disabled), a { cursor: pointer; }
button:disabled { opacity: 0.55; }
button[aria-pressed="true"] { background: #6b4493; }
button:hover:not(:disabled), a:hover { border-color: #d2adff; }

@media (max-width: 620px) {
  #viewport { inset: 15% 0 8%; }
}
