:root {
  --tinta: #022a3e;
  --texto: #2b3440;
  --suave: #5d6875;
  --linha: #e3ded5;
  --fundo: #fbfaf7;
  --papel: #ffffff;
  --acento: #8a6a3b;
  --acento-claro: #f3ece0;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --larg: 1080px;
  --texto-larg: 700px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--texto);
  background: var(--fundo);
}
img { max-width: 100%; height: auto; }
a { color: var(--tinta); text-decoration-color: var(--acento); text-underline-offset: 3px; }
a:hover { color: var(--acento); }
h1, h2, h3 { font-family: var(--serif); color: var(--tinta); line-height: 1.25; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 .6rem; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; }
h3 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }

.wrap { max-width: var(--larg); margin: 0 auto; padding: 0 1.25rem; }
.pular { position: absolute; left: -9999px; }
.pular:focus { left: 1rem; top: 1rem; background: var(--papel); padding: .5rem 1rem; z-index: 10; }

/* Topo */
.topo { background: var(--papel); border-bottom: 1px solid var(--linha); }
.topo-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; flex-wrap: wrap; padding-top: .6rem; padding-bottom: .6rem; }
.marca { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--tinta); }
.marca-icone { width: 34px; height: auto; flex-shrink: 0; }
.marca-texto { display: flex; flex-direction: column; line-height: 1.1; }
.marca-nome { font-family: "Poppins", var(--sans); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; color: var(--tinta); }
.marca-sub { font-family: "Poppins", var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .38em; text-transform: uppercase; color: var(--tinta); margin-top: .2rem; }
.menu { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.menu a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--suave); padding: .2rem 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current] { color: var(--tinta); border-bottom-color: var(--acento); }

/* Abertura */
.abertura { background: var(--tinta); color: #e9edf2; }
.abertura-in { display: flex; align-items: center; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.abertura h1 { color: #fff; }
.abertura .lead { color: #d3dae2; max-width: 640px; }
.abertura-foto { border-radius: 50%; width: 200px; height: 200px; object-fit: cover; object-position: center 25%; border: 4px solid rgba(255,255,255,.15); flex-shrink: 0; }
.sobretitulo { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #d8c29b; margin: 0 0 .8rem; }
.lead { font-size: 1.15rem; color: var(--suave); }

/* Blocos */
.bloco { padding-top: 1.5rem; padding-bottom: 1rem; }
.pagina { padding-top: 2.5rem; padding-bottom: 3rem; }
.grade-temas { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.grade-temas a { display: block; height: 100%; padding: 1.1rem 1.2rem; background: var(--papel); border: 1px solid var(--linha); border-radius: 10px; text-decoration: none; transition: border-color .15s, transform .15s; }
.grade-temas a:hover { border-color: var(--acento); transform: translateY(-2px); }
.tema-nome { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--tinta); margin-bottom: .3rem; }
.tema-desc { display: block; font-size: .92rem; color: var(--suave); line-height: 1.5; }

.lista-artigos { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--linha); }
.lista-artigos li { padding: 1rem 0; border-bottom: 1px solid var(--linha); }
.lista-artigos a { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; text-decoration: none; }
.lista-artigos a:hover { text-decoration: underline; }
.lista-artigos p { margin: .35rem 0 0; color: var(--suave); font-size: .97rem; }
.lista-tema { display: block; font-size: .85rem; color: var(--suave); margin-top: .2rem; }
.contato-curto { padding-bottom: 3rem; }

/* Artigo */
.artigo { max-width: calc(var(--texto-larg) + 2.5rem); padding-top: 2rem; padding-bottom: 3rem; }
.trilha { font-size: .88rem; color: var(--suave); margin-bottom: 1rem; }
.trilha a { color: var(--suave); }
.meta { font-size: .9rem; color: var(--suave); margin: 0 0 1.6rem; }
.resposta { background: var(--acento-claro); border-left: 4px solid var(--acento); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin-bottom: 1.5rem; }
.resposta p { margin: 0; }
.resposta-rotulo { font-size: .78rem !important; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--acento); margin-bottom: .3rem !important; }
.texto { max-width: var(--texto-larg); }
.texto ul, .texto ol { padding-left: 1.3rem; }
.texto li { margin: .35rem 0; }
.texto table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .95rem; background: var(--papel); }
.texto th, .texto td { text-align: left; padding: .6rem .75rem; border: 1px solid var(--linha); vertical-align: top; }
.texto th { background: #f4f1ea; font-weight: 600; }
.texto blockquote { margin: 1.2rem 0; padding: .2rem 1.1rem; border-left: 3px solid var(--linha); color: var(--suave); }
.aviso { margin-top: 2.5rem; font-size: .9rem; color: var(--suave); border-top: 1px solid var(--linha); padding-top: 1rem; }
.relacionados ul { padding-left: 1.2rem; }
.voltar { margin-top: 2rem; }
.sobre { display: flex; gap: 2rem; align-items: flex-start; }
.sobre-foto { border-radius: 10px; width: 220px; flex-shrink: 0; }
.contatos dt { font-weight: 600; margin-top: .9rem; color: var(--tinta); }
.contatos dd { margin: .1rem 0 0; }

/* Rodapé */
.rodape { background: var(--tinta); color: #c9d1da; font-size: .92rem; margin-top: 2rem; }
.rodape-in { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; padding-top: 2rem; padding-bottom: 2rem; }
.rodape p { margin: .2rem 0; }
.rodape a { color: #fff; }
.rodape-nome { font-family: var(--serif); font-size: 1.1rem; color: #fff; }
.rodape-aviso { grid-column: 1 / -1; color: #9aa6b2; font-size: .85rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem !important; margin-top: .6rem !important; }

@media (max-width: 720px) {
  .abertura-in { flex-direction: column-reverse; align-items: flex-start; padding-top: 2.2rem; padding-bottom: 2.2rem; gap: 1.4rem; }
  .abertura-foto { width: 120px; height: 120px; }
  .sobre { flex-direction: column; }
  .rodape-in { grid-template-columns: 1fr; }
  .menu { gap: 1rem; }
  .texto table { display: block; overflow-x: auto; }
}
