:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5f6b7a;
  --line: #d8dee8;
  --paper: #ffffff;
  --wash: #f4f7fb;
  --accent: #0b6e69;
  --accent-soft: #e3f2ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.55;
}

.documento {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.documento > :not(table) {
  max-width: 820px;
}

.navegacao {
  margin-bottom: 32px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

a {
  color: var(--accent);
}

.inicio {
  padding-top: 12vh;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 37px);
  letter-spacing: 0;
}

/* Índice é sempre a heading seguida da lista numerada de seções */
.documento > h1:has(+ ol),
.documento > h2:has(+ ol) {
  font-size: 30px;
}

h2 {
  margin-top: 42px;
  font-size: 22px;
}

h3 {
  margin-top: 30px;
  font-size: 20px;
}

.intro {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
}

.indice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.indice a {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}

.indice a:hover,
.indice a:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.indice strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

.indice span {
  color: var(--muted);
  font-size: 14px;
}

table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

th,
td {
  border: 1px solid var(--line);
  padding: 8px;
  vertical-align: top;
}

th {
  background: var(--accent-soft);
  text-align: left;
}

pre {
  overflow-x: auto;
  padding: 16px;
  border-left: 3px solid var(--accent);
  background: #edf1f5;
  font-size: 13px;
}

code {
  font-family: "SFMono-Regular", Consolas, monospace;
}

@media (max-width: 680px) {
  .documento {
    width: min(100% - 22px, 980px);
    padding-top: 18px;
  }

  .inicio {
    padding-top: 8vh;
  }

  .indice {
    grid-template-columns: 1fr;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}