@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
:root { color-scheme: dark; background: #16121b; color: #f3e9f1; }
* { box-sizing: border-box; }
body { margin: 0; }
::selection { background: #d9b6ec; color: #21172a; }
main {
  min-height: 100svh;
  display: grid;
  padding: 0 clamp(20px, 4vw, 76px);
  background: radial-gradient(ellipse at 50% 38%, #2a2031 0%, #1e1823 38%, #16121b 72%);
}
figure {
  margin: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 16px 0 max(20px, env(safe-area-inset-bottom));
}
.stage {
  display: block; width: min(100%, max(240px, calc(100svh - 150px)), 840px); aspect-ratio: 620 / 570;
  appearance: none; padding: 0; border: 0; background: transparent; cursor: pointer; touch-action: manipulation;
}
.stage:focus-visible { outline: 2px solid #dec6f3; outline-offset: 2px; border-radius: 10px; }
canvas { width: 100%; height: 100%; display: block; }
figcaption { text-align: center; margin-top: .4rem; }
h1 { margin: 0; font: italic 400 clamp(48px, 7.8svh, 82px)/1.08 "Source Serif 4", Georgia, serif; letter-spacing: -.035em; }
p { margin: 12px 0 0; font: 12px/1.5 system-ui, sans-serif; color: #c4b4c8; }
p b { padding: 0 .45em; color: #a98db6; }
noscript { text-align: center; padding: 1em; }
@media (max-width: 600px) {
  main { padding-inline: 12px; }
  .stage { width: min(100%, 88svh); }
}
@media (max-height: 530px) and (min-aspect-ratio: 1/1) {
  figure { flex-direction: row; gap: 4vw; }
  .stage { width: min(52vw, 84svh); }
}
