html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  scroll-behavior: smooth;

  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;

    background-attachment: initial;

    transition-delay: 0s;
    transition-duration: 0s;
    animation-duration: 1ms;
    animation-delay: -1ms;
    animation-iteration-count: 1;
  }
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  cursor: default;

  margin: 0;
  padding: 0;

  font: inherit;
  font-size: 100%;
  tab-size: 4;
  vertical-align: baseline;

  border: none;
}

html {
  color: inherit;
  text-size-adjust: 100%;

  background-color: inherit;
  -webkit-tap-highlight-color: transparent;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

[tabindex="-1"]:focus:not(:focus-visible) {
  outline: 0;
}

abbr[title],
abbr[data-bs-original-title] {
  cursor: help;

  text-decoration: underline dotted;
  text-decoration-skip-ink: none;
}

address {
  font-style: normal;
  line-height: inherit;
}

ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}

nav li {
  padding: 0;

  list-style: none;
}

nav li::before {
  content: " ";
}

mark {
  padding: 0.2em;

  background-color: currentcolor;
}

sub,
sup {
  position: relative;

  font-size: 0.75em;
  line-height: 0;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

a,
area,
button,
input,
label,
select,
summary,
textarea,
[tabindex] {
  touch-action: manipulation;
}

a {
  cursor: pointer;

  text-decoration: none;

  background-color: transparent;

  &:hover {
    text-decoration: underline;
  }

  &:focus {
    outline: thin dotted;
  }
}

a:not([href], [class]):hover {
  cursor: default;

  color: inherit;
  text-decoration: none;
}

pre {
  overflow: auto;
  display: block;

  margin-top: 0;
  -ms-overflow-style: scrollbar;
}

code {
  color: inherit;
  word-wrap: break-word;
}

pre code {
  font-size: inherit;
  color: inherit;
  word-break: normal;
}

a > * {
  color: inherit;
}

kbd {
  color: inherit;

  background-color: inherit;
}

kbd kbd {
  padding: 0;
}

figure {
  margin: 0 0 1rem;
}

iframe,
img,
input,
select,
textarea {
  max-width: 100%;
  height: auto;
}

audio,
canvas,
iframe,
img,
video {
  vertical-align: middle;
}

svg:not([fill]) {
  fill: currentcolor;
}

svg:not(:root) {
  overflow: hidden;
}

img {
  border: 0;
  interpolation-mode: bicubic;
}

table {
  caption-side: bottom;

  border-collapse: collapse;

  text-indent: 0;
}

caption {
  color: inherit;
  text-align: left;
}

th {
  text-align: inherit;
  text-align: -webkit-match-parent;
}

thead,
tbody,
tfoot,
tr,
td,
th {
  border-color: inherit;
  border-style: solid;
  border-width: 0;
}

label {
  display: inline-block;
}

button {
  text-transform: none;

  border-radius: 0;

  &:focus {
    outline: -webkit-focus-ring-color auto 5px;
  }
}

input,
button {
  overflow: visible;
}

input,
button,
select,
optgroup,
textarea {
  margin: 0;

  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;

  background-color: transparent;
}

button,
select {
  text-transform: none;
}

[role="button"] {
  cursor: pointer;
}

select {
  text-transform: none;
  word-wrap: normal;

  appearance: none;
}

::-ms-expand {
  display: none;
}

[list]::-webkit-calendar-picker-indicator {
  display: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  appearance: button;
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
  cursor: pointer;
}

::-webkit-file-upload-button {
  font: inherit;

  appearance: button;
}

textarea {
  resize: vertical;

  overflow: auto;

  vertical-align: top;
  -ms-overflow-style: scrollbar;
}

fieldset {
  min-width: 0;
  margin: 0;
}

legend {
  width: 100%;
  max-width: 100%;
  padding: 0;

  line-height: inherit;
  white-space: normal;
}

legend + * {
  clear: left;
}

dialog {
  position: absolute;
  right: 0;
  left: 0;

  display: block;

  width: fit-content;
  height: fit-content;
  margin: auto;

  color: inherit;

  background-color: inherit;
  border: solid;
}

dialog:not([open]) {
  display: none;
}

::-webkit-datetime-edit-fields-wrapper,
::-webkit-datetime-edit-text,
::-webkit-datetime-edit-minute,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-year-field {
  padding: 0;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

::input-placeholder {
  color: inherit;
}

[type="search"] {
  box-sizing: content-box;

  appearance: none;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  appearance: none;
}

[type="tel"],
[type="url"],
[type="email"],
[type="number"] {
  direction: ltr;
}

::-webkit-color-swatch-wrapper {
  padding: 0;
}

::-moz-focus-inner {
  padding: 0;

  border-style: none;
}

:-moz-ui-invalid {
  box-shadow: none;
}

:-moz-focusring {
  outline: 1px dotted ButtonText;
}

output {
  display: inline-block;
}

iframe {
  border: none;
}

audio,
canvas,
video {
  zoom: 1;

  display: inline;
  display: inline-block;

  max-width: 100%;
}

audio:not([controls]) {
  display: none;

  height: 0;
}

summary {
  cursor: pointer;

  display: list-item;
}

progress {
  display: inline-block;

  vertical-align: baseline;
}

template {
  display: none;
}

[hidden] {
  display: none;
}

[aria-busy="true"] {
  cursor: progress;
}

[aria-controls] {
  cursor: pointer;
}

[aria-disabled="true"],
[disabled] {
  cursor: not-allowed;
}

[aria-hidden="false"][hidden="false"] {
  display: initial;
}

[aria-hidden="false"][hidden="false"]:not(:focus) {
  position: absolute;

  clip: rect(0, 0, 0, 0);
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none !important;
}
