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

html {
  background: var(--bg);
  transition: background-color 0.3s steps(4);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 14px/1.6 var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p,
ul {
  margin: 0;
  padding: 0;
  font: inherit;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration-color: var(--leaf);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-color: var(--leaf-deep);
}

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

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

code {
  font: inherit;
}

::selection {
  background: var(--tint-mint);
}

:focus-visible {
  outline: var(--u) solid var(--violet);
  outline-offset: calc(var(--u) * 2);
}

[hidden] {
  display: none !important;
}

.pixel {
  display: block;
  flex: none;
  image-rendering: pixelated;
}

.page {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 40px 20px 96px;
}

.page-centered {
  display: flex;
  flex-direction: column;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
