/* Portfolio site backdrop: "Aurora glow" (cloudmonitor).
   Standard: portfolio/docs/site-backdrop-standard.md.
   GENERATED by portfolio/infra/backdrops/build.mjs and vendored by sync.sh:
   edit it there, never here.

   Fixed, soft product-tinted light behind every page, so the ground is a
   gentle wash instead of flat white / near-black. Cards, nav, inputs and
   modals keep their solid --surface, so text contrast is unchanged.
   Theme hooks cover both portfolio contracts: html[data-theme] (CM, identity,
   peripatetical.com) and html.dark / html.light (Mission Control). No theme
   set = follow the OS. Higher contrast and print drop the glow. */

html { background-color: var(--bg, var(--background, #f5f7fa)); }
/* body[class] outranks a utility class on <body> (peripatetical.com's Tailwind v3 .bg-bg). */
html body, html body[class] { background: transparent; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 48% 52% at 89% 8%, rgb(37 99 235 / 0.12), rgb(37 99 235 / 0)),
    radial-gradient(ellipse 51% 52% at 8% 98%, rgb(14 159 154 / 0.1), rgb(14 159 154 / 0)),
    radial-gradient(ellipse 39% 42% at 94% 100%, rgb(56 189 248 / 0.1), rgb(56 189 248 / 0)),
    radial-gradient(ellipse 35% 36% at 16% 6%, rgb(139 92 246 / 0.06), rgb(139 92 246 / 0)),
    linear-gradient(165deg, #f1f4f8 0%, #eef2f6 55%, #eaeff4 100%);
}
html[data-theme='dark'] body::before,
html.dark body::before {
  background:
    radial-gradient(ellipse 48% 52% at 89% 8%, rgb(56 189 248 / 0.14), rgb(56 189 248 / 0)),
    radial-gradient(ellipse 51% 52% at 8% 98%, rgb(45 212 191 / 0.12), rgb(45 212 191 / 0)),
    radial-gradient(ellipse 39% 42% at 94% 100%, rgb(125 211 252 / 0.08), rgb(125 211 252 / 0)),
    radial-gradient(ellipse 35% 36% at 16% 6%, rgb(139 92 246 / 0.1), rgb(139 92 246 / 0)),
    linear-gradient(165deg, #161e2b 0%, #1a2232 55%, #1d2637 100%);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme='light']):not(.light) body::before {
    background:
      radial-gradient(ellipse 48% 52% at 89% 8%, rgb(56 189 248 / 0.14), rgb(56 189 248 / 0)),
      radial-gradient(ellipse 51% 52% at 8% 98%, rgb(45 212 191 / 0.12), rgb(45 212 191 / 0)),
      radial-gradient(ellipse 39% 42% at 94% 100%, rgb(125 211 252 / 0.08), rgb(125 211 252 / 0)),
      radial-gradient(ellipse 35% 36% at 16% 6%, rgb(139 92 246 / 0.1), rgb(139 92 246 / 0)),
      linear-gradient(165deg, #161e2b 0%, #1a2232 55%, #1d2637 100%);
  }
}

html[data-contrast='more'] body::before { display: none; }
@media (prefers-contrast: more) { html:not([data-contrast]) body::before { display: none; } }
@media print { body::before { display: none; } }
