/* Shared base for the books styles: covers (typographic and duotone) and small resets. */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{display:block;max-width:100%}
button,input,select{font:inherit;color:inherit}
a{color:inherit}
:focus-visible{outline:2px solid #e8b04a;outline-offset:3px;border-radius:3px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* cover box: 2:3, the size comes from the parent */
.cv{position:relative;aspect-ratio:2/3;width:100%;overflow:hidden;background:var(--cb);color:var(--ci);border-radius:var(--cr,3px);
  container-type:inline-size;isolation:isolate}
.cv-in{position:absolute;inset:0;display:flex;flex-direction:column;padding:9cqw 9cqw 8cqw}
.cv-a{font:500 max(5.4cqw,6px)/1.3 Inter,system-ui,sans-serif;letter-spacing:.2em;text-transform:uppercase;opacity:.7}
.cv-t{font-family:"Instrument Serif",Georgia,serif;font-size:var(--ts,15cqw);line-height:.98;letter-spacing:-.01em;margin-top:auto;
  text-wrap:balance;overflow-wrap:anywhere;hyphens:auto}
.cv-n{font:600 max(5cqw,6px)/1 Inter,system-ui,sans-serif;letter-spacing:.14em;opacity:.5;margin-top:7cqw;padding-top:5cqw;border-top:1px solid currentColor}
.cv-type::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.22;mix-blend-mode:overlay;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E")}

/* duotone print: paper = book colour, shadows = book ink */
.cv-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:grayscale(1) contrast(1.2) brightness(1.08);mix-blend-mode:multiply;z-index:1;opacity:0;transition:opacity .5s}
.cv-photo.ok{background:var(--cl)}
.cv-photo.ok img{opacity:1}
.cv-photo.ok .cv-type-under{visibility:hidden}
.cv-photo.ok::before{content:"";position:absolute;inset:0;background:var(--cd);mix-blend-mode:lighten;z-index:2;pointer-events:none}
.cv-photo::after{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;opacity:.25;mix-blend-mode:overlay;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E")}
@container (max-width:90px){.cv-a,.cv-n{display:none}.cv-in{padding:10cqw}.cv-t{font-size:calc(var(--ts,15cqw)*1.3);margin:auto 0 0}}
