:root {
  --capa: #14213d;
  --conduta: #0b6e4f;
  --pilulas: #7a5c00;
  --fixas: #4a4a4a;
  --papel: #fffdf8;
  --fundo: #f4efe6;
  --aviso: #8a4b08;
  --texto: #1c1915;
  --largura: 46rem;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { font-size: 112.5%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fundo);
  color: var(--texto);
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  line-height: 1.5;
}

a { color: #0645ad; }
a:hover { text-decoration: none; }

.salta {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: #fff;
  padding: 0.4rem 0.7rem;
}
.salta:focus { top: 0.5rem; z-index: 2; }

.topo, .rodape, main {
  width: min(100%, calc(var(--largura) + 2rem));
  margin-inline: auto;
}

.topo {
  padding: 1rem 1rem 0.5rem;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}
.marca {
  color: var(--capa);
  font-weight: 700;
  font-size: 1.7rem;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.edicao-rotulo { margin: 0.15rem 0 0.6rem; color: #3d4450; font-size: 0.95rem; }
.topo nav { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; }
.topo nav a { color: var(--capa); font-weight: 700; }

main {
  flex: 1;
  background: var(--papel);
  padding: 1.1rem 1rem 2rem;
  border-block: 1px solid #e4dccb;
}

h1, h2, h3, h4 {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  line-height: 1.2;
  color: var(--capa);
}
h1 { font-size: 1.8rem; margin: 0 0 0.6rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.08rem; color: #243044; }

.capa h1 { font-size: 2.1rem; }
.manchete {
  background: #eef5f1;
  border-left: 6px solid var(--conduta);
  padding: 0.7rem 0.9rem;
  margin: 0.8rem 0;
}
.manchete h2, .manchete h2 a { color: var(--capa); }
.chapeu {
  display: block;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--conduta);
  margin-bottom: 0.3rem;
}
.sumario, .legenda, .quadro-escore {
  border: 1px solid #d9d0c0;
  background: #faf7f1;
  padding: 0.7rem 0.9rem;
  margin: 0.8rem 0;
}
.aviso {
  border: 1px solid #e0b56a;
  background: #fff6e8;
  color: var(--aviso);
  padding: 0.45rem 0.7rem;
  margin: 0.7rem 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.92rem;
}
.na-pratica {
  background: #fffbe8;
  border: 1px solid var(--conduta);
  padding: 0.6rem 0.8rem;
  margin: 0.8rem 0;
}
.selos ul, .chamadas ul, .sumario ul { padding-left: 1.1rem; }
.selo {
  display: inline-block;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.05rem 0.4rem;
  border-radius: 0.4rem;
  margin-right: 0.3rem;
}
.selo.grau { background: #e3e7ee; }
.selo.brasil { background: #07532b; color: #ffdf00; }
.selo.esp { border: 1px solid var(--conduta); color: var(--conduta); }
.pilula { border-top: 2px solid var(--pilulas); padding-top: 0.4rem; margin-top: 0.9rem; }
.referencias { font-size: 0.95rem; }
.referencias a { overflow-wrap: anywhere; }

.nota, .extensao {
  background: var(--papel);
  padding: 1.1rem 1rem 2rem;
}

.rodape {
  margin-top: auto;
  padding: 1rem 1rem 1.4rem;
  border-top: 3px solid var(--capa);
  background: #ebe4d6;
  font-size: 0.92rem;
}
.rodape p { margin: 0.35rem 0; }
.rodape h3 { font-size: 1rem; margin: 0.6rem 0 0.2rem; }

.sem-rede h1 { font-size: 1.5rem; }

@media (max-width: 40rem) {
  html { font-size: 106%; }
  .capa h1 { font-size: 1.7rem; }
}
