:root{
  --bg:#0b1022;
  --panel:#0f1630;
  --ink:#e8ecff;
  --muted:#a8b2d9;
  --line:rgba(255,255,255,.10);
  --accent:#3a6ff7;
  --accent-2:#6aa0ff;
  --shadow:0 16px 40px rgba(0,0,0,.42);
  --r-md:14px;
  --r-lg:18px;
  --maxw:1200px;
}
html,body{
  background:var(--bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
.container{max-width:var(--maxw);margin-inline:auto;padding-inline:20px}
.section-h{font-weight:700;letter-spacing:.2px;line-height:1.15;margin:0 0 10px}
.section-sub{color:var(--muted);margin:0 0 18px}
.bullets{margin:12px 0 0;padding-left:18px}
.bullets li{margin:.35rem 0;color:var(--ink)}

#book{padding:72px 0}
#book .book-grid{
  display:grid;grid-template-columns:1.1fr .9fr;gap:24px;align-items:start
}
#book .section-h{font-size:clamp(24px,3.2vw,36px)}
#book .section-sub{font-size:clamp(14px,2.2vw,16px)}
/* bullets */
#book .bullets li{position:relative;list-style:none;padding-left:18px}
#book .bullets li::before{
  content:"";position:absolute;left:0;top:.55em;width:8px;height:8px;border-radius:50%;
  background:linear-gradient(180deg,var(--accent),var(--accent-2))
}
/* Responsive */
@media (max-width: 900px){
  #book .book-grid{grid-template-columns:1fr;gap:18px}
}
.panel{
  background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.00));
  border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow);
  padding:18px
}
.slider-track{
  display:flex;gap:12px;overflow:hidden;scroll-behavior:smooth
}

.page-frame{
  width:100%;height:100%;background:linear-gradient(180deg,#0f1937,#0b1228);
  display:grid;place-items:center;border-radius:inherit;overflow:hidden;position:relative
}
.page-frame::after{
  content:"";position:absolute;inset:0;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05), inset 0 60px 120px rgba(0,0,0,.22)
}
.page-img{
  width:100%;height:100%;object-fit:cover;
  image-rendering:auto;filter:contrast(1.02) saturate(1.02)
}
.page-img.page--doc{object-fit:contain;background:#0c1329}
.ctrl{
  position:absolute;inset:auto 10px 10px 10px;display:flex;justify-content:space-between;gap:10px
}

.author-note,.about-book{
  margin:28px 0 0;padding:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.02),transparent);
  border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow)
}
.author-note h3,.about-book h3{margin:0 0 10px;font-size:clamp(18px,2.6vw,22px)}
.author-note p,.about-book p{color:var(--ink);line-height:1.7;margin:10px 0}
.hr-strong{
  height:2px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);
  border:none;margin:14px 0 6px
}
.note-quote{
  margin:14px 0;padding:12px 14px;border-left:3px solid var(--accent);
  background:rgba(58,111,247,.08);border-radius:10px;color:var(--ink)
}
.small{color:var(--muted);font-size:.95em}
.about-split{display:grid;grid-template-columns:1fr 1fr;gap:18px}
@media (max-width: 900px){ .about-split{grid-template-columns:1fr} }
/* Ensure Author’s Note and About the Book share the grid row equally */
.book-grid > .author-note,
.book-grid > .about-book {
  margin-top: 8px;
}

/* Force them into equal columns like intro + slider */
#book .book-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr; /* equal width */
  gap: 10px;
  align-items: start;
}
.author-note p,
.about-book p {
  text-align: justify;
  text-justify: inter-word; /* better word spacing */
}
