/* Contraprova — luisfellipe.com. Identidade tipográfica; sem imagens e sem
   fontes de rede: Palatino/Book Antiqua/Georgia + Century Schoolbook. */

:root {
  --papel: #FBFAF7;
  --tinta: #1C1A17;
  --grafite: #57534B;
  --fio: #C9C2B6;
  --vinho: #5E1A1D;
  --largura: 40rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --papel: #14120F;
    --tinta: #E8E4DC;
    --grafite: #A39C8F;
    --fio: #3D3931;
    --vinho: #A04A4E;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 100%; }

body {
  background: var(--papel);
  color: var(--tinta);
  font-family: "Century Schoolbook", "C059", "Book Antiqua", Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 1.25rem; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--grafite); outline-offset: 3px; }

/* ---- cabeçalho: CONTRA|prova ---- */

.topo {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 2.6rem 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem 1rem;
}

.topo__nome {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--grafite);            /* "prova" recua */
  font-weight: 400;
}
.topo__nome b {                      /* "CONTRA" avança */
  font-weight: 400;
  color: var(--vinho);
}

.topo__nav { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.topo__nav a { color: var(--grafite); text-decoration: none; margin-left: 1rem; }
.topo__nav a:hover { color: var(--tinta); text-decoration: underline; }

/* ---- abertura ---- */

.abertura { margin: 2.2rem 0 0; }
.abertura__linha { color: var(--grafite); }
.abertura::after {
  content: "";
  display: block;
  border-top: 1px solid var(--fio);
  margin: 2rem 0 0;
}

/* ---- rio de textos ---- */

.rio__item { padding: 1.9rem 0; border-bottom: 1px solid var(--fio); }
.rio__item:last-child { border-bottom: none; }

.rio__meta, .texto__meta {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grafite);
  margin-bottom: .5rem;
}
.rio__tipo { color: var(--vinho); }

.rio__titulo {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-weight: 400;
  font-size: 1.32rem;
  line-height: 1.3;
}
.rio__titulo a { text-decoration: none; }
.rio__titulo a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rio__resumo { color: var(--grafite); margin-top: .5rem; }

.etiquetas { margin-top: .8rem; }
.etiqueta {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--grafite);
  text-decoration: none;
  border: 1px solid var(--fio);
  border-radius: 1rem;
  padding: .1rem .6rem;
  margin: .2rem .3rem .2rem 0;
}
.etiqueta::before { content: "#"; opacity: .55; }
.etiqueta:hover { border-color: var(--grafite); color: var(--tinta); }

.vazio { color: var(--grafite); padding: 2rem 0; }

/* ---- página de texto ---- */

.texto { padding: 2.4rem 0 0; }
.texto__titulo {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-weight: 400;
  font-size: 1.85rem;
  line-height: 1.22;
  margin-bottom: 1.4rem;
}
.texto p { margin: 1rem 0; }
.texto h2 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-weight: 700;
  font-size: 1.12rem;
  margin: 2.1rem 0 .6rem;
}
.texto h3 { font-size: 1rem; font-style: italic; font-weight: 400; margin: 1.6rem 0 .4rem; }
.texto ul, .texto ol { margin: 1rem 0 1rem 1.4rem; }
.texto li { margin: .35rem 0; }
.texto blockquote {
  border-left: 2px solid var(--vinho);
  padding-left: 1rem;
  margin: 1.4rem 0;
  color: var(--grafite);
}
.texto code {
  font-family: Consolas, "DejaVu Sans Mono", monospace;
  font-size: .9em;
  background: color-mix(in srgb, var(--fio) 35%, transparent);
  padding: .05em .3em;
}
.texto pre { overflow-x: auto; padding: .9rem; border: 1px solid var(--fio); margin: 1.2rem 0; }
.texto pre code { background: none; padding: 0; }
.texto hr { border: none; border-top: 1px solid var(--fio); margin: 2rem 0; }
.texto img { max-width: 100%; height: auto; }
.texto table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .95rem; }
.texto th, .texto td { border-bottom: 1px solid var(--fio); padding: .4rem .5rem; text-align: left; }

/* ---- página sobre ---- */

.pagina { padding-top: 2.4rem; }
.pagina h1 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-weight: 400;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}
.pagina h2 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 2.1rem 0 .6rem;
}
.pagina p { margin: .9rem 0; }
.pagina ul { margin: .9rem 0 .9rem 1.3rem; }
.pagina li { margin: .3rem 0; }

.servicos {
  border-top: 1px solid var(--fio);
  margin-top: 2.6rem;
  padding-top: 1.4rem;
}
.nota-informativa {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grafite);
  margin-top: 1.6rem;
}

.voltar-linha { margin-top: 2.6rem; }
.voltar { font-size: .85rem; color: var(--grafite); text-decoration: none; }
.voltar:hover { text-decoration: underline; }

/* ---- rodapé ---- */

footer { text-align: center; padding: 3rem 1.25rem 2.4rem; }
footer .filete { width: 60mm; max-width: 60%; border-top: 1px solid var(--fio); margin: 0 auto 1rem; }
footer p {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grafite);
}
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---- fontes ao pé do texto ---- */
.fontes { border-top: 1px solid var(--fio); margin-top: 2.4rem; padding-top: 1rem; }
.fontes h2 { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grafite); font-weight: 400; margin: 0 0 .5rem; }
.fontes ul { margin: 0 0 0 1.2rem; }
.fontes li { font-size: .88rem; color: var(--grafite); margin: .25rem 0; }
