/* Bookman's Holiday — design pass (Leo 2026-11-16), carried over from the Night Fog pass and the "Round 2 · Bookman's
   Holiday" board: browned paper instead of fog; the Maltese Falcon, the Deco frames around the welcome picture and Don's
   signature as in Night Fog, recoloured in maroon and ink; post titles as red-leather spine labels lettered in gold leaf;
   IM Fell type. Scoped to :root.bh, which the head script in render.ts sets whenever Bookman's Holiday is showing; Night
   Fog and Don's Desk never load these rules. The falcon is placed by nightfog.js (shared by both themes). */
@font-face{font-family:"IM Fell English";src:url(/fonts/im-fell-english-latin-400-normal.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"IM Fell English";src:url(/fonts/im-fell-english-latin-400-italic.woff2) format("woff2");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"IM Fell English SC";src:url(/fonts/im-fell-english-sc-latin-400-normal.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
:root.bh{--fell:"IM Fell English",Georgia,serif;--fellsc:"IM Fell English SC","IM Fell English",Georgia,serif;--maroon:#6e0e12;--tanline:#c2ab84;
  --bg:#e9ddc3;--ink:#2b1d14;--muted:#7a6a58}

/* browned paper, tiled, scrolling with the page */
:root.bh body{background:url(/assets/nf/paper-bh.svg) 0 0/900px 900px repeat,#e9ddc3}

/* header: no paper band — the page's own paper shows through */
:root.bh .masthead{position:relative;background:transparent;border-bottom:0;box-shadow:none}
:root.bh .masthead>*{position:relative;z-index:1}
:root.bh .brand strong{font-family:var(--fellsc);font-weight:400;text-transform:none;letter-spacing:.06em;color:var(--maroon);
  font-size:min(2.7rem,calc((100vw - 120px)/16.8));font-size:min(2.7rem,calc((100cqw - 94px)/16.8))}
:root.bh .brand em{font:italic 400 1.08rem/1.3 var(--fell);color:#5a4836;margin-top:8px}
/* under the tagline (Leo 2026-11-17): the desk vignette in maroon (v3, 162px, true to scale) — a book turned 45° with its ribbon out, a fedora tipping off
   its right-hand end onto the desk, a holstered .45 rolled onto its side leaning on it — just above the menu's top rule, with a little space above and below.
   It replaces the dagger. --orn-x is how much taller the header now is than with the dagger (nightfog.js sizes the falcon
   without it, so the bird is unchanged). Picture: assets/nf/vignette-bh.svg (made by tools/vignette/gen3d.py). */
:root.bh .masthead{--orn-x:2.9px}
:root.bh .brand>span::after{content:"";display:block;width:130px;aspect-ratio:103.6/42.1;margin:10px auto 8px;background:url(/assets/nf/vignette-bh.svg?v=3) center bottom/contain no-repeat}
@media (max-width:999px){
  :root.bh .brand strong{white-space:normal;text-wrap:balance;line-height:1.15;font-size:max(1.6rem,min(2.7rem,calc((100vw - 120px)/16.8)));font-size:max(1.6rem,min(2.7rem,calc((100cqw - 94px)/16.8)))}
  :root.bh .brand{padding:0 2.7rem}
  :root.bh .brand em{font-size:min(1.08rem,calc((100vw - 40px)/24));margin-top:6px}
  :root.bh .brand>span::after{width:96px;margin:8px auto 6.7px}
  :root.bh .masthead{--orn-x:2.1px}:root.bh .masthead>.wrap:first-child{padding-bottom:0}
}
@media (min-width:1000px){
  :root.bh .masthead>.wrap:first-child{padding-top:30px;padding-bottom:0}
}

/* menu bar in IM Fell small capitals between two fine rules (the falcon stands on the upper one) */
:root.bh .menu-desktop>li>a,:root.bh .menu-desktop>li>details>summary,:root.bh .menu-extra>li>details>summary{font-family:var(--fellsc);font-weight:400;text-transform:none;letter-spacing:.04em;font-size:1.08rem}
:root.bh .menu{border-top:1px solid var(--tanline);border-bottom:1px solid var(--tanline);margin-top:0}
@media (min-width:1000px){:root.bh .menu{max-width:1180px;margin:0 auto}}   /* the vignette stands on its top rule */

/* the Maltese Falcon, in maroon */
:root.bh .masthead::after{content:"";position:absolute;left:var(--fx,-999px);top:var(--fy,0);height:var(--fh,0);aspect-ratio:75/180;z-index:2;pointer-events:none;
  background:url(/assets/nf/falcon-bh.webp) center bottom/contain no-repeat;filter:drop-shadow(0 1px 1px rgba(60,20,10,.25))}

/* welcome card (wide screens): Deco frame in maroon with a solid maroon diamond on top, on the quote shading (Leo 2026-11-16) */
@media (min-width:1000px){
  :root.bh aside.sidebar .side-card.welcome figure{background:var(--quote);position:relative;border:1px solid var(--maroon);padding:10px;margin-top:9px}
  :root.bh aside.sidebar .side-card.welcome figure::before{content:"";position:absolute;inset:4px;border:1px solid rgba(110,14,18,.4);pointer-events:none}
  :root.bh aside.sidebar .side-card.welcome figure::after{content:"";position:absolute;left:50%;top:-9px;width:16px;height:16px;background:var(--maroon);border:1px solid var(--maroon);transform:translateX(-50%) rotate(45deg)}
  :root.bh aside.sidebar .side-card.welcome figcaption{padding:0 .1rem}
}
/* Don's signature in ink under the welcome text, at every width */
:root.bh .side-card.welcome figcaption::after{content:"";display:block;width:84%;aspect-ratio:900/205;margin:14px auto 2px;background:url(/assets/nf/don-signature-ink.webp?v=2) center/contain no-repeat}
:root.bh .intro-strip .side-card.welcome figcaption::after{width:min(100%,clamp(170px,30vw,220px));margin:.45rem auto 0}
/* intro strip (narrower screens and phones): the small picture in the same maroon frame and diamond */
:root.bh .intro-strip{background:var(--quote);padding-top:.8rem;border-bottom-color:var(--tanline)}
:root.bh .intro-strip figure{position:relative}
:root.bh .intro-strip .side-card.welcome img{border:1px solid var(--maroon);padding:6px;border-radius:0;outline:1px solid rgba(110,14,18,.4);outline-offset:-5px;background:transparent}
:root.bh .intro-strip figure::after{content:"";position:absolute;left:var(--nf-dx,-99px);top:-6px;width:11px;height:11px;background:var(--maroon);border:1px solid var(--maroon);transform:translateX(-50%) rotate(45deg);pointer-events:none}

/* post titles: red-leather spine labels, lettered in gold leaf, with a pair of gilt rules above and below
   Don's Desk's post and page editor draws its title as the same label: assets/desk.css ("post and page editor") — change both together. */
:root.bh .entry>h1,:root.bh .entry>h2{position:relative;max-width:620px;margin:22px auto 20px;padding:18px 34px 16px;text-align:center;
  font:400 clamp(1.35rem,4.4vw,2.05rem)/1.15 var(--fell);letter-spacing:0;color:#d2b471;border-radius:3px;
  background:radial-gradient(circle,rgba(0,0,0,.18) 0 .6px,transparent 1px) 0 0/4px 4px,radial-gradient(circle,rgba(255,255,255,.06) 0 .6px,transparent 1px) 2px 2px/5px 5px,radial-gradient(ellipse at 50% 30%,#8a1c20,#5e1215 60%,#430b0e);
  box-shadow:inset 0 1px 0 rgba(255,220,200,.18),inset 0 -3px 8px rgba(0,0,0,.55),inset 0 0 0 5px #5e1215,inset 0 0 0 6px rgba(176,138,62,.7),0 3px 6px rgba(50,15,5,.45),0 1px 0 rgba(255,255,255,.5)}
:root.bh .entry>h1::before,:root.bh .entry>h1::after,:root.bh .entry>h2::before,:root.bh .entry>h2::after{content:"";position:absolute;left:40px;right:40px;height:5px;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(160,124,52,.75) 14%,rgba(176,138,62,.85) 50%,rgba(160,124,52,.75) 86%,transparent) top/100% 1px no-repeat,
             linear-gradient(90deg,transparent,rgba(160,124,52,.75) 14%,rgba(176,138,62,.85) 50%,rgba(160,124,52,.75) 86%,transparent) bottom/100% 1px no-repeat}
:root.bh .entry>h1::before,:root.bh .entry>h2::before{top:-13px}
:root.bh .entry>h1::after,:root.bh .entry>h2::after{bottom:-13px}
:root.bh .entry>h2>a,:root.bh .entry>h1>.tt{background:linear-gradient(180deg,#dcc283 0%,#cfae66 45%,#c19e57 60%,#d2b471 100%);-webkit-background-clip:text;background-clip:text;color:transparent;
  -webkit-box-decoration-break:clone;box-decoration-break:clone;text-decoration:none;filter:drop-shadow(0 -1px 0 rgba(0,0,0,.45)) drop-shadow(0 1px 0 rgba(255,214,170,.10))}
:root.bh .entry>h2>a:hover{background-image:linear-gradient(180deg,#ecd59a 0%,#dcbd74 45%,#cfab62 60%,#e0c27f 100%);color:transparent}
@media (max-width:600px){:root.bh .entry>h1,:root.bh .entry>h2{padding:14px 18px 12px}
  :root.bh .entry>h1::before,:root.bh .entry>h1::after,:root.bh .entry>h2::before,:root.bh .entry>h2::after{left:20px;right:20px}}

/* the rest of the post: IM Fell date line, maroon drop cap, tan rules */
:root.bh .meta{font-family:var(--fellsc);text-transform:none;letter-spacing:.14em;font-size:.95rem;color:var(--muted)}
:root.bh .meta a{color:var(--muted)}
/* drop cap on the first paragraph of text in every post and page, whatever comes before it (marked by nightfog.js) */
:root.bh .entry .content p.dropcap::first-letter{float:left;font-family:var(--fell);color:var(--maroon);font-size:4.1em;line-height:.66;padding:7px 8px 0 0}
:root.bh .entry{border-bottom-color:var(--tanline)}
:root.bh .pager,:root.bh .postnav{font-family:var(--fellsc);font-size:1.05rem;letter-spacing:.02em}
:root.bh .archive-head h1{font-family:var(--fellsc);font-weight:400;color:var(--maroon);text-transform:none}
:root.bh .archive-head{border-bottom:1px solid var(--tanline)}

/* headings inside posts (HEADING lines) in IM Fell small capitals, maroon (Leo 2026-11-16) */
:root.bh .content :is(h2,h3,h4,h5){font-family:var(--fellsc);font-weight:400;text-transform:none;letter-spacing:.04em;font-size:1.4rem;line-height:1.25}

/* sidebar headings in IM Fell small capitals */
:root.bh .sidebar h2,:root.bh .side-h{font-family:var(--fellsc);font-weight:400;text-transform:none;letter-spacing:.02em;font-size:1.45rem;color:var(--maroon)}
:root.bh aside.sidebar .side-card+.side-card{border-top-color:var(--tanline)}

/* footer: no paper band */
:root.bh .foot{background:transparent;border-top:1px solid var(--tanline)}
