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

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

body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--verde); text-decoration: none; }
a:hover { color: var(--verde-oscuro); }

h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(34px, 7vw, 54px); font-weight: 800; text-wrap: pretty; }
h2 { font-size: clamp(26px, 4.5vw, 34px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }

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

/* El foco se ve. Es la misma regla de accesibilidad que en la app: nada se
 * distingue solo por color, y nada se navega solo con el ratón. */
:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; border-radius: 4px; }

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