/* Ron Iddon — v2
   Keeps the original open-book design (same book images, Georgia type, logo)
   and adds: book-opening intro, page-turn transitions, running heads,
   drop caps, larger covers and a mobile layout. */

:root {
  --ink: #231918;
  --ink-soft: #4a3a2c;
  --muted: #86704f;
  --leather: #6e2b1c;
  --leather-dark: #3f160e;
  --gold: #c7a25a;
  --paper: #f1e5c6;
  --paper-edge: #e3d2a6;
  --wood: #8b6b45;
  --desk: #e9e0cc;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif;
  --z-intro: 50;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--desk);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .25  0 0 0 0 .12  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    radial-gradient(ellipse 90% 70% at 50% 18%, #f8f3e8 0%, rgba(248,243,232,0) 70%);
  background-attachment: scroll, fixed;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s ease; }
a:hover { color: var(--leather); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--leather); outline-offset: 3px; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { font-weight: normal; text-wrap: balance; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 60;
  background: var(--ink); color: #fff; padding: 8px 14px; font-family: var(--sans); font-size: 14px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------------------------------------------------------------- Header */
.site-header {
  height: 100px;
}
.site-header .inner {
  width: 940px; margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.logo { display: block; padding-left: 80px; }
.logo img { display: block; width: 165px; height: 90px; }
.site-nav ul { list-style: none; margin: 0; padding: 30px 55px 0 0; display: flex; }
.site-nav a {
  display: block; position: relative;
  font-family: var(--sans); font-weight: bold; font-size: 15px;
  padding: 5px 14px; text-decoration: none; color: var(--ink);
}
.site-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 1px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--leather); }

/* ---------------------------------------------------------- The book
   The original book images, with their white surround cut away, so the book
   sits on the page with a real shadow. */
.book-frame {
  width: 900px; margin: 0 auto;
  filter: drop-shadow(0 1px 1px rgba(60,30,12,.28)) drop-shadow(0 18px 22px rgba(70,42,18,.28)) drop-shadow(0 40px 50px rgba(70,42,18,.16));
}
.book-top, .book-bottom { background: no-repeat center; }
.book-top { height: 39px; background-image: url(../img/book-top.png?v=3); margin-top: -6px; }
.book-bottom { height: 45px; background-image: url(../img/book-bottom.png?v=3); }
.book {
  background: url(../img/ron_04.jpg) -21px 0 repeat-y;
  min-height: 420px;
}
.book-inner { padding: 4px 0 18px; }

.spread { display: grid; grid-template-columns: 1fr 1fr; }
.spread + .spread, .spread + .plate, .plate + .spread { margin-top: 30px; }
.page-l { padding: 0 34px 0 99px; }
.page-r { padding: 0 101px 0 34px; }
.full { padding: 0 100px; }

/* Running heads, like the top of a printed page */
.running-head {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 22px; padding-top: 4px;
}
.page-r .running-head { text-align: right; }

