body {
    opacity: 1;
    animation: page-fade-in 320ms ease-out backwards;
}

html.is-leaving body {
    animation: none;
    opacity: 0;
    transition: opacity 180ms ease-in;
    pointer-events: none;
}

@keyframes page-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    body,
    html.is-leaving body {
        animation: none;
        transition: none;
        opacity: 1;
    }
}
