/* Reset, page canvas and shared utilities. */

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

* {
  margin: 0;
}

html {
  background: var(--page);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Components set their own display, so make `hidden` always win. */
[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

::selection {
  background: rgb(91 46 224 / 0.3);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* The flowing ink drawn by js/background.js. */
.ink {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
}

/* Without WebGL, a still version of the ink. */
.no-webgl .ink {
  display: none;
}

.no-webgl body {
  background:
    radial-gradient(60% 50% at 20% 25%, rgb(91 46 224 / 0.55), transparent 70%),
    radial-gradient(50% 45% at 80% 30%, rgb(18 181 172 / 0.5), transparent 70%),
    radial-gradient(55% 50% at 60% 85%, rgb(224 54 155 / 0.45), transparent 70%),
    radial-gradient(35% 30% at 25% 80%, rgb(242 184 75 / 0.35), transparent 70%),
    var(--page);
  background-attachment: fixed;
}
