@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --papel: #F8FAFC;
  --tinta: #14213D;
  --azul: #2F5FA7;
  --amarelo: #F7B928;
  --grafite: #5B6478;
  --linha: #E2E7EF;

  --fonte: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --medida: 66ch;
  --gutter: clamp(1rem, 4vw, 2rem);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--fonte);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--azul);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--azul);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Traço bicolor: ecoa a divisão azul/amarelo do hexágono do logo */
.traco {
  display: block;
  width: 56px;
  height: 4px;
  border: 0;
  margin: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--azul) 50%, var(--amarelo) 50%);
}

/* ---------- Página inicial ---------- */

.inicio {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vh, 3rem);
  padding: 4rem var(--gutter);
  text-align: center;
}

.inicio h1 {
  margin: 0;
}

.inicio .logo {
  width: min(400px, 82vw);
}

.contato {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contato span {
  color: var(--grafite);
  font-size: 0.9375rem;
}

.contato a {
  font-size: clamp(1.125rem, 2.4vw, 1.3125rem);
  font-weight: 600;
  color: var(--tinta);
  text-decoration-color: var(--amarelo);
  text-decoration-thickness: 2px;
}

.contato a:hover {
  color: var(--azul);
  text-decoration-color: var(--azul);
}

/* ---------- Páginas de documento ---------- */

.topo {
  padding: 1.5rem var(--gutter);
  border-bottom: 1px solid var(--linha);
}

.topo-interno {
  max-width: var(--medida);
  margin: 0 auto;
}

.topo a {
  display: inline-block;
}

.topo img {
  width: 150px;
}

.documento {
  flex: 1;
  width: 100%;
  max-width: calc(var(--medida) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 4.5rem) var(--gutter) 4rem;
}

.documento h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.875rem, 5vw, 2.5rem);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.documento .atualizacao {
  margin: 0 0 1.5rem;
  color: var(--grafite);
  font-size: 0.9375rem;
}

.documento .traco {
  margin-bottom: 2.5rem;
}

.documento h2 {
  margin: 2.5rem 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.documento p,
.documento ul {
  margin: 0 0 1rem;
}

.documento ul {
  padding-left: 1.25rem;
}

.documento li {
  margin-bottom: 0.375rem;
}

.documento li::marker {
  color: var(--azul);
}

.documento .destaque {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--amarelo);
  background: #FFFFFF;
}

/* ---------- Rodapé ---------- */

.rodape {
  padding: 1.5rem var(--gutter) 2rem;
  color: var(--grafite);
  font-size: 0.875rem;
}

.rodape-interno {
  max-width: var(--medida);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.rodape p {
  margin: 0;
}

.rodape nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.rodape a {
  color: var(--grafite);
}

.rodape a:hover,
.rodape a[aria-current="page"] {
  color: var(--tinta);
}

.inicio + .rodape .rodape-interno {
  justify-content: center;
}

@media (max-width: 480px) {
  .rodape-interno {
    flex-direction: column;
    align-items: flex-start;
  }

  .inicio + .rodape .rodape-interno {
    align-items: center;
  }
}
