/* ViralEbooks Comics: shared styles for /comics pages. */
*{box-sizing:border-box}body{margin:0;font-family:Manrope,Arial,sans-serif;background:#faf3e7;color:#2d2118}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}button{font:inherit}button,a{cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #c4502e;outline-offset:5px}
.cmx-site{min-height:100vh;display:flex;flex-direction:column}
header{padding:28px 5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #2d211825;gap:20px}
.skip{position:fixed;top:-100px;left:16px;z-index:99;background:#c4502e;color:#fff;padding:12px}.skip:focus{top:10px}
.wordmark{display:flex;align-items:center;gap:10px;font-size:25px;font-weight:800;letter-spacing:-1px}.wordmark svg{width:28px;height:32px}
@media(max-width:860px){header{padding:23px 6%}}
.cmx-main{flex:1}
.cmx-label{font-size:11px;text-transform:uppercase;letter-spacing:.15em;color:#c4502e}
.cmx-crumb{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#8a7663;padding:26px 5% 0}
.cmx-crumb a{text-decoration:underline;text-underline-offset:3px}
.cmx-crumb a:hover{color:#c4502e}
.cmx-hero{padding:48px 5% 30px;display:grid;grid-template-columns:1.2fr 1fr;gap:40px;align-items:end}
.cmx-hero h1{font-size:64px;line-height:1.04;letter-spacing:-3px;font-weight:800;margin:16px 0 0}
.cmx-hero h1 em{font-family:Lora,Georgia,serif;font-weight:500;font-style:italic;color:#c4502e;letter-spacing:-2px}
.cmx-hero p{font-size:16px;line-height:1.7;max-width:420px;margin:0}
.cmx-section{padding:55px 5%;border-top:1px solid #2d211820}
.cmx-section-head{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:30px}
.cmx-section-head h2{font-size:40px;line-height:1.1;letter-spacing:-2px;margin:14px 0 0}
.cmx-section-head p{font-size:14px;line-height:1.7;max-width:380px;margin:0}
/* Shelf cards: categories on /comics, future shelves slot in as more cards. */
.shelf-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
.shelf-card{display:flex;gap:26px;align-items:center;background:#fffaf1;border:1px solid #2d211820;padding:28px;transition:transform .9s cubic-bezier(.2,.7,.2,1),box-shadow .9s}
.shelf-card:hover{transform:translateY(-4px);box-shadow:0 18px 34px #2d211814}
.shelf-card .shelf-covers{display:flex;flex:none}
.shelf-card .shelf-covers img{width:74px;border-radius:2px;box-shadow:0 8px 16px #2d211830;background:#f7e8d4}
.shelf-card .shelf-covers img+img{margin-left:-34px}
.shelf-card h3{font-size:26px;letter-spacing:-1px;margin:0 0 6px}
.shelf-card p{font-size:13px;line-height:1.6;margin:0;color:#4a3a2c}
.shelf-card .shelf-go{display:inline-block;margin-top:12px;font-size:13px;font-weight:700;color:#c4502e}
.shelf-card.shelf-soon{background:transparent;border-style:dashed;align-items:flex-start}
.shelf-card.shelf-soon:hover{transform:none;box-shadow:none}
.shelf-card.shelf-soon h3{font-size:20px}
/* Title cards: one per comic, used on /comics/biographies and the homepage. */
.title-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.title-card{display:block;background:#fffaf1;border:1px solid #2d211820;padding:20px 20px 22px;transition:transform .9s cubic-bezier(.2,.7,.2,1),box-shadow .9s}
.title-card:hover{transform:translateY(-5px);box-shadow:0 20px 36px #2d211816}
.title-card .tc-frame{overflow:hidden;border-radius:2px;background:#f7e8d4}
.title-card img{display:block;width:100%;aspect-ratio:2/3;object-fit:cover;transform:rotate(0) scale(1.001);transition:transform 1.15s cubic-bezier(.2,.7,.2,1)}
.title-card:hover img{transform:scale(1.03)}
.title-card .tc-name{display:block;font-size:19px;font-weight:800;letter-spacing:-.5px;margin:16px 0 3px}
.title-card .tc-sub{display:block;font-family:Lora,Georgia,serif;font-style:italic;font-size:13px;color:#8a7663}
.title-card .tc-meta{display:flex;justify-content:space-between;align-items:center;margin-top:12px;font-size:12px}
.title-card .tc-price{font-weight:800}
.title-card .tc-open{color:#c4502e;font-weight:700}
/* Title page. */
.title-hero{padding:40px 5% 20px;display:grid;grid-template-columns:300px 1fr;gap:50px;align-items:start}
.title-hero .th-cover{margin:0;transform:rotate(-3deg);box-shadow:14px 18px 34px #2d211830;border-radius:2px;overflow:hidden;animation:cmx-float 7s ease-in-out infinite}
.title-hero .th-cover img{display:block;width:100%}
@keyframes cmx-float{0%,100%{transform:rotate(-3deg) translateY(0)}50%{transform:rotate(-2deg) translateY(-10px)}}
.title-hero h1{font-size:52px;line-height:1.05;letter-spacing:-2.5px;font-weight:800;margin:14px 0 4px}
.title-hero .th-tagline{font-family:Lora,Georgia,serif;font-style:italic;font-size:20px;color:#c4502e;margin:0 0 18px}
.title-hero .th-blurb{font-size:15px;line-height:1.75;max-width:520px;margin:0 0 8px}
.th-facts{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:9px;font-size:13px;color:#4a3a2c}
.th-facts li{padding-left:22px;position:relative}
.th-facts li:before{content:'✷';position:absolute;left:0;color:#c4502e;font-size:11px;top:2px}
.th-buy{display:flex;align-items:center;gap:22px;margin-top:26px;flex-wrap:wrap}
.th-buy .buy-btn{display:inline-flex;align-items:center;gap:26px;background:#c4502e;color:#fff;border:0;border-radius:3px;padding:17px 24px;font-size:14px;font-weight:700}
.th-buy .buy-btn:hover{background:#a03e22}
.th-buy .buy-btn[aria-disabled=true]{opacity:.55;pointer-events:none}
.th-buy .th-price-note{font-size:11px;color:#8a7663;max-width:230px;line-height:1.6}
/* Flipbook preview, same feel as the homepage sample reader. */
.cmx-preview{padding:20px 5% 60px}
.cmx-preview .sample-heading{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:26px}
.cmx-preview h2{font-size:34px;letter-spacing:-1.5px;margin:12px 0 0}
.cmx-preview .sample-intro{font-size:13px;max-width:360px;line-height:1.7;margin:0;color:#4a3a2c}
.sample-hint{font-size:12px;color:#8a7663;text-align:center;margin:0 0 12px}
.sample-stage{position:relative;width:min(430px,88vw);margin:0 auto;perspective:1600px;cursor:pointer;border-radius:2px}
.sample-stage img{display:block;width:100%;border-radius:2px;box-shadow:0 22px 44px #2d211826;user-select:none}
.sample-top{position:absolute;inset:0;transform-origin:left center;backface-visibility:hidden}
.sample-navigation{display:flex;align-items:center;justify-content:center;gap:22px;margin-top:20px}
.sample-navigation button{width:46px;height:46px;border-radius:50%;border:1px solid #2d211830;background:#fffaf1;font-size:16px;color:#2d2118}
.sample-navigation button:disabled{opacity:.35;cursor:default}
.sample-caption{text-align:center;font-size:12px;color:#8a7663;min-width:130px}
.sample-caption .sample-label{display:block;font-weight:700;color:#2d2118;font-size:13px}
.sample-bottom{text-align:center;margin-top:26px}
.sample-disclaimer{font-size:11px;color:#8a7663;max-width:520px;margin:8px auto 0;line-height:1.6}
/* Reveal-on-scroll, same cadence as the homepage. */
.motion-ready{opacity:0;transform:translateY(26px);transition:opacity 1s ease,transform 1.05s cubic-bezier(.2,.7,.2,1)}
.motion-ready.in-view{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.motion-ready{opacity:1;transform:none;transition:none}.title-hero .th-cover{animation:none}html{scroll-behavior:auto}}
html{scroll-behavior:smooth}
/* Footer mirrors the homepage. */
.site-footer{display:flex;justify-content:space-between;padding:32px 5%;font-size:11px;gap:25px;border-top:1px solid #2d211825}
.site-footer .brand{font-size:25px;font-weight:800;letter-spacing:-1px}
.site-footer .brand i{font-family:Georgia;font-weight:400}
.site-footer nav{display:flex;font-size:11px;flex-wrap:wrap;gap:16px;align-items:center}
.site-footer nav a:hover{color:#c4502e}
@media(max-width:900px){.cmx-hero{grid-template-columns:1fr;gap:14px}.cmx-hero h1{font-size:44px;letter-spacing:-2px}.title-grid{grid-template-columns:repeat(2,1fr);gap:16px}.shelf-grid{grid-template-columns:1fr}.title-hero{grid-template-columns:1fr;gap:26px}.title-hero .th-cover{max-width:240px}.title-hero h1{font-size:38px}.cmx-section-head,.cmx-preview .sample-heading{display:block}.cmx-section-head p,.cmx-preview .sample-intro{margin-top:10px}.cmx-hero{padding:36px 6% 20px}.cmx-section,.cmx-preview{padding-left:6%;padding-right:6%}.cmx-crumb{padding-left:6%;padding-right:6%}.site-footer{flex-direction:column;padding:26px 6%}}

/* Keep the category card within narrow phone viewports. */
@media(max-width:480px){.shelf-card{flex-wrap:wrap}.shelf-card>div{min-width:0}}
