html.intro-active {
  scrollbar-color: transparent transparent;
  background-color: var(--paper);
}

@supports not (scrollbar-color: auto) {
  html.intro-active::-webkit-scrollbar,
  html.intro-active::-webkit-scrollbar-thumb,
  html.intro-active::-webkit-scrollbar-track {
    background-color: transparent;
  }
}

.intro-active .quick-links,
.intro-active .reading-progress {
  visibility: hidden;
}

.site-intro {
  position: fixed;
  inset: 0;
  z-index: 500;
  place-items: center;
  overflow: hidden;
  background: var(--paper, #f6f2e9) var(--paper-grain, none) repeat;
  background-size: 384px 384px;
}

.site-intro:not([hidden]) {
  display: grid;
  animation: intro-lift 1.18s cubic-bezier(.52,.04,.24,1) 1.55s both;
}

.site-intro img {
  display: block;
  width: clamp(132px, 18vw, 190px);
  height: auto;
  animation: intro-ink 2.2s var(--motion-ease) both;
}

@keyframes intro-ink {
  0% { opacity: 0; transform: translateY(3px); }
  29%, 72% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(0); }
}

@keyframes intro-lift {
  from { transform: translateY(0); }
  to { transform: translateY(-100%); visibility: hidden; }
}

@media (prefers-reduced-motion: reduce), print {
  .site-intro:not([hidden]) { display: none; animation: none; }
}
