/* Inter (UI/corpo, predominante) + Clash Display (títulos editoriais/números de patrimônio — a
   preferência da marca; Fontshare distribui de graça via CDN própria, sem custo de licença).
   Playfair Display entra só como 2º fallback (ver --font-display em tokens.css), caso a CDN da
   Fontshare esteja fora do ar. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap");
@import url("https://api.fontshare.com/v2/css?f[]=clash-display@500,600,700&display=swap");

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

/* Cada navegação entre páginas é um carregamento de página inteiro (o app não tem roteamento no
   navegador) — sem isso, a troca é um corte seco: a página antiga some, aparece um branco, a nova
   aparece de repente. Isso faz o navegador (Chrome/Edge; outros ignoram, sem quebrar nada) esmaecer
   suavemente entre as duas em vez do corte. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.18s;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  color: var(--text-body);
  /* O mesmo gradiente sutil + textura do login (ver .topo-backdrop em components.css, injetado
     pelo nav.js em toda tela do app) — não só a tela de entrada. */
  background: var(--gradient-bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

/* h1 é o único nível "editorial" (Playfair Display) — reservado a títulos de tela e números de
   patrimônio/meta em destaque. O resto da hierarquia usa Inter (predominante na interface). */
h1 {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
}

.label-caps {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

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

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

button {
  font-family: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

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

::selection {
  background: var(--color-primary-700);
  color: var(--text-inverse);
}

.text-muted {
  color: var(--text-muted);
}

.text-sm {
  font-size: var(--fs-sm);
}

.text-xs {
  font-size: var(--fs-xs);
}

.mono {
  font-family: var(--font-mono);
}
