body {
  margin: 0;
  font-synthesis: none;
  background: rgb(var(--color-bg));
  color: rgb(var(--color-text));
}

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

  &:focus:not(:focus-visible) {
    outline: none;
  }

  &:focus-visible {
    outline: var(--border-width-m) solid rgb(var(--color-accent));
    outline-offset: 2px;
  }
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  font-weight: inherit; /* UA-стиль ставит h1-h6 жирными по умолчанию — вес всегда должен идти от body/.t-*, не от тега */
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-weight: inherit;
  font-size: 100%;
  margin: 0;
}

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

a {
  color: inherit;
}

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