/* The reference uses Tailwind's default sans stack, font-black and tracking-tighter. */
:is(h1,h2,h3,h4,h5,h6) {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
  font-weight: 900 !important;
  letter-spacing: -.05em !important;
}

.shutter-word { white-space: nowrap; }
.shutter-letter {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  clip-path: inset(-.18em 0);
  padding-inline: .1vw;
}
.shutter-ink { display: inline-block; }
.shutter-slice {
  position: absolute;
  inset: 0;
  padding-inline: inherit;
  pointer-events: none;
  color: var(--orange, #fa5726);
  opacity: 0;
}
.shutter-top { clip-path: inset(0 0 65%); }
.shutter-mid { clip-path: inset(35% 0 35%); color: #e4e4e7; }
.shutter-bottom { clip-path: inset(65% 0 0); }

@media (prefers-reduced-motion: no-preference) {
  .shutter-ink { animation: shutter-ink .8s ease-out calc(var(--delay) + .3s) backwards; }
  .shutter-slice { animation: shutter-pass .7s ease-in-out var(--delay) both; }
  .shutter-mid { animation-delay: calc(var(--delay) + .1s); --from: 100%; --to: -100%; }
  .shutter-bottom { animation-delay: calc(var(--delay) + .2s); }
}
@keyframes shutter-ink {
  from { opacity: 0; filter: blur(10px); }
  to { opacity: 1; filter: blur(0); }
}
@keyframes shutter-pass {
  from { transform: translateX(var(--from, -100%)); opacity: 0; }
  50% { opacity: 1; }
  to { transform: translateX(var(--to, 100%)); opacity: 0; }
}

/* Tailwind font-mono, shared by interface text and the canvas charts. */
:root {
  --interface-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
@layer interface-type {
  body, body :where(*):not(:where(h1,h2,h3,h4,h5,h6,[role="heading"],:is(h1,h2,h3,h4,h5,h6,[role="heading"]) *)) {
    font-family: var(--interface-mono) !important;
  }
}
