/* The landing page's daytime theme. <html data-theme-auto> follows the system setting: in light mode the page turns to
   warm cream paper with near-black ink, and glass.js draws a cream sky. The devices in the story (terminal, laptop,
   Blackjack) stay dark, as they are on a real desk. */
@media(prefers-color-scheme:light){
  html[data-theme-auto]{
    --paper:#f4f0e8;--paper-deep:#ebe5d9;--ink:#1b1916;--ink-2:#3a3631;--muted:#645e56;--faint:#8f887e;
    --ember:#d9502a;--ember-deep:#c4431c;
    --hi:27 25 22;--ink-rgb:27 25 22;--paper-rgb:244 240 232;--surface-rgb:255 253 248;--glass-rgb:255 250 244;--field-rgb:251 249 244;--ember-rgb:217 80 42;
    --card:rgb(255 253 248 / .55);--field:#fbf9f4;--field-strong:#f7f3ec;--knob:#fffdf8;--em:#5d574f;--ink-hover:#000;
    --line:rgb(27 25 22 / .12);--line-soft:rgb(27 25 22 / .07);
    --grain-blend:multiply;--grain-opacity:.2;
    color-scheme:light;background:#f4f0e8;
  }
  html[data-theme-auto]:not(.glass-gl) body{background:radial-gradient(60% 38% at 50% 14%,rgb(240 120 70 / .16),transparent 70%),radial-gradient(50% 30% at 88% 62%,rgb(247 168 128 / .2),transparent 70%),#f4f0e8}
  /* Fallback glass (no WebGL): milky instead of smoked. */
  html[data-theme-auto] [data-glass]{border-color:rgb(255 255 255 / .7);background:linear-gradient(160deg,rgb(255 255 255 / .62),rgb(255 255 255 / .28) 55%,rgb(255 255 255 / .4));
    box-shadow:inset 0 1px 0 rgb(255 255 255 / .9),0 18px 44px rgb(90 50 30 / .14)}
  html[data-theme-auto].glass-gl [data-glass]{border-color:transparent;background:none;box-shadow:none}

  /* Glows that kept text clear of a bright sky become cream instead of black. */
  html[data-theme-auto] .nav>.logo{text-shadow:0 0 18px rgb(244 240 232 / .9),0 0 4px rgb(244 240 232 / .8)}
  html[data-theme-auto] .nav::before{background:linear-gradient(#f4f0e8 0%,rgb(244 240 232 / .82) 38%,rgb(244 240 232 / .4) 70%,transparent)}
  html[data-theme-auto] .scene-caption{text-shadow:0 1px 2px rgb(244 240 232 / .6),0 2px 22px rgb(244 240 232 / .85)}
  html[data-theme-auto] .site-menu{background:rgb(244 240 232 / .88)}
  html[data-theme-auto] .button-ink{background:var(--ink);color:#f4f0e8}

  /* Devices keep their dark colours. */
  html[data-theme-auto] :is(.term,.lap-stage){
    --ink:#f1ece3;--ink-2:#cfc8bc;--muted:#a39d93;--faint:#78726a;--hi:255 255 255;--ink-rgb:241 236 227;--ember:#f0643a;--ember-rgb:240 100 58}
  html[data-theme-auto] .term{box-shadow:0 0 0 1px rgb(0 0 0 / .5),0 40px 90px rgb(60 30 15 / .28),0 12px 30px rgb(60 30 15 / .18)}
  html[data-theme-auto] .lap-shadow{background:rgb(60 30 15 / .45)}
  html[data-theme-auto] .lap-contact{background:rgb(40 20 10 / .55)}

  /* Notifications on cream: the light system style. */
  html[data-theme-auto]:not(.glass-gl) :is(.mac-note,.note){background:rgb(255 252 246 / .75)}
  html[data-theme-auto] .note .note-icon,html[data-theme-auto] .mac-note .note-icon{background:#1b1916;border-color:transparent}
  html[data-theme-auto] :is(.phone-clock,.dev.phone .phone-clock){color:var(--ink)}
  html[data-theme-auto] .dev.phone{box-shadow:inset 0 0 0 5px rgb(27 25 22 / .08)}

  /* Logos drawn white for the dark sky get their dark version. */
  html[data-theme-auto] .agent img.on-dark{display:none}
  html[data-theme-auto] .agent img.on-light{display:block}
}
.agent img.on-light{display:none}
