/*
 * Experiment (?bg=sun, html[data-bg="sun"]): the whole report on the Sun sky of the embryo explorer — red-orange at the
 * lower left to yellow at the upper right, with a fine grain. The sky is one fixed layer behind all content, so the
 * grain never lies on text, charts or the model. The opening's blend (m-opening .op-white) blends into this same sky.
 */
html[data-bg="sun"] { background: var(--sun-2); }
html[data-bg="sun"] body { background: transparent; }
html[data-bg="sun"] body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/></svg>") repeat,
    linear-gradient(40deg, var(--sun-1) 0%, var(--sun-2) 30%, var(--sun-3) 62%, var(--sun-4) 100%);
  background-size: 240px 240px, 100% 100%;
  background-blend-mode: soft-light, normal;
}
/* the opening blends into the sky, not into the page colour */
html[data-bg="sun"] .op-white {
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/></svg>") repeat,
    linear-gradient(40deg, var(--sun-1) 0%, var(--sun-2) 30%, var(--sun-3) 62%, var(--sun-4) 100%);
  background-size: 240px 240px, 100% 100%;
  background-blend-mode: soft-light, normal;
}
