:root{--paper:#faf7ef;--ink:#302e29;--muted:#665e53;--line:#d4ccbc;--green:#3d5b4d;--plum:#694c57;color-scheme:light}
*{box-sizing:border-box}
html{font-size:100%;scroll-padding-top:1rem}
body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.65 system-ui,sans-serif}
a{color:var(--green);text-underline-offset:.18em}
a:hover{color:var(--plum)}
:focus-visible{outline:3px solid var(--plum);outline-offset:3px}
.skip{position:absolute;left:-100vw}
.skip:focus{left:.5rem;background:white;color:black;z-index:2}
.mast{border-bottom:1px solid var(--line)}
.mast-inner,.booknav,.colophon,main{width:min(100% - 3rem,72rem);margin-inline:auto}
.mast-inner{display:flex;gap:1.5rem;align-items:center;justify-content:space-between;min-height:4.5rem}
.mast a,.booknav a,.indexnav a{font-size:.94rem;font-weight:550}
.mast .brand{font:600 1.65rem Georgia,serif;letter-spacing:.07em;text-decoration:none}
.mast-inner nav,.booknav,.indexnav{display:flex;align-items:center;gap:.6rem 1.35rem;flex-wrap:wrap}
.booknav{padding:1rem 0;border-bottom:1px solid var(--line)}
.booknav a{text-decoration:none}
.booknav a:hover{text-decoration:underline}
main{padding:clamp(2rem,5vw,4rem) 0}
.edition{margin:0 0 1rem;color:var(--plum);font-size:.84rem;font-weight:650;letter-spacing:.085em;text-transform:uppercase}
h1,h2,h3,h4,h5,.booktext{font-family:Georgia,'Times New Roman',serif}
h1,h2,h3,h4,h5{font-weight:500;line-height:1.14}
h1{font-size:clamp(2.25rem,5.5vw,4.7rem);letter-spacing:-.042em;overflow-wrap:anywhere;margin:.15em 0 .32em}
.lede{font:1.26rem/1.65 Georgia,serif;color:var(--muted);max-width:55ch}
.indexnav{padding-bottom:1.7rem}
.toc{columns:2 21rem;column-gap:3rem}
.toc-group{break-inside:avoid;margin:0 0 1.8rem}
.toc-group h2{font-size:1.55rem;padding-top:.6rem;border-top:1px solid var(--line)}
.toc-group ul{padding:0;list-style:none}
.toc-group li{margin:.38em 0}
.reading-header,.booktext,.turnpage{max-width:50rem;margin-inline:auto}
.booktext{font-size:clamp(1.05rem,1.3vw,1.17rem);line-height:1.76;overflow-wrap:break-word}
.booktext h2{margin:2.2rem 0 .8rem;font-size:clamp(1.7rem,3.5vw,2.4rem)}
.booktext h3{font-size:1.65rem;margin-top:1.7rem}
.booktext h4,.booktext h5{font-size:1.28rem}
.booktext p{margin:.9em 0}
.booktext img{display:block;width:auto;max-width:100%;height:auto;margin:auto}
.booktext figure{margin:2rem 0}
.booktext figure a{display:block}
.booktext .caption,.booktext .ref-link{font: .88rem/1.5 system-ui,sans-serif;color:var(--muted)}
.booktext .table-wrap{overflow:auto;max-width:100%;margin:1.2em 0}
.booktext table{width:100%;border-collapse:collapse;font:1rem/1.48 system-ui,sans-serif;background:#fffdf8}
.booktext th,.booktext td{padding:.6rem .7rem;vertical-align:top;text-align:start;border:1px solid var(--line);min-width:9ch}
.booktext th{background:#e6e9de}
.booktext td p,.booktext th p{margin:.25em 0}
.booktext [id]:target{background:#eee9d8}
.turnpage{display:flex;justify-content:space-between;gap:2rem;align-items:start;padding-top:1.5rem;margin-top:2.6rem;border-top:1px solid var(--line)}
.turnpage a{max-width:50%}
.turnpage small{display:block;letter-spacing:.04em}
.colophon{padding:1.2rem 0 2rem;border-top:1px solid var(--line);font-size:.88rem;color:var(--muted)}
details{font-family:system-ui,sans-serif;margin-block:1rem}
summary{cursor:pointer;color:var(--green);font-weight:600}
.section-links li{margin:.4rem 0}
@media(max-width:45rem){.mast-inner,.booknav,.colophon,main{width:calc(100% - 2rem)}.mast-inner{gap:1rem}.mast-inner nav{gap:.4rem .8rem}.toc{columns:1}.turnpage{gap:1rem}}
@media print{.mast,.booknav,.indexnav,.turnpage,.skip,details{display:none}.booktext{max-width:none;font-size:11pt}body{background:white}.table-wrap{overflow:visible}}
