/* Luxe product pages (/products/<slug>/ when the json has a "luxe" block), written by tools/luxe.py.
   Same design as the hand-written /comic/ page. Block colour and ink can be set per product in luxe.block / luxe.ink. */
:root{
  --block:#1e1c3b; --block-deep:#131229; --ink:#d9b88a;
  --surface:#f7f4ef; --sunken:#ece6df; --text:#434342; --muted:#675f5b; --soft:#8a7c73; --accent:#705b65;
  --hairline:#d9d2cb; --on-block:#e9e3da; --action:#434342; --on-action:#f7f4ef; --focus:#80615f;
  --display:"Cormorant Garamond",Georgia,serif; --sans:"Jost","Avenir Next","Segoe UI",system-ui,sans-serif;
  color-scheme:light;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--surface);color:var(--text);font:16px/26px var(--sans);-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums;overflow-x:hidden}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
p,h1,h2,h3{margin:0}
:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
[hidden]{display:none!important}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-9999px;top:8px;z-index:30;background:var(--action);color:var(--on-action);padding:8px 14px}
.skip:focus{left:8px}
.label{font:500 10px/14px var(--sans);letter-spacing:.16em;text-transform:uppercase}
.serif{font-family:var(--display);font-weight:500}
.wordmark{display:block;aspect-ratio:900/124;background:currentColor;-webkit-mask:url(/img/wordmark-mask.png) center/contain no-repeat;mask:url(/img/wordmark-mask.png) center/contain no-repeat}
.ico{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}

