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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--slate-950);
  color: var(--slate-100);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

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

svg {
  /* por padrao <svg> e "inline" como texto, o que sobra um espaco
     fantasma embaixo do desenho (pensado pra descender de letra) -
     isso desalinha verticalmente com o texto do lado mesmo dentro de
     um flex container. O Tailwind reseta isso globalmente; aqui
     precisa ser explicito. */
  display: block;
  flex-shrink: 0;
}

::placeholder {
  color: var(--slate-500);
}

.hidden {
  display: none !important;
}

/* visivel so pra leitor de tela */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
