/* Shared across every page: reset, grayscale palette, focus, motion. */

:root {
  --bg: #000000;
  --fg: #ffffff;
  --gray-1: #eaeaea;
  --gray-2: #c7c7c7;
  --gray-3: #9a9a9a;
  --gray-4: #6f6f6f;
  --gray-5: #3a3a3a;
  --gray-6: #1a1a1a;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  min-height: 100%;
}

body {
  min-height: 100vh;
}

a {
  color: var(--fg);
}

button,
input,
select {
  color: inherit;
  background: transparent;
  border: 1px solid var(--gray-3);
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.error {
  color: var(--gray-1);
  border-left: 3px solid var(--fg);
  padding-left: 10px;
}

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

:focus-visible {
  outline: 2px dashed var(--fg);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
