/* Glenis Graham storyworld editorial system */
:root{
 --ink:#061421;--ink-2:#0b1d2c;--ink-3:#112a3e;--ivory:#f6edd9;--paper:#eee3ce;--gold:#d0a85d;--gold-2:#f0cf88;
 --muted:#b9c2c8;--line:rgba(208,168,93,.36);--serif:"Iowan Old Style","Baskerville","Times New Roman",serif;
 --sans:"Avenir Next","Helvetica Neue",Arial,sans-serif;--shadow:0 30px 80px rgba(0,0,0,.42)
}
*{box-sizing:border-box}html{scroll-behavior:smooth;background:var(--ink)}
body{margin:0;background:var(--ink);color:var(--ivory);font-family:var(--sans);line-height:1.55;letter-spacing:.003em}
a{color:inherit}.container{width:min(1450px,calc(100% - 80px));margin-inline:auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(5,17,28,.94);border-bottom:1px solid var(--line);backdrop-filter:blur(18px)}
.nav{min-height:82px;display:flex;align-items:center;gap:38px}.brand{margin-right:auto;font-family:var(--serif);font-size:2rem;font-weight:500;line-height:.84}
.brand small{display:block;margin-top:8px;color:var(--gold);font:700 .62rem/1 var(--sans);letter-spacing:.32em;text-transform:uppercase}
.nav-links{display:flex;gap:40px}.nav-links a{font-family:var(--serif);font-size:1.03rem;color:var(--ivory)}
.nav-links a:hover{color:var(--gold-2)}.theme-toggle{border:0;border-left:1px solid var(--line);border-radius:0;background:transparent;color:var(--ivory)}
.header-cta{margin-left:2px}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 26px;border:1px solid var(--gold);border-radius:0;background:transparent;color:var(--ivory);font:700 .72rem/1 var(--sans);letter-spacing:.1em;text-transform:uppercase}
.btn:hover,.btn:focus-visible{background:var(--gold);color:var(--ink);transform:translateY(-1px)}.btn.primary{background:linear-gradient(135deg,var(--gold-2),var(--gold));color:var(--ink);border-color:var(--gold-2)}
.btn.blue{border-color:var(--gold);background:transparent;color:var(--ivory)}.eyebrow{color:var(--gold);font-size:.64rem;letter-spacing:.22em;text-transform:uppercase;font-weight:700}
.story-hero{position:relative;min-height:650px;overflow:hidden;border-bottom:1px solid var(--gold);background:var(--ink) url("/images/storyworld/greywake-hero-map.png") center/cover no-repeat}
.story-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,17,28,.98) 0%,rgba(5,17,28,.91) 34%,rgba(5,17,28,.2) 70%,rgba(5,17,28,.48) 100%)}
.story-hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,.95fr) minmax(520px,1.05fr);min-height:650px;align-items:center;gap:70px;padding-block:55px}
.story-copy{max-width:670px}.story-copy>h1{margin:0 0 24px;font-family:var(--serif);font-size:clamp(4.5rem,6.3vw,7.6rem);font-weight:400;letter-spacing:-.055em;line-height:.86}
.gold-rule{width:265px;height:1px;margin:24px 0;background:linear-gradient(90deg,var(--gold),var(--gold-2),transparent);position:relative}
.gold-rule:after{content:"✦";position:absolute;top:-12px;left:170px;color:var(--gold);font-size:18px}
.feature-title{margin:0;color:var(--gold-2);font-family:var(--serif);font-size:2.25rem;line-height:1.05}.feature-kicker{margin:2px 0 12px;font-family:var(--serif);font-style:italic;font-size:1.18rem}
.feature-deck{max-width:530px;margin:0 0 18px;font-family:var(--serif);font-size:1.02rem;line-height:1.45}.story-actions{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.language-line{margin:16px 0 10px;font-size:.59rem;letter-spacing:.2em;text-transform:uppercase}.audio-link{display:inline-flex;gap:11px;align-items:center;padding-bottom:5px;border-bottom:1px solid var(--gold);font-family:var(--serif)}
.story-art{position:relative;min-height:550px;display:flex;align-items:center;justify-content:center}.hero-book{position:relative;width:min(345px,42vw);filter:drop-shadow(0 35px 35px rgba(0,0,0,.55));transform:perspective(1100px) rotateY(-5deg)}
.hero-book:before{content:"";position:absolute;inset:1.5% -4% 1.5% 98%;background:linear-gradient(90deg,#d8c9a7,#fff7db,#9c8b6d);transform:skewY(-2deg);z-index:-1;box-shadow:8px 8px 14px rgba(0,0,0,.4)}
 .hero-book img{width:100%;height:auto;display:block;border:2px solid rgba(240,207,136,.6)}.story-quote{position:absolute;right:0;top:110px;width:150px;text-align:center;color:var(--gold-2);font-family:var(--serif);font-style:italic}
.story-spines{position:absolute;right:0;bottom:38px;display:flex;gap:7px}.story-spines span{display:flex;align-items:center;justify-content:center;width:56px;height:235px;border:1px solid var(--gold);background:linear-gradient(90deg,#17130f,#33271a,#110e0c);color:var(--gold);font-size:.63rem;letter-spacing:.13em;text-transform:uppercase;writing-mode:vertical-rl}
.library-rail{background:#061421;border-bottom:1px solid var(--line);padding:26px 0}.rail-grid{display:grid;grid-template-columns:280px repeat(3,1fr);gap:34px;align-items:center}
.rail-heading h2{margin:0 0 15px;font-family:var(--serif);font-size:2.9rem;font-weight:400}.rail-heading p{font-size:.57rem;letter-spacing:.17em;text-transform:uppercase;color:var(--muted)}
.rail-book{display:grid;grid-template-columns:86px 1fr;gap:22px;min-height:165px;padding-left:25px;border-left:1px solid var(--line);align-items:center}.rail-book img{width:86px;aspect-ratio:2/3;object-fit:cover;box-shadow:0 16px 25px rgba(0,0,0,.35)}
.rail-book .eyebrow{margin:0 0 7px}.rail-book h3{margin:0 0 7px;font-family:var(--serif);font-size:1.14rem;line-height:1.05}.rail-book p{margin:0 0 9px;color:var(--muted);font-family:var(--serif);font-size:.82rem;line-height:1.25}.rail-book a{color:var(--gold-2);font-size:.73rem;border-bottom:1px solid var(--gold)}
.section{padding:100px 0;background:var(--ink);color:var(--ivory)}.section-soft{background:#0a1b29;color:var(--ivory)}.section h2{margin:0;font-family:var(--serif);font-weight:400;font-size:clamp(2.8rem,5vw,5rem);line-height:.95}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:45px;padding-bottom:18px;border-bottom:1px solid var(--line)}.section-lead{color:var(--muted);font-family:var(--serif);font-size:1.15rem}
.book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:42px 28px}.featured-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.book-card{display:flex;flex-direction:column;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}.book-cover{position:relative;aspect-ratio:2/3;overflow:hidden;background:#102235;box-shadow:0 25px 45px rgba(0,0,0,.35);transition:.25s}
.book-cover:after{content:"";position:absolute;inset:0;border:1px solid rgba(240,207,136,.35)}.book-cover img{width:100%;height:100%;object-fit:cover}.book-card:hover .book-cover{transform:translateY(-6px)}
.book-body{display:flex;flex:1;flex-direction:column;gap:9px;padding:22px 0}.badge{align-self:flex-start;background:transparent;border:0;border-radius:0;padding:0;color:var(--gold);font-size:.62rem;letter-spacing:.15em;text-transform:uppercase}
.book-body h3{margin:0;font-family:var(--serif);font-size:1.35rem;line-height:1.1}.book-series{margin:0;color:var(--muted);font-size:.68rem;letter-spacing:.1em;text-transform:uppercase}
.book-description{margin:0;color:#cbd1d3;font-family:var(--serif);font-size:.92rem;line-height:1.45}.format-note,.language-summary{color:#87949e;font-size:.7rem}.book-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:auto}
.book-actions .btn{padding:8px 9px;min-height:40px;font-size:.6rem}.collection-grid,.path-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line)}
.collection-card,.path-card{min-height:270px;padding:38px;background:#0d2132;border:0;border-radius:0}.collection-card h3,.path-card h3{font-family:var(--serif);font-weight:400;font-size:1.8rem}.collection-card p,.path-card p{color:var(--muted);font-family:var(--serif)}
.audiobook-section{background:#091926}.audio-card{background:transparent;border-radius:0;border-color:var(--line)}.catalog-section{background:#061421}.catalog-tools{background:#0b1e2e;border:1px solid var(--line);border-radius:0;padding:25px}.search-box input{border-radius:0;background:#071522;border-color:var(--line);color:var(--ivory)}
.filter-btn{border-radius:0}.filter-btn.active{background:var(--gold);color:var(--ink)}.journal-preview{background:#0c2030}.article-feature{border-radius:0;border-color:var(--line);background:linear-gradient(115deg,rgba(208,168,93,.12),transparent)}
.about-section{background:#eee3ce;color:#17202a}.about-section .eyebrow{color:#72561f}.publishing-stat{border-radius:0}.footer{background:#030b12;border-top:1px solid var(--line)}
/* cover-driven book worlds */
.book-story{--story-image:none;background:#061421}.book-story .site-header{background:rgba(4,13,22,.94)}
.book-detail{position:relative;isolation:isolate;min-height:800px;padding:60px 0 100px;background:#061421;color:var(--ivory);overflow:hidden}
.book-detail:before{content:"";position:absolute;z-index:-2;inset:0;background-image:linear-gradient(90deg,rgba(4,15,25,.99) 0%,rgba(4,15,25,.9) 48%,rgba(4,15,25,.76) 100%),var(--story-image);background-size:cover,60%;background-position:center,right center;background-repeat:no-repeat;filter:saturate(.75)}
.book-detail:after{content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(circle at 70% 24%,rgba(208,168,93,.17),transparent 28%),linear-gradient(180deg,transparent 55%,#061421)}
.back-link{display:inline-block;margin-bottom:35px;color:var(--gold);font-size:.7rem;letter-spacing:.12em;text-transform:uppercase}.detail-grid{display:grid;grid-template-columns:minmax(270px,390px) 1fr;gap:80px;align-items:start}
.detail-cover{position:sticky;top:125px}.detail-cover img{width:100%;box-shadow:0 35px 70px rgba(0,0,0,.55);border:1px solid rgba(240,207,136,.5)}
.detail-content{max-width:800px;padding:25px 0}.detail-content h1{margin:0 0 24px;font-family:var(--serif);font-size:clamp(3.5rem,6vw,6.8rem);font-weight:400;line-height:.86;letter-spacing:-.04em;color:var(--ivory)}
.detail-meta{display:flex;gap:10px;flex-wrap:wrap}.detail-intro{font-family:var(--serif);font-size:1.5rem;color:var(--gold-2);line-height:1.25}
.detail-section{margin-top:38px;padding-top:28px;border-top:1px solid var(--line)}.detail-section h2{font-family:var(--serif);font-size:2rem;font-weight:400;color:var(--ivory)}.detail-section p{font-family:var(--serif);font-size:1.06rem;line-height:1.7;color:#d2d7d9}
.audio-callout{border-radius:0;border-color:var(--line);background:rgba(9,30,46,.82)}.language-link,.availability-chip{border-radius:0}
html[data-theme="light"] body{background:var(--ink);color:var(--ivory)}html[data-theme="light"] .site-header{background:rgba(5,17,28,.94);color:var(--ivory)}
html[data-theme="light"] .section,html[data-theme="light"] .section-soft,html[data-theme="light"] .catalog-section{background:#0a1b29;color:var(--ivory)}
html[data-theme="light"] .about-section{background:#eee3ce;color:#17202a}
@media(max-width:1120px){.container{width:min(100% - 40px,1450px)}.nav-links{display:none}.story-hero-grid{grid-template-columns:1fr 420px;gap:30px}.story-spines,.story-quote{display:none}.rail-grid{grid-template-columns:220px repeat(3,1fr)}.rail-book{grid-template-columns:70px 1fr;gap:13px}.rail-book img{width:70px}.book-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){.header-cta{display:none}.story-hero{min-height:auto}.story-hero-grid{grid-template-columns:1fr;padding:70px 0}.story-copy>h1{font-size:clamp(3.8rem,14vw,6.2rem)}.story-art{min-height:430px}.hero-book{width:min(320px,68vw)}.rail-grid{grid-template-columns:1fr}.rail-book{border-left:0;border-top:1px solid var(--line);padding:22px 0;grid-template-columns:80px 1fr}.library-rail{padding:35px 0}.book-grid,.featured-grid{grid-template-columns:repeat(2,1fr)}.collection-grid,.path-grid{grid-template-columns:1fr}.detail-grid{grid-template-columns:1fr;gap:45px}.detail-cover{position:relative;top:auto;max-width:320px;margin:auto}.book-detail:before{background-size:cover,cover;opacity:.75}}
@media(max-width:520px){.container{width:min(100% - 26px,1450px)}.brand{font-size:1.55rem}.story-copy>h1{font-size:3.7rem}.feature-title{font-size:1.75rem}.story-art{min-height:360px}.book-grid,.featured-grid{grid-template-columns:1fr}.book-card{max-width:350px;margin:auto}.section{padding:70px 0}.book-actions{grid-template-columns:1fr}.detail-content h1{font-size:3.4rem}}

/* Preserve true cover proportions while cropping retailer padding only on known padded-square assets. */
.cover-padded-square .detail-cover{aspect-ratio:2/3;overflow:hidden;background:#061421}
.cover-padded-square .detail-cover img{width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;transform:scale(1.065)}
.book-cover:has(img[src*="question-everything-angels-demons-ai-and-the-architecture-of-belief"]),
.book-cover:has(img[src*="rebuilding-black-wall-street-for-the-modern-era"]){aspect-ratio:2/3}
.book-cover:has(img[src*="question-everything-angels-demons-ai-and-the-architecture-of-belief"]) img,
.book-cover:has(img[src*="rebuilding-black-wall-street-for-the-modern-era"]) img,
.rail-book:has(img[src*="rebuilding-black-wall-street-for-the-modern-era"]) img{width:100%;height:100%;object-fit:cover;object-position:center;transform:scale(1.065)}


/* Visual QC: preserve artwork, remove phantom grid cells, and lock accessible theme contrast. */
section[id],.library-rail[id]{scroll-margin-top:100px}
.book-cover img{object-fit:contain;object-position:center;background:#0a1b29;transform:none}
.audio-cover img{object-fit:contain;object-position:center}
.rail-book{min-width:0}.rail-book>div{min-width:0}.rail-book h3,.rail-book p{overflow-wrap:anywhere}
.rail-book img{width:86px;height:129px;aspect-ratio:auto;object-fit:contain;object-position:center;background:#0a1b29}
.book-cover:has(img[src*="question-everything-angels-demons-ai-and-the-architecture-of-belief"]) img,
.book-cover:has(img[src*="rebuilding-black-wall-street-for-the-modern-era"]) img,
.rail-book:has(img[src*="rebuilding-black-wall-street-for-the-modern-era"]) img{object-fit:cover;object-position:center;transform:none;background:#061421}
.path-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:transparent}
.path-card{min-width:0;background:#0d2132;color:var(--ivory)}.path-card span{color:var(--gold-2)}.path-card p{color:#cbd1d3}
.btn.primary,.book-actions .btn.primary,.audio-actions .btn.primary,.path-card .btn.primary{background:linear-gradient(135deg,#f0cf88,#d0a85d)!important;border-color:#f0cf88!important;color:#07131f!important;text-shadow:none!important}
.btn.primary:hover,.btn.primary:focus-visible{background:#f6dda6!important;color:#061421!important}
.btn.blue,.book-actions .btn:not(.primary),.audio-actions .btn:not(.primary),.path-card .btn.blue{background:transparent!important;border-color:#d0a85d!important;color:#f6edd9!important}
.btn.blue:hover,.btn.blue:focus-visible,.book-actions .btn:not(.primary):hover,.audio-actions .btn:not(.primary):hover{background:#d0a85d!important;color:#061421!important}
.badge,.book-series,.eyebrow,.text-link{color:#d0a85d!important}.theme-toggle{color:#f6edd9!important}
html[data-theme="light"] .btn.primary,html[data-theme="light"] .book-actions .btn.primary,html[data-theme="light"] .audio-actions .btn.primary{background:linear-gradient(135deg,#f0cf88,#d0a85d)!important;color:#07131f!important}
html[data-theme="light"] .btn.blue,html[data-theme="light"] .book-actions .btn:not(.primary),html[data-theme="light"] .audio-actions .btn:not(.primary){color:#f6edd9!important;border-color:#d0a85d!important}
html[data-theme="light"] .path-card{background:#0d2132;color:#f6edd9}html[data-theme="light"] .path-card p{color:#cbd1d3}
@media(max-width:820px){.path-grid{grid-template-columns:1fr}.rail-book img{width:70px;height:105px}}


/* Keep the padded-square Rebuilding cover inside the Library rail's portrait frame. */
.rail-book:has(img[src*="rebuilding-black-wall-street-for-the-modern-era"]) img{
 width:86px;height:129px;max-width:86px;max-height:129px;object-fit:cover;object-position:center;transform:none
}
@media(max-width:1120px){
 .rail-book:has(img[src*="rebuilding-black-wall-street-for-the-modern-era"]) img{
  width:70px;height:105px;max-width:70px;max-height:105px
 }
}
