@font-face { font-family: 'Reader Display'; src: url('/serif-regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Reader Sans'; src: url('/sans.woff2') format('woff2'); font-display: swap; }
:root { color-scheme: dark; background: #0c0921; color: #eee7f6; font-family: 'Reader Sans', Arial, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 15% 12%, #59337935, transparent 55%), radial-gradient(ellipse at 95% 75%, #28445d35, transparent 55%); }
a { color: #ebca95; text-underline-offset: 4px; }
a:hover { color: #fff0d5; }
a:focus-visible { outline: 2px solid #ffda96; outline-offset: 5px; }
.reader-skip { position: fixed; left: 12px; top: -100px; z-index: 5; padding: 12px; background: #ecd1a1; color: #1c1227; }
.reader-skip:focus { top: 12px; }
.reader-navigation { max-width: 1040px; margin: 0 auto; padding: 26px 35px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid #b99bdd30; font-size: 11px; line-height: 1.8; }
.reader-navigation a { text-decoration: none; }
main { max-width: 870px; margin-inline: auto; padding: 0 35px; }
.sample-intro { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 42px; align-items: center; padding: 58px 0; }
.sample-intro img { display: block; width: 100%; height: auto; box-shadow: 9px 16px 35px #0006; }
.eyebrow { font-size: 8px; line-height: 1.8; letter-spacing: 1.8px; color: #e1bd89; margin: 0 0 16px; }
h1, h2, h3 { font-family: 'Reader Display', Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(35px, 4.8vw, 51px); line-height: 1.05; margin: 0 0 13px; }
.subtitle { font-family: 'Reader Display', Georgia, serif; font-size: 24px; line-height: 1.3; margin: 0 0 12px; color: #dbc9ec; }
.author { font-size: 11px; color: #c5b9d2; }
.reading-time { font-size: 10px; color: #aea3bc; margin-top: 20px; }
.reader-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 24px; font-size: 11px; line-height: 1.6; }
.reader-button { display: inline-block; padding: 13px 19px; background: linear-gradient(115deg, #f7deaf, #d7b17c); color: #211529; text-decoration: none; }
.reader-button:hover { color: #211529; background: #ffe8be; }
.chapter-paper { color-scheme: light; background: #faf7ef; color: #2c2431; padding: 46px clamp(26px, 6vw, 70px) 50px; box-shadow: 0 10px 50px #02010935; font-family: Georgia, 'Times New Roman', serif; font-size: 18px; line-height: 1.85; overflow-wrap: break-word; scroll-margin-top: 20px; }
.chapter-paper:focus { outline: none; }
.chapter-paper h2 { font-size: 39px; line-height: 1.12; color: #3b2849; margin: 0 0 30px; }
.chapter-paper h2:has(+ h3) { margin-bottom: 12px; }
.chapter-paper h3 { font-size: 30px; color: #634a70; line-height: 1.15; margin: 0 0 32px; }
.chapter-paper p { margin: 0 0 1em; }
.chapter-paper p:last-child { margin-bottom: 0; }
.sample-end { padding: 48px 0; }
.sample-end h2 { font-size: 43px; margin: 0 0 18px; line-height: 1.1; }
.sample-end > p:not(.eyebrow) { max-width: 620px; color: #c5b9d2; font-size: 13px; line-height: 1.85; }
.sample-end > p.availability { font-size: 10px; color: #aea3bc; margin-top: 18px; }
.back-link { display: inline-block; font-size: 11px; margin-top: 21px; }
footer { max-width: 1040px; margin-inline: auto; border-top: 1px solid #b99bdd30; padding: 25px 35px; color: #9f93af; font-size: 9px; line-height: 1.8; }
@media (max-width: 580px) {
  .reader-navigation { padding: 19px 22px; font-size: 10px; }
  .reader-navigation > a:last-child { max-width: 125px; text-align: right; }
  main { padding: 0 20px; }
  .sample-intro { grid-template-columns: 92px minmax(0, 1fr); gap: 22px; padding: 35px 0; align-items: start; }
  .sample-intro .eyebrow { font-size: 6px; letter-spacing: 1.2px; }
  h1 { font-size: 37px; }
  .subtitle { font-size: 21px; }
  .reading-time { margin-top: 14px; line-height: 1.7; }
  .reader-actions { gap: 17px; font-size: 10px; }
  .sample-intro .reader-actions { flex-direction: column; align-items: flex-start; }
  .reader-button { padding: 12px 14px; }
  .chapter-paper { padding: 30px 23px 34px; font-size: 17px; line-height: 1.85; }
  .chapter-paper h2 { font-size: 34px; }
  .chapter-paper h3 { font-size: 28px; }
  .sample-end { padding: 36px 0; }
  .sample-end h2 { font-size: 39px; }
  footer { padding-inline: 22px; }
}
@media print {
  :root, body { background: white; color: black; }
  .reader-navigation, .reader-skip, .reader-actions, .back-link, .availability { display: none; }
  main { max-width: none; padding: 0; }
  .sample-intro { padding: 15px 0 30px; grid-template-columns: 85px 1fr; }
  .sample-intro .eyebrow, .subtitle, .author, .reading-time { color: #444; }
  .sample-intro img, .chapter-paper { box-shadow: none; }
  .chapter-paper { background: white; padding: 0; font-size: 12pt; line-height: 1.6; }
  .chapter-paper h2, .chapter-paper h3 { color: black; }
  .chapter-paper p { orphans: 2; widows: 2; }
  .sample-end { padding-bottom: 15px; }
  .sample-end > p:not(.eyebrow), footer { color: #444; }
}
