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

html {
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: rgb(var(--bg));
  color: rgb(var(--text));
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3 {
  margin: 0 0 var(--space-m);
  color: rgb(var(--heading));
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h3 {
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

strong {
  font-weight: 500;
}

h1 {
  font-size: 1.625rem;
}

h2 {
  font-size: 1.375rem;
}

h3 {
  font-size: 1.0625rem;
}

p,
ul,
ol,
figure,
blockquote {
  margin: 0 0 var(--space-m);
}

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

a {
  color: rgb(var(--accent-text));
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

a[target="_blank"]:not(.button)::after {
  content: "" / " (abre em nova aba)";
  display: inline-block;
  flex: none;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.35em;
  background-color: currentColor;
  vertical-align: -0.05em;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16L16 8M9 8h7v7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16L16 8M9 8h7v7'/%3E%3C/svg%3E") center / contain no-repeat;
}

::selection {
  background: rgba(var(--accent), 0.35);
}

[hidden] {
  display: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgb(var(--accent-text));
  outline-offset: 2px;
}

summary {
  cursor: pointer;
}

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

address {
  font-style: normal;
}

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

@media (min-width: 40em) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.625rem;
  }
}

@media (min-width: 64em) {
  h1 {
    font-size: 2.25rem;
  }
}
