html {
  color-scheme: dark;
}

[hidden] {
  display: none !important;
}

body {
  font-family: var(--font-body);
  background: var(--page-background);
  background-size: var(--page-background-size);
  color: var(--color-ink);
  margin: 0;
  position: relative;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--page-overlay);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
.page-title,
.artwork-name,
.instructions-panel h1,
.admin-panel h1 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

p,
label,
input,
button:not(.color-button),
select,
textarea,
a {
  font-family: var(--font-ui);
}

a {
  color: inherit;
}

button:not(.color-button),
.control-link,
.tool-button,
.control-button {
  min-height: 44px;
}

button:not(.color-button),
input,
select,
textarea {
  border-radius: var(--radius-md);
}

button:not(.color-button):focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
