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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  min-width: 320px;

  background: var(--background);
  color: var(--text-primary);

  font-family: var(--font-sans);
  font-size: var(--font-md);
  line-height: var(--leading-normal);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  text-rendering: optimizeLegibility;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button,
input,
textarea,
select {
  margin: 0;

  color: inherit;
  font: inherit;
}

button {
  border: 0;
  padding: 0;

  background: none;

  cursor: pointer;
}

input,
textarea,
select {
  border: 0;
  border-radius: 0;

  background: transparent;

  outline: none;
}

textarea {
  resize: vertical;
}

img,
picture,
video,
canvas,
svg {
  display: block;

  max-width: 100%;
}

img,
video {
  height: auto;
}

svg {
  overflow: visible;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

code,
kbd,
samp,
pre {
  font-family: var(--font-mono);
}

pre {
  margin: 0;

  white-space: pre-wrap;
  word-break: break-word;
}

hr {
  margin: 0;

  border: 0;
  border-top: 1px solid var(--border-default);
}

::selection {
  background: var(--accent);
  color: var(--accent-foreground);
}

::-moz-selection {
  background: var(--accent);
  color: var(--accent-foreground);
}

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

[hidden] {
  display: none !important;
}

[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }
}
