@font-face {
  font-family: 'Literata';
  src: url('/fonts/Literata-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #f4efe8;
  --card: #fffefc;
  --text: #1c2333;
  --text-2: #4d5664;
  --muted: #828892;
  --border: #ebe5dc;
  --accent: #b4532f;
  --accent-faint: #fdf2ec;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1522;
    --card: #151c2b;
    --text: #f7f3ec;
    --text-2: #bac2cb;
    --muted: #767e89;
    --border: #262e3d;
    --accent: #e88c64;
    --accent-faint: #281711;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 2px; }

.topo, main, .rodape {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 8px;
}

.topo img { height: 28px; width: auto; display: block; }
/* Depois de `.topo img` e com a mesma força (classe + elemento ou mais), senão os dois logos aparecem. */
.topo img.logo-escuro { display: none; }
@media (prefers-color-scheme: dark) {
  .topo img.logo-claro { display: none; }
  .topo img.logo-escuro { display: block; }
}

.idioma { font-size: 15px; color: var(--text-2); }

main { padding-top: 24px; padding-bottom: 48px; }

h1, h2 {
  font-family: 'Literata', Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: 34px; margin: 8px 0 8px; }
h2 { font-size: 22px; margin: 40px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 4px; }

p, li { color: var(--text-2); }
strong { color: var(--text); }

.data { font-size: 15px; color: var(--muted); margin: 0 0 24px; }

.cartao {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  margin: 24px 0;
}

.destaque {
  background: var(--accent-faint);
  border-radius: 14px;
  padding: 16px 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 16px 0;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}

th { color: var(--text); font-weight: 600; }

.tabela { overflow-x: auto; }

.links { list-style: none; padding: 0; margin: 24px 0 0; }
.links li { margin: 10px 0; }
.links a { font-size: 19px; }

.rodape {
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

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

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  th, td { padding: 8px 4px; }
}
