/* Base: fontes, reset e estrutura da página. */
@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/barlow-condensed-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/barlow-condensed-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/inter-variavel.woff2') format('woff2');
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: var(--t-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  font-size: max(16px, 1em);
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

[tabindex='-1']:focus {
  outline: none;
}

.icone {
  display: block;
  flex-shrink: 0;
}

.app {
  max-width: var(--largura-max);
  margin: 0 auto;
  min-height: 100dvh;
  padding: 0 calc(var(--margem) + var(--seguro-dir)) 0 calc(var(--margem) + var(--seguro-esq));
}

.tela {
  padding-top: calc(var(--seguro-topo) + var(--e-4));
  padding-bottom: calc(var(--barra-altura) + var(--seguro-base) + var(--e-8));
}

/* com aviso global no topo, o aviso já ocupa a área segura */
#aviso:not(:empty) ~ .tela {
  padding-top: var(--e-4);
}
