/* Apple-style typewriter boot splash — shared by SPA entry pages */
#pb-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
  background: #f5f5eb;
  color: #14140f;
  -webkit-font-smoothing: antialiased;
  transition: opacity 0.56s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.56s linear;
}
#pb-splash.pb-splash--done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.pb-splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: min(92vw, 28rem);
  padding: 1.5rem;
  animation: pb-splash-rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.pb-splash-mark {
  width: clamp(64px, 14vw, 88px);
  height: auto;
  margin-bottom: 1.35rem;
  border-radius: 18px;
  animation: pb-splash-mark-in 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.pb-splash-word {
  margin: 0;
  min-height: 1.05em;
  font-family: Fraunces, ui-serif, Georgia, serif;
  font-size: clamp(2.4rem, 8vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #14140f;
}
.pb-splash-word > span:not(.pb-splash-caret) {
  position: relative;
  display: inline-block;
}
.pb-splash-word > span:not(.pb-splash-caret)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.28em;
  background: #beff50;
  border-radius: 2px;
  transform: rotate(-1deg) scaleX(0);
  transform-origin: left center;
  z-index: -1;
}
.pb-splash-word > span.pb-splash-hl::after {
  animation: pb-splash-mark-sweep 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.pb-splash-line {
  margin: 1.1rem 0 0;
  min-height: 1.45em;
  font-family: Newsreader, ui-serif, Georgia, serif;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: #6e6e64;
  max-width: 18rem;
}
.pb-splash-meta {
  margin: 1.75rem 0 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #919183;
  opacity: 0;
  transform: translateY(0.45rem);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.pb-splash-meta.pb-splash-meta--on {
  opacity: 1;
  transform: none;
}
.pb-splash-caret {
  display: inline-block;
  width: 0.085em;
  height: 0.82em;
  margin-left: 0.05em;
  background: #14140f;
  vertical-align: -0.02em;
  border-radius: 1px;
  animation: pb-splash-blink 1.05s steps(1, end) infinite;
}
.pb-splash-line .pb-splash-caret {
  width: 0.07em;
  height: 0.95em;
  vertical-align: -0.12em;
  background: #6e6e64;
}
.pb-splash-caret.pb-splash-caret--off {
  opacity: 0;
  animation: none;
}
@keyframes pb-splash-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pb-splash-mark-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes pb-splash-mark-sweep {
  to {
    transform: rotate(-1deg) scaleX(1);
  }
}
@keyframes pb-splash-blink {
  0%,
  46% {
    opacity: 1;
  }
  47%,
  100% {
    opacity: 0;
  }
}
@media (orientation: landscape) and (max-height: 480px) {
  .pb-splash-inner {
    flex-direction: row;
    gap: 1.25rem;
    text-align: left;
    max-width: min(94vw, 36rem);
  }
  .pb-splash-mark {
    margin-bottom: 0;
    width: 56px;
    flex-shrink: 0;
  }
  .pb-splash-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .pb-splash-line {
    margin-top: 0.45rem;
    max-width: none;
  }
  .pb-splash-meta {
    margin-top: 0.65rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pb-splash-inner,
  .pb-splash-mark {
    animation: none;
  }
  .pb-splash-word > span:not(.pb-splash-caret)::after,
  .pb-splash-word > span.pb-splash-hl::after {
    animation: none;
    transform: rotate(-1deg) scaleX(1);
  }
  .pb-splash-caret {
    display: none;
  }
  .pb-splash-meta {
    opacity: 1;
    transform: none;
    transition: none;
  }
  #pb-splash {
    transition: none;
  }
}
html,
body {
  margin: 0;
  background: #f5f5eb;
}
#root:empty {
  min-height: 100dvh;
}
