/* ricardogr.com: mesmo sistema visual dos carrosséis (navy/teal, dourado, Source Serif 4 + Montserrat). */

:root {
  --navy: #023247;
  --teal: #4293A0;
  --teal-claro: #9DBFC6;
  --dourado: #C9A87C;
  --dourado-texto: #8A6634; /* dourado escurecido: 4.9:1 sobre --papel */
  --papel: #F5F8F8;
  --tinta: #1C2B33;
  --tinta-suave: #4E616B;
  --linha: #D5E1E3;
  --serifa: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --coluna: 40rem;
  --largo: 68rem;
}

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

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

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--serifa);
  font-size: 1.125rem;
  line-height: 1.6;
}

a { color: var(--navy); text-decoration-color: var(--teal); text-underline-offset: 0.18em; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--dourado); outline-offset: 3px; }

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

.pular {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: 0.5rem 1rem;
}
.pular:focus { left: 0; }

/* Topo e rodapé: Montserrat, para separar navegação de leitura. */

.topo {
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.875rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  justify-content: space-between; align-items: baseline;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
}
.topo a { color: #fff; text-decoration: none; }
.marca { font-weight: 700; letter-spacing: 0.02em; }
.topo nav { display: flex; gap: 1.25rem; }
.topo nav a { opacity: 0.8; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.topo nav a:hover, .topo nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--dourado); }
.topo nav a.externo { opacity: 1; color: var(--dourado); }

main { padding: 0 clamp(1rem, 4vw, 2.5rem); }

.rodape {
  margin-top: 5rem;
  background: var(--navy);
  color: var(--teal-claro);
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.7;
  padding: 2rem clamp(1rem, 4vw, 2.5rem);
}
.rodape p { max-width: var(--largo); margin: 0 auto 0.75rem; }
.rodape a { color: #fff; }
.rodape .identificacao { color: #fff; font-weight: 600; }
.rodape .aviso { color: var(--dourado); margin-bottom: 0; }

/* Tipografia de leitura. */

h1, h2, h3 { font-family: var(--serifa); color: var(--navy); line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.2rem; margin: 2rem 0 0.75rem; }

.rotulo {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dourado-texto);
  margin: 0 0 0.75rem;
}

.resumo { font-size: 1.25rem; color: var(--tinta-suave); line-height: 1.5; }

.texto p, .texto li { max-width: 68ch; }
.texto blockquote {
  margin: 1.5rem 0; padding-left: 1.25rem;
  border-left: 3px solid var(--dourado);
  font-size: 1.25rem; color: var(--navy);
}
.texto table { border-collapse: collapse; font-family: var(--sans); font-size: 0.875rem; margin: 1.5rem 0; }
.texto th, .texto td { border-bottom: 1px solid var(--linha); padding: 0.5rem 0.75rem; text-align: left; }

/* Home: o carrossel (ou artigo) mais recente é a peça grande; o resto é lista. */

.destaque {
  max-width: var(--largo);
  margin: clamp(2rem, 6vw, 4.5rem) auto 0;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.destaque-capa img, .capa-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--teal-claro); }
.destaque h1 a { color: inherit; text-decoration: none; }
.destaque h1 a:hover { color: var(--teal); }
@media (min-width: 52rem) {
  .destaque { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .destaque h1 { font-size: 3.25rem; }
}

.recentes, .sobre-curto, .pagina, .item { max-width: var(--coluna); margin-left: auto; margin-right: auto; }
@media (min-width: 52rem) {
  .recentes, .sobre-curto { max-width: var(--largo); }
  .sobre-curto p { max-width: 40rem; }
}
.recentes { margin-top: 4rem; }
.recentes h2 { font-size: 1.125rem; font-family: var(--sans); color: var(--tinta-suave); font-weight: 600; }

.lista { list-style: none; padding: 0; margin: 0; }
.linha {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--linha);
}
.linha time { grid-column: 1 / -1; font-family: var(--sans); font-size: 0.8125rem; color: var(--tinta-suave); }
.linha a { font-size: 1.375rem; font-weight: 600; text-decoration: none; line-height: 1.25; }
.linha p { margin: 0.35rem 0 0; color: var(--tinta-suave); font-size: 1rem; }
@media (min-width: 52rem) {
  .linha { grid-template-columns: 8rem 1fr; }
  .linha time { grid-column: auto; padding-top: 0.4rem; }
}

.sobre-curto {
  margin-top: 4rem;
  padding: 2rem;
  background: var(--navy);
  color: #fff;
  font-size: 1.125rem;
}
.sobre-curto p { margin: 0 0 1rem; }
.sobre-curto p:last-child { margin: 0; font-family: var(--sans); font-size: 0.875rem; }
.sobre-curto a { color: #fff; text-decoration-color: var(--dourado); }

/* Páginas de item. */

.pagina, .item { padding-top: clamp(2rem, 6vw, 4rem); }

.capa-item { margin: 2rem 0; }

.referencias {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--dourado);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.referencias h2 { font-size: 1.125rem; margin-top: 0; }
.referencias ul { padding-left: 1.1rem; }
.referencias li { margin-bottom: 0.6rem; overflow-wrap: anywhere; }

.origem, .etiquetas { font-family: var(--sans); font-size: 0.875rem; color: var(--tinta-suave); }

.contato dl { margin: 2rem 0; }
.contato dt { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; color: var(--dourado-texto); margin-top: 1.5rem; }
.contato dd { margin: 0.25rem 0 0; font-size: 1.25rem; }
.nota { font-size: 1rem; color: var(--tinta-suave); }

@media (prefers-reduced-motion: no-preference) {
  a { transition: color 120ms ease; }
}
