body:has(.book-reader) {
  background:
    radial-gradient(ellipse at 2% 10%, #c5a88045, transparent 42%),
    radial-gradient(ellipse at 99% 35%, #e9c99840, transparent 38%),
    #F2EBDD;
  color:#0B192C;
}
body:has(.book-reader) > header {background:#0B192C;border-bottom:1px solid #C5A880}
body:has(.book-reader) > main {max-width:1220px;padding-inline:clamp(20px,4vw,54px)}
.book-reader {
  --ink:#0B192C;--ivory:#F2EBDD;--gold:#C5A880;--gold-ink:#796142;
  font:400 clamp(21px,2vw,24px)/1.6 "Cormorant Garamond",Georgia,serif;
}
.book-reader .kicker,.book-reader .fine,.book-reader .progress,.book-position,.book-reader .contents a,.reader-status {
  font-family:Inter,Arial,sans-serif;
}
.book-reader .kicker {font-size:10px;letter-spacing:.17em;color:var(--gold-ink)}
.book-reader .reader-intro {max-width:820px;margin:0 auto 54px;text-align:center}
.book-reader .reader-intro h1 {font-size:clamp(52px,8.7vw,108px);line-height:.95;letter-spacing:-.045em;margin:18px 0 24px}
.book-reader .lead {font-size:clamp(23px,2.7vw,32px);margin:0 auto 24px;line-height:1.6}
.reader-tools {display:flex;justify-content:center;flex-wrap:wrap;gap:10px}
.reader-tools button {background:transparent;color:var(--ink);border:1px solid #0b192c44;min-height:44px;padding:9px 14px}
.reader-status {min-height:20px;font-size:12px;overflow-wrap:anywhere}
.book-topline {position:fixed;inset:0 0 auto;height:2px;background:#c5a88026;z-index:50}
.book-topline span {display:block;height:100%;width:100%;transform:scaleX(0);transform-origin:left;background:#C5A880;transition:transform .16s linear}
.book-controls {display:flex;align-items:center;justify-content:space-between;gap:9px;position:sticky;top:2px;z-index:10;background:#f2ebddf5;border-block:1px solid #c5a88075;padding:6px 0;margin:0 0 35px;backdrop-filter:blur(10px)}
.book-controls button {border:0;background:transparent;color:var(--ink);padding:0 9px;min-height:44px;font:500 clamp(19px,2vw,25px)/1.1 "Cormorant Garamond",Georgia,serif;white-space:nowrap;transition:color .2s}
.book-controls button span {color:var(--gold-ink);display:inline-block;transition:transform .2s}
.book-controls button:disabled {opacity:.38;cursor:default}
.book-controls button:first-child:not(:disabled):hover span {transform:translateX(-3px)}
.book-controls button:last-child:not(:disabled):hover span {transform:translateX(3px)}
.book-position {font-size:11px;letter-spacing:.04em;text-align:center;line-height:1.35}
.book-reader .chapters {grid-template-columns:minmax(135px,190px) minmax(0,1fr);gap:clamp(24px,4vw,64px)}
.book-reader .contents {top:85px}
.book-reader .contents a {padding:8px 0;text-decoration:none;border-bottom:1px solid #c5a88077;font-size:12px;line-height:1.5}
.book-reader .contents a[aria-current="location"] {font-weight:600;border-bottom-color:var(--ink)}
.book-reader .chapter {scroll-margin-top:83px;border-color:var(--gold);padding:25px 0 58px;animation:none}
.book-reader .chapter h2 {font-size:clamp(39px,5.6vw,68px);line-height:1.05;margin:14px 0 25px}
.book-reader .chapter-prose p {line-height:1.6}
.book-reader .chapter-prose > p:first-child::first-letter {float:left;font-size:3.55em;line-height:.74;margin:.08em .1em 0 0;color:var(--gold);text-shadow:0 1px #796142; font-weight:600}
.book-reader .phrase {border-color:var(--gold)}
.book-reader .festive-banner {margin:30px 0 36px}
.book-reader .festive-banner img {border:1px solid var(--gold);box-shadow:0 10px 36px #c5a88035}
.book-reader .preview-notice {padding:16px 0;border-top:1px solid #c5a88077}
.scenario {margin:35px 0;border:1px solid #c5a880a0}
.scenario-art {padding:24px;background:var(--ink);color:var(--ivory);text-align:center}
.scenario-art svg {width:100%;max-width:330px;fill:none;stroke:currentColor;stroke-width:1.1;stroke-linejoin:round;stroke-linecap:round}
.scenario-art .kicker {display:block;color:var(--gold)}
.scenario-copy {padding:clamp(18px,3vw,30px)}
.sliding-panel {padding:0;border-top:1px solid #c5a8809c}
.sliding-panel summary {list-style:none;padding:12px 0;display:flex;justify-content:space-between;gap:14px;min-height:44px}
.sliding-panel summary::-webkit-details-marker {display:none}
.sliding-panel summary span {transition:transform .4s}
.sliding-panel[open] summary span {transform:rotate(45deg)}
.slide-reveal {overflow:hidden}
.sliding-panel[open] .slide-reveal {animation:panelReveal .4s ease both}
@keyframes panelReveal {from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}
.dinner-scene {margin:45px 0;animation:none}
.dinner-scene h3 {font-size:clamp(34px,4.5vw,53px);margin:10px 0 22px}
.flip-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.flip-card {display:grid;perspective:1000px;min-width:0;touch-action:manipulation;background:transparent;border:0;padding:0;text-align:left;color:var(--ink);font:inherit}
.flip-inner {display:grid;transform-style:preserve-3d;transition:transform .6s cubic-bezier(.22,.71,.28,1);min-height:330px}
.flip-card[aria-expanded="true"] .flip-inner {transform:rotateY(180deg)}
.flip-face {grid-area:1/1;display:flex;flex-direction:column;gap:10px;padding:18px;min-width:0;border:1px solid #c5a880b8;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:linear-gradient(160deg,#faf4e8,var(--ivory));font-size:20px;line-height:1.4}
.flip-face strong {font-size:clamp(25px,3vw,32px);font-weight:600;line-height:1.06}
.flip-art {display:block;border-bottom:1px solid #c5a88070;color:var(--gold-ink)}
.flip-art svg {display:block;width:100%;height:74px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.flip-back {transform:rotateY(180deg);background:radial-gradient(ellipse at 100% 0,#c5a88023,transparent 60%),var(--ink);color:var(--ivory);border-color:var(--gold);box-shadow:inset 0 0 14px #c5a88026}
.flip-back .kicker {color:var(--gold)}
.flip-cue {display:flex;justify-content:space-between;gap:8px;margin-top:auto;padding-top:11px;border-top:1px solid #c5a88085;font:11px/1.5 Inter,sans-serif}
.book-reader :is(button,a,summary):focus-visible {outline:2px solid var(--gold-ink);outline-offset:4px}
@media(min-width:1160px) {
  .scenario {display:grid;grid-template-columns:.75fr 1.25fr}
  .scenario-art {display:flex;flex-direction:column;justify-content:center}
}
@media(max-width:870px) {
  .flip-grid {grid-template-columns:1fr}
  .flip-inner {min-height:240px}
}
@media(max-width:740px) {
  .book-reader .reader-intro {margin-bottom:35px}
  .book-reader .chapters {grid-template-columns:1fr;gap:22px}
  .book-reader .contents {position:static;display:flex;flex-wrap:wrap;column-gap:16px}
  .book-reader .contents .progress,.book-reader .contents .kicker {flex-basis:100%;margin:3px 0}
  .book-reader .contents a {margin:0}
  .book-position {max-width:132px}
}
@media(prefers-reduced-motion:reduce) {
  .book-reader * {animation:none!important;transition:none!important}
}
@media print {
  body:has(.book-reader) {background:white}
  .book-reader {font-size:14pt}
  .book-topline,.book-controls,.reader-tools,.preview-notice {display:none}
  .book-reader .chapters,.flip-grid,.flip-card,.flip-inner,.flip-face {display:block}
  .flip-inner {min-height:0;transform:none!important}
  .flip-face {transform:none;backface-visibility:visible;margin:8px 0;background:white;color:black;break-inside:avoid}
  .flip-back .kicker,.book-reader .kicker {color:black}
  .flip-art,.flip-cue {display:none}
}

/* The reading edition uses a single, narrow editorial column. */
body:has(.book-reader)::before {
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  box-shadow:inset 0 0 100px #c5a88026;
  z-index:20;
}
body:has(.book-reader) > header {
  max-width:700px;
  margin:auto;
  padding:40px 24px 20px;
  flex-direction:column;
  gap:8px;
  background:transparent;
  color:#0B192C;
  border:0;
  font-size:12px;
}
body:has(.book-reader) > header a:first-child {text-transform:uppercase;letter-spacing:.15em}
body:has(.book-reader) > header a:last-child {color:#565E69;align-self:flex-start}
body:has(.book-reader) > main {width:100%;max-width:700px;padding:18px 24px 100px}
.book-reader {font:400 1rem/1.65 Inter,Arial,sans-serif}
.book-reader .reader-intro {margin:0 0 35px;text-align:left}
.book-reader .reader-intro h1 {
  font-size:clamp(42px,7vw,58px);
  line-height:1.05;
  letter-spacing:-.035em;
}
.book-reader .lead {font:400 clamp(22px,4vw,29px)/1.4 "Cormorant Garamond",Georgia,serif}
.reader-tools {justify-content:flex-start}
.reader-tools button {text-transform:uppercase;letter-spacing:.08em;font-size:11px;transition:background .3s,color .3s}
.reader-tools button:hover {background:var(--ink);color:var(--ivory)}
.book-reader .chapters {display:block}
.book-reader .contents {position:static;display:flex;flex-wrap:wrap;gap:5px 14px;margin-bottom:24px}
.book-reader .contents :is(.kicker,.progress) {flex-basis:100%;margin:0}
.book-reader .contents a {margin:0}
.book-controls {margin-bottom:18px}
.book-controls button {font:400 13px/1.3 Inter,Arial,sans-serif}
.book-controls button:not(:disabled):hover {color:var(--gold-ink)}
.book-reader .chapter h2 {font-size:clamp(39px,7vw,46px);line-height:1.15}
.book-reader .chapter-prose p {font-size:.97rem;line-height:1.65;margin:0 0 24px}
.book-reader .chapter-prose > p:first-child::first-letter {
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:75px;
  font-weight:400;
  line-height:.65;
  margin:8px 12px 0 0;
}
.book-reader .phrase {padding:0 0 0 24px;margin:34px 0;font-style:italic}
.book-reader .phrase small {font-style:normal;color:#565E69}
.flip-grid {grid-template-columns:1fr;gap:22px}
.flip-card {perspective:1200px}
.flip-inner {min-height:180px;transition-timing-function:cubic-bezier(.23,1,.32,1)}
.flip-face {
  padding:clamp(18px,4vw,30px);
  font:400 .91rem/1.6 Inter,Arial,sans-serif;
}
.flip-face strong {font:400 clamp(23px,4vw,30px)/1.2 "Cormorant Garamond",Georgia,serif}
.flip-art svg {height:49px}
.flip-front .flip-cue {color:var(--gold-ink)}
.flip-back .flip-cue {color:var(--gold)}
@media print {
  body:has(.book-reader)::before {display:none}
  body:has(.book-reader) > main {max-width:none;padding:0}
  .book-reader .contents {display:none}
  .book-reader .chapter[hidden] {display:block}
}

.book-cover,.book-plate {
  position:relative;
  margin-inline:50%;
  translate:-50% 0;
}
.book-cover {
  width:min(94vw,1120px);
  margin-block:0 30px;
  display:grid;
  align-items:end;
  overflow:hidden;
  isolation:isolate;
  border-radius:12px;
  background:#0B192C;
  color:#F2EBDD;
  box-shadow:0 18px 48px #0b192c23;
}
.book-cover > img,.book-cover::after,.book-cover-copy {grid-area:1/1}
.book-cover > img {
  display:block;
  width:100%;
  height:clamp(390px,57vw,640px);
  object-fit:cover;
  object-position:53% 48%;
}
.book-cover::after {
  content:"";
  align-self:stretch;
  background:linear-gradient(180deg,transparent 23%,#0b192c60 51%,#080f1bee 100%);
}
.book-cover-copy {position:relative;z-index:1;padding:clamp(22px,5vw,64px)}
.book-reader .book-cover .kicker {color:#ead2ad;margin:0 0 12px}
.book-reader .book-cover h1 {font-size:clamp(44px,7.4vw,98px);line-height:.93;max-width:10em;margin:0}
.book-reader .book-cover .lead {color:#F2EBDD;margin:18px 0 0}
.book-plate {width:min(92vw,820px);margin-block:0 34px}
.book-plate img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1.72;
  object-fit:cover;
  object-position:center;
  border-radius:8px;
  background:#0B192C;
  box-shadow:0 12px 32px #0b192c16;
}
.book-plate--bonjour img {object-position:center 64%}
.book-plate--boutique img {object-position:center 56%}
.book-plate figcaption {
  font:400 10px/1.5 Inter,Arial,sans-serif;
  text-transform:uppercase;
  letter-spacing:.15em;
  color:var(--gold-ink);
  padding:12px 0;
  border-bottom:1px solid #c5a88080;
}
.boutique-scene {border-radius:8px;background:#faf4e8}
.flip-face {border-radius:8px;overflow:hidden}
.flip-front {padding:0;gap:0}
.flip-photo {display:block;overflow:hidden;background:#0B192C}
.flip-photo img {
  display:block;
  width:100%;
  height:clamp(128px,25vw,195px);
  object-fit:cover;
  object-position:center 58%;
}
.flip-card:nth-child(2) .flip-photo img {object-position:center 53%}
.flip-card:nth-child(3) .flip-photo img {object-position:center 64%}
.flip-front-copy {display:grid;gap:9px;padding:clamp(18px,4vw,30px)}
@media print {
  .book-cover,.book-plate {width:auto;margin-inline:0;translate:none}
  .book-cover,.book-plate img {box-shadow:none}
  .book-cover > img,.book-cover::after,.flip-photo {display:none}
  .book-cover,.book-reader .book-cover :is(.kicker,.lead) {background:white;color:black}
  .book-cover-copy {padding:0}
}
