/* the other site's first screen, loaded unseen while the pointer is on the link (see site-bridge.js) */
.jstar-other { position: fixed; top: 0; left: 0; z-index: 2147483000; display: block; border: 0; margin: 0; padding: 0; pointer-events: none; opacity: 0; background: transparent; }
.jstar-other.is-shown { opacity: 1; }
/* going across: the page and that screen as two pictures, side by side, nothing else of either page on its own; between
   them, the dark of the space they slide in */
html.jstar-crossing body, html.jstar-crossing body * { view-transition-name: none !important; }
html.jstar-crossing::view-transition { background: #000; pointer-events: none; }
html.jstar-crossing::view-transition-group(root) { animation: none !important; }
html.jstar-crossing::view-transition-old(root), html.jstar-crossing::view-transition-new(root) { display: block !important; animation: none !important; mix-blend-mode: normal !important; opacity: 1 !important; }
/* just arrived: the picture of this first screen that the other site's preview left, until the sky here has drawn */
html.jstar-still #hero-canvas:not([data-sky-drawn]) { background: var(--jstar-still) 0 0 / 100% 100% no-repeat; }
/* just arrived: the copy of the first screen the preview left, over everything until the page itself has drawn (on the
   journal it stands for the cover's own still of the sky meanwhile) */
.jstar-copy { pointer-events: none !important; }
html.jstar-copied body::before { display: none !important; }
/* the plain way across, when the other site's first screen cannot be beside this page in time (see site-bridge.js): the
   first version's blue curtain closes over this page from the side the other site lies on, and on the next page goes
   on the same way once its first screen has drawn (not in a preview, which carries data-site-bridge too) */
@media (prefers-reduced-motion: no-preference) {
  html:is([data-site-bridge='leave'], [data-site-bridge='covered'], [data-site-bridge='arrive'])::after {
    content: ''; position: fixed; inset: -1px; z-index: 2147483000;
    background: linear-gradient(112deg, #071a45 0%, #0a2e79 62%, #164cbd 100%);
    box-shadow: -1px 0 0 #8ab3ff60; pointer-events: none; will-change: transform;
  }
  html[data-site-tone='light']:is([data-site-bridge='leave'], [data-site-bridge='covered'], [data-site-bridge='arrive'])::after { background: linear-gradient(112deg, #0f45c9 0%, #1d5be6 62%, #4a86f4 100%); box-shadow: -1px 0 0 #c4dbff80; }   /* (opening on the journal in its light theme: its blue-hour sky) */
  html[data-site-bridge='leave']::after { pointer-events: auto; animation: site-close 360ms cubic-bezier(.65, 0, .25, 1) both; }
  html[data-site-bridge='arrive']::after { animation: site-open 600ms cubic-bezier(.22, 1, .36, 1) both; }
  html[data-site-direction='back'][data-site-bridge='leave']::after { animation-name: site-close-back; }
  html[data-site-direction='back'][data-site-bridge='arrive']::after { animation-name: site-open-back; }
  @keyframes site-close { from { transform: translateX(102%); } to { transform: translateX(0); } }
  @keyframes site-open { from { transform: translateX(0); } to { transform: translateX(-102%); } }
  @keyframes site-close-back { from { transform: translateX(-102%); } to { transform: translateX(0); } }
  @keyframes site-open-back { from { transform: translateX(0); } to { transform: translateX(102%); } }
}
/* both sites, every page: no grey-blue box flashed over whatever is tapped (the pages show their own response to a press) */
html { -webkit-tap-highlight-color: transparent; }
