:root{--ink:#1e2d38;--muted:#5c6e7a;--nav:#15324a;--accent:#196f85;--line:#d8e4e9;--paper:#fff;--wash:#f3f6f8}
html{font-size:100%;scroll-behavior:smooth}
body{margin:0;height:auto;min-height:100vh;background:var(--paper);color:var(--ink);font-family:"Segoe UI",Arial,sans-serif;font-size:17px;letter-spacing:0;line-height:1.7}
*{box-sizing:border-box}a{color:var(--accent);text-underline-offset:.2em}a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid #5dc7e2;outline-offset:4px;border-radius:2px}
.skip-link{position:absolute;top:-80px;left:16px;padding:12px;background:white;z-index:10}.skip-link:focus{top:12px}
.site-shell{display:grid;grid-template-columns:290px minmax(0,1fr);min-height:100vh}
.side-panel{background:var(--nav);color:white;padding:44px 26px 28px;position:sticky;top:0;height:100vh;overflow-y:auto}
.brand{display:flex;gap:16px;align-items:center;color:white;text-decoration:none;margin-bottom:52px;font-size:36px;font-weight:650;line-height:1.1}
.brand svg{width:46px;height:46px;flex:none;fill:none;stroke:#a3d6e3;stroke-width:1.6;stroke-linecap:round}
.brand small{display:block;margin-top:10px;color:#c3d6e2;font-size:12px;font-weight:400;line-height:1.5}
.chapters,.chapters ul{padding:0;margin:0;list-style:none}.chapters>li{margin-bottom:18px}.chapters a{display:block;color:#edf4f8;text-decoration:none;padding:6px 10px;border-left:2px solid transparent;line-height:1.5;font-size:15px}
.chapters ul{margin:8px 0 0 10px}.chapters ul a{color:#bfd1df;font-size:14px;padding-top:8px;padding-bottom:8px}
.chapters a:hover{background:#20435e;color:white}.chapters a[aria-current=page]{border-color:#90d0e0;background:#20435e;color:white}
.sidebar-note{font-size:12px;color:#c3d6e2;margin-top:60px;line-height:1.8}.mobile-nav{display:none}
.article-area{width:100%;max-width:1040px;padding:38px clamp(30px,6vw,88px) 30px;margin:0 auto;min-width:0}
.article-topline{display:flex;justify-content:space-between;gap:16px;padding-bottom:22px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}
.book-content{font-family:Georgia,"Times New Roman",serif;font-size:19px;line-height:1.85;color:var(--ink);max-width:72ch;padding:0;overflow-wrap:anywhere}
.book-content h1,.book-content h2,.book-content h3{font-family:"Segoe UI",Arial,sans-serif;color:var(--ink);line-height:1.18;font-weight:650;letter-spacing:-.025em}
.book-content h1{font-size:clamp(34px,4.2vw,53px);margin:46px 0 26px;max-width:18ch}
.book-content h2{font-size:28px;margin:44px 0 16px}.book-content h3{font-size:21px;margin:30px 0 12px}
.book-content p{margin:0 0 21px}.book-content>p:first-of-type{font-size:22px;line-height:1.6;color:var(--muted)}
.book-content ul,.book-content ol{padding-left:26px;margin:18px 0 28px}.book-content li{padding:4px 0}
.book-content a{color:var(--accent)}.book-content strong{font-weight:700}
.book-content table{display:table;width:100%;border-collapse:collapse;font-family:"Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.65;margin:26px 0;overflow-wrap:normal}
.book-content th,.book-content td{border:0;border-bottom:1px solid var(--line);padding:12px 10px;text-align:left}
.book-content th{background:var(--wash);font-weight:600}.book-content blockquote{margin:30px 0;padding:18px 24px;border-left:3px solid var(--accent);background:var(--wash);color:var(--ink)}
.book-content blockquote p:last-child{margin-bottom:0}.book-content img{max-width:100%;height:auto}
.light-figure{margin:34px 0 40px;padding:24px 24px 16px;background:var(--wash);border-radius:4px}
.light-figure svg{display:block;width:100%;height:auto}.light-figure figcaption{font:13px/1.6 "Segoe UI",Arial,sans-serif;color:var(--muted);margin-top:14px}
.site-footer{border-top:1px solid var(--line);margin-top:60px;padding-top:20px;font-size:12px;display:flex;justify-content:space-between;gap:20px;color:var(--muted)}
.not-found{max-width:680px;padding:70px 24px;margin:auto}
@media(max-width:1000px){.site-shell{grid-template-columns:250px minmax(0,1fr)}.side-panel{padding-left:20px;padding-right:20px}.article-area{padding-left:32px;padding-right:32px}.article-topline span:last-child{display:none}}
@media(max-width:720px){.site-shell{display:block}.side-panel{position:static;height:auto;padding:20px 22px}.brand{font-size:28px;margin-bottom:22px}.brand svg{width:36px;height:36px}.brand small{margin-top:5px;font-size:12px}.desktop-nav,.sidebar-note{display:none}.mobile-nav{display:block;border-top:1px solid #496276;padding-top:14px}.mobile-nav summary{cursor:pointer;font-size:15px;padding:6px 0}.mobile-nav nav{padding-top:22px}.article-area{padding:23px 22px 28px}.book-content{font-size:18px}.book-content h1{margin-top:32px;max-width:20ch}.book-content>p:first-of-type{font-size:20px}.book-content h2{font-size:25px}.article-topline{padding-bottom:17px}.site-footer{flex-direction:column;gap:10px;margin-top:42px}.light-figure{padding:16px 12px}.book-content table{font-size:14px}.book-content th,.book-content td{padding:10px 6px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
