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

html {
  min-width: 320px;
  overflow-x: hidden;
  background: #000;
  scroll-behavior: smooth;
  scrollbar-color: #282828 #000;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #000;
  color: var(--sx-text);
  font: 14px/1.5 var(--sx-font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button,
a,
input,
select,
textarea {
  transition: background-color var(--sx-normal) var(--sx-ease),
              border-color var(--sx-normal) var(--sx-ease),
              color var(--sx-normal) var(--sx-ease),
              box-shadow var(--sx-normal) var(--sx-ease),
              opacity var(--sx-normal) var(--sx-ease),
              transform var(--sx-normal) var(--sx-ease);
}

button,
[role="button"] {
  touch-action: manipulation;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
}

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

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

fieldset,
legend {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

::selection {
  background: #fff;
  color: #000;
}

:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 3px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--sx-text);
  box-shadow: 0 0 0 1000px #080808 inset;
  caret-color: var(--sx-text);
}

[hidden][hidden] {
  display: none;
}

.sx-skip-link {
  position: fixed;
  z-index: 11000;
  top: 10px;
  left: 10px;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--sx-line-strong);
  border-radius: var(--sx-radius-sm);
  background: var(--sx-surface-raised);
  transform: translateY(-160%);
  transition: transform var(--sx-normal) var(--sx-ease);
}

.sx-skip-link:focus {
  transform: none;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  border: 2px solid #000;
  border-radius: 5px;
  background: #282828;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .001ms;
    animation-duration: .001ms;
    animation-iteration-count: 1;
  }
}
