:root {
  --read-bg: #090909;
  --read-panel: #151310;
  --read-paper: #e9e1d4;
  --read-muted: #aaa399;
  --read-gold: #c3a36b;
  --read-line: rgba(211, 189, 149, .22);
}

body.read-page { background: var(--read-bg); color: var(--read-paper); }
.read-page main { overflow: hidden; }
.read-page .eyebrow { color: var(--read-gold); }
.read-page .button { margin: 0; }
.read-page .button.secondary { background: transparent; color: var(--read-paper); border-color: rgba(233, 225, 212, .4); }
.read-page .button.secondary:hover { border-color: var(--read-gold); color: var(--read-gold); }

.read-hero {
  position: relative;
  isolation: isolate;
  min-height: min(560px, 72svh);
  display: flex;
  align-items: flex-end;
  padding: 155px max(5vw, 24px) 72px;
  background: #12110f;
}
.read-hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: url('images/tome_1_tob_back.jpg') center 46% / cover; opacity: .45; }
.read-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #090909 1%, rgba(9, 9, 9, .8) 45%, rgba(9, 9, 9, .12)), linear-gradient(0deg, #090909, transparent 45%); }
.read-hero-inner { width: min(1200px, 100%); margin: 0 auto; }
.read-hero h1 { max-width: 900px; margin: 12px 0 20px; font: 600 clamp(3.5rem, 8vw, 7rem)/.9 var(--serif); letter-spacing: -.045em; }
.read-hero-inner > p:not(.eyebrow) { max-width: 560px; margin: 0 0 30px; color: #d3cbc0; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.hero-scroll { display: inline-flex; align-items: center; gap: 12px; color: var(--read-gold); text-decoration: none; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; }
.hero-scroll i { width: 18px; height: 18px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-4px); }

.current-book { padding: 100px max(5vw, 24px); background: radial-gradient(circle at 28% 45%, rgba(142, 105, 58, .13), transparent 40%), var(--read-bg); scroll-margin-top: 84px; }
.current-book-inner { width: min(1200px, 100%); margin: auto; display: grid; grid-template-columns: minmax(240px, .72fr) 1fr; align-items: center; gap: clamp(42px, 8vw, 130px); }
.current-cover { position: relative; width: 100%; max-width: 440px; padding: 12px; border: 1px solid var(--read-line); background: #14110e; box-shadow: 0 32px 80px rgba(0, 0, 0, .48); }
.current-cover img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.current-cover span { position: absolute; left: 26px; bottom: 28px; padding: 8px 12px; background: #b99b66; color: #111; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.current-status { color: var(--read-gold); font-size: .78rem; text-transform: uppercase; letter-spacing: .15em; }
.current-status span { padding: 0 8px; opacity: .5; }
.current-book-copy h2 { margin: 18px 0 24px; font: 600 clamp(3.1rem, 5.5vw, 5.6rem)/.92 var(--serif); letter-spacing: -.035em; }
.current-description { max-width: 620px; color: #bdb5a9; font-size: 1.08rem; line-height: 1.75; }
.current-book-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }
.read-page .read-primary { background: #bb9b64; border-color: #bb9b64; color: #111; }
.read-page .read-primary:hover { background: #e0c389; border-color: #e0c389; }
.read-details { color: var(--read-gold); text-decoration-thickness: 1px; text-underline-offset: 5px; }

.free-parts, .next-stories { padding: 110px max(5vw, 24px); }
.free-parts { border-block: 1px solid var(--read-line); background: #100f0d; }
.next-stories { background: #0b0b0a; }
.library-heading { width: min(1200px, 100%); margin: 0 auto 42px; }
.library-heading h2, .reading-cta h2 { margin: 10px 0 18px; font: 600 clamp(2.8rem, 5vw, 5rem)/.95 var(--serif); letter-spacing: -.03em; }
.library-heading > p:last-child { max-width: 740px; color: var(--read-muted); line-height: 1.65; }
.free-parts-grid { width: min(1200px, 100%); margin: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.free-parts-grid a { min-height: 170px; display: flex; flex-direction: column; align-items: flex-start; padding: 22px; background: #1b1813; border: 1px solid var(--read-line); color: var(--read-paper); text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.free-parts-grid a:hover, .free-parts-grid a:focus-visible { background: #252016; border-color: var(--read-gold); transform: translateY(-3px); }
.free-parts-grid span { color: var(--read-gold); letter-spacing: .14em; font-size: .8rem; }
.free-parts-grid strong { margin: auto 0 14px; font: 500 clamp(1.55rem, 2.2vw, 2.2rem)/1 var(--serif); }
.free-parts-grid small { color: var(--read-muted); letter-spacing: .1em; text-transform: uppercase; }

.next-stories-grid { width: min(1200px, 100%); margin: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.next-story { min-width: 0; display: grid; grid-template-columns: 142px minmax(0, 1fr); gap: 22px; padding: 18px; background: #151310; border: 1px solid var(--read-line); }
.next-story img { display: block; width: 100%; height: 210px; object-fit: cover; filter: saturate(.7) brightness(.76); }
.next-story > div { align-self: center; }
.next-story span { color: var(--read-gold); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }
.next-story h3 { margin: 10px 0; font: 500 clamp(1.5rem, 2.3vw, 2.25rem)/1 var(--serif); }
.next-story p { margin: 0 0 18px; color: var(--read-muted); font-size: .9rem; line-height: 1.55; }
.next-story a { color: var(--read-gold); text-underline-offset: 4px; }
.next-story.compact { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 12px; }
.next-story.compact img { height: 105px; }
.next-story.compact h3 { margin-bottom: 0; font-size: 1.45rem; }

.reading-cta { min-height: 410px; display: grid; place-items: center; padding: 80px 24px; border-top: 1px solid var(--read-line); text-align: center; background: linear-gradient(rgba(7, 7, 7, .78), rgba(7, 7, 7, .9)), url('images/pergament.png') center / cover; }
.reading-cta > div { max-width: 700px; }
.reading-cta p:not(.eyebrow) { color: #c2bbb0; line-height: 1.7; }
.reading-cta .button { margin-top: 20px; }

@media (max-width: 900px) {
  .current-book-inner { grid-template-columns: minmax(220px, .8fr) 1fr; gap: 42px; }
  .free-parts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-stories-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .read-hero { min-height: 480px; padding: 130px 20px 60px; }
  .read-hero h1 { font-size: clamp(3.3rem, 13vw, 5rem); }
  .current-book, .free-parts, .next-stories { padding: 72px 20px; }
  .current-book-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 42px; }
  .current-cover { max-width: 290px; align-self: center; }
  .current-book-copy h2 { font-size: clamp(3.2rem, 11vw, 4.5rem); }
  .current-book-actions { flex-direction: column; }
  .current-book-actions .button { width: 100%; text-align: center; }
  .free-parts-grid { gap: 10px; }
  .free-parts-grid a { min-height: 145px; padding: 16px; }
  .free-parts-grid strong { font-size: 1.5rem; }
  .next-story { grid-template-columns: 100px minmax(0, 1fr); gap: 15px; padding: 12px; }
  .next-story img { height: 160px; }
  .next-story h3 { font-size: 1.55rem; }
  .next-story.compact { grid-template-columns: 64px minmax(0, 1fr); }
  .next-story.compact img { height: 90px; }
}
@media (max-width: 380px) { .free-parts-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .free-parts-grid a { transition: none; } }
