/* Local design trial of PP Editorial Old, from Pangram Pangram's official free pack. */
@font-face { font-family: 'Editorial Old'; src: url('assets/fonts/pp-editorial-old-regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Editorial Old'; src: url('assets/fonts/pp-editorial-old-ultrabold.otf') format('opentype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Editorial Old'; src: url('assets/fonts/pp-editorial-old-italic.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Editorial Old'; src: url('assets/fonts/pp-editorial-old-ultrabolditalic.otf') format('opentype'); font-weight: 800; font-style: italic; font-display: swap; }
:root { --display-face: 'Editorial Old', Georgia, serif; }
.opening h1, .footer-name, .world-portal h2, .chapter-heading h2,
.project-reference .scene-caption h3, .about-title h2,
.bio-news article:nth-child(2) h3, .editing-link-title, .editing-page-label,
.about-story p:first-of-type::first-letter,
.dialog-copy h3, .project-intro h2,
#project-dialog[data-project=reference] .project-intro h2,
#project-dialog[data-project=reference] .reference-story h3,
#project-dialog:is([data-project="totaldamage"], [data-project="loopfinch"]) .digital-section-copy h3,
#project-dialog:is([data-project="totaldamage"], [data-project="loopfinch"]) .digital-gallery-heading,
.editing-heading h1, .film-featured h2, .collection-note p {
  font-family: var(--display-face);
  font-variation-settings: normal;
}
.origin-story h3,
#project-dialog[data-project=reference] .ri-business .origin-story h3 {
  font-family: var(--display-face) !important;
}

.world-portal h2 em, .about-title h2 em, main .saas-heading h2 em, .opening-line em {
  font-family: var(--display-face);
  font-style: italic;
  font-weight: 400;
}
/* The old-style serifs and the J descender need their own leading. */
.opening h1 { line-height: 1.08; padding-bottom: .14em; }
.footer-name { line-height: 1.15; }
.world-portal h2 { line-height: .95; }
.editing-heading h1, .editing-page-label { line-height: 1.12; }

/* Letter shapes and joins are edited curves exported from the Affinity sources. */
.lettering-accessible { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.opening h1.custom-lettering-title { line-height: 0; padding: 18px 0 12px; }
.custom-masthead { display: block; width: 100%; height: auto; }
.footer-name.custom-lettering-title { display: block; line-height: 0; padding: 20px 0; }
.world-portal h2 .custom-paper-title { display: block; width: 4.184em; max-width: 100%; height: auto; filter: invert(94%) sepia(10%) saturate(358%); }
.world-portal.has-paper-cutout .custom-paper-title { visibility: hidden; }
@media(forced-colors:active) {
  .custom-masthead, .custom-paper-title { display: none !important; }
  .lettering-accessible { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal; }
  .opening h1.custom-lettering-title, .footer-name.custom-lettering-title { line-height: 1.1; }
}
