:root {
  --paper: #faf8f2;
  --ink: #282d28;
  --muted: #65665b;
  --line: #d9d6c9;
  --red: #983f30;
  --serif: "Songti SC","Noto Serif CJK SC","Source Han Serif SC","STSong","SimSun",serif;
  --sans: "PingFang SC","Microsoft YaHei",sans-serif;
}
* { box-sizing: border-box }
html { color-scheme: light }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 var(--sans); }
a { color: inherit; text-decoration: none }
a:hover { color: var(--red) }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--red); outline-offset: 4px }
h1,h2,h3,p,figure { margin: 0 }
h1,h2,h3,.brand,.footer-brand,.ink-button { font-family: var(--serif) }
h1,h2,h3 { line-height: 1.45; overflow-wrap: anywhere }
button,input { font: inherit }
.frame { width: min(1240px, 89%); margin-inline: auto }
.skip { position: absolute; z-index: 5; padding: .5rem; background: white; top: -5rem }
.skip:focus { top: 0 }
header { border-bottom: 1px solid var(--line) }
.mast { display: flex; align-items: center; gap: 3rem; height: 83px }
.brand { display: flex; align-items: center; gap: .65rem; font-size: 29px; font-weight: 700; letter-spacing: .12em; white-space: nowrap }
.seal { display: grid; place-content: center; width: 29px; height: 35px; border: 1px solid var(--red); outline: 1px solid var(--red); outline-offset: 2px; border-radius: 3px 1px 3px 2px; background: var(--red); color: #fff7df; font: bold 14px/1.02 var(--serif); letter-spacing: 0; writing-mode: vertical-rl }
.mast nav { display: flex; gap: clamp(1rem,3vw,2.8rem); align-items: center; height: 100%; margin-left: auto }
.mast nav a { position: relative; display: grid; align-items: center; height: 100%; font-size: 14px; white-space: nowrap }
.mast nav a[aria-current] { color: var(--red); font-weight: 600 }
.mast nav a[aria-current]::after { content: ""; position: absolute; bottom: 18px; left: 25%; right: 25%; border-bottom: 2px solid var(--red) }
.search-link { display: flex; align-items: center; gap: .6rem; border-left: 1px solid var(--line); padding-left: 1.65rem; font-size: 14px }
.magnifier { display: inline-block; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; position: relative }
.magnifier::after { content: ""; width: 7px; border-top: 1.5px solid currentColor; position: absolute; bottom: -3px; right: -5px; transform: rotate(46deg) }
.hero { isolation: isolate; position: relative; display: flex; align-items: center; min-height: 375px; margin: 32px 0 44px; background: #eee9db; overflow: hidden; border: 1px solid #dad5c6 }
.painting { position: absolute; inset: 0 0 0 31%; z-index: -1; background: url("landscape.jpg") center /cover no-repeat; }
.painting::after { position: absolute; content: ""; inset: 0; background: linear-gradient(90deg,#eee9db 0%,rgba(238,233,219,.85) 9%,rgba(238,233,219,.18) 39%,transparent 58%) }
.hero-copy { padding: 34px 4.4%; width: 53% }
.eyebrow { display: flex; align-items: center; gap: .7em; font-size: 12px; letter-spacing: .18em; color: var(--red); font-weight: 600 }
.eyebrow i { width: 24px; border-top: 1px solid var(--red) }
.hero h1 { margin: .32em 0 .23em; max-width: 6.25em; font-size: clamp(37px,3.75vw,59px); line-height: 1.19; letter-spacing: .035em }
.hero-copy p { max-width: 24em; font-size: 14px; line-height: 1.85; color: #484b41 }
.ink-button { display: inline-flex; align-items: center; justify-content: center; gap: 1.35em; padding: .6em 1.35em; border: 0; color: #fff9e9; background: #303e34; cursor: pointer; font-size: 15px }
.ink-button:hover { color: white; background: #495747 }
.hero .ink-button { margin-top: 1.35rem }
.ink-button b { font: normal 1.12em var(--sans) }
.art-caption { position: absolute; right: 1.1rem; bottom: .8rem; padding: .12rem .5rem; font: 11px/1.7 var(--serif); color: #3d392c; background: #f4eddecc; letter-spacing: .09em }
.columns { display: grid; grid-template-columns: minmax(0,1.67fr) minmax(0,1fr); gap: 4.4% }
.columns aside { border-left: 1px solid var(--line); padding-left: 10% }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 14px; border-bottom: 1px solid #797b6b }
.section-head h2 { font-size: 26px; letter-spacing: .08em }
.section-head a,.back,.source,.muted,small { font-size: 13px; color: var(--muted) }
.section-head a span { padding-left: .35rem }
.note-row { border-bottom: 1px solid var(--line); padding: 20px 0 }
.meta { display: flex; gap: .9rem; align-items: center; font-size: 12px; color: var(--muted); letter-spacing: .06em }
.kind { color: var(--red) }
.meta time { border-left: 1px solid var(--line); padding-left: .9rem; font-family: Georgia,serif; line-height: 1 }
.note-row h3 { margin: .36rem 0 .25rem; font-size: clamp(21px,1.85vw,28px) }
.note-row p,.shelf-row p,.book-tile p { font-size: 14px; line-height: 1.8; color: var(--muted) }
.shelf-row { display: flex; align-items: center; gap: 1.25rem; padding: 20px 0; border-bottom: 1px solid var(--line) }
.shelf-row h3 { font-size: 22px; margin-bottom: .25rem }
.shelf-row small { font-size: 11px }
.cover { display: block; flex: none; width: 57px; height: 78px; object-fit: cover; border-radius: 1px 2px 2px 1px; box-shadow: 2px 2px 0 #d0c9b5,3px 3px 4px #51482c25 }
.cloth { position: relative; background-color: #384a55; background-image: repeating-linear-gradient(0deg, transparent 0 2px,#fff1 2px 3px),repeating-linear-gradient(90deg, transparent 0 2px,#0001 2px 3px); border-left: 3px solid #0002 }
.cloth::before { content: ""; position: absolute; inset: 0 auto 0 8%; width: 5%; border-right: 1px solid #0003; background: repeating-linear-gradient(to bottom,transparent 0 14%,#d3c7a8 15% 16%,transparent 17% 25%) }
.cloth.jade { background-color: #536058 }.cloth.ochre { background-color: #8b634b }
.cloth span { position: absolute; top: 10%; right: 14%; max-height: 79%; overflow: hidden; padding: 5% 2%; min-width: 1.32em; min-height: 47%; background: #ece4c9; border: 2px double #837a61; color: #383a32; writing-mode: vertical-rl; font: 600 13px/1.05 var(--serif); text-align: center; letter-spacing: .08em }
footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; border-top: 1px solid var(--line); margin-top: 60px; padding: 24px 0 36px; font-size: 12px; color: var(--muted) }
.footer-brand { font-size: 19px; font-weight: bold; color: var(--ink) }
.to-top { margin-left: auto }
.page-head { padding: 50px 0 26px }
.page-head h1,.reader h1 { font-size: clamp(32px,4vw,48px); margin: .3em 0 }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 2rem }
.display-cover { display: grid; place-content: center; padding: 2.25rem; background: #eeeadd; margin-bottom: 1rem }
.display-cover .cover,.book-info .cover { width: 106px; height: 148px }
.display-cover .cloth span,.book-info .cloth span { font-size: 23px }
.book-tile p { margin-top: .6rem }
.listing { max-width: 850px; min-height: 55vh; margin: 0 auto }
.filters,.pager { display: flex; gap: 1.3rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); font-size: 14px }
.filters a[aria-current] { color: var(--red); font-weight: bold }
.pager { justify-content: center; padding: 1.2rem }
.reader { max-width: 40em; min-height: 55vh; margin: 48px auto; font-family: var(--serif); font-size: clamp(17px,1.5vw,20px); overflow-wrap: anywhere }
.reader .back { display: inline-block; margin-bottom: 1.8rem }
.reader .meta,.reader .back,.reader small,.copy,.copy-status,.book-info p { font-family: var(--sans) }
.reader .lead { font-size: 1.04em; color: var(--muted); margin: 1rem 0 2rem; line-height: 1.9 }
.prose { line-height: 1.95 }
.prose p,.prose figure,.prose blockquote { margin: 1em 0 }
.prose h2 { margin: 1.6em 0 .5em; font-size: 1.35em }
.prose blockquote { padding: .8em 1.3em; background: #eeeadd; border-left: 3px solid var(--red) }
.prose blockquote p { margin: 0 }
.prose cite { display: block; margin-top: .45em; font: 13px/1.7 var(--sans); color: var(--muted) }
.prose img { display: block; max-width: 100%; height: auto; margin: auto }
.prose a,.source a { color: var(--red); text-decoration: underline }
.article-end,.book-info { display: flex; align-items: center; gap: 1.5rem }
.article-end { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 15px; flex-wrap: wrap }
.copy { background: transparent; border: 1px solid #aaa795; padding: .4rem .8rem; cursor: pointer; color: var(--ink) }
.copy-status { font-size: 13px }
.search-form { display: flex; margin-bottom: 2rem }
.search-form input { min-width: 0; flex: 1; padding: .6em 1em; background: #fffdf7; border: 1px solid var(--line) }
.listing .section-head { margin-top: 2rem }
.verses { margin: 1.6em 0; padding: .3em 0 .3em 1em; border-left: 2px solid var(--line); white-space: pre-wrap; line-height: 2; font-size: 1.12em }
.poem-empty { margin: 2rem 0; color: var(--muted) }
.voice-intro { margin-top: .4rem; color: var(--muted); font-size: 15px }
.voice-empty { margin: 2rem 0; color: var(--muted) }
.voice-player { margin: 1.8rem 0 2rem; padding: 1.1rem; background: #eeeadd; border: 1px solid var(--line) }
.voice-player audio { display: block; width: 100%; height: 40px }
.voice-player a { color: var(--red); text-decoration: underline }
.page-head.poetry-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(165px, 23vw, 225px);
  margin: clamp(18px, 3vw, 32px) 0 24px;
  padding: 28px clamp(19px, 4vw, 46px) 46px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, #f1eadb 0%, rgb(241 234 219 / 94%) 40%, rgb(241 234 219 / 70%) 69%, rgb(241 234 219 / 25%)),
              #e9dfca url("moonlit-plum.jpg") center 26% / cover no-repeat;
}
.poetry-banner { overflow-wrap: anywhere }
.poem-credit { color: #524d40; font-size: 14px }
.banner-verses { margin-top: 1em; font: clamp(17px, 2vw, 21px)/1.9 var(--serif); white-space: pre-wrap }
@media (max-width: 760px) {
  .frame { width: 91% }.mast { gap: 1rem; height: 66px }.brand { font-size: 22px }.seal { width: 21px; height: 27px; font-size: 11px }
  .mast nav { gap: .9rem }.mast nav a { font-size: 13px }.mast nav a[aria-current]::after { bottom: 10px }
  .search-link { border: 0; padding: .45rem }.search-link span { display: none }
  .columns { grid-template-columns: 1fr; gap: 2rem }.columns aside { padding: 0; border: 0 }
  .hero { min-height: 330px; margin: 20px 0 30px }.hero-copy { width: 65% }.hero h1 { font-size: 38px }
}
@media (max-width: 520px) {
  .mast { display: grid; grid-template-columns: 1fr auto; height: auto; gap: 0 }
  .brand,.search-link { margin: 14px 0 }.mast nav { grid-row: 2; grid-column: 1/-1; margin: 0; height: 39px; justify-content: space-between; gap: .75rem }.mast nav a[aria-current]::after { bottom: 0; left: 0; right: 0 }
  .search-link { grid-column: 2; grid-row: 1; margin-right: 4px }.mast nav a { font-size: 14px }
  .hero { align-items: flex-start; min-height: 350px }.hero-copy { width: 87%; padding: 25px 21px 62px }.hero-copy p { max-width: 17em }
  .painting { left: 18%; background-position: 64% center }.painting::after { background: linear-gradient(90deg,#eee9db,rgba(238,233,219,.92) 25%,rgba(238,233,219,.62) 70%,rgba(238,233,219,.15)) }
  .hero h1 { font-size: 39px }.section-head h2 { font-size: 24px }.reader { margin: 28px auto }.book-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.1rem }.display-cover { padding: 1.4rem .5rem }
  .voice-player { padding: .7rem }
  footer { gap: .7rem }.page-head { padding-top: 30px }
}
@media (max-width: 620px) {
  .mast { display: grid; grid-template-columns: 1fr auto; gap: 0; height: auto }
  .mast .brand { margin: 12px 0 }
  .mast .search-link { grid-area: 1 / 2; align-self: center }
  .mast nav { grid-area: 2 / 1 / 3 / -1; margin: 0; height: auto; justify-content: space-between; flex-wrap: wrap; gap: 0 .5rem }
  .mast nav a { height: 38px }
  .mast nav a[aria-current]::after { bottom: 0 }
}

