:root {
    color-scheme: light;
    --ink: #16352c;
    --muted: #4e6459;
    --forest: #173c32;
    --ivory: #f7f6ef;
    --gold: #eddcb0;
    --line: #d9dfd4;
    --display: "Songti SC", "Noto Serif CJK SC", "STSong", SimSun, serif;
    --body: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 16px/1.7 var(--body); }
a { color: inherit; text-underline-offset: .26em; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #778f49; outline-offset: 4px; }
p, h1, h2, h3, figure { margin: 0; }
.brandbar, .hero-inner, .content, .site-footer { width: min(1100px, calc(100% - 64px)); margin-inline: auto; }
.brandbar { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .9rem; }
.brand { text-decoration: none; font: 700 1.12rem var(--display); }
.brand span { margin-inline-start: .55rem; font: 400 .8rem var(--body); color: var(--muted); }
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fcf8eb; background: radial-gradient(ellipse at 12% 30%, #315f4d 0, #1b4137 36%, #112f29 79%); }
.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -20% -20% -60% 32%;
    background: repeating-radial-gradient(ellipse at 74% 79%, transparent 0 38px, #d6c18e23 39px, transparent 41px 56px);
    mask-image: linear-gradient(130deg, transparent 24%, #000 92%);
    pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: clamp(160px, 23vw, 270px) minmax(0, 1fr); gap: clamp(26px, 6vw, 86px); padding-block: clamp(38px, 5.9vw, 91px); align-items: center; }
.cover { background: #eae5db; border-radius: 3px 9px 9px 3px; box-shadow: 0 22px 60px #06181199, -8px 0 24px #c8c09e33; overflow: hidden; width: 100%; }
.cover img { display: block; width: 100%; height: auto; }
.series { color: var(--gold); font-size: .83rem; letter-spacing: .25em; }
h1, h2, h3 { font-family: var(--display); line-height: 1.25; }
h1 { max-width: 12em; margin-block: 13px 16px; font-size: clamp(2.2rem, 4.7vw, 4.05rem); letter-spacing: .06em; text-wrap: balance; }
.credit { color: #dcd8c5; font-size: .92rem; }
.credit span { margin-inline: .35em; }
.description { max-width: 36em; margin-top: 19px; color: #eff1e5; font-size: clamp(.95rem, 1.55vw, 1.1rem); line-height: 1.95; }
.hero-actions, .account-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions { margin-top: 23px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .55em; min-height: 44px; padding: 9px 18px; border: 1px solid transparent; border-radius: 6px; text-decoration: none; font: 650 .94rem/1.45 var(--body); cursor: pointer; }
.button:hover { filter: brightness(.94); }
.gold { background: var(--gold); color: #16352c; }
.outline { color: #fcf8eb; border-color: #e0ddca80; }
.green { background: var(--forest); color: white; }
.plain { border-color: #b8c5ba; background: #fffef9; color: var(--ink); }
.content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .92fr); align-items: start; gap: clamp(28px, 6vw, 91px); padding-block: clamp(28px, 5.5vw, 65px); }
.content h2 { font-size: 1.82rem; margin-bottom: 12px; }
.chapters ol { margin: 0; padding-inline-start: 1.9em; }
.chapters li { padding: 13px 0 13px .3em; border-bottom: 1px solid var(--line); }
.chapters li::marker { color: #536b5e; font-variant-numeric: tabular-nums; }
.chapters li a { display: flex; gap: 10px; justify-content: space-between; }
.chapters li span { flex: none; font-size: .84rem; color: var(--muted); }
.unlock { scroll-margin-top: 14px; padding: clamp(20px, 3.5vw, 36px); background: #fffef9; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px #162f2610; }
.unlock p { color: var(--muted); margin-block: 8px 14px; }
.purchase { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.purchase strong { font: 650 1.72rem/1.3 Georgia, serif; color: var(--ink); }
.unlock .notice { padding: 10px 12px; border-inline-start: 3px solid #667f56; background: #edf1e6; color: var(--ink); }
.unlock form { display: grid; gap: 8px; margin-top: 16px; }
.unlock label { font-weight: 650; }
.unlock input { min-width: 0; width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid #9baa9e; border-radius: 6px; background: white; color: var(--ink); font: inherit; }
.unlock form .button { justify-self: start; margin-top: 8px; }
.contact { margin-top: 20px; padding-top: 13px; border-top: 1px solid var(--line); }
.contact summary { cursor: pointer; font-weight: 650; min-height: 34px; }
.contact img { display: block; width: 160px; height: auto; margin-top: 7px; }
.contact p, .account-links { font-size: .87rem; }
.unlock .account-links { margin-bottom: 0; }
.site-footer { padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (max-width: 740px) {
    .brandbar, .hero-inner, .content, .site-footer { width: calc(100% - 38px); }
    .hero-inner { grid-template-columns: 1fr; gap: 22px; padding: 27px 0 29px; }
    .cover { width: clamp(125px, 37vw, 178px); }
    .intro h1 { margin-block: 7px 9px; max-width: 100%; font-size: clamp(1.95rem, 8vw, 3rem); text-wrap: initial; }
    .description { margin-top: 12px; }
    .hero-actions { margin-top: 19px; }
    .content { grid-template-columns: minmax(0, 1fr); }
    .unlock { grid-row: 1; }
}
