:root {
    color-scheme: light;
    --ink: #162f30;
    --green: #124b46;
    --accent: #a34517;
    --paper: #faf8f1;
    --rule: #cdd1c4;
    --serif: "Songti SC","Noto Serif CJK SC","STSong",serif;
    font-family: "PingFang SC","Microsoft YaHei",system-ui,sans-serif;
    background: var(--paper);
    color: var(--ink);
}
* { box-sizing:border-box; }
body,figure,h1,h2,h3,p,ol { margin:0; }
html { scroll-behavior:smooth; scroll-padding-top:68px; }
a { color:inherit; text-decoration:none; }
a:focus-visible, summary:focus-visible, input:focus-visible { outline:3px solid #df8a35; outline-offset:4px; }
a:hover { text-decoration:underline; text-underline-offset:4px; }
.shell { width:min(1152px,90%); margin-inline:auto; }
.mast { background:#122e2e; color:#f9f6e9; }
.mast-inner, footer .shell { display:flex; justify-content:space-between; align-items:center; min-height:66px; }
.brand { display:flex; align-items:center; font-size:21px; font-weight:650; }
.brand > span:first-child { color:#fab17f; padding-right:7px; }
.brand-dot { padding:0 2px; color:#f7a66d; }
.home-link, footer { font-size:13px; }
.opening { background:linear-gradient(110deg,#f9f5e9,#eee5d4); }
.opening-inner { display:grid; grid-template-columns:1.1fr 1fr; align-items:center; gap:8%; padding-block:clamp(58px,7.4vw,106px); }
.overline { color:var(--accent); font-size:13px; letter-spacing:.14em; font-weight:650; }
h1,h2 { font-family:var(--serif); font-weight:650; letter-spacing:-.045em; text-wrap:balance; }
h1 { font-size:clamp(50px,6vw,88px); line-height:1.13; margin:20px 0 24px; }
h1 span { color:var(--accent); }
.lead, .section-title p, .ledger-layout > div:first-child > p:not(.overline) { color:#50625c; font-size:16px; line-height:1.95; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:22px; min-height:48px; padding:12px 20px; background:var(--green); color:white; border-radius:3px; font-size:14px; font-weight:600; }
.button:hover { background:#186058; text-decoration:none; }
.opening-copy .button { margin-top:28px; }
.front-art { text-align:center; }
.front-art img { width:min(100%,445px); height:auto; mix-blend-mode:multiply; }
.front-art figcaption { margin-top:13px; font-size:12px; color:#65756b; }
.reader-nav { position:sticky; top:0; z-index:5; background:#fbf9f1f8; border-block:1px solid var(--rule); }
.reader-nav .shell { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.reader-nav a { padding:17px 0; font-size:14px; font-weight:600; }
.block { padding-block:clamp(56px,7.5vw,112px); }
.section-title { display:grid; grid-template-columns:1.2fr .8fr; gap:6%; align-items:end; margin-bottom:clamp(28px,4vw,52px); }
h2 { font-size:clamp(32px,4.25vw,60px); line-height:1.24; }
h3 { font-size:19px; line-height:1.5; }
.role-layout { display:grid; grid-template-columns:.86fr 1.14fr; align-items:stretch; gap:7%; }
.role-illustration { background:#eeeade; display:grid; place-items:center; padding:24px; }
.role-illustration img { width:min(100%,310px); height:auto; mix-blend-mode:multiply; }
.roles details { border-top:1px solid var(--rule); }
.roles details:last-child { border-bottom:1px solid var(--rule); }
.roles summary { cursor:pointer; position:relative; list-style:none; padding:21px 30px 21px 0; font-size:21px; font-weight:600; }
.roles summary::-webkit-details-marker { display:none; }
.roles summary::after { content:'+'; position:absolute; right:1px; top:22px; font:22px/1 system-ui; color:var(--accent); }
.roles details[open] summary::after { content:'−'; }
.roles summary small { display:block; color:#626e65; font-size:12px; font-weight:400; margin-top:4px; }
.roles details p,.scene-grid p,.steps p { font-size:15px; line-height:1.85; color:#4c605b; }
.roles details p { padding:0 30px 22px 0; }
.scenes { background:#e8eee8; }
.scene-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(20px,3vw,44px); }
.scene-grid article { border-top:1px solid #99aca3; padding-top:16px; }
.scene-grid img { width:100%; height:clamp(125px,14vw,185px); object-fit:contain; mix-blend-mode:multiply; }
.scene-grid small { color:var(--accent); font-weight:600; }
.scene-grid h3 { margin:8px 0; }
.fine,.file-meta { font-size:12px; line-height:1.8; color:#52645e; }
.scenes .fine { margin-top:32px; }
.ledger { background:#133535; color:#fcf6e8; }
.ledger-layout { display:grid; grid-template-columns:1fr .95fr; gap:10%; align-items:center; }
.ledger .overline { color:#ffc08d; }
.ledger h2 { margin:20px 0; }
.ledger-layout > div:first-child > p:not(.overline) { color:#c5d5cf; margin-top:14px; }
.worksheet { background:#faf7eb; color:var(--ink); padding:clamp(20px,3.5vw,44px); box-shadow:0 10px 28px #071b1b20; }
.worksheet h3 { font-family:var(--serif); font-size:26px; margin-bottom:14px; }
.amounts label,.result { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.amounts label { padding:12px 0; font-size:14px; border-bottom:1px solid #d2d5c9; }
.amounts label span { white-space:nowrap; }
.amounts input { width:85px; padding:7px 5px; border:1px solid #acb9ad; border-radius:2px; color:var(--ink); background:#fffdf6; font:inherit; text-align:right; }
.result { margin:20px 0 8px; }
.result output { font-size:clamp(24px,3vw,44px); color:var(--accent); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.steps { display:grid; grid-template-columns:repeat(4,1fr); gap:25px; padding:0; list-style:none; counter-reset:step; }
.steps li { counter-increment:step; border-top:1px solid #a6b3a9; padding-top:18px; }
.steps li::before { content:counter(step,decimal-leading-zero); font:italic 22px Georgia,serif; color:var(--accent); }
.steps h3 { margin:8px 0; }
.contact { margin-top:46px; padding:clamp(24px,4vw,52px); background:#ece7d9; display:flex; justify-content:space-between; align-items:center; gap:24px; }
.contact h3 { font-family:var(--serif); font-size:28px; }
.contact p { margin:6px 0; font-size:13px; }
.phone { display:inline-block; margin-top:6px; color:var(--green); font-size:20px; }
.contact .file-meta { text-align:center; }
footer { background:#122e2e; color:#eee9db; }
@media(max-width:760px) {
    .opening-inner,.section-title,.role-layout,.ledger-layout { grid-template-columns:1fr; gap:22px; }
    .opening-inner { padding-block:42px 32px; }
    .front-art img { width:min(69%,300px); }
    .front-art figcaption { margin-top:4px; }
    .role-illustration { display:none; }
    .scene-grid { grid-template-columns:1fr; }
    .scene-grid article { display:grid; grid-template-columns:minmax(80px,29%) 1fr; gap:15px; align-items:center; }
    .scene-grid img { height:auto; }
    .reader-nav .shell { gap:6px; }
    .reader-nav a { font-size:13px; }
    .steps { grid-template-columns:1fr 1fr; }
    .contact { align-items:start; flex-direction:column; }
    .contact .file-meta { text-align:left; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
.brand .mark { display:grid; place-items:center; width:31px; height:31px; margin-right:8px; padding:4px; border-radius:9px; background:#ffb173; }
.brand .mark svg { width:100%; }
.settlement { border-top:1px solid #a9bbb1; margin-top:20px; padding-top:17px; }
.settlement summary { cursor:pointer; font-weight:600; line-height:1.6; }
.settlement p { max-width:54em; color:#4c605b; line-height:1.85; margin-top:12px; }
