:root {
  --bg: #1b1509;
  --ink: #ead7a4;
  --grain: 244 222 165;
  --grain-alpha: 0.1;
  --edge: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background: var(--bg);
}

body {
  position: fixed;
  inset: 0;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.rings {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Fades the rings in by uncovering them; the canvas itself always stays fully visible. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--bg);
  pointer-events: none;
  animation: reveal 1.6s ease-out 0.15s forwards;
}

@keyframes reveal {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

main {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: 100%;
  padding: var(--edge);
  padding-right: max(var(--edge), env(safe-area-inset-right));
  padding-bottom: max(var(--edge), env(safe-area-inset-bottom));
  /* Single-finger drags reach the rings instead of panning; pinch zoom still works. */
  touch-action: pinch-zoom;
}

h1 {
  line-height: 0;
}

.wordmark {
  display: block;
  fill: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    display: none;
  }
}
