/* Clouds, fog and stars are painted on a canvas behind the page content, so
   the page background moves to the root and the content layer is clear. */
/* Attached to the top of the page, so the clouds scroll away with it rather
   than covering content that scrolls up beneath them. */
.page-clouds { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }
:root[data-weather] { background: radial-gradient(ellipse at 85% 0%, var(--weather-glow), transparent 65%), var(--page); transition: background-color 1.8s; }
/* Cloudy days: a greyer, gentler version of the clear-sky blue. */
:root:is([data-weather="partly-cloudy"], [data-weather="wind"]):not([data-night="true"]) { --page: #f1f4f7; background: linear-gradient(#dbe4ee, #e9eef4 70vh, var(--page) 140vh), var(--page); }
:root[data-weather="overcast"]:not([data-night="true"]) { --page: #eff1f4; background: linear-gradient(#dde3ea, #e8ecf1 70vh, var(--page) 140vh), var(--page); }
/* Clear days: a soft sky blue, deeper at the top of the page. */
:root:is([data-weather="clear"], [data-weather="mainly-clear"]):not([data-night="true"]) { background: linear-gradient(#d2e2f2, #e6eef7 70vh, var(--page) 140vh), var(--page); }
/* No z-index here, so the room's workspace (z-index 21) can rise above the
   page's weather layer (z-index 20). */
[data-weather] .site { position: relative; background: transparent; }
@media print { .page-clouds { display: none; } }
