/* ===============================
   Reset mínimo
   =============================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* ===============================
   Corpo do documento
   =============================== */

body {
  max-width: 65ch;
  margin: 2.5rem auto;
  padding: 0 1.5rem;

  font-family: "Georgia", "Times New Roman", Times, serif;
  font-size: 1.18rem;
  line-height: 1.65;

  color: #2b2b2b;
  background-color: #ffffff;

  overflow-wrap: break-word;
  hyphens: auto;
  text-align: left;
}

/* ===============================
   Parágrafos
   =============================== */

p {
  margin-bottom: 1.5rem;
  line-height: inherit;
}

/* ===============================
   Títulos
   =============================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.25;
  color: #000;
}

/* Pesos */
h1,
h2,
h3 {
  font-weight: 700;
}

h4,
h5,
h6 {
  font-weight: 600;
}

/* ===============================
   Escala de quinta
   =============================== */

h1 {
  margin-top: 0;
  margin-bottom: 2.75rem;
  font-size: 4rem;          /* 1.18 × 1.5³ */
  text-align:center;
  line-height: 1.15;        /* mais compacto */
  letter-spacing: -0.01em;  /* correção óptica */
}

h2 {
  margin-top: 4.75rem;
  margin-bottom: 2.25rem;
  font-size: 2.7rem;        /* 1.18 × 1.5² */
}

h3 {
  margin-top: 3.75rem;
  margin-bottom: 1.75rem;
  font-size: 1.8rem;        /* 1.18 × 1.5¹ */
}

h4,
h5,
h6 {
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  font-size: 1.18rem;       /* uníssono */
}

/* ===============================
   Quebra do número do título
   =============================== */

h1 span[aria-hidden="true"] {
  display: block;
  color: #cd2653;
}

/* ===============================
   Links
   =============================== */

a {
  color: #cd2653;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:visited {
  color: #cd2653;
}

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

/* ===============================
   Listas
   =============================== */

ul,
ol {
  margin: 2rem 0;
  padding-left: 1.75rem;
}

li {
  margin-bottom: 0.75rem;
  line-height: inherit;
}

/* ===============================
   Blockquote
   =============================== */

blockquote {
  margin: 3rem 0;
  padding-left: 1.5rem;
  border-left: 4px solid #e6e6e6;

  font-style: italic;
  color: #444;
}

/* ===============================
   Código
   =============================== */

pre {
  margin: 2.5rem 0 2rem;
  padding: 1.5rem;

  background-color: #f7f7f7;
  border-radius: 6px;

  font-family: monospace;
  font-size: 0.95rem;
  line-height: 1.45;

  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

code {
  font-family: monospace;
  font-size: 0.8em;
  background-color: #fcfcfc;
  padding: 0.15em 0.3em;
  white-space: normal;
  overflow-wrap: break-word;
}

/* ===============================
   Figuras
   =============================== */

figure {
  margin: 3.5rem auto;
  text-align: center;
}

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

figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #555;
}

/* ===============================
   Tabelas
   =============================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 3rem 0;
}

th,
td {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e6e6e6;
  text-align: left;
}

caption {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #555;
}

/* ===============================
   Separador
   =============================== */

hr {
  margin: 4rem 0;
  border: none;
  border-top: 1px solid #e6e6e6;
}

/* ===============================
   Navegação
   =============================== */

nav {
  margin-top: 4rem;
  display: flex;
  justify-content: space-between;
}

/* ===============================
   KaTeX
   =============================== */

.katex {
  font-size: 0.9em;
}

