/* Reglas generales: tipografía y elementos sueltos, sin clases. */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--pf-fondo);
    color: var(--pf-texto);
    font-family: var(--pf-fuente-texto);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: var(--pf-fuente-titulo);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

p {
    margin: 0 0 1em;
    text-wrap: pretty;
}

a {
    color: var(--pf-acento);
    text-underline-offset: 3px;
}

code {
    font-family: var(--pf-fuente-codigo);
    font-size: 0.88em;
    background: var(--pf-superficie-suave);
    padding: 0.1em 0.4em;
    border-radius: 5px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
