/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; }
body {
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Footer al fondo del viewport aunque el contenido entre header y footer
     no llegue a llenar la pantalla (ver foot.php: body > header > main > footer). */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#main {
  flex: 1 0 auto;
}
footer {
  flex-shrink: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  overflow-wrap: anywhere;
  min-width: 0;
  text-wrap: balance;
}
