/* Format card: a ruled index card with typed facts and the "Now showing" stamp (a round stamp with a bar through it).
   Built from the Darkroom (B) card so every design can use the same one.
   <div class="fcard"><p class="file"><span>Edinburgh in the Dark</span><span>15:02</span></p><dl>…</dl><svg class="fstamp">…</svg></div>
   Everything is set in --u (one typed em), so a page can scale the whole card: type, rules and stamp together. */
@import url("/assets/fonts/courier-prime.css?v=1");  /* hosted on the site, no wait for Google Fonts */
.fcard {
  --u: 1rem; --row: calc(var(--u) * 1.9); --head: calc(var(--u) * 2.2);
  position: relative; isolation: isolate; box-sizing: border-box; width: 100%; max-width: 26rem; padding: 0 calc(var(--u) * 1.1) calc(var(--u) * 2.5);
  rotate: -1.3deg; border-radius: 3px; color: #1c1915; font-family: "Courier Prime", "Courier New", monospace;
  background:
    linear-gradient(180deg, transparent calc(var(--head) - 1.5px), rgba(228,14,8,.7) calc(var(--head) - 1.5px), rgba(228,14,8,.7) var(--head), transparent var(--head)),
    repeating-linear-gradient(180deg, transparent 0 calc(var(--row) - 1px), rgba(92,84,78,.34) calc(var(--row) - 1px) var(--row)) 0 var(--head) / 100% calc(100% - var(--head)) no-repeat,
    linear-gradient(rgba(246,239,226,.56), rgba(246,239,226,.56)),
    url("/assets/fieldnotes/paper-grain.webp") 0 0 / 280px 135px,
    radial-gradient(125% 110% at 50% -10%, #FFFBF2 0%, #F6EEE0 50%, #E4D6C1 100%);
  background-blend-mode: normal, normal, normal, hard-light, normal;
  box-shadow: 0 1px 1px rgba(0,0,0,.35), 0 10px 18px -6px rgba(0,0,0,.5);
}
.fcard .file { display: flex; justify-content: space-between; align-items: center; height: var(--head); margin: 0; white-space: nowrap; overflow: hidden;
  font: 400 calc(var(--u) * .74)/1 "Courier Prime", monospace; letter-spacing: .14em; text-transform: uppercase; color: #584e44; }
.fcard dl { margin: 0; }
.fcard dl > div { display: flex; gap: 1ch; height: var(--row); align-items: flex-end; font: 400 var(--u)/1.5 "Courier Prime", monospace; white-space: nowrap; }
.fcard dt { min-width: 7ch; color: #584e44; } .fcard dt::after { content: ":"; } /* typewriter tab stop: the three values line up */
.fcard dd { margin: 0; font-weight: 700; }
.fcard .mark { left: -14%; top: -30%; width: 128%; height: 168%; }
/* the stamp: uneven ink, soaked into the paper. It sits in the middle of the blank field to the right of the typed lines
   (the longest line is 27 characters, so the field starts 17.3u from the left edge). */
.fstamp { position: absolute; left: calc(50% + var(--u) * 4.3); top: calc(var(--u) * 3.25); width: calc(var(--u) * 8.6); height: auto; aspect-ratio: 168 / 120; rotate: -7deg; color: #e40e08;
  mix-blend-mode: multiply; opacity: .9; pointer-events: none;
  -webkit-mask-image: radial-gradient(85% 95% at 30% 34%, #000 28%, rgba(0,0,0,.6) 72%, rgba(0,0,0,.84) 100%);
          mask-image: radial-gradient(85% 95% at 30% 34%, #000 28%, rgba(0,0,0,.6) 72%, rgba(0,0,0,.84) 100%); }
/* narrow card: no room beside the typed lines, so the card gets three blank ruled lines and the stamp lands under them */
@media (max-width: 540px) {
  .fcard { padding-bottom: calc(var(--u) * 6.6); }
  .fstamp { left: auto; right: calc(var(--u) * .8); top: auto; bottom: calc(var(--u) * .7); width: calc(var(--u) * 8); }
}
.fcard .vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
