/* ===================================================================
   P.A. West Books - Christmas 2026: Victorian toy-shop window
   SELF-CONTAINED. Everything lives in /assets/seasonal/. Remove in
   January: see REMOVAL.md (delete one <link>, one body class, the folder).
   Scoped to body.season-xmas. Absolutely positioned pseudo-elements only:
   no layout space, no pointer events, no wording. Candle flicker and snowfall only under
   prefers-reduced-motion: no-preference. Original art, no marks.
   =================================================================== */
.season-xmas{--xm-rule:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 10' fill='none'%3E%3Cg stroke='%23C9A25E' stroke-width='.7' opacity='0.8' stroke-linecap='round'%3E%3Cpath d='M0,5 H22 M42,5 H64'/%3E%3Cpath d='M22,5 c3,-4 7,-4 10,0 c3,4 7,4 10,0'/%3E%3Cpath d='M22,5 c3,4 7,4 10,0 c3,-4 7,-4 10,0' opacity='.55'/%3E%3Ccircle cx='32' cy='5' r='1.1' fill='%23C9A25E' stroke='none'/%3E%3Ccircle cx='0' cy='5' r='.8' fill='%23C9A25E' stroke='none'/%3E%3Ccircle cx='64' cy='5' r='.8' fill='%23C9A25E' stroke='none'/%3E%3C/g%3E%3C/svg%3E");--xm-fleuron:var(--xm-l1-fleuron);--xm-seal:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 112' fill='none'%3E%3Cdefs%3E%3CradialGradient id='w' cx='40%25' cy='35%25' r='70%25'%3E%3Cstop offset='0' stop-color='%237C2430'/%3E%3Cstop offset='.6' stop-color='%236B1A23'/%3E%3Cstop offset='1' stop-color='%233E0C12'/%3E%3C/radialGradient%3E%3Csymbol id='h' overflow='visible'%3E%3Cpath d='M0,0 Q2.9,-2.2 5.8,-3.5 Q8.6,-4.1 11.5,-9.1 Q14.4,-8.5 17.2,-7 Q20.1,-7.3 23,-12 Q25.9,-10 28.8,-7 Q31.6,-5.8 34.5,-9.1 Q37.4,-6.8 40.2,-3.5 Q43.1,0.5 46,-0 Q43.1,-0.5 40.2,3.5 Q37.4,6.8 34.5,9.1 Q31.6,5.8 28.8,7 Q25.9,10 23,12 Q20.1,7.3 17.2,7 Q14.4,8.5 11.5,9.1 Q8.6,4.1 5.8,3.5 Q2.9,2.2 0,0Z' fill='%231E3B2C' stroke='%23C9A25E' stroke-width='.9' stroke-linejoin='round'/%3E%3Cpath d='M1,0 L44,0' stroke='%23C9A25E' stroke-width='.8'/%3E%3Cpath d='M8,0 L14,-3.6 M8,0 L14,3.6 M17,0 L23,-6.4 M17,0 L23,6.4 M26,0 L32,-6.9 M26,0 L32,6.9 M34,0 L40,-5.1 M34,0 L40,5.1' stroke='%23C9A25E' stroke-width='.45' opacity='.75'/%3E%3Cpath d='M6,2.5 L9,6 M11,3 L14,7.5 M16,3 L19,8 M21,3 L24,8 M26,3 L29,7.5 M31,2.5 L33.5,6 M36,2 L38,4.5' stroke='%230B1A12' stroke-width='.7' opacity='.55'/%3E%3C/symbol%3E%3Csymbol id='b' overflow='visible'%3E%3Ccircle r='3.4' fill='%236B1A23' stroke='%23C9A25E' stroke-width='.6'/%3E%3Ccircle cx='-1.1' cy='-1.1' r='.8' fill='%23E6DDC4' opacity='.55'/%3E%3C/symbol%3E%3C/defs%3E%3Cpath d='M40,58 L26,106 L32,101 L36,109 L50,62Z' fill='%231E3B2C' stroke='%23C9A25E' stroke-width='.7'/%3E%3Cpath d='M56,58 L70,106 L64,101 L60,109 L46,62Z' fill='%237E2433' stroke='%23C9A25E' stroke-width='.7'/%3E%3Cpath d='M79.6,44 L79.2,46.7 L78.7,49.4 L78.1,52.1 L76.1,54.2 L75.4,56.8 L74.8,59.5 L71.6,60.5 L68.9,61.5 L68.1,64.1 L66.9,66.5 L65.7,69.3 L64.5,72.5 L61.4,72.7 L58.1,71.8 L55.8,73 L53.2,73.6 L50.5,73 L48,73.3 L45.5,72.4 L43.2,71.3 L40.2,73.2 L36.8,74.6 L34.5,73 L32.3,71.2 L30.6,68.9 L29.8,65.7 L27.6,64.4 L24.9,63.4 L24.3,60.6 L23.5,58.1 L21.1,56.6 L19.4,54.4 L17.3,52.2 L15.3,49.8 L17,46.7 L19.6,44 L19.4,41.5 L19.6,39 L20.2,36.5 L19.7,33.7 L21,31.4 L22.9,29.5 L22.5,26.1 L22.9,23 L25.7,21.7 L28.3,20.6 L31.3,20.2 L34.5,20.6 L36,18.3 L37.6,15.4 L40.2,15.1 L42.8,14.5 L45.3,13.2 L48,13.3 L50.7,12.7 L53.6,12.2 L55.7,15.2 L57.4,18.3 L59.8,18.6 L62.3,19.2 L65,19.7 L68.3,19.8 L70,22 L70.8,24.8 L73.5,26.1 L75.5,28.1 L75.4,31.2 L75.8,33.9 L75.3,36.7 L74.4,39.3 L76.8,41.5 L79.6,44Z' fill='url(%23w)' stroke='%233E0C12' stroke-width='.8'/%3E%3Ccircle cx='48' cy='44' r='21' stroke='%233E0C12' stroke-width='1.6' opacity='.7'/%3E%3Ccircle cx='48' cy='44' r='21' stroke='%23C9A25E' stroke-width='.5' opacity='.45' transform='translate(-.6 -.6)'/%3E%3Cg opacity='.55'%3E%3Cuse href='%23h' transform='translate(48 44) rotate(-150) scale(0.4 0.4)'/%3E%3Cuse href='%23h' transform='translate(48 44) rotate(-30) scale(0.4 0.4)'/%3E%3Cuse href='%23h' transform='translate(48 44) rotate(90) scale(0.4 0.4)'/%3E%3Cuse href='%23b' transform='translate(46 43) rotate(0) scale(0.7 0.7)'/%3E%3Cuse href='%23b' transform='translate(50 43) rotate(0) scale(0.7 0.7)'/%3E%3Cuse href='%23b' transform='translate(48 46) rotate(0) scale(0.7 0.7)'/%3E%3C/g%3E%3Cpath d='M30,26 C36,18 46,15 56,17' stroke='%23fff' stroke-width='1.2' opacity='.12' stroke-linecap='round'/%3E%3C/svg%3E");--xm-sprig:var(--xm-l1-sprig);
  --xm-snow:var(--xm-s6-snow);--xm-sa:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 26'%3E%3Cdefs%3E%3CradialGradient id='k'%3E%3Cstop offset='0' stop-color='%23FFE3A8' stop-opacity='.9'/%3E%3Cstop offset='.25' stop-color='%23FFC266' stop-opacity='.55'/%3E%3Cstop offset='.6' stop-color='%23E8923A' stop-opacity='.18'/%3E%3Cstop offset='1' stop-color='%23C8702A' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='26.8' cy='15.5' r='9.2' fill='url(%23k)' opacity='1'/%3E%3Ccircle cx='76.7' cy='6.3' r='10.5' fill='url(%23k)' opacity='0.8'/%3E%3Ccircle cx='129.1' cy='16.8' r='8.5' fill='url(%23k)' opacity='0.6'/%3E%3Ccircle cx='162.5' cy='12.5' r='5.7' fill='url(%23k)' opacity='0.8'/%3E%3Ccircle cx='196.4' cy='9.4' r='5.5' fill='url(%23k)' opacity='1'/%3E%3Ccircle cx='264.1' cy='15.6' r='5.1' fill='url(%23k)' opacity='0.6'/%3E%3Ccircle cx='306.6' cy='6' r='4.9' fill='url(%23k)' opacity='0.9'/%3E%3Ccircle cx='341.9' cy='17.8' r='5.5' fill='url(%23k)' opacity='0.9'/%3E%3Ccircle cx='390.8' cy='12.5' r='10.7' fill='url(%23k)' opacity='0.9'/%3E%3C/svg%3E");--xm-sb:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 26'%3E%3Cdefs%3E%3CradialGradient id='k'%3E%3Cstop offset='0' stop-color='%23FFE3A8' stop-opacity='.9'/%3E%3Cstop offset='.25' stop-color='%23FFC266' stop-opacity='.55'/%3E%3Cstop offset='.6' stop-color='%23E8923A' stop-opacity='.18'/%3E%3Cstop offset='1' stop-color='%23C8702A' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='22.6' cy='14' r='8.6' fill='url(%23k)' opacity='0.6'/%3E%3Ccircle cx='56.3' cy='9.3' r='6.6' fill='url(%23k)' opacity='0.9'/%3E%3Ccircle cx='122' cy='12.7' r='8.2' fill='url(%23k)' opacity='0.8'/%3E%3Ccircle cx='153.4' cy='7.9' r='7.1' fill='url(%23k)' opacity='1'/%3E%3Ccircle cx='197.6' cy='6.9' r='9.7' fill='url(%23k)' opacity='0.9'/%3E%3Ccircle cx='252.1' cy='16.1' r='6.8' fill='url(%23k)' opacity='0.6'/%3E%3Ccircle cx='291' cy='12.1' r='10.4' fill='url(%23k)' opacity='0.6'/%3E%3Ccircle cx='363.6' cy='7.4' r='10.6' fill='url(%23k)' opacity='0.7'/%3E%3Ccircle cx='386.4' cy='13.5' r='6.2' fill='url(%23k)' opacity='0.6'/%3E%3C/svg%3E");
  --xm-aa:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 400' preserveAspectRatio='none'%3E%3Cdefs%3E%3CradialGradient id='k'%3E%3Cstop offset='0' stop-color='%23FFE3A8' stop-opacity='.9'/%3E%3Cstop offset='.25' stop-color='%23FFC266' stop-opacity='.55'/%3E%3Cstop offset='.6' stop-color='%23E8923A' stop-opacity='.18'/%3E%3Cstop offset='1' stop-color='%23C8702A' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='2.8' cy='234.2' r='12' fill='url(%23k)' opacity='0.5'/%3E%3Ccircle cx='2.5' cy='154.3' r='16.2' fill='url(%23k)' opacity='0.8'/%3E%3Ccircle cx='62.3' cy='34.4' r='14.6' fill='url(%23k)' opacity='0.6'/%3E%3Ccircle cx='273.8' cy='72.5' r='16.4' fill='url(%23k)' opacity='0.7'/%3E%3Ccircle cx='293.7' cy='145' r='9.8' fill='url(%23k)' opacity='0.8'/%3E%3Ccircle cx='293.6' cy='220.3' r='9.7' fill='url(%23k)' opacity='0.6'/%3E%3C/svg%3E");--xm-ab:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 400' preserveAspectRatio='none'%3E%3Cdefs%3E%3CradialGradient id='k'%3E%3Cstop offset='0' stop-color='%23FFE3A8' stop-opacity='.9'/%3E%3Cstop offset='.25' stop-color='%23FFC266' stop-opacity='.55'/%3E%3Cstop offset='.6' stop-color='%23E8923A' stop-opacity='.18'/%3E%3Cstop offset='1' stop-color='%23C8702A' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='2.1' cy='209' r='10.1' fill='url(%23k)' opacity='0.6'/%3E%3Ccircle cx='29.1' cy='69.2' r='11.8' fill='url(%23k)' opacity='0.9'/%3E%3Ccircle cx='164.5' cy='8.1' r='16.5' fill='url(%23k)' opacity='0.8'/%3E%3Ccircle cx='284.1' cy='91.9' r='13.7' fill='url(%23k)' opacity='0.9'/%3E%3Ccircle cx='296.6' cy='172.8' r='16.5' fill='url(%23k)' opacity='0.8'/%3E%3Ccircle cx='293.6' cy='250.7' r='13.9' fill='url(%23k)' opacity='0.6'/%3E%3C/svg%3E")}
/* ---- Asset slots (see ASSET-REQUESTS.md). To drop in a teammate's file, change ONLY the variable. ----
   S1 frame        : --xm-s1-frame (GD gilt/mahogany frame, 9-slice border-image round the hero)
   S2 garland      : --xm-s2-garland      (GD swag, desktop, over each window)
   S3 left window  : --xm-s3-left-a / -b  (top and bottom tiles, desktop)
   S4 right window : --xm-s4-right-a / -b (top and bottom tiles, desktop)
   S5 train        : --xm-s5-train (GD train, desktop, on the left window sill)
   S6 ledge snow   : --xm-s6-snow (GD strip: window sills, and the hero bottom rail below 1000px)
   L1 green pine garland : --xm-l1-fleuron (section dividers, img/l1-green-garland-1x/2x.webp; Facebook cover style)
   L3 spots        : --xm-l3-nut, --xm-l3-horse (GD finals; either side of the footer seal)
   L2 corner       : --xm-l1-sprig (book / about / privacy pages, top right, img/l2-corner-tr.svg)
   Mobile tree / nutcracker  : --xm-m-tree, --xm-m-nutcracker
   Falling snow    : --xm-flakes (GD snow-dot tile)                                  */
.season-xmas{
  --xm-s1-frame:url("/assets/seasonal/img/s1-frame.webp?v=20261114t12");
  --xm-s2-garland:image-set(url("/assets/seasonal/img/s2-garland-1x.webp?v=20261114t12") type("image/webp") 1x,url("/assets/seasonal/img/s2-garland-2x.webp?v=20261114t12") type("image/webp") 2x);
  --xm-s5-train:image-set(url("/assets/seasonal/img/s5-train-1x.webp?v=20261114t12") type("image/webp") 1x,url("/assets/seasonal/img/s5-train-2x.webp?v=20261114t12") type("image/webp") 2x);
  --xm-s3-left-a:image-set(url("/assets/seasonal/img/win-left-a-1x.webp?v=20261114t12") type("image/webp") 1x,url("/assets/seasonal/img/win-left-a-2x.webp?v=20261114t12") type("image/webp") 2x);
  --xm-s3-left-b:image-set(url("/assets/seasonal/img/win-left-b-1x.webp?v=20261114t12") type("image/webp") 1x,url("/assets/seasonal/img/win-left-b-2x.webp?v=20261114t12") type("image/webp") 2x);
  --xm-s4-right-a:image-set(url("/assets/seasonal/img/win-right-a-1x.webp?v=20261114t12") type("image/webp") 1x,url("/assets/seasonal/img/win-right-a-2x.webp?v=20261114t12") type("image/webp") 2x);
  --xm-s4-right-b:image-set(url("/assets/seasonal/img/win-right-b-1x.webp?v=20261114t12") type("image/webp") 1x,url("/assets/seasonal/img/win-right-b-2x.webp?v=20261114t12") type("image/webp") 2x);
  --xm-m-tree:image-set(url("/assets/seasonal/img/tree-2x.webp?v=20261114t12") type("image/webp") 2x);
  --xm-m-nutcracker:image-set(url("/assets/seasonal/img/nutcracker-2x.webp?v=20261114t12") type("image/webp") 2x);
  --xm-s6-snow:url("/assets/seasonal/img/s6-snow.webp?v=20261114t12");--xm-s6-drift:url("/assets/seasonal/img/s6-drift.webp?v=20261114t12");--xm-flakes:url("/assets/seasonal/img/snow-dots.webp?v=20261114t12");
  /* L1/L2: Sketch Artist roughs (svgo-optimised), placeholders until the finished set lands */
  --xm-l1-fleuron:image-set(url("/assets/seasonal/img/l1-green-garland-1x.webp?v=20261116g2") type("image/webp") 1x,url("/assets/seasonal/img/l1-green-garland-2x.webp?v=20261116g2") type("image/webp") 2x);--xm-l1-sprig:url("/assets/seasonal/img/l2-corner-tr.svg?v=20261114t12");
  --xm-l3-nut:url("/assets/seasonal/img/l3-nutcracker.svg?v=20261114t12");--xm-l3-horse:url("/assets/seasonal/img/l3-rocking-horse.svg?v=20261114t12")}
.season-xmas .title-screen::before,.season-xmas .title-screen::after,
.season-xmas .ts-tag::before,.season-xmas .ts-tag::after,
.season-xmas .ts-compose::before,.season-xmas .ts-compose::after,
.season-xmas .ts-stack::before,.season-xmas .ts-stack::after,
.season-xmas .ts-copy::before,.season-xmas .ts-copy::after,
.season-xmas .nav::after,.season-xmas .foot::before,.season-xmas .foot::after,
.season-xmas #books::before,.season-xmas #series::before,.season-xmas #faq::before,
.season-xmas main.book-page::before,.season-xmas main.chapter-about::before{
  content:"";position:absolute;pointer-events:none;background-repeat:no-repeat;background-size:contain;animation:none;transition:none;box-sizing:border-box}

/* ---------- Homepage hero: the shop window ---------- */
/* --xw: never wider than the gutter. The covers + captions reach at most 277px either side of centre (measured 992-1920 x 600-1366),
   so window + 8px ledge overhang stays >=20px clear: xl + xw + 8 <= 50vw - 277 - 20 */
.season-xmas .title-screen{--xw:min(300px,calc(50vw - 305px - var(--xl)));--xh:calc(var(--xw) * 4 / 3);--xl:clamp(18px,3.2vw,60px);--xt:clamp(78px,8vw,104px)}
/* S1: the gilt-and-mahogany shop-window frame round the whole hero (centre transparent) */
.season-xmas .ts-copy::before{inset:0;z-index:-1;border:12px solid transparent;border-image:var(--xm-s1-frame) 24 / 12px stretch}
/* Candle / gaslight glow (two alternating sets) along the top of the window */
.season-xmas .ts-stack::before,.season-xmas .ts-stack::after{inset:12px 12px auto;height:26px;z-index:2;background-image:var(--xm-sa);background-repeat:repeat-x;background-size:420px 26px}
.season-xmas .ts-stack::after{background-image:var(--xm-sb)}

/* Phones and tablets: a small lit tree and a nutcracker keep watch in the top corners */
.season-xmas .title-screen::before{left:12px;top:28px;z-index:1;width:56px;height:100px;
  background-image:var(--xm-m-tree);
  filter:drop-shadow(0 0 10px rgba(255,180,90,.28))}
.season-xmas .title-screen::after{right:14px;top:24px;z-index:1;width:30px;height:99px;
  background-image:var(--xm-m-nutcracker)}

/* Desktop: two arched display windows flank the covers */
@media (min-width:1100px){
  .season-xmas .title-screen::before,.season-xmas .title-screen::after{
    top:var(--xt);left:var(--xl);width:var(--xw);height:var(--xh);z-index:1;filter:none;
    border:10px solid #46200F;border-bottom-width:14px;border-radius:50% 50% 3px 3px / 36% 36% 3px 3px;
    box-shadow:0 0 0 2px #A8823E,0 0 0 4px rgba(59,28,17,.9),0 0 46px 8px rgba(255,176,90,.20),inset 0 0 0 2px #C9A25E,inset 0 0 42px rgba(0,0,0,.55);
    /* bottom layer: a tiny inline blurred copy of the painting (plus warm amber fallback), so a slow load never shows a bare dark arch;
       the full art paints over it when it arrives (an instant swap, no animation, so reduced motion is unaffected) */
    background-color:#3a2414;
    background-image:linear-gradient(115deg,rgba(255,255,255,0) 38%,rgba(255,240,215,.07) 46%,rgba(255,255,255,0) 54%),var(--xm-s3-left-a),var(--xm-s3-left-b),radial-gradient(ellipse at 50% 32%,rgba(255,196,120,.32),rgba(255,160,80,.08) 55%,rgba(0,0,0,0) 75%),url("data:image/webp;base64,UklGRgQBAABXRUJQVlA4IPgAAABQBwCdASoeACgAPsFQpEqnpKOhsBqqqPAYCWQAtvtCiICRTOqKDmmY4hh/o4oYOqKjrce+3rVMc1E+/85qAwMpG66AAP79WDfb3cZtEW75FXtFvl/kypT9vc/51nEYXow1OJ2yzjpBQ0dVgrpDWAXo+OFHM/cTWQtn3yjUk6PQjLKNzVab27tf0O7rZSOTTF3zvQvQzw2fxJIXGu5MN0dEZeSiQo2c4Fjyhwwi+TT7McU3nboFKf/m5OQBtsBEH3epwhKQ7K+M/H10S3KN7Yo17fbFkiRH09oLffHMah8WJYqZtszvOhG93MXMckWC7U0pI5DONhcAAA==");
    background-size:100% 100%,100% 50.4%,100% 50.4%,100% 100%,100% 100%;background-position:0 0,0 0,0 100%,0 0,0 0;background-repeat:no-repeat}
  .season-xmas .title-screen::after{left:auto;right:var(--xl);
    background-image:linear-gradient(245deg,rgba(255,255,255,0) 38%,rgba(255,240,215,.07) 46%,rgba(255,255,255,0) 54%),var(--xm-s4-right-a),var(--xm-s4-right-b),radial-gradient(ellipse at 50% 32%,rgba(255,196,120,.32),rgba(255,160,80,.08) 55%,rgba(0,0,0,0) 75%),url("data:image/webp;base64,UklGRuYAAABXRUJQVlA4INoAAACQBgCdASoeACgAPq1GmkqmJCKhtUwAwBWJQBXHq+iG6udgCsXMfub7ayOIoh80EMsWRrwO8J5XcPMzUy2AAP72qL4b2d9p3xDJSIdcImiqTEBJMyRso9OnOGKu7YfeW59o7OfIrSTKuohvwS5EeF/AkuNuHl/UYqsE+5mhZQoaBwJ7Y7PE92uhT9KrVCcxb1EevQA5pCOmzBiNleGKfionrs3KTDHjeQPvxkVUl9Kfb81ImnHPpmC7PL9nvy3irpCVakA2v6nED8KRPVqB5XX5zsNVIDoqVAAAAA==")}
  /* S2: evergreen swags with gold baubles and velvet bows over each window */
  .season-xmas .ts-compose::before,.season-xmas .ts-compose::after{
    top:calc(var(--xt) - var(--xw) * .1);left:calc(var(--xl) - var(--xw) * .1);width:calc(var(--xw) * 1.2);height:calc(var(--xw) * 1.2 * 254 / 1503);z-index:3;
    background-image:var(--xm-s2-garland);background-size:100% 100%;filter:drop-shadow(0 6px 8px rgba(0,0,0,.45))}
  .season-xmas .ts-compose::after{left:auto;right:calc(var(--xl) - var(--xw) * .1)}
  /* Warm candle glow reflected round both arches */
  .season-xmas .ts-stack::before,.season-xmas .ts-stack::after{inset:12px 12px auto;height:calc(var(--xt) + var(--xh) - 12px);
    background-image:var(--xm-sa),var(--xm-aa),var(--xm-aa);background-repeat:repeat-x,no-repeat,no-repeat;
    background-size:420px 26px,var(--xw) var(--xh),var(--xw) var(--xh);
    background-position:left top,left calc(var(--xl) - 12px) top calc(var(--xt) - 12px),right calc(var(--xl) - 12px) top calc(var(--xt) - 12px)}
  .season-xmas .ts-stack::after{background-image:var(--xm-sb),var(--xm-ab),var(--xm-ab)}
  /* Window ledges: a carved mahogany sill with gilt mouldings projecting 8px each side, a soft S6 snow drift on top,
     and the S5 train standing in the snow on the left ledge (inside the window width, nothing below the sill) */
  .season-xmas .ts-copy::after{left:0;right:0;bottom:auto;top:calc(var(--xt) + var(--xh) - 60px);height:72px;z-index:2;
    --xm-ledge:linear-gradient(#F0D99A 0,#C9A25E 1.5px,#7A4524 2.5px,#5A2A12 5px,#46200F 9px,#2E150A 13px,#A8823E 14px,#E2C27A 15px,#5A3A18 16px);
    --tw:calc(var(--xw) * .43);--th:calc(var(--xw) * .43 * 43 / 130);
    background-image:var(--xm-s5-train),var(--xm-s6-drift),var(--xm-s6-drift),var(--xm-ledge),var(--xm-ledge);background-repeat:no-repeat;
    background-size:var(--tw) var(--th),calc(var(--xw) + 12px) 14px,calc(var(--xw) + 12px) 14px,calc(var(--xw) + 16px) 16px,calc(var(--xw) + 16px) 16px;
    background-position:left calc(var(--xl) + var(--xw) * .5) top calc(58px - var(--th)),left calc(var(--xl) - 6px) top 47px,right calc(var(--xl) - 6px) top 47px,
      left calc(var(--xl) - 8px) top 56px,right calc(var(--xl) - 8px) top 56px;
    filter:drop-shadow(0 3px 3px rgba(0,0,0,.45))}
  /* Gently falling snow, only in the side gutters over the windows (never over covers or text) */
  .season-xmas .ts-tag::before,.season-xmas .ts-tag::after{top:-256px;bottom:0;left:0;width:calc(var(--xl) + var(--xw) + 20px);z-index:4;
    background-image:var(--xm-flakes),var(--xm-flakes);background-repeat:repeat;background-size:256px 256px,128px 128px;background-position:0 0,60px 90px;opacity:.8}
  .season-xmas .ts-tag::after{left:auto;right:0}
}
@media (min-width:1100px) and (prefers-reduced-motion:no-preference){
  .season-xmas .ts-tag::before{animation:xm-snowfall 18s linear infinite}
  .season-xmas .ts-tag::after{animation:xm-snowfall 22s linear -7s infinite}
}
@keyframes xm-snowfall{from{transform:translate3d(0,0,0)}to{transform:translate3d(0,256px,0)}}
@keyframes xm-flicker{0%,100%{opacity:1}18%{opacity:.82}31%{opacity:.95}47%{opacity:.7}63%{opacity:.92}80%{opacity:.78}}
@media (prefers-reduced-motion:no-preference){
  .season-xmas .ts-stack::before{animation:xm-flicker 4.6s ease-in-out infinite}
  .season-xmas .ts-stack::after{animation:xm-flicker 5.3s ease-in-out -2.1s infinite}
}

/* ---------- Every page: Victorian accents ---------- */
.season-xmas .nav::after{left:0;right:0;bottom:1px;height:8px;background-image:var(--xm-rule);background-repeat:repeat-x;background-size:auto 8px;background-position:center;opacity:.5}
/* L1: full-width green pine pelmet (Facebook cover style). Box size is reserved
    in CSS (width 100% + height/aspect-ratio) so the image cannot cause layout
    shift. Absolutely positioned, so the late-loading decor CSS does not move
    the heading. Height is capped 8px short of the existing chapter padding.
    Lights are static: no twinkle, so prefers-reduced-motion is respected. */
.season-xmas #books::before,.season-xmas #series::before,.season-xmas #faq::before{
  top:0;left:0;right:0;z-index:2;margin:0;width:100%;
  aspect-ratio:2560/168;
  height:min(calc(100vw * 168 / 2560), calc(clamp(3rem, 7vw, 5.5rem) - 8px));
  background-image:var(--xm-fleuron);background-size:100% 100%;background-position:center top;background-repeat:no-repeat}
.season-xmas .foot{position:relative}
.season-xmas .foot::before{left:0;right:0;top:4px;height:8px;background-image:var(--xm-rule);background-repeat:repeat-x;background-size:auto 8px;background-position:center;opacity:.55}
/* wax seal on the footer edge, with the L3 nutcracker and rocking horse either side of it */
.season-xmas .foot::after{top:-38px;left:50%;z-index:2;width:240px;height:70px;margin-left:-120px;
  background-image:var(--xm-seal),var(--xm-l3-nut),var(--xm-l3-horse);background-size:60px 70px,40px 40px,40px 40px;
  background-position:center top,left 22px top 18px,right 22px top 18px}
.season-xmas main.book-page,.season-xmas main.chapter-about{position:relative}
.season-xmas main.book-page::before,.season-xmas main.chapter-about::before{
  top:.5rem;right:.5rem;width:clamp(52px,6vw,80px);aspect-ratio:1;background-image:var(--xm-sprig);opacity:.85}

@media (max-width:1099.98px){
  .season-xmas .ts-copy::before{border-width:10px;border-image-width:10px}
  .season-xmas .ts-stack::before,.season-xmas .ts-stack::after{inset:0 10px auto;height:18px;background-size:290px 18px}
  /* S6 on the bottom rail of the frame, never above it */
  .season-xmas .ts-copy::after{left:0;right:0;bottom:0;height:10px;z-index:1;background-image:var(--xm-snow);background-repeat:repeat-x;background-size:114px 10px;background-position:left bottom}
}
@media (max-width:599.98px){
  /* Short cream padding: fill the reserved band and crop the sides slightly
     so the pine stays readable; baubles sit in the central 33–67%. */
  .season-xmas #books::before,.season-xmas #series::before,.season-xmas #faq::before{
    aspect-ratio:auto;height:calc(clamp(3rem, 7vw, 5.5rem) - 6px);
    background-size:cover;background-position:center top}
}
@media (max-width:480px){
  .season-xmas .foot::after{top:-32px;width:200px;height:63px;margin-left:-100px;background-size:54px 63px,34px 34px,34px 34px;background-position:center top,left 18px top 14px,right 18px top 14px}
  .season-xmas main.book-page::before,.season-xmas main.chapter-about::before{top:.2rem;right:.2rem;width:40px}
}
@media (forced-colors:active),print{
  .season-xmas .title-screen::before,.season-xmas .title-screen::after,.season-xmas .ts-compose::before,.season-xmas .ts-compose::after,
  .season-xmas .ts-stack::before,.season-xmas .ts-stack::after,.season-xmas .ts-copy::before,.season-xmas .ts-copy::after,.season-xmas .ts-tag::before,.season-xmas .ts-tag::after,
  .season-xmas .nav::after,.season-xmas .foot::before,.season-xmas .foot::after,.season-xmas #books::before,.season-xmas #series::before,
  .season-xmas #faq::before,.season-xmas main.book-page::before,.season-xmas main.chapter-about::before{display:none}
}
