/* Broad white light washes over the cyan field from top to bottom. Keeping
   this on the root carries the same lighting through every section. */
html {
    background-color: #b6edfa;
    --page-lighting:
        radial-gradient(ellipse 75% 65% at 48% 4%, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .48) 52%, transparent 100%),
        radial-gradient(ellipse 70% 70% at 44% 95%, rgba(255, 255, 255, .68) 0%, rgba(255, 255, 255, .3) 55%, transparent 100%),
        linear-gradient(115deg, #adeafa 0%, #d3f5fc 48%, #b0ebfa 100%);
    background-image: var(--page-lighting);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-blend-mode: normal;
}

body { background: transparent; }
.screen-top-background { background-color: transparent; }

/* Safari can sample the canvas outside the painted gradient. Match the pale
   glass there instead of exposing either browser white or saturated cyan. */
@media (max-width: 600px) {
    html {
        --mobile-header-color: #e0f5fb;
        background-color: var(--mobile-header-color);
        /* A fixed resting backdrop matches the status area. Scrolling content
           still passes in front of this background and behind the glass. */
        background-image:
            linear-gradient(to bottom,
                var(--mobile-header-color) calc(var(--navbar-footprint) + 24px),
                rgba(224, 245, 251, 0) calc(var(--navbar-footprint) + 160px)),
            var(--page-lighting);
    }
}
