/* Base: fontes, reinício e elementos soltos. Tudo por token (ver tokens.css). */

/* Fontes definitivas do trabalho de design (DECISOES.md, 11/11): Canela e National 2, versões de teste em
   privado/ (licença, fora do git). Cada família vem em duas partes: letras e números, e acentos e pontuação
   (a versão de teste não traz os dois juntos). O primeiro endereço é o do app (`kit/fontes/marca/`, servido pelo
   KitFinder a partir de settings.FONTES_DA_MARCA); o segundo serve às páginas do kit abertas do disco.
   Sem o arquivo, a pilha de tokens.css cai em EB Garamond e Archivo. */

@font-face {
  font-family: "Canela";
  src: url("fontes/marca/canela-400.929c41031d0d.otf") format("opentype"), url("../../../privado/fontes-teste/canela-400.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20, U+30-39, U+41-5A, U+61-7A;
}

@font-face {
  font-family: "Canela";
  src: url("fontes/marca/canela-acentos-400.294be433121b.ttf") format("truetype"), url("../../../privado/fontes-teste/canela-acentos-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+21, U+23, U+25-29, U+2B-2F, U+3A-3B, U+3D, U+3F-40, U+AA-AB, U+B7, U+BA-BB, U+C0-C3, U+C7, U+C9-CA, U+CD, U+D3-D5, U+DA, U+DC, U+E0-E3, U+E7, U+E9-EA, U+ED, U+F1, U+F3-F5, U+FA, U+FC, U+2013-2014, U+2018-2019, U+201C-201D, U+2026;
}

@font-face {
  font-family: "Canela";
  src: url("fontes/marca/canela-500.57881d6748bc.otf") format("opentype"), url("../../../privado/fontes-teste/canela-500.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20, U+30-39, U+41-5A, U+61-7A;
}

@font-face {
  font-family: "Canela";
  src: url("fontes/marca/canela-acentos-500.84341f0b4bec.ttf") format("truetype"), url("../../../privado/fontes-teste/canela-acentos-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+21, U+23, U+25-29, U+2B-2F, U+3A-3B, U+3D, U+3F-40, U+AA-AB, U+B7, U+BA-BB, U+C0-C3, U+C7, U+C9-CA, U+CD, U+D3-D5, U+DA, U+DC, U+E0-E3, U+E7, U+E9-EA, U+ED, U+F1, U+F3-F5, U+FA, U+FC, U+2013-2014, U+2018-2019, U+201C-201D, U+2026;
}

@font-face {
  font-family: "Canela";
  src: url("fontes/marca/canela-700.611f8a28956f.otf") format("opentype"), url("../../../privado/fontes-teste/canela-700.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20, U+30-39, U+41-5A, U+61-7A;
}

@font-face {
  font-family: "Canela";
  src: url("fontes/marca/canela-acentos-700.a8daab5f8ba2.ttf") format("truetype"), url("../../../privado/fontes-teste/canela-acentos-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+21, U+23, U+25-29, U+2B-2F, U+3A-3B, U+3D, U+3F-40, U+AA-AB, U+B7, U+BA-BB, U+C0-C3, U+C7, U+C9-CA, U+CD, U+D3-D5, U+DA, U+DC, U+E0-E3, U+E7, U+E9-EA, U+ED, U+F1, U+F3-F5, U+FA, U+FC, U+2013-2014, U+2018-2019, U+201C-201D, U+2026;
}

@font-face {
  font-family: "National 2";
  src: url("fontes/marca/national-2-400.0bad123e6f13.woff2") format("woff2"), url("../../../privado/fontes-teste/national-2-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20, U+30-39, U+41-5A, U+61-7A, U+100-101;
}

@font-face {
  font-family: "National 2";
  src: url("fontes/marca/national-acentos-400.c8def0a9e5a0.ttf") format("truetype"), url("../../../privado/fontes-teste/national-acentos-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+21, U+23, U+25-29, U+2B-2F, U+3A-3B, U+3D, U+3F-40, U+AA-AB, U+B7, U+BA-BB, U+C0-C3, U+C7, U+C9-CA, U+CD, U+D3-D5, U+DA, U+DC, U+E0-E3, U+E7, U+E9-EA, U+ED, U+F1, U+F3-F5, U+FA, U+FC, U+2013-2014, U+2018-2019, U+201C-201D, U+2026;
}

@font-face {
  font-family: "National 2";
  src: url("fontes/marca/national-2-500.21b84e6022a6.woff2") format("woff2"), url("../../../privado/fontes-teste/national-2-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20, U+30-39, U+41-5A, U+61-7A, U+100-101;
}

@font-face {
  font-family: "National 2";
  src: url("fontes/marca/national-acentos-500.92132f9868f3.ttf") format("truetype"), url("../../../privado/fontes-teste/national-acentos-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+21, U+23, U+25-29, U+2B-2F, U+3A-3B, U+3D, U+3F-40, U+AA-AB, U+B7, U+BA-BB, U+C0-C3, U+C7, U+C9-CA, U+CD, U+D3-D5, U+DA, U+DC, U+E0-E3, U+E7, U+E9-EA, U+ED, U+F1, U+F3-F5, U+FA, U+FC, U+2013-2014, U+2018-2019, U+201C-201D, U+2026;
}

@font-face {
  font-family: "National 2";
  src: url("fontes/marca/national-2-700.1a1356116d78.woff2") format("woff2"), url("../../../privado/fontes-teste/national-2-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20, U+30-39, U+41-5A, U+61-7A, U+100-101;
}

@font-face {
  font-family: "National 2";
  src: url("fontes/marca/national-acentos-700.43572b24042a.ttf") format("truetype"), url("../../../privado/fontes-teste/national-acentos-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+21, U+23, U+25-29, U+2B-2F, U+3A-3B, U+3D, U+3F-40, U+AA-AB, U+B7, U+BA-BB, U+C0-C3, U+C7, U+C9-CA, U+CD, U+D3-D5, U+DA, U+DC, U+E0-E3, U+E7, U+E9-EA, U+ED, U+F1, U+F3-F5, U+FA, U+FC, U+2013-2014, U+2018-2019, U+201C-201D, U+2026;
}

@font-face {
  font-family: "Archivo";
  src: url("fontes/archivo-latin-wght-normal.cd56e2ec63d7.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fontes/eb-garamond-latin-wght-normal.f12bc30ca94a.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--esp-64);
}

body {
  margin: 0;
  background: var(--cor-superficie-pagina);
  color: var(--cor-texto-primario);
  font-family: var(--familia-texto);
  font-weight: var(--peso-texto);
  font-size: var(--fonte-corpo);
  line-height: var(--altura-corpo);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--familia-titulo);
  font-weight: var(--peso-titulo);
  line-height: var(--altura-titulo);
  letter-spacing: var(--tracking-titulo);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

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

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

a {
  color: var(--cor-ouro-texto);
  text-decoration-thickness: var(--borda-fina);
  text-underline-offset: var(--esp-4);
}

a:hover {
  text-decoration-thickness: var(--borda-filete);
}

::selection {
  background: var(--cor-ouro-botao);
  color: var(--cor-texto-sobre-ouro);
}

/* Foco visível por teclado em todo elemento interativo. */
:focus-visible,
.is-foco {
  outline: var(--borda-foco) solid var(--cor-borda-foco);
  outline-offset: var(--esp-4);
}

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

/* Rolagem discreta, tirada da paleta. */
* {
  scrollbar-color: var(--cor-borda-forte) transparent;
  scrollbar-width: thin;
}

.in-so-leitor {
  position: absolute;
  inline-size: var(--borda-fina);
  block-size: var(--borda-fina);
  margin: calc(var(--borda-fina) * -1);
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.in-pular {
  position: absolute;
  inset-inline-start: var(--esp-16);
  inset-block-start: var(--esp-8);
  z-index: 10;
  padding: var(--esp-12) var(--esp-16);
  border-radius: var(--raio-pilula);
  background: var(--cor-ouro-botao);
  color: var(--cor-texto-sobre-ouro);
  font-weight: var(--peso-enfase);
  transform: translateY(-200%);
}

.in-pular:focus-visible {
  transform: none;
}

.in-filete {
  inline-size: var(--esp-48);
  block-size: var(--borda-filete);
  border-radius: var(--raio-pilula);
  background: var(--filete-ouro);
}

.in-icone {
  inline-size: var(--icone-m);
  block-size: var(--icone-m);
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* O chevron do sprite aponta para baixo; este modificador o gira para a esquerda ("Voltar"). */
.in-icone--esquerda {
  transform: rotate(90deg);
}

.in-caixa {
  container-type: inline-size;
  min-inline-size: 0;
}

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