:root { --motion-ease: cubic-bezier(.16,1,.3,1); }
.section, .catalog-group, .feature-prose section { scroll-margin-top: 0; }
.scene-stage { display: grid; }
.scene-stage > .scene-panel { grid-area: 1 / 1; }
.scene-stage > .scene-panel[hidden] { display: grid !important; visibility: hidden; pointer-events: none; }
.scene-tabs { position: relative; }
.scene-indicator { position: absolute; left: 0; bottom: 0; height: 2px; background: currentColor; pointer-events: none; transition: width 240ms var(--motion-ease), transform 240ms var(--motion-ease); }
.ink .scene-indicator { color: var(--gold-light); }
.site-nav a, .catalog-jump a, .feature-aside a, .chapter-strip a { transition: color 180ms, background 180ms, box-shadow 180ms; }
.catalog-jump a[aria-current="location"], .chapter-strip a[aria-current="location"] { color: #785927; box-shadow: inset 0 -2px #997340; }
.feature-aside a[aria-current="location"] { color: #785927; background: #b08a4a12; box-shadow: inset 1px 0 #997340; }
.site-nav a[aria-current="location"]::after { transform: scaleX(1); }
.feature-tile:hover, .feature-tile:focus-visible { background: #b08a4a0b; }
.feature-tile:focus-visible > b { transform: translate(3px,-3px); }
.feature-related a { transition: background 180ms, border-color 180ms; }
.feature-related a:hover { background: #b08a4a0b; border-color: #997340; }
.platform-download summary { transition: border-color 180ms, box-shadow 180ms; }
.platform-download summary:hover { box-shadow: 0 8px 20px #51432d15; }
.platform-download a { transition: background 150ms, color 150ms; }
.site-footer a, .legal-content a { text-underline-offset: 5px; }
.site-footer a:hover { text-decoration: underline; }
@keyframes headline-open { from { clip-path: inset(0 0 100% 0); translate: 0 12px; } }
@keyframes reading-arrive { from { opacity: .65; translate: 0 10px; } }
@keyframes menu-open { from { opacity: .5; translate: 0 -7px; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-heading h1 { animation: headline-open 650ms var(--motion-ease); }
  .hero-heading h1 em { display: inline-block; animation: headline-open 650ms 90ms var(--motion-ease) backwards; }
  .reading-seen { animation: reading-arrive 450ms var(--motion-ease); }
  .platform-download[open] .platform-options { animation: menu-open 200ms var(--motion-ease); }
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation-duration: 100ms; }
  ::view-transition-new(root) { animation-duration: 180ms; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

.update-version { transition: color 180ms; }
.update-entry.is-reading .update-version { color: #785927; }
