@charset "UTF-8";

.ink-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: paint;
}
.ink-mist {
  position: absolute;
  inset: 52% -6% 2% 19%;
  mask-image: radial-gradient(ellipse at center, #000 26%, transparent 71%);
  background:
    radial-gradient(ellipse at 65% 51%, rgb(182 209 174 / 15%), transparent 42%),
    radial-gradient(ellipse at 37% 65%, rgb(231 218 177 / 14%), transparent 50%);
}
.ink-mote {
  position: absolute;
  height: 2px;
  width: 2px;
  border-radius: 50%;
  background: #f5e4b5;
  box-shadow: 0 0 5px 1px rgb(234 200 123 / 68%);
  opacity: .58;
}
.ink-mote:nth-of-type(4n) { width: 3px; height: 3px; }
.motion-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: auto;
  flex: none;
  min-height: 31px;
  padding: 3px 12px;
  border: 1px solid rgb(236 217 178 / 52%);
  border-radius: 99px;
  background: rgb(16 34 31 / 85%);
  color: #f4e8c9;
}
.long-site button.motion-switch { font: 12px/1.4 var(--sans, sans-serif); }
.motion-switch:hover { background: #324637; border-color: #e8c67f; }
.motion-switch-icon { width: 8px; height: 10px; border-inline: 2px solid currentColor; }
.motion-switch[aria-pressed="false"] .motion-switch-icon {
  width: 0;
  height: 0;
  border: solid transparent;
  border-width: 5px 0 5px 8px;
  border-left-color: currentColor;
}

[data-portal-motion="on"] .cover-instrument .dial-etch { animation: ink-orbit 150s linear infinite; }
[data-portal-motion="on"] .cover-instrument .dial-orbit { transition:transform 380ms cubic-bezier(.22,.72,.25,1); }
[data-portal-motion="on"] .cover-foot a > span { display:inline-block;transition:transform 160ms ease-out; }
[data-portal-motion="on"] .cover-foot a:is(:hover,:focus-visible) > span { transform: translate(2px,-2px); }
[data-portal-motion="on"] .cover-instrument .dial-jewel { animation: ink-jewel 5s ease-in-out alternate infinite; }
[data-portal-motion="on"] .ink-mist { animation: ink-wash 16s ease-in-out infinite alternate; }
[data-portal-motion="on"] .ink-mote { animation: ink-drift var(--float-time) ease-in-out infinite; }
[data-portal-motion="on"] .cover[data-ambient-active="false"] .ink-atmosphere > * { animation-play-state: paused; }
[data-portal-motion="on"] .cover[data-ambient-active="false"] :is(.dial-etch,.dial-jewel) { animation-play-state: paused; }
[data-portal-motion="on"] .cover-body > * {
  animation: ink-lift 780ms cubic-bezier(.16,.66,.26,1) backwards;
}
[data-portal-motion="on"] .cover-body h1 { animation-delay: 70ms; }
[data-portal-motion="on"] .cover-intro { animation-delay: 150ms; }
[data-portal-motion="on"] .cover-actions { animation-delay: 210ms; }
[data-portal-motion="on"] .ink-arrive { animation: ink-lift 680ms cubic-bezier(.2,.77,.24,1) backwards; }
[data-portal-motion="on"] .book-grid .ink-arrive:nth-child(2) { animation-delay: 55ms; }
[data-portal-motion="on"] .book-grid .ink-arrive:nth-child(3) { animation-delay: 110ms; }
[data-portal-motion="on"] .book-grid .ink-arrive:nth-child(4) { animation-delay: 165ms; }
[data-portal-motion="on"] .app-sheet:not([hidden]) > * { animation: ink-lift 430ms ease-out; }
.book-glint {
  position: absolute;
  pointer-events: none;
  top: -25%;
  bottom: -25%;
  width: 40%;
  left: 0;
  background: linear-gradient(90deg, transparent, rgb(248 230 172 / 18%), transparent);
  transform: translateX(-165%) skewX(-17deg);
}
@media (hover: hover) {
  [data-portal-motion="on"] .shelf-book:hover .book-glint { animation: ink-gilt 680ms ease-out; }
}
@keyframes ink-orbit { from { rotate: 0deg; } to { rotate: 360deg; } }
@keyframes ink-jewel { from { opacity: .56; } to { opacity: 1; } }
@keyframes ink-wash { from { transform: translate(-3%, 5%); opacity: .5; } to { transform: translate(6%, -6%); opacity: 1; } }
@keyframes ink-drift { 0%, 100% { transform: translate(0, 8px); opacity: .14; } 50% { transform: translate(7px, -8px); opacity: .88; } }
@keyframes ink-lift { from { transform: translateY(13px); opacity: .76; } to { transform: translateY(0); opacity: 1; } }
@keyframes ink-gilt { from { transform: translateX(-165%) skewX(-17deg); } to { transform: translateX(410%) skewX(-17deg); } }

[data-portal-motion="off"] { scroll-behavior: auto; }
[data-portal-motion="off"] .long-site *,
[data-portal-motion="off"] .long-site *::before,
[data-portal-motion="off"] .long-site *::after { animation: none !important; transition: none !important; }
[data-portal-motion="off"] .shelf-book:hover .book-board { transform: none; }
@media (max-width: 730px) {
  .ink-mote:nth-of-type(n+10) { display: none; }
  .cover-foot:has(.motion-switch) { gap: 8px; }
  .motion-switch { min-height: 30px; padding-inline: 8px; gap: 6px; }
}
