/* Typed photo captions: typewriter face at body size, typed on when scrolled into view (typewriter.js).
   Usage: <figcaption class="… type-cap">Royal Mile</figcaption>. Text is complete without the script. */
@import url("/assets/fonts/courier-prime.css?v=1");  /* hosted on the site, no wait for Google Fonts */
.type-cap {
  font-family: "Courier Prime", "Courier New", Courier, monospace !important;
  font-weight: 700 !important; font-size: clamp(.92rem, .86rem + .2vw, 1.02rem) !important;
  line-height: 1.3 !important; letter-spacing: 0 !important; text-transform: none !important;
  color: #1c1915 !important; text-align: center !important; padding-block: .78em .7em !important; align-content: center; box-sizing: border-box;
  transform: none !important; rotate: none !important; clip-path: none !important; -webkit-mask: none !important; mask: none !important;
  opacity: 1 !important; animation: none !important; display: block !important; white-space: pre-wrap;
}
.type-cap .tc-ch { opacity: 0; }
.type-cap .tc-ch.on { opacity: 1; }
/* the type head: a block caret that sits after the last struck letter */
.type-cap .tc-ch.head { box-shadow: .62em 0 0 -0.02em rgba(28,25,21,.85); }
.type-cap.typed .tc-ch.head { box-shadow: none; }
/* each strike lands a touch heavy, then settles, like a key hitting the ribbon */
@media (prefers-reduced-motion: no-preference) {
  .type-cap .tc-ch.on { animation: tcStrike .14s ease-out; }
  @keyframes tcStrike { from { opacity: .35; translate: 0 .06em; text-shadow: 0 0 .5px currentColor, 0 0 1.5px currentColor; } }
}
