/* ═══ POLISH STUDY ═══ 27 Oct 2026. Page-wide UX fixes from a full
   review of the home page, scoped by html.polish (set by the script).
   Deleting this file, its <link> and its <script> restores the page
   exactly.
   1. A way to book from anywhere: the masthead doesn't follow you down
      a twelve-screen walk, so a small door-coloured "Book a reading"
      appears bottom right once the hero is behind you and stays until
      the footer. It is the walk's way in now the door station is gone.
   2. Stations arrive before you do: panels used to stay invisible until
      12% of them was on screen, which left blank cream boxes on a fast
      scroll or a jump from a link. They now rise just ahead of view,
      quicker and shorter.
   3. The plaster texture inside every panel loads as a 319 KB JPEG in
      place of a 1 MB PNG of the same fresco. No visible change. ═══ */

/* 1 · book from anywhere */
.float-book { display:none; }
html.polish .float-book {
  display:inline-block; position:fixed; z-index:40; bottom:1.2rem; right:1.2rem;
  padding:.8rem 1.25rem; font-size:var(--caps-xxs, .62rem);
  opacity:0; transform:translateY(10px); pointer-events:none;
  transition:opacity .45s ease, transform .45s ease, box-shadow .3s ease;
  box-shadow:0 10px 26px -12px rgba(30,20,10,.45);
}
html.polish .float-book.is-shown { opacity:1; transform:none; pointer-events:auto; }
@media (max-width:680px) {
  html.polish .float-book { bottom:1rem; right:1rem; }
}
@media (prefers-reduced-motion:reduce) {
  html.polish .float-book { transition:opacity .2s ease; }
}

/* 2 · stations arrive before you do */
html.polish.js-anim .panel { transform:translateY(14px);
  transition:opacity .45s ease, transform .45s ease; }
html.polish.js-anim .panel.is-in { transform:none; }

/* 3 · the same fresco, a third of the weight */
html.polish .panel::before { background-image:url('/shared/images/fresco.jpg'); }

/* 4 · the hero's italic and "Saya" stay readable by day. The sky clock
   turned them white once its day loop deepened, but the fresco keeps
   that part of the sky pale, so they all but vanished. They hold a
   deeper lavender until the night takes over, as before. */
html.polish { --hero-em:#7471B8; --mast-em:#7471B8; }