.book h1 { font-size: 28px; line-height: 1.3; margin: 0 0 18px; letter-spacing: -.005em; }
.book h2 { font-size: 21px; line-height: 1.3; margin: 0 0 6px; }
.book h3 { font-size: 17px; line-height: 1.35; margin: 0 0 4px; font-style: italic; }
.book p, .book li { text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.book .kicker {
  display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.lede { font-size: 17.5px; line-height: 1.6; }
.small { font-size: 14px; line-height: 1.55; }
.muted { color: var(--ink-soft); }

.dropcap::first-letter {
  float: left; font-size: 3.5em; line-height: .82; padding: 6px 8px 0 0; color: var(--leather);
}

/* The original site's own "* * *" section break, kept and styled */
.stars { text-align: center; letter-spacing: .5em; color: var(--muted); margin: 1.4em 0; }

.facts { list-style: none; margin: 0 0 1em; padding: 0; font-size: 14.5px; }
.facts li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px dotted rgba(110,43,28,.25); }
.facts li:last-child { border-bottom: 0; }
.facts b { font-weight: normal; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding-top: 2px; }

.plain-list { margin: 0 0 1em; padding-left: 1.1em; }
.plain-list li { margin-bottom: .45em; }

/* Photos */
.photo-frame {
  margin: 0 0 14px; background: #fff; padding: 8px 8px 10px;
  box-shadow: 0 1px 2px rgba(63,22,14,.18), 0 10px 22px -10px rgba(63,22,14,.45);
  transform: rotate(1.2deg);
}
.photo-frame img { display: block; width: 100%; }
.photo-frame figcaption { font-size: 12.5px; font-style: italic; color: var(--ink-soft); padding-top: 7px; text-align: center; }
.plate { padding: 0 100px; }
.plate figure { margin: 0; }
.plate img { display: block; width: 100%; box-shadow: 0 10px 24px -14px rgba(63,22,14,.6); }
.plate figcaption { font-size: 13px; font-style: italic; color: var(--ink-soft); text-align: center; margin-top: 8px; }
.about-ron-link { display: block; text-align: right; }
.about-ron-link img { transition: transform .25s ease; }
.about-ron-link:hover img { transform: translateX(4px); }

/* Pull quotes */
.quote { margin: 0 0 1.6em; text-align: center; font-style: italic; font-size: 17px; line-height: 1.55; }
.quote cite { display: block; font-style: normal; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* Book covers */
.cover {
  display: block; position: relative; border-radius: 1px 3px 3px 1px;
  box-shadow: 0 1px 1px rgba(0,0,0,.2), 0 12px 20px -8px rgba(63,22,14,.55);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.cover img { display: block; width: 100%; border-radius: inherit; }
.cover::before { /* spine crease */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 9px; border-radius: 1px 0 0 1px;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.18) 45%, rgba(0,0,0,0));
}
a.cover:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 1px 1px rgba(0,0,0,.2), 0 20px 28px -10px rgba(63,22,14,.6); }
.covers { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; margin: 6px 0 10px; }
.covers figure { margin: 0; }
.covers figcaption { font-size: 13px; line-height: 1.35; margin-top: 10px; font-style: italic; }

.book-entry .cover { width: 220px; margin: 4px auto 22px; }
.book-meta { list-style: none; padding: 0; margin: 0 0 18px; text-align: center; font-size: 13px; color: var(--ink-soft); }
.book-meta li { display: inline; }
.book-meta li + li::before { content: " · "; color: var(--muted); }

/* Buttons — a bookplate rather than a web button */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--leather);
  border: 1px solid var(--leather); padding: 10px 18px 9px; background: rgba(255,255,255,.35);
  transition: background-color .2s ease, color .2s ease, transform .1s ease;
}
.btn:hover { background: var(--leather); color: #fbf3df; }
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--leather); color: #fbf3df; }
.btn-solid:hover { background: var(--leather-dark); color: #fbf3df; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 1em; }
.btn-row.start { justify-content: flex-start; }
.text-link { font-style: italic; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0 0 1.4em; font-size: 18px; }
.contact-list li { padding: 10px 0; border-bottom: 1px dotted rgba(110,43,28,.3); }
.contact-list span { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- Footer */
.colophon {
  text-align: center; font-size: 13px; color: var(--muted); padding: 34px 20px 40px;
}
.colophon a { color: var(--muted); }

/* ------------------------------------------------- Page turn between pages
   On desktop, clicking a link turns the right-hand page over (js/site.js).
   The new page's words then settle onto the blank spread. */

.book-inner { animation: words-in .5s ease-out both; }
@keyframes words-in { from { opacity: 0; } to { opacity: 1; } }

.turn-layer {
  position: fixed; inset: 0; z-index: 45; pointer-events: none;
  perspective: 2400px;
}
.turn-blank, .turn-leaf, .turn-face {
  position: absolute; background-image: url(../img/ron_04.jpg); background-repeat: repeat-y;
}
.turn-blank::after { /* shadow the lifting leaf casts on the page below */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(50,28,10,.42), rgba(50,28,10,.12) 35%, rgba(50,28,10,0) 70%);
  opacity: 0; animation: cast .8s ease-in-out forwards;
}
@keyframes cast { 0% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: 0; } }

