@charset "UTF-8";
:root {
  color-scheme: light;
  --paper: #f6f2e9;
  --surface: #fbf8f1;
  --ink: #302e29;
  --muted: #756f63;
  --line: #dcd5c7;
  --accent: #8b4030;
  --wash: #eee8dc;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body::before { position: fixed; inset: 0; pointer-events: none; z-index: -1; content: ""; opacity: .25; background-image: radial-gradient(#a89d85 .5px, transparent .5px); background-size: 5px 5px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #dfd2bc; }
button:disabled { opacity: .55; cursor: wait; }
p, h1, h2 { overflow-wrap: anywhere; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; background: var(--surface); padding: 14px; }
.skip-link:focus { top: 12px; }
.site-header { max-width: 1160px; height: 94px; padding: 0 48px; margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 13px; font: 23px var(--serif); letter-spacing: .14em; white-space: nowrap; }
.seal { width: 32px; height: 36px; display: grid; place-items: center; background: var(--accent); color: var(--paper); font-size: 23px; border-radius: 2px; letter-spacing: 0; }
.brand-note { font: 11px var(--sans); letter-spacing: .2em; color: var(--muted); margin-left: 7px; }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 13px; }
.site-nav a { display: inline-flex; min-height: 44px; align-items: center; }
.site-nav a[aria-current] { color: var(--accent); }
.site-nav a:hover { color: var(--accent); }
main { max-width: 1064px; padding: 0 24px; margin: auto; }
.shelf-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 36px 0 26px; color: var(--muted); }
.shelf-heading p { margin: 0; font: 17px/1.8 var(--serif); letter-spacing: .08em; }
.shelf-heading > span { font-size: 10px; letter-spacing: .2em; }
.featured-book { display: grid; grid-template-columns: 40% 60%; background: var(--surface); border: 1px solid var(--line); min-height: 484px; }
.cover-stage { display: flex; position: relative; align-items: center; justify-content: center; padding: 48px 34px; background: linear-gradient(120deg, #e9e2d5, #f0eadf 65%, #eee8dc); overflow: hidden; }
.book-cover { position: relative; width: 238px; aspect-ratio: 13 / 18; color: #b7b28e; background: #293d37; isolation: isolate; box-shadow: 9px 12px 17px #302e2926, -1px 0 0 #162c24; border-radius: 1px 3px 3px 1px; transform: rotate(-3deg); }
.book-cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 12px; background: linear-gradient(90deg, #122b27, #ffffff10 65%, #11271f66); z-index: 2; border-right: 1px solid #ffffff10; }
.book-cover::after { content: ""; position: absolute; inset: 5px -5px 5px auto; width: 5px; background: repeating-linear-gradient(0deg, #d6cdb9 0 1px, #f2e9d7 1px 3px); transform: skewY(-20deg); z-index: -1; }
.cover-frame { position: absolute; inset: 15px 14px 15px 22px; border: 1px solid #b5ab754a; }
.cover-landscape { position: absolute; width: 100%; height: 100%; inset: 0; opacity: .6; overflow: hidden; }
.cover-caption { position: absolute; top: 29px; left: 34px; font: 10px var(--serif); letter-spacing: .28em; color: #d2ccb8; }
.cover-title { position: absolute; top: 60px; left: 42px; writing-mode: vertical-rl; font: 58px/1.25 var(--serif); letter-spacing: .16em; color: #efe8d5; text-shadow: 0 1px 1px #0003; }
.cover-stamp { position: absolute; right: 35px; top: 76px; padding: 6px 4px; font: 14px/1.2 var(--serif); color: #f5dcc6; background: #984d3e; border: 1px solid #bf7f6266; }
.cover-foot { position: absolute; bottom: 32px; left: 34px; font: 9px var(--serif); letter-spacing: .2em; color: #d2ccb8; }
.cover-shadow { position: absolute; height: 11px; width: 210px; background: #3b302214; filter: blur(12px); bottom: 56px; transform: rotate(-3deg); }
.book-copy { padding: 55px 48px 38px; min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: .14em; line-height: 1.7; }
.red-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.eyebrow-divider { margin: 0 3px; color: #b9b09e; }
h1 { margin: 0 0 20px; font: 500 48px/1.3 var(--serif); letter-spacing: .16em; }
.book-description { margin: 0; max-width: 29em; color: #625e54; font: 16px/1.95 var(--serif); }
.book-stats { display: flex; gap: 42px; margin: 24px 0; }
.book-stats > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.book-stats dt { color: var(--muted); font-size: 10px; letter-spacing: .1em; margin-bottom: 7px; }
.book-stats dd { display: flex; align-items: baseline; gap: 7px; margin: 0; font-size: 10px; color: var(--muted); }
.book-stats strong { font: 25px/1.2 Georgia, serif; color: var(--ink); font-variant-numeric: tabular-nums; }
.book-actions { display: flex; gap: 12px; margin-top: 26px; }
.button { min-height: 46px; padding: 12px 23px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; font-size: 13px; border: 1px solid var(--line); }
.button-primary { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.button-primary:hover { background: #46483f; }
.button-secondary:hover { background: var(--wash); }
.list-icon { width: 12px; height: 10px; border-top: 1px solid; border-bottom: 1px solid; position: relative; }
.list-icon::after { content: ""; position: absolute; top: 3.5px; left: 0; width: 8px; border-top: 1px solid; }
.latest { display: flex; gap: 12px; align-items: baseline; font-size: 11px; color: var(--muted); line-height: 1.8; margin: 22px 0 0; }
.latest-label { flex-shrink: 0; padding-right: 12px; border-right: 1px solid var(--line); }
.latest a { color: var(--ink); text-underline-offset: 4px; }
.latest a:hover { color: var(--accent); text-decoration: underline; }
.load-status { color: var(--muted); font-size: 12px; line-height: 1.8; }
.load-status p { margin: 18px 0 0; }
.load-status p:empty { display: none; }
.text-button { border: 0; background: transparent; padding: 10px 0; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; min-height: 44px; }
.continue-card { display: flex; align-items: center; gap: 20px; background: var(--wash); border: 1px solid var(--line); border-top: 0; padding: 21px 32px; }
.bookmark-icon { width: 17px; height: 26px; background: var(--accent); clip-path: polygon(0 0,100% 0,100% 100%,50% 76%,0 100%); flex-shrink: 0; }
.continue-copy { min-width: 0; flex: 1; }
.continue-copy h2 { margin: 0 0 6px; font: 16px var(--serif); }
.continue-copy p { margin: 0; font-size: 11px; line-height: 1.6; color: var(--muted); }
.continue-card > a { display: flex; min-height: 44px; align-items: center; gap: 18px; color: var(--accent); font-size: 12px; flex-shrink: 0; }
.chapters { margin: 62px 0 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--ink); padding-bottom: 23px; }
.section-heading .eyebrow { font-size: 10px; margin-bottom: 9px; }
.section-heading h2 { margin: 0; font: 26px/1.4 var(--serif); letter-spacing: .1em; }
.toc-summary { color: var(--muted); font-size: 11px; padding-bottom: 3px; }
.chapter-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 44px; }
.chapter-list li { min-width: 0; border-bottom: 1px solid var(--line); }
.chapter-list a { display: flex; align-items: center; min-height: 78px; padding: 17px 4px; gap: 18px; }
.chapter-list a:hover { color: var(--accent); background: #ece4d54d; }
.chapter-number { font: 12px Georgia, serif; color: var(--muted); flex: 0 0 22px; font-variant-numeric: tabular-nums; }
.chapter-name { font: 17px/1.65 var(--serif); overflow-wrap: anywhere; }
.chapter-arrow { font-size: 12px; color: var(--muted); margin-left: auto; flex-shrink: 0; }
.toc-state { color: var(--muted); font-size: 13px; line-height: 1.9; padding: 24px 0; }
.toc-state a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.updating-note { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--muted); font: 12px var(--serif); letter-spacing: .16em; margin: 32px 0 0; }
.site-footer { max-width: 1016px; margin: 62px auto 0; padding: 27px 0 35px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 10px; }
.footer-brand { font: 18px var(--serif); letter-spacing: .15em; color: var(--ink); }
.site-footer p { margin: 0; flex: 1; letter-spacing: .1em; }
.site-footer > a:last-child { display: flex; align-items: center; min-height: 44px; }
@media (max-width: 1000px) {
  .book-copy { padding: 43px 30px 32px; }
  .book-cover { width: 210px; }
  .featured-book { min-height: 450px; }
  .site-footer { margin-left: 24px; margin-right: 24px; }
}
@media (max-width: 680px) {
  .site-header { height: 76px; padding: 0 22px; }
  .brand { font-size: 21px; gap: 10px; }
  .brand-note { display: none; }
  .site-nav { gap: 24px; font-size: 12px; }
  main { padding: 0 20px; }
  .shelf-heading { margin: 25px 0 19px; }
  .shelf-heading p { font-size: 15px; }
  .shelf-heading > span { display: none; }
  .featured-book { display: block; }
  .cover-stage { padding: 30px 25px; }
  .book-cover { width: 161px; }
  .cover-frame { inset: 10px 10px 10px 17px; }
  .cover-caption { top: 22px; left: 26px; font-size: 8px; }
  .cover-title { top: 45px; left: 31px; font-size: 40px; }
  .cover-stamp { right: 21px; top: 55px; font-size: 10px; padding: 4px 3px; }
  .cover-foot { bottom: 23px; left: 26px; font-size: 7px; }
  .cover-shadow { bottom: 20px; width: 155px; }
  .book-copy { padding: 29px 25px 27px; }
  .eyebrow { margin-bottom: 14px; font-size: 10px; }
  h1 { font-size: 36px; margin-bottom: 16px; }
  .book-description { font-size: 15px; line-height: 1.9; }
  .book-stats { margin: 20px 0; gap: 30px; }
  .book-stats strong { font-size: 24px; }
  .book-stats > div + div { padding-left: 25px; }
  .book-actions { gap: 10px; margin-top: 23px; }
  .button { flex: 1; padding: 12px 10px; font-size: 12px; gap: 13px; }
  .latest { gap: 9px; font-size: 10px; margin-top: 20px; }
  .latest-label { padding-right: 9px; }
  .continue-card { gap: 12px; padding: 18px 20px; flex-wrap: wrap; }
  .continue-copy h2 { font-size: 14px; }
  .continue-copy p { font-size: 10px; }
  .continue-card > a { font-size: 11px; gap: 8px; }
  .chapters { margin-top: 42px; }
  .section-heading { padding-bottom: 18px; }
  .section-heading h2 { font-size: 24px; }
  .chapter-list { grid-template-columns: 1fr; }
  .chapter-list a { min-height: 70px; gap: 13px; }
  .chapter-name { font-size: 16px; }
  .site-footer { margin: 42px 20px 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); gap: 14px; }
  .site-footer p { font-size: 9px; }
}
@media (max-width: 360px) {
  main { padding: 0 14px; }
  .book-copy { padding: 26px 20px; }
  .continue-card > a { margin-left: 29px; }
  .latest { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button { transition: color .15s, background-color .15s; }
}
