@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Cormorant+Garamond:ital,wght@0,600;1,600&family=Josefin+Sans:wght@600&display=swap");
/* Lost Books Club: cloth-bound cover. Materials are built in layers:
   board colour -> dye mottle -> lit cloth weave -> stamped gilt (SVG filter) -> hinge, edge wear and light */
.bkc{position:relative;display:block;width:100%;container-type:inline-size;isolation:isolate;overflow:hidden;
  background-color:var(--c);border-radius:2px 5px 5px 2px;
  box-shadow:0 0 0 .5px rgba(0,0,0,.45),0 1px 1px rgba(25,15,5,.4),2px 3px 4px rgba(35,22,6,.28),5px 12px 16px -5px rgba(40,26,8,.42),12px 26px 30px -16px rgba(40,26,8,.38);
  transition:transform .25s cubic-bezier(.2,.7,.2,1),box-shadow .25s}
.bkc>span{position:absolute}
/* cloth: woven, lit from the top left */
.bkc .tx{inset:0;z-index:0;mix-blend-mode:hard-light;opacity:.5;background-size:140cqw 140cqw;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='420' height='420'><filter id='c' x='0' y='0' width='100%' height='100%' color-interpolation-filters='sRGB'><feTurbulence type='fractalNoise' baseFrequency='1.15 0.05' numOctaves='2' seed='2' stitchTiles='stitch' result='h'/><feTurbulence type='fractalNoise' baseFrequency='0.05 1.15' numOctaves='2' seed='7' stitchTiles='stitch' result='v'/><feComposite in='h' in2='v' operator='arithmetic' k2='.5' k3='.5' result='w'/><feTurbulence type='fractalNoise' baseFrequency='1.3' numOctaves='2' seed='11' stitchTiles='stitch' result='g'/><feComposite in='w' in2='g' operator='arithmetic' k2='.72' k3='.28' result='b'/><feDiffuseLighting in='b' surfaceScale='2.1' diffuseConstant='.62' lighting-color='white'><feDistantLight azimuth='225' elevation='56'/></feDiffuseLighting></filter><rect width='100%' height='100%' filter='url(%23c)'/></svg>")}
/* uneven dye and handling: slow, large-scale tone shifts */
.bkc .tx::before{content:"";position:absolute;inset:0;mix-blend-mode:multiply;opacity:.5;background-size:100% 100%;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='400' preserveAspectRatio='none'><filter id='m' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='0.011 0.008' numOctaves='3' seed='4'/><feColorMatrix values='0 0 0 0 .1  0 0 0 0 .07  0 0 0 0 .04  0 0 0 1.5 -.55'/></filter><rect width='100%' height='100%' filter='url(%23m)'/></svg>")}
/* hinge, rounded spine edge, board bevel, rubbed corners, room light */
.bkc .ed{inset:0;z-index:3;pointer-events:none;border-radius:inherit;
  box-shadow:inset 0 1px 0 rgba(255,244,220,.22),inset -1px 0 0 rgba(255,244,220,.1),inset 0 -1.5px 0 rgba(0,0,0,.34),inset 0 0 0 1px rgba(255,238,205,.05);
  background:
   radial-gradient(circle at 100% 0,rgba(255,236,200,.16),rgba(255,236,200,0) 4%),
   radial-gradient(circle at 100% 100%,rgba(255,236,200,.14),rgba(255,236,200,0) 4.5%),
   radial-gradient(circle at 9% 100%,rgba(255,236,200,.08),rgba(255,236,200,0) 4%),
   linear-gradient(90deg,rgba(0,0,0,.42) 0,rgba(0,0,0,.14) 1.6%,rgba(255,255,255,.07) 3.6%,rgba(0,0,0,.04) 5%,rgba(0,0,0,.34) 6.1%,rgba(0,0,0,.2) 6.7%,rgba(255,244,220,.16) 7.5%,rgba(255,255,255,0) 9.5%),
   linear-gradient(168deg,rgba(255,250,235,.12) 0,rgba(255,255,255,0) 30%,rgba(0,0,0,0) 62%,rgba(0,0,0,.2) 100%),
   radial-gradient(130% 100% at 56% 36%,rgba(0,0,0,0) 58%,rgba(0,0,0,.2) 100%)}
/* stamped gilt */
.bkc .ti,.bkc .or,.bkc .au,.bkc .fr{z-index:2}
.bkc .ti{left:17%;right:10%;top:12%;text-align:center}
.bkc .tt{display:block;font-family:'Instrument Serif','Libre Baskerville',Georgia,serif;font-size:14cqw;line-height:1.07;letter-spacing:.04em;text-transform:uppercase;text-wrap:balance;hyphens:none;
  background:linear-gradient(176deg,var(--g1) 0%,var(--g2) 46%,var(--g3) 100%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:url(#lbc-foil);padding:.04em 0}
.bkc.it .tt{text-transform:none;font-style:italic;letter-spacing:.008em;line-height:1.03}
.bkc .ru{display:block;width:17cqw;height:1.5px;margin:5.5cqw auto 0;background:linear-gradient(90deg,var(--g3),var(--g1),var(--g2));filter:url(#lbc-foil-sm)}
.bkc .or{left:53.5%;top:63%;width:21cqw;transform:translate(-50%,-50%);color:var(--g2);filter:url(#lbc-foil)}
.bkc .or svg{display:block;width:100%;height:auto;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
.bkc .or svg .fl{fill:currentColor;stroke:none}
.bkc .au{left:17%;right:10%;bottom:6.6%;text-align:center;font-family:'Libre Baskerville',Georgia,serif;font-size:3.7cqw;letter-spacing:.24em;text-transform:uppercase;color:var(--g2);filter:url(#lbc-foil-sm)}
/* frames: gilt (1 single, 2 double) or blind-stamped (3) */
.bkc .fr{pointer-events:none}
.bkc.f1 .fr,.bkc.f2 .fr{inset:4.6% 5% 4.6% 12.2%;border:1.2px solid var(--g2);border-radius:1px;filter:url(#lbc-foil-sm);opacity:.86}
.bkc.f2 .fr::before{content:"";position:absolute;inset:3.5px;border:.8px solid var(--g2)}
.bkc.f3 .fr{inset:4.6% 5% 4.6% 12.2%;border:1px solid rgba(0,0,0,.42);box-shadow:0 0 0 1px rgba(255,244,220,.09),inset 0 0 0 1px rgba(255,244,220,.07),inset 1px 1px 2px rgba(0,0,0,.25)}
.bkc.f3 .fr::before{content:"";position:absolute;inset:5px;border:1px solid rgba(0,0,0,.34);box-shadow:0 0 0 1px rgba(255,244,220,.07)}
.bkc.f1 .ti,.bkc.f2 .ti,.bkc.f3 .ti{top:14%;left:19.5%;right:12.5%}
.bkc.f1 .au,.bkc.f2 .au,.bkc.f3 .au{bottom:9.2%}
a:hover .bkc{transform:translateY(-6px);box-shadow:0 0 0 .5px rgba(0,0,0,.45),0 1px 1px rgba(25,15,5,.4),3px 6px 8px rgba(35,22,6,.26),8px 20px 22px -6px rgba(40,26,8,.42),16px 36px 38px -18px rgba(40,26,8,.4)}

/* placement helpers */
.cw{display:flex;align-items:flex-end;aspect-ratio:.7}
.bigc{display:block;width:280px;max-width:64vw;transform:rotate(2deg)}
.bigc .bkc{box-shadow:0 0 0 .5px rgba(0,0,0,.5),0 2px 3px rgba(0,0,0,.45),8px 18px 26px -6px rgba(0,0,0,.6),18px 40px 50px -20px rgba(0,0,0,.6)}

/* ---- 'Rediscovered' belly band: printed paper wrapped round the lower boards of the most-forgotten books ---- */
.bkc .fbd{left:0;right:0;top:57%;height:22%;z-index:5;color:#2A2016;pointer-events:none;
  background:
    linear-gradient(90deg,rgba(40,25,10,.34) 0,rgba(40,25,10,.1) 2%,rgba(255,250,235,.1) 4.5%,rgba(40,25,10,.12) 6.5%,rgba(0,0,0,0) 9%,rgba(0,0,0,0) 94%,rgba(60,40,15,.1) 97%,rgba(40,25,10,.36) 100%),
    linear-gradient(180deg,rgba(255,252,240,.4) 0,rgba(255,252,240,0) 20%,rgba(0,0,0,0) 70%,rgba(70,48,20,.14) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='9'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .36  0 0 0 0 .22  0 0 0 .14 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>"),
    #EFE6CF;
  box-shadow:0 -.5px 0 rgba(0,0,0,.3),0 1px 0 rgba(0,0,0,.28),0 -2px 3px -1px rgba(0,0,0,.3),0 4px 6px -2px rgba(0,0,0,.45)}
/* a double gilt rule near each edge of the band */
.bkc .fbd::before,.bkc .fbd::after{content:"";position:absolute;left:10%;right:5%;height:2.6cqw;
  background:linear-gradient(180deg,#B58F45 0,#B58F45 30%,rgba(0,0,0,0) 30%,rgba(0,0,0,0) 62%,#C9A55E 62%,#C9A55E 80%,rgba(0,0,0,0) 80%);opacity:.9}
.bkc .fbd::before{top:7%}.bkc .fbd::after{bottom:7%;transform:scaleY(-1)}
.bkc .fbd .in{position:absolute;left:10%;right:5%;top:0;bottom:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.bkc .fbd .k{font-family:'Libre Baskerville',Georgia,serif;font-size:4.6cqw;letter-spacing:.2em;text-transform:uppercase;color:#8E2424;padding-left:.2em;text-shadow:0 0 .3px rgba(142,36,36,.8)}
.bkc .fbd .h{font-family:'Newsreader','Instrument Serif',Georgia,serif;font-style:italic;font-size:10.5cqw;line-height:1.05;margin:1.2cqw 0 0;color:#1F1A14;text-shadow:0 0 .35px rgba(42,32,22,.9)}

/* ===== cover system (assets/covers): heritage cloth, cloth grain, and a stamped frame design ===== */
.bkc.nc .gr{inset:0;z-index:1;mix-blend-mode:overlay;opacity:.9;background:url("/assets/covers/cloth-grain.png") repeat;background-size:100% auto}
.bkc.nc .tx{opacity:.32}
.bkc.nc .nf{inset:0;z-index:2;color:var(--fr);pointer-events:none}
.bkc.nc .nf svg{display:block;width:100%;height:100%;overflow:visible}
.bkc.nc:not([data-foil="blind"]) .nf{filter:url(#lbc-foil-sm)}
.bkc.nc[data-foil="blind"] .nf svg{filter:drop-shadow(0 .6px 0 rgba(255,240,215,.12))}
.bkc.nc .ti{left:var(--tx,13%);right:var(--tx,13%);top:var(--tt)}
.bkc.nc .au{left:13%;right:13%;bottom:var(--ab)}
.bkc.nc .or{display:none}

/* plaque designs: the title is centred inside the cartouche */
.bkc.nc.cart .ti{bottom:var(--tb);display:flex;flex-direction:column;align-items:center;justify-content:center}
/* title lettering by style: classical serif for Victorian, refined serif caps for Nouveau, geometric caps for Deco, italic for botanical */
.bkc.nc[data-style="victorian"] .tt{font-family:'Playfair Display',Georgia,serif;font-weight:600;letter-spacing:.03em;line-height:1.1}
.bkc.nc[data-style="nouveau"] .tt{font-family:'Cormorant Garamond',Georgia,serif;font-weight:600;letter-spacing:.09em;line-height:1.02}
.bkc.nc[data-style="deco"] .tt{font-family:'Josefin Sans',system-ui,sans-serif;font-weight:600;letter-spacing:.08em;line-height:1.14;padding-left:.08em}
.bkc.nc[data-style="botanical"] .tt{font-family:'Cormorant Garamond',Georgia,serif;font-style:italic;font-weight:600;text-transform:none;letter-spacing:.01em;line-height:1.02}
.bkc.nc[data-style="deco"] .au{font-family:'Josefin Sans',system-ui,sans-serif;font-weight:600}
.bkc.nc[data-style="botanical"] .au,.bkc.nc[data-style="nouveau"] .au{font-family:'Cormorant Garamond',Georgia,serif;font-weight:600;letter-spacing:.2em}
.bkc.nc.cart .tt{width:100%}

/* wear: corners rubbed through to the board, scuffed edges and a couple of handling marks */
.bkc.nc .wr{inset:0;z-index:4;pointer-events:none;border-radius:inherit;background:
  radial-gradient(circle at 100% 0,rgba(176,140,96,.55),rgba(176,140,96,0) 5.5%),
  radial-gradient(circle at 100% 100%,rgba(176,140,96,.5),rgba(176,140,96,0) 6%),
  radial-gradient(circle at 0 100%,rgba(176,140,96,.25),rgba(176,140,96,0) 4%),
  radial-gradient(ellipse 14% 6% at var(--w1) 96%,rgba(210,190,150,.12),rgba(0,0,0,0)),
  radial-gradient(ellipse 10% 7% at 88% var(--w2),rgba(0,0,0,.18),rgba(0,0,0,0)),
  linear-gradient(180deg,rgba(200,170,120,.18) 0,rgba(0,0,0,0) 1.2%,rgba(0,0,0,0) 98.6%,rgba(200,170,120,.2) 100%),
  linear-gradient(90deg,rgba(0,0,0,0) 98.4%,rgba(200,170,120,.22) 100%)}

/* ===== ageing: every book wears differently; the lettering always stays readable ===== */
.bkc.nc .nf{opacity:var(--fd,1)}
.bkc.nc .ti,.bkc.nc .au{opacity:var(--tf,1)}
.bkc.nc.a1 .nf{-webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.022' numOctaves='3' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  5 0 0 0 -0.9'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='8' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  7 0 0 0 -1.4'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.022' numOctaves='3' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  5 0 0 0 -0.9'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='8' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  7 0 0 0 -1.4'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");-webkit-mask-size:210% 165%,66px 66px;mask-size:210% 165%,66px 66px;-webkit-mask-position:var(--mx) var(--my),var(--my) var(--mx);mask-position:var(--mx) var(--my),var(--my) var(--mx);-webkit-mask-composite:source-in;mask-composite:intersect}
.bkc.nc.a1 .ti,.bkc.nc.a1 .au{-webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' seed='12' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  9 0 0 0 -1.1'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' seed='12' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  9 0 0 0 -1.1'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");-webkit-mask-size:60px;mask-size:60px;-webkit-mask-position:var(--my) var(--mx);mask-position:var(--my) var(--mx)}
.bkc.nc.a2 .nf{-webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.022' numOctaves='3' seed='5' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  4.4 0 0 0 -1.1'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='9' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  6 0 0 0 -1.5'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.022' numOctaves='3' seed='5' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  4.4 0 0 0 -1.1'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='9' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  6 0 0 0 -1.5'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");-webkit-mask-size:230% 180%,60px 60px;mask-size:230% 180%,60px 60px;-webkit-mask-position:var(--mx) var(--my),var(--my) var(--mx);mask-position:var(--mx) var(--my),var(--my) var(--mx);-webkit-mask-composite:source-in;mask-composite:intersect}
.bkc.nc.a2 .ti,.bkc.nc.a2 .au{-webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' seed='13' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  8 0 0 0 -1.25'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' seed='13' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  8 0 0 0 -1.25'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");-webkit-mask-size:56px;mask-size:56px;-webkit-mask-position:var(--my) var(--mx);mask-position:var(--my) var(--mx)}
.bkc.nc.a3 .nf{-webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.02' numOctaves='3' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  3.8 0 0 0 -1.25'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='11' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  5 0 0 0 -1.45'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.02' numOctaves='3' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  3.8 0 0 0 -1.25'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='11' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  5 0 0 0 -1.45'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");-webkit-mask-size:250% 195%,54px 54px;mask-size:250% 195%,54px 54px;-webkit-mask-position:var(--mx) var(--my),var(--my) var(--mx);mask-position:var(--mx) var(--my),var(--my) var(--mx);-webkit-mask-composite:source-in;mask-composite:intersect}
.bkc.nc.a3 .ti,.bkc.nc.a3 .au{-webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='14' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  7 0 0 0 -1.35'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='14' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  7 0 0 0 -1.35'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");-webkit-mask-size:52px;mask-size:52px;-webkit-mask-position:var(--my) var(--mx);mask-position:var(--my) var(--mx)}
/* sun-faded from one edge, colour a little bleached, and on some books a tide mark */
.bkc.nc .ag{inset:0;z-index:3;pointer-events:none;border-radius:inherit;background:
  linear-gradient(var(--sa),rgba(214,190,150,var(--sun)) 0,rgba(214,190,150,0) 58%);mix-blend-mode:screen}
.bkc.nc .ag::before{content:"";position:absolute;inset:0;background:rgba(128,120,110,var(--ds));mix-blend-mode:saturation}
.bkc.nc.stn .ag::after{content:"";position:absolute;inset:0;background:
  radial-gradient(ellipse 24% 17% at var(--sx) var(--sy),rgba(0,0,0,0) 62%,rgba(70,50,25,.3) 66%,rgba(205,185,150,.09) 70%,rgba(0,0,0,0) 76%),
  radial-gradient(ellipse 20% 14% at var(--sx) var(--sy),rgba(200,180,140,.06),rgba(0,0,0,0) 70%)}

/* floral: classic capitals, as on decorated Victorian publishers' cloth */
.bkc.nc[data-style="floral"] .tt{font-family:'Cormorant Garamond',Georgia,serif;font-weight:600;letter-spacing:.03em;line-height:1.04}
.bkc.nc[data-style="floral"] .au{font-family:'Cormorant Garamond',Georgia,serif;font-weight:600;letter-spacing:.2em}

/* designs with no lettering on the board (title on the spine only), and designs with no author line */
.bkc.nc.nt .ti,.bkc.nc.nt .au,.bkc.nc.na .au{display:none}
/* half-leather designs carry their own spine strip; the board needs no extra hinge shading there */
.bkc.nc[data-style="arabesque"] .tt{font-family:'Playfair Display',Georgia,serif;font-weight:600;letter-spacing:.04em;line-height:1.1}

/* ===== physical depth: stamped into the cloth, uneven boards, frayed edges, dust and handling ===== */
/* boards are never quite square: corners rounded unevenly, the book sits a fraction off true */
.bkc.nc{border-radius:var(--rd,2px 5px 5px 2px);rotate:var(--rot,0deg)}
/* gilt pressed into the weave: deboss lips, uneven pressure, flecks where the leaf has worn off */
.bkc.nc:not([data-foil="blind"]) .nf{filter:url(#lbc-stamp)}
.bkc.nc[data-foil="blind"] .nf svg{filter:drop-shadow(0 -.7px .35px rgba(0,0,0,.4)) drop-shadow(0 .7px .25px rgba(255,240,215,.16))}
/* the cloth weave reads stronger, most of all where hands have rubbed the edges */
.bkc.nc .gr{opacity:.95;filter:contrast(1.1)}
.bkc.nc .gr::after{content:"";position:absolute;inset:0;background:inherit;background-size:inherit;opacity:.45;
  -webkit-mask-image:radial-gradient(115% 100% at 55% 46%,rgba(0,0,0,0) 52%,#000 100%);mask-image:radial-gradient(115% 100% at 55% 46%,rgba(0,0,0,0) 52%,#000 100%)}
/* the hinge groove beside the spine: deeper, and not pressed evenly from head to tail */
.bkc.nc .ed::before{content:"";position:absolute;top:0;bottom:0;left:5.3%;width:2.8%;opacity:var(--hg,1);
  background:linear-gradient(90deg,rgba(0,0,0,0),rgba(0,0,0,.5) 42%,rgba(0,0,0,.3) 68%,rgba(255,240,210,.14) 100%);
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='400' preserveAspectRatio='none'><filter id='h' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='0.2 0.012' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  2.2 0 0 0 -.35'/></filter><rect width='100%' height='100%' filter='url(%23h)'/></svg>");
  -webkit-mask-size:100% 100%;mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='400' preserveAspectRatio='none'><filter id='h' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='0.2 0.012' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  2.2 0 0 0 -.35'/></filter><rect width='100%' height='100%' filter='url(%23h)'/></svg>");mask-size:100% 100%}
/* dust settled round the edges and in the creases: a grimy, uneven vignette */
.bkc.nc .ed::after{content:"";position:absolute;inset:0;mix-blend-mode:multiply;border-radius:inherit;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='340' preserveAspectRatio='none'><filter id='g' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.045' numOctaves='4' seed='17'/><feColorMatrix values='0 0 0 0 .2  0 0 0 0 .14  0 0 0 0 .07  0 0 0 1.8 -.6'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>") 0 0/100% 100%,
    radial-gradient(125% 108% at 56% 44%,rgba(30,18,6,0) 55%,rgba(30,18,6,.22) 100%);
  -webkit-mask-image:radial-gradient(120% 104% at 56% 45%,rgba(0,0,0,.05) 50%,rgba(0,0,0,.7) 100%);mask-image:radial-gradient(120% 104% at 56% 45%,rgba(0,0,0,.05) 50%,rgba(0,0,0,.7) 100%)}
/* frayed cloth at the head, tail and fore-edge: threads lifted and rubbed pale */
.bkc.nc .wr::before{content:"";position:absolute;inset:0;border-radius:inherit;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='f' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.55 .9' numOctaves='2' seed='29' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .78  0 0 0 0 .69  0 0 0 0 .54  2.6 0 0 0 -1.5'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>") 0 0/60cqw 60cqw;
  -webkit-mask-image:linear-gradient(180deg,#000 0,rgba(0,0,0,0) 1.6%,rgba(0,0,0,0) 98.2%,#000 100%),linear-gradient(90deg,rgba(0,0,0,0) 98%,#000 100%),radial-gradient(circle at 100% 0,#000,rgba(0,0,0,0) 6%),radial-gradient(circle at 100% 100%,#000,rgba(0,0,0,0) 7%);
  mask-image:linear-gradient(180deg,#000 0,rgba(0,0,0,0) 1.6%,rgba(0,0,0,0) 98.2%,#000 100%),linear-gradient(90deg,rgba(0,0,0,0) 98%,#000 100%),radial-gradient(circle at 100% 0,#000,rgba(0,0,0,0) 6%),radial-gradient(circle at 100% 100%,#000,rgba(0,0,0,0) 7%)}
/* handling: patches where thumbs and palms have polished or faded the cloth */
.bkc.nc .wr::after{content:"";position:absolute;inset:0;mix-blend-mode:screen;border-radius:inherit;
  background:radial-gradient(ellipse 16% 22% at 94% 52%,rgba(205,185,150,.09),rgba(0,0,0,0)),
    radial-gradient(ellipse 22% 13% at 82% 93%,rgba(205,185,150,.07),rgba(0,0,0,0)),
    radial-gradient(ellipse 18% 12% at var(--w1) var(--w2),rgba(205,185,150,.05),rgba(0,0,0,0));
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='r' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.07' numOctaves='3' seed='41' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  3 0 0 0 -.9'/></filter><rect width='100%' height='100%' filter='url(%23r)'/></svg>");
  mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='r' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.07' numOctaves='3' seed='41' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  3 0 0 0 -.9'/></filter><rect width='100%' height='100%' filter='url(%23r)'/></svg>")}