.turn-leaf {
  background: none; transform-origin: left center; transform-style: preserve-3d;
  animation: turn .8s cubic-bezier(.55,.06,.3,1) forwards;
}
@keyframes turn {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(-180deg); }
}
.turn-face { inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.turn-face::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.turn-front::after { /* darkens as it lifts toward the reader */
  background: linear-gradient(90deg, rgba(40,22,8,.35), rgba(40,22,8,.05) 60%, rgba(255,250,235,.12));
  opacity: 0; animation: lift-shade .8s ease-in forwards;
}
.turn-back { transform: rotateY(180deg); }
.turn-back::after { /* light catches the underside, then it settles flat */
  background: linear-gradient(270deg, rgba(40,22,8,.3), rgba(40,22,8,0) 55%);
  animation: land-shade .8s ease-out forwards;
}
@keyframes lift-shade { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 1; } }
@keyframes land-shade { 0%, 50% { opacity: 1; } 100% { opacity: 0; } }
.turn-front .book { position: absolute; margin: 0; animation: none; }
.turn-front .book-inner { animation: none; }

/* --------------------------------------------------- Book-opening intro */
.intro { display: none; }
.show-intro .intro {
  display: flex; position: fixed; inset: 0; z-index: var(--z-intro);
  align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, #f8f3e8 0%, var(--desk) 75%, #ddd1b6 100%);
  transition: opacity .8s ease, transform .8s ease;
}
.show-intro body { overflow: hidden; }
.intro.is-done { opacity: 0; transform: scale(1.05); pointer-events: none; }

.intro-stage { perspective: 2200px; }
.intro-book {
  --w: min(300px, 40vw);
  position: relative; width: var(--w); height: calc(var(--w) * 1.42);
  transform-style: preserve-3d;
  transition: transform 1.6s cubic-bezier(.6,.05,.25,1);
  filter: drop-shadow(0 26px 30px rgba(63,22,14,.35));
}
.intro.is-opening .intro-book { transform: translateX(calc(var(--w) / 2)); }

