/* Handwriting ("hands"): picked independently of the paper. A hand sets the face, its natural size (--hs),
   its line height (--hl) and the tightest line it can sit on when a paper is ruled (--hr). */
@font-face{font-family:'Patrick Hand';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/patrick-hand.woff2') format('woff2')}
@font-face{font-family:'Share Tech Mono';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/share-tech-mono.woff2') format('woff2')}
@font-face{font-family:'Cinzel';font-style:normal;font-weight:400 700;font-display:swap;src:url('assets/fonts/cinzel.woff2') format('woff2')}
@font-face{font-family:'Pinyon Script';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/pinyon-script.woff2') format('woff2')}
@font-face{font-family:'Kalam';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/kalam.woff2') format('woff2')}
@font-face{font-family:'Homemade Apple';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/homemade-apple.woff2') format('woff2')}
@font-face{font-family:'La Belle Aurore';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/la-belle-aurore.woff2') format('woff2')}
:is(.letter,.excerpt)[class*=" hand-"]{font-family:var(--hf);font-style:var(--hi,normal);font-weight:var(--hw,400);letter-spacing:var(--ht,normal);text-transform:var(--hc,none);font-size:max(15px,var(--paper-size,var(--hs)));line-height:var(--paper-line,var(--hl))}
/* free handwriting: any Google Fonts family named in data-font; letter-fonts.js loads and measures it */
:is(.letter,.excerpt)[data-font]{--hs:20px;--hl:1.55;--hr:1.3;font-family:var(--hf,var(--serif)),var(--serif);font-style:var(--hi,normal);font-weight:var(--hw,400);font-size:max(15px,var(--paper-size,var(--hs)));line-height:var(--paper-line,var(--hl))}
/* data-caps: a writer who sets everything in capitals; any font, shrunk and spaced so long letters stay readable */
:is(.letter,.excerpt)[data-font][data-caps]{text-transform:uppercase;letter-spacing:.05em;font-size:max(13px,calc(var(--paper-size,var(--hs))*.84))}
.hand-quill{--hf:'IM Fell English',Georgia,serif;--hs:19.5px;--hl:1.55;--hr:1.3}
.hand-quill-italic{--hf:'IM Fell English',Georgia,serif;--hi:italic;--hs:20px;--hl:1.55;--hr:1.3}
.hand-quill .signature,.hand-bookhand .signature{font-style:italic}
.hand-bookhand{--hf:var(--serif);--hw:500;--hs:22px;--hl:1.6;--hr:1.25}
.hand-bookhand-italic{--hf:var(--serif);--hi:italic;--hw:500;--hs:22px;--hl:1.5;--hr:1.25}
.hand-court{--hf:var(--serif);--hw:500;--hs:21px;--hl:1.5;--hr:1.25}
.hand-court .greeting,.hand-court .signature{font-family:'Pinyon Script',cursive;font-weight:400;font-size:1.5em;line-height:var(--paper-line,1.2)}
.hand-court .signature{text-align:right;max-width:none}
.hand-inscription{--hf:'Cinzel',serif;--hs:15px;--hl:1.8;--hr:1.5;--ht:.06em}
.hand-ballpoint{--hf:'Caveat',cursive;--hs:24px;--hl:1.32;--hr:1.2}
.hand-fine-cursive{--hf:'La Belle Aurore',cursive;--hs:23px;--hl:1.45;--hr:1.3}
.hand-scrawl{--hf:'Homemade Apple',cursive;--hs:15.5px;--hl:1.95;--hr:1.75}
.hand-marker{--hf:'Kalam',cursive;--hs:19px;--hl:1.55;--hr:1.35}
.hand-print{--hf:'Patrick Hand',cursive;--hs:21px;--hl:1.5;--hr:1.25}
.hand-capitals{--hf:'Patrick Hand',cursive;--hs:17px;--hl:1.6;--hr:1.4;--ht:.07em;--hc:uppercase}
.hand-typewriter{--hf:'Special Elite','Courier New',monospace;--hs:16px;--hl:1.7;--hr:1.5}
.hand-terminal{--hf:'Share Tech Mono',monospace;--hs:16.5px;--hl:1.7;--hr:1.5}
.hand-console{--hf:'Chakra Petch',system-ui,sans-serif;--hs:16px;--hl:1.75;--hr:1.5}
.hand-console .signature{font-weight:500;letter-spacing:.04em}
.hand-plain{--hf:var(--serif);--hs:20px;--hl:1.6;--hr:1.25}
@media (max-width:600px){:is(.letter,.excerpt)[class*=" hand-"]{font-size:max(15px,calc(var(--paper-size,var(--hs))*.95))}}
:is(.letter,.excerpt)[class*=" hand-"] .letterhead{font:400 12px/1.5 'Special Elite','Courier New',monospace;letter-spacing:.12em}
