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

html {
  color-scheme: dark;
}

body,
h1,
h2,
p,
ul,
figure {
  margin: 0;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte-primaria);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

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

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

button {
  color: inherit;
}

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

strong {
  font-weight: var(--fonte-peso-bold);
}

:focus-visible {
  outline: 0.1875rem solid var(--cor-complementar);
  outline-offset: 0.25rem;
}

[id] {
  scroll-margin-top: calc(var(--altura-cabecalho) + var(--espacamento-sm));
}

.layout__container {
  width: min(100% - 2rem, var(--largura-desktop));
  margin-inline: auto;
}

.link-pular {
  position: fixed;
  top: var(--espacamento-sm);
  left: var(--espacamento-sm);
  z-index: 1000;
  padding: 0.75rem 1rem;
  translate: 0 calc(-100% - 2rem);
  border: 1px solid var(--cor-complementar);
  border-radius: var(--raio-minimo);
  background: var(--superficie);
  color: var(--cor-branco);
  font-weight: var(--fonte-peso-bold);
}

.link-pular:focus {
  translate: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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