.intro-page {
  position: absolute; inset: 0; border-radius: 2px 4px 4px 2px;
  background: linear-gradient(90deg, #d9c69a 0, var(--paper) 7%, #f6ecd2 60%, var(--paper-edge) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 12%; box-shadow: inset 6px 0 14px -6px rgba(63,22,14,.45);
}
.intro-page p { margin: 0; }
.intro-page .ip-name { font-style: italic; font-size: calc(var(--w) * .1); margin-bottom: 6%; }
.intro-page .ip-line { font-size: calc(var(--w) * .052); line-height: 1.5; color: var(--ink-soft); }
.intro-page .ip-stars { color: var(--muted); letter-spacing: .5em; margin: 8% 0 0; font-size: calc(var(--w) * .045); }

.intro-cover {
  position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d;
  transition: transform 1.6s cubic-bezier(.6,.05,.25,1);
}
.intro.is-opening .intro-cover { transform: rotateY(-178deg); }
.cover-front, .cover-back {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 3px 6px 6px 3px;
}
.cover-front {
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    linear-gradient(90deg, rgba(0,0,0,.45) 0, rgba(255,255,255,.08) 3.5%, rgba(0,0,0,.25) 6%, rgba(0,0,0,0) 10%),
    radial-gradient(ellipse at 35% 25%, #8c3b26 0%, #6a2617 45%, #3f160e 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.4);
}
.cover-front::before, .cover-front::after {
  content: ""; position: absolute; border: 1px solid rgba(199,162,90,.75); pointer-events: none;
}
.cover-front::before { inset: 6% 6% 6% 10%; }
.cover-front::after { inset: 7.5% 7.5% 7.5% 11.5%; border-color: rgba(199,162,90,.4); }
.cover-front img {
  width: 62%; margin-left: 4%;
  filter: brightness(0) saturate(100%) invert(73%) sepia(28%) saturate(640%) hue-rotate(2deg) brightness(95%) drop-shadow(0 1px 0 rgba(0,0,0,.5));
}
.cover-front .cf-sub {
  margin: 0 0 0 4%; color: var(--gold); font-size: calc(var(--w) * .042); letter-spacing: .28em; text-transform: uppercase; opacity: .9;
}
.cover-back {
  transform: rotateY(180deg);
  background: linear-gradient(270deg, rgba(0,0,0,.25) 0, rgba(0,0,0,0) 8%), #e8d9b5;
  box-shadow: inset 0 0 0 10px #5a2015;
}
.intro-skip {
  position: absolute; right: 22px; bottom: 22px;
  font-family: var(--serif); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  background: none; border: 1px solid rgba(35,25,24,.35); color: var(--ink); padding: 8px 14px; cursor: pointer;
}
.intro-skip:hover { border-color: var(--ink); }

/* ------------------------------------------------------------ 404 */
.notfound { text-align: center; padding-top: 40px; }

/* -------------------------------------------------------- Mobile & tablet
   Below 1000px the fixed 940px book images can't fit, so the book becomes
   a single paper page with the same colours, edges and type. */
@media (max-width: 999px) {
  .site-header { height: auto; }
  .book-frame { width: auto; filter: none; }
  .book-top, .book-bottom { display: none; }
  .site-header .inner { width: auto; flex-direction: column; align-items: center; padding: 14px 12px 8px; }
  .logo { padding-left: 0; }
  .logo img { width: 132px; height: 72px; }
  .site-nav ul { padding: 8px 0 0; flex-wrap: wrap; justify-content: center; }
  .site-nav a { font-size: 14px; padding: 6px 10px; }
  .site-nav a::after { left: 10px; right: 10px; }

  .book {
    background: var(--paper);
    background-image: linear-gradient(90deg, rgba(63,22,14,.16), rgba(63,22,14,0) 18px), linear-gradient(#f5ead0, var(--paper));
    margin: 18px 12px 0; border-left: 9px solid var(--wood); border-right: 3px solid var(--paper-edge);
    box-shadow: 0 0 0 1px var(--leather-dark), 0 2px 3px rgba(60,30,12,.25), 0 18px 30px -10px rgba(70,42,18,.45);
    min-height: 0;
  }
  .book-inner { width: auto; padding: 26px 22px 34px; }
  .spread { grid-template-columns: 1fr; }
  .page-l, .page-r, .full, .plate { padding: 0; }
  .page-r { margin-top: 26px; }
  .page-r .running-head { display: none; }
  .book h1 { font-size: 25px; }
  .photo-frame { max-width: 360px; margin-left: auto; margin-right: auto; }
  .colophon { padding-top: 28px; }
}
@media (max-width: 420px) {
  .covers { gap: 20px 16px; }
  .book-entry .cover { width: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .site-nav, .site-footer, .intro, .btn { display: none !important; }
  .book { background: none; }
}

/* ------------------------------------------------------ Sample reader */
.reader {
  padding: 10px 16px 30px; text-align: center;
}
.reader-head h1 { font-size: 28px; margin: 4px 0 6px; }
.reader-head .kicker { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.reader-head p { margin: 0 0 14px; }
.reader-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 4px; margin-bottom: 22px; }
.reader button {
  font-family: var(--serif); font-size: 14px; color: var(--ink); background: none; cursor: pointer;
  border: 1px solid transparent; padding: 6px 12px; transition: border-color .2s ease, color .2s ease;
}
.reader button:hover { border-color: rgba(110,43,28,.4); color: var(--leather); }
.reader button[aria-pressed="true"] { border-color: var(--leather); color: var(--leather); }
.reader button:disabled { opacity: .35; cursor: default; border-color: transparent; color: var(--ink); }

.reader-stage { outline: none; perspective: 2600px; display: flex; justify-content: center; }
.rb {
  --w: min(1000px, 94vw, calc((100dvh - 330px) * 4 / 3));
  position: relative; width: var(--w); aspect-ratio: 4 / 3; max-height: none;
  display: grid; grid-template-columns: 1fr 1fr;
  filter: drop-shadow(0 22px 26px rgba(63,22,14,.28));
}
.rb::after { /* spine */
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 60px; transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(0,0,0,0), rgba(63,22,14,.16) 46%, rgba(63,22,14,.28) 50%, rgba(63,22,14,.16) 54%, rgba(0,0,0,0));
  pointer-events: none; z-index: 3;
}
.rb-page, .rb-face { background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.rb-page img, .rb-face img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rb-left { border-radius: 3px 0 0 3px; }
.rb-right { border-radius: 0 3px 3px 0; }
.rb-page.is-empty { background: transparent; }

.rb { perspective: 2400px; }
.rb-flip {
  position: absolute; top: 0; bottom: 0; width: 50%; z-index: 4; transform-style: preserve-3d;
}
.rb-flip.fwd { left: 50%; transform-origin: left center; animation: rb-fwd .8s cubic-bezier(.55,.06,.3,1) forwards; }
.rb-flip.back { left: 0; transform-origin: right center; animation: rb-back .8s cubic-bezier(.55,.06,.3,1) forwards; }
@keyframes rb-fwd { from { transform: rotateY(0); } to { transform: rotateY(-180deg); } }
@keyframes rb-back { from { transform: rotateY(0); } to { transform: rotateY(180deg); } }
.rb-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.rb-face.back-face { transform: rotateY(180deg); }
.rb-face::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
/* Front darkens as it lifts; the underside starts shaded and settles flat. */
.fwd .rb-face:not(.back-face)::after { background: linear-gradient(90deg, rgba(40,22,8,.3), rgba(40,22,8,0) 60%); animation: lift-shade .8s ease-in forwards; }
.fwd .back-face::after { background: linear-gradient(270deg, rgba(40,22,8,.28), rgba(40,22,8,0) 55%); animation: land-shade .8s ease-out forwards; }
.back .rb-face:not(.back-face)::after { background: linear-gradient(270deg, rgba(40,22,8,.3), rgba(40,22,8,0) 60%); animation: lift-shade .8s ease-in forwards; }
.back .back-face::after { background: linear-gradient(90deg, rgba(40,22,8,.28), rgba(40,22,8,0) 55%); animation: land-shade .8s ease-out forwards; }
/* Shadow the leaf casts on the page it uncovers */
.rb-cast { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; pointer-events: none; opacity: 0; animation: cast .8s ease-in-out forwards; }
.rb-cast.fwd-cast { left: 50%; background: linear-gradient(90deg, rgba(50,28,10,.38), rgba(50,28,10,.1) 35%, rgba(50,28,10,0) 70%); }
.rb-cast.back-cast { left: 0; background: linear-gradient(270deg, rgba(50,28,10,.38), rgba(50,28,10,.1) 35%, rgba(50,28,10,0) 70%); }

.title-page { font-family: var(--serif); text-transform: uppercase; line-height: 1.15; color: #2a2220; padding: 10%; }
.title-page .tp-small { font-size: calc(var(--w) * .011); letter-spacing: .2em; margin: 0; }
.title-page .tp-big { font-size: calc(var(--w) * .032); letter-spacing: .03em; margin: .1em 0; }
.title-page .tp-orn { color: #8a7a6a; margin: 1.2em 0; letter-spacing: .4em; }

.reader-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 20px 0 10px; }
.reader-controls span { font-size: 13px; letter-spacing: .1em; color: var(--muted); min-width: 120px; }
.reader-buy { margin: 18px 0 0; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }

@media (max-width: 759px) {
  .rb { --w: min(94vw, calc((100dvh - 300px) * 2 / 3)); grid-template-columns: 1fr; aspect-ratio: 2 / 3; }
  .rb::after, .rb-left { display: none; }
  .rb-right { border-radius: 3px; }
  .title-page .tp-small { font-size: calc(var(--w) * .024); }
  .title-page .tp-big { font-size: calc(var(--w) * .07); }
  .rb-right.slide-in { animation: slide-in .35s ease; }
}
@keyframes slide-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.site-header.plain { height: 110px; }
.reader-head h1 { margin-top: 0; }
.rb { min-width: 0; }
@media (max-width: 999px) { .site-header.plain { height: auto; } }
.book-meta li:last-child { display: block; margin-top: 2px; }
.book-meta li:last-child::before { content: none; }
