/* The World We Live In - live sky over Berlin.
   One fixed field of light behind the page. Colours come from sky.js
   (sun elevation + weather) and change over tens of minutes. No edges. */
@property --sky-z1{ syntax:'<color>'; inherits:true; initial-value:#05061a; }
@property --sky-z2{ syntax:'<color>'; inherits:true; initial-value:#0b0d2c; }
@property --sky-z3{ syntax:'<color>'; inherits:true; initial-value:#151a3c; }
@property --sky-z4{ syntax:'<color>'; inherits:true; initial-value:#262a4a; }
@property --sky-warm{ syntax:'<color>'; inherits:true; initial-value:transparent; }
@property --sky-veil{ syntax:'<color>'; inherits:true; initial-value:transparent; }
@property --sky-haze{ syntax:'<number>'; inherits:true; initial-value:0; }
@property --sky-desat{ syntax:'<number>'; inherits:true; initial-value:0; }
@property --sky-glow{ syntax:'<number>'; inherits:true; initial-value:1; }

.wh-sky{ position:fixed; inset:0; z-index:-2; pointer-events:none; contain:strict; overflow:hidden;
  background:linear-gradient(180deg, var(--sky-z1) 0%, var(--sky-z2) 38%, var(--sky-z3) 72%, var(--sky-z4) 100%);
  filter:saturate(calc(1 - var(--sky-desat)));
  transition:--sky-z1 60s linear, --sky-z2 60s linear, --sky-z3 60s linear, --sky-z4 60s linear,
    --sky-warm 60s linear, --sky-veil 60s linear, --sky-haze 30s linear, --sky-desat 30s linear, --sky-glow 60s linear; }
/* the sun's warmth: a very wide, faint field on its side of the sky, never a disc */
.wh-sky::before{ content:''; position:absolute; inset:-20%;
  background:radial-gradient(90vmax 60vmax at var(--sun-x,50%) 115%, var(--sky-warm) 0%, transparent 70%); }
/* haze / cloud veil: an even, edgeless wash whose strength is the cloud cover */
.wh-sky::after{ content:''; position:absolute; inset:0;
  background:var(--sky-veil, transparent); opacity:calc(var(--sky-haze) * .8); }
/* city glow: Berlin never gets fully dark at the bottom */
.wh-sky-city{ position:absolute; left:0; right:0; bottom:0; height:15%;
  background:linear-gradient(0deg, rgba(255,178,122,.07) 0%, rgba(255,178,122,0) 100%); opacity:var(--sky-glow); }
.wh-sky-cv{ position:fixed; inset:0; width:100%; height:100%; z-index:-1; pointer-events:none; }
/* scrubbing the panel previews the day at a faster pace */
html.wh-scrubbing .wh-sky{ transition-duration:.5s; }
.wh-sky.now{ transition:none; }

/* header and bottom bar: a barely visible complementary tint so the sky reads deeper */
/* --sky-tint is written straight onto these two elements once a minute (no inheritance, no transition) */
html:not(.wh-day) body header.wh-head, html:not(.wh-day) body header.wh-head.solid, html:not(.wh-day) body header.wh-head.mega-on,
html:not(.wh-day) body nav.wh-bar-b, html:not(.wh-day) body div.wh-bar-b{
  background:color-mix(in oklab, rgba(16,12,46,.95) 96%, var(--sky-tint, rgba(16,12,46,.95))) !important; }

/* one quiet line of fact on the hero */
.wh-sky-ro{ position:absolute; z-index:3; left:max(96px, calc(50% - 560px)); top:min(calc(100svh - 118px), calc(100% - 44px));
  margin:0; font:500 11px/1.4 'Sora',sans-serif; letter-spacing:.14em; text-transform:uppercase;
  color:currentColor; opacity:.6; pointer-events:none; white-space:nowrap; }
html:not(.wh-day) #hero .wh-sky-ro{ color:#fff; }
html.wh-day #hero .wh-sky-ro{ color:#1A1640; }
@media (max-width:1100px){ .wh-sky-ro{ left:50%; transform:translateX(-50%); top:14px; } }
@media (max-width:760px){ .wh-sky-ro{ font-size:10px; } }