/* buttons */
.cta{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:0 20px;border-radius:4px;background:var(--action);color:var(--on-action);text-decoration:none;font-weight:500;font-size:15px;letter-spacing:.02em;transition:transform .12s ease,background-color .2s ease}
.cta:hover{background:#2f2f2e}
.cta:active{transform:scale(.98)}
.cta svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}
.cta:hover svg{transform:translateX(3px)}
.cta.light{background:var(--surface);color:var(--text)}
.cta.light:hover{background:#fff}

/* top strip */
.strip{display:flex;justify-content:center;flex-wrap:wrap;gap:6px 14px;padding:8px 16px;background:var(--block-deep);color:var(--on-block)}
.strip span+span::before{content:"·";color:var(--soft);margin-right:14px}

/* hero */
.hero{display:grid}
.stage{position:relative;background:var(--block);color:var(--ink);overflow:hidden;padding:0 0 40px}
.stage::before,.stage::after{content:"";position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(rgba(217,184,138,.16) 1.1px,transparent 1.5px);background-size:7px 7px}
.stage::before{-webkit-mask-image:linear-gradient(160deg,#000,transparent 55%);mask-image:linear-gradient(160deg,#000,transparent 55%)}
.stage::after{opacity:.75;-webkit-mask-image:linear-gradient(-20deg,#000,transparent 40%);mask-image:linear-gradient(-20deg,#000,transparent 40%)}
.bar{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:4px 12px 0}
.bar a{width:44px;height:44px;display:flex;align-items:center;justify-content:center;color:var(--ink)}
.bar a svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.bar .wordmark{width:100px;color:var(--ink)}
.speclabels{position:relative;z-index:1;display:flex;justify-content:space-between;padding:8px 20px 0;opacity:.9}
.big{--n:6;position:relative;z-index:1;text-align:center;margin:4px 0 0;font-weight:800;font-size:clamp(44px,calc(125vw / var(--n)),176px);white-space:nowrap;line-height:.9;letter-spacing:-.04em}
.show{position:relative;z-index:2;display:flex;justify-content:center;align-items:flex-start;margin-top:clamp(-90px,-7vw,-24px);min-height:clamp(280px,74vw,430px)}
.show::after{content:"";position:absolute;left:18%;right:18%;bottom:-30px;height:56px;border-radius:50%;background:radial-gradient(closest-side,rgba(5,4,20,.55),transparent)}
.book{position:relative;width:clamp(170px,46vw,300px);border-radius:2px 6px 6px 2px;overflow:hidden;transform:rotate(-4deg);box-shadow:0 30px 40px -16px rgba(8,6,28,.7),0 6px 12px rgba(8,6,28,.25);animation:rise .9s cubic-bezier(.2,.7,.2,1) both}
.book img{width:100%;height:auto}
.book::before{content:"";position:absolute;inset:0 auto 0 0;width:12px;z-index:1;background:linear-gradient(90deg,rgba(0,0,0,.38),rgba(255,255,255,.2) 55%,transparent)}
.book::after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,rgba(255,255,255,.16),transparent 32%)}
.book.spread{width:min(92%,580px);transform:none;border-radius:6px}
.book.spread::before,.book.spread::after{display:none}
@keyframes rise{from{opacity:0;transform:translateY(26px) rotate(-1deg)}to{opacity:1;transform:translateY(0) rotate(-4deg)}}
@keyframes rise2{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.book.spread{animation-name:rise2}

.buy{padding:24px 20px 28px;display:flex;flex-direction:column;gap:16px;animation:rise2 .6s .3s ease-out both}
.buy h1{font-family:var(--display);font-weight:500;font-size:32px;line-height:34px;letter-spacing:-.005em;text-wrap:balance}
.by{font-size:13px;line-height:18px;color:var(--muted);margin-top:4px}
.row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-top:1px solid var(--hairline);border-bottom:1px solid var(--hairline)}
.price{font-size:26px;line-height:30px;font-weight:500;letter-spacing:-.01em}
.fmt{font-size:11px;line-height:15px;color:var(--muted)}
.thumbs{display:flex;gap:8px}
.thumbs button{width:44px;height:44px;padding:2px;border-radius:6px;border:1.5px solid var(--hairline);background:var(--surface);cursor:pointer;transition:border-color .2s ease,transform .2s ease}
.thumbs button:hover{transform:translateY(-2px)}
.thumbs button[aria-pressed="true"]{border-color:var(--text)}
.thumbs img{width:100%;height:100%;object-fit:cover;border-radius:4px}
.formats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.formats button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:56px;padding:10px 14px;border-radius:4px;border:1.5px solid var(--hairline);background:var(--surface);color:var(--text);font:500 14px/18px var(--sans);text-align:left;cursor:pointer;transition:border-color .2s ease}
.formats button small{font-weight:400;font-size:12px;line-height:16px;color:var(--muted)}
.formats button[aria-pressed="true"]{border-color:var(--text)}
.gift{display:flex;align-items:center;gap:10px;font-size:13px;line-height:18px}
.gift svg{width:18px;height:18px;flex:none;fill:none;stroke:#80615f;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}

/* sections */
.wrap{max-width:720px;margin:0 auto;padding:0 20px}
section,section.wrap{margin-top:56px}
h2.serif{font-size:30px;line-height:34px}
.benefits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:36px;text-align:center}
.benefits div{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12px;line-height:15px}
.flip{background:var(--block);color:var(--on-block);padding:32px 0 28px}
.flip-head{display:flex;align-items:baseline;justify-content:space-between}
.flip-head h2{color:var(--surface)}
.count{font-size:12px;letter-spacing:.14em;color:var(--ink)}
.track{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin-top:16px;padding:0 20px;scroll-padding:0 20px}
.track::-webkit-scrollbar{display:none}
.track figure{margin:0;flex:0 0 min(86%,620px);scroll-snap-align:start;display:flex;flex-direction:column;gap:12px}
.track img{width:100%;aspect-ratio:1200/861;object-fit:cover;border-radius:6px;box-shadow:0 24px 34px -16px rgba(5,4,20,.7)}
.track figcaption{font-size:14px;line-height:21px}
.flip-nav{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.flip-nav button{width:44px;height:44px;border-radius:50%;border:1px solid rgba(247,244,239,.4);background:transparent;color:var(--surface);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .2s ease}
.flip-nav button:hover{background:rgba(247,244,239,.1)}
.flip-nav svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
blockquote{margin:0;font-family:var(--display);font-style:italic;font-size:27px;line-height:34px;text-wrap:balance}
.who{display:flex;align-items:center;gap:12px;margin-top:18px}
.who img{width:48px;height:48px;border-radius:50%;object-fit:cover}
.who b{display:block;font-weight:500;font-size:14px;line-height:20px}
.who span{font-size:12px;line-height:16px;color:var(--muted)}
.kit{background:var(--sunken);border-radius:8px;padding:24px 18px;display:flex;flex-direction:column;gap:16px}
.kit .label{color:var(--accent)}
.kit .cta{font-size:14px;letter-spacing:0}
.kit h2{font-size:26px;line-height:30px;margin-top:4px}
.kit-items{display:flex;align-items:flex-start;justify-content:space-between;gap:4px}
.kit-items a{width:30%;max-width:150px;display:flex;flex-direction:column;gap:6px;text-decoration:none;font-size:12px;line-height:16px}
.kit-items img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:4px}
.kit-items small{color:var(--muted);font-size:12px}
.plus{padding-top:18%;font-size:18px;color:var(--soft)}
.trust{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:16px 0;border-top:1px solid var(--hairline);border-bottom:1px solid var(--hairline);text-align:center;margin-top:32px}
.trust div{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:11px;line-height:15px;color:var(--muted)}
.trust .ico{width:22px;height:22px;color:var(--text)}
.faq h2{margin-bottom:12px}
.faq details{border-top:1px solid var(--hairline)}
.faq details:last-child{border-bottom:1px solid var(--hairline)}
.faq summary{list-style:none;cursor:pointer;min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;font-weight:500;font-size:15px;line-height:22px;transition:color .2s ease}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-weight:400;font-size:18px}
.faq details[open] summary::after{content:"−"}
.faq summary:hover{color:#80615f}
.faq details p{padding:0 0 16px;font-size:14px;line-height:22px;color:var(--muted)}
.close{margin-top:56px;background:var(--block);color:var(--ink);padding:44px 0 40px}
.close .wrap{display:flex;flex-direction:column;gap:16px}
.close h2{font-weight:800;font-size:clamp(44px,12vw,72px);line-height:.98;letter-spacing:-.035em}
.close p{color:var(--on-block);font-size:15px;line-height:24px}
.close .cta{max-width:420px}
footer{padding:28px 20px calc(96px + env(safe-area-inset-bottom));text-align:center;font-size:12px;line-height:20px;color:var(--muted)}
footer .wordmark{width:120px;margin:0 auto 12px;color:var(--text)}
footer nav{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 14px;margin-bottom:8px}

.reviews h2{margin-bottom:16px}
.rev-grid{display:grid;gap:12px}
.rev-grid figure{margin:0;padding:20px;border:1px solid var(--hairline);border-radius:6px;background:#fbf9f6;display:flex;flex-direction:column;gap:8px}
.stars{color:#80615f;letter-spacing:.12em;font-size:14px;line-height:18px}
.rev-grid h3{font-weight:500;font-size:15px;line-height:22px}
.rev-grid blockquote{font-family:var(--sans);font-style:normal;font-size:14px;line-height:22px;color:var(--muted);text-wrap:pretty}
@media (min-width:700px){.rev-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* made for */
.made .label{color:var(--accent);padding-bottom:10px}
.made li{display:flex;gap:14px;align-items:baseline;padding:14px 0;border-top:1px solid var(--hairline)}
.made li:last-child{border-bottom:1px solid var(--hairline)}
.made ol{list-style:none;margin:0;padding:0}
.made b{font:400 11px/16px var(--sans);letter-spacing:.12em;color:var(--soft);width:22px;flex:none}
.made span{font-family:var(--display);font-size:22px;line-height:27px}
.made li span::first-letter{text-transform:uppercase}
.note-more{margin-top:14px;font-size:14px;line-height:22px;color:var(--muted);max-width:60ch}
/* everything inside */
.inside .label{color:var(--accent);padding-bottom:10px}
.inside ul{list-style:none;margin:0;padding:0}
.inside li{padding:11px 0 11px 26px;border-top:1px solid var(--hairline);font-size:15px;line-height:23px;position:relative}
.inside li::before{content:"";position:absolute;left:2px;top:19px;width:10px;height:6px;border-left:1.5px solid #80615f;border-bottom:1.5px solid #80615f;transform:rotate(-45deg)}
.specs{margin-top:24px}
.specs div{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-top:1px solid var(--hairline);font-size:14px;line-height:20px}
.specs div:last-child{border-bottom:1px solid var(--hairline)}
.specs dt{color:var(--muted)}
.specs dd{margin:0;text-align:right}
.track img{aspect-ratio:auto;height:auto}
/* buy bar */
.buybar{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:20;display:flex;align-items:center;gap:12px;padding:8px;border-radius:8px;background:var(--action);color:var(--on-action);box-shadow:0 10px 24px rgba(30,28,59,.25);animation:barIn .5s .6s cubic-bezier(.2,.7,.2,1) both;max-width:560px;margin:0 auto}
@keyframes barIn{from{transform:translateY(140%)}to{transform:none}}
.buybar img{width:30px;height:42px;object-fit:cover;border-radius:2px;margin-left:4px}
.buybar div{flex:1;min-width:0;display:flex;flex-direction:column}
.buybar b{font-weight:500;font-size:13px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.buybar span{font-size:12px;line-height:16px;color:#d6cfc8}
.buybar a{display:flex;align-items:center;min-height:44px;padding:0 18px;border-radius:4px;background:var(--surface);color:var(--text);text-decoration:none;font-size:14px;font-weight:500}

/* desktop: colour block on the left, buying on the right */
@media (min-width:900px){
  .hero{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);min-height:min(820px,calc(100vh - 30px))}
  .stage{padding-bottom:60px;display:flex;flex-direction:column}
  .speclabels{padding:22px 40px 0}
  .big{font-size:min(190px,calc(72vw / var(--n)))}
  .show{flex:1;align-items:center;margin-top:-90px;min-height:0}
  .bar{padding:10px 28px 0}
  .buy{justify-content:center;padding:48px clamp(32px,5vw,72px);gap:22px;max-width:620px}
  .buy h1{font-size:52px;line-height:54px}
  .benefits{gap:24px;margin-top:64px}
  .benefits div{font-size:14px}
  .ico{width:34px;height:34px}
  .track{padding:0 max(20px,calc((100vw - 720px)/2));scroll-padding:0 max(20px,calc((100vw - 720px)/2))}
  .track figure{flex-basis:620px}
  blockquote{font-size:34px;line-height:42px}
  .kit{padding:32px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .book,.buy{animation:none}
  .buybar{animation:none}
  .cta,.thumbs button,.flip-nav button{transition:none}
}

/* products (not books): a picture card instead of a book cover, and colour swatches */
.book.obj{width:clamp(220px,62vw,360px);border-radius:18px;transform:rotate(-3deg);animation:rise3 .9s cubic-bezier(.2,.7,.2,1) both}
.book.obj::before{display:none}
@keyframes rise3{from{opacity:0;transform:translateY(26px) rotate(-1deg)}to{opacity:1;transform:translateY(0) rotate(-3deg)}}
.colours{display:flex;gap:12px;flex-wrap:wrap}
.colours .sw{width:40px;height:40px;border-radius:50%;border:1px solid var(--hairline);background:var(--sw);cursor:pointer;padding:0;box-shadow:inset 0 0 0 3px var(--surface)}
.colours .sw[aria-pressed="true"]{outline:2px solid var(--text);outline-offset:2px}

/* coming soon: the sign-up form */
.soon-form .notify{display:grid;gap:10px;background:var(--sunken);border-radius:8px;padding:24px 18px}
.soon-form input[type=email]{min-height:48px;padding:0 14px;border:1px solid var(--hairline);border-radius:4px;font:inherit;background:#fff}
.soon-form .btn{min-height:52px;border:0;border-radius:4px;background:var(--action);color:var(--on-action);font:500 15px var(--sans);cursor:pointer}
.soon-form .caption{font-size:13px;color:var(--muted);line-height:20px}
.soon-form .strong-s{font-weight:500}
