/* The ink of the large headings: the same ink as the printed name of the opening, from the same press.
   Two alpha masks multiply (made by tools/press-ink/press-ink.py):
   roller.webp  the film of the roller, with streaks along its travel (1305.6 x 382.5 CSS px, tiles)
   tooth.webp   the tooth of the site paper: less ink in the valleys, now and then a fleck (652.8 x 382.5 CSS px, tiles)
   The text stays real text. Nothing here runs per frame: the masks and the shadows paint once.
   Only the lines of the display role take this ink. Smaller type keeps one clean, solid ink. */

:root {
  /* the ink of the opening at rest: steendruk.js mixes BLUE and DEEP 0.7 : 0.3 */
  --press-ink: rgb(9 40 197);
  /* the walls of the impression: the light comes from the upper left, as on the opening.
     The wall is lit on the lower right of each letter and in shade on the upper left. */
  --press-wall: 0.009em 0.01em 0.016em rgb(255 250 204 / 0.9), -0.006em -0.007em 0.016em rgb(98 70 26 / 0.4);
}

/* each display line takes its own part of the roller */
.film[data-films="one-ink"] .film-text h2 { --press-at: -560px -250px; }
.hm-name { --press-at: -930px -330px; }

@supports ((mask-composite: intersect) or (-webkit-mask-composite: source-in)) {
  .film[data-films="one-ink"] .film-text h2,
  .hm-name {
    color: var(--press-ink);
    text-shadow: var(--press-wall);
    -webkit-mask:
      url(roller.webp) var(--press-at) / 1305.6px 382.5px repeat,
      url(tooth.webp) var(--press-at) / 652.8px 382.5px repeat;
    -webkit-mask-composite: source-in;
    mask:
      url(roller.webp) var(--press-at) / 1305.6px 382.5px repeat,
      url(tooth.webp) var(--press-at) / 652.8px 382.5px repeat;
    mask-composite: intersect;
  }
}
