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

html {
  min-width: 320px;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  background: var(--color-page);
  color-scheme: light;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  color: var(--color-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.2;
}

p {
  color: inherit;
}

small {
  font-size: 12px;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

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

img {
  font-style: italic;
}

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

button,
select,
input[type="file"] {
  cursor: pointer;
}

button {
  border: 0;
}

input,
select,
textarea {
  min-width: 0;
}

textarea {
  resize: vertical;
}

::placeholder {
  color: var(--mz-text-300);
  opacity: 1;
}

::selection {
  color: var(--mz-green-900);
  background: rgba(67, 139, 61, 0.18);
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: var(--opacity-disabled);
}

input:not([type="file"]),
select,
textarea {
  transition:
    border-color var(--motion-base) var(--ease-standard),
    box-shadow var(--motion-base) var(--ease-standard),
    background-color var(--motion-base) var(--ease-standard);
}

input:not([type="file"]):hover,
select:hover,
textarea:hover {
  border-color: var(--color-border-strong);
}

:focus {
  outline: none;
}

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

input:not([type="file"]):focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--color-green);
  box-shadow: 0 0 0 4px var(--color-focus-ring);
}

[hidden] {
  display: none !important;
}

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

.fatal-state {
  display: grid;
  min-height: 100vh;
  place-content: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
}
