:root { color-scheme:light; --ink:#161922; --muted:#535e6d; --line:#d7dce4; --purple:#4f42d6; --paper:#f6f7f9; --serif:"Iowan Old Style",Georgia,serif; font:17px/1.55 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ink); background:var(--paper); }
* { box-sizing:border-box; }
body { margin:0; }
a { color:var(--purple); text-underline-offset:4px; }
a:focus-visible,input:focus-visible,summary:focus-visible { outline:3px solid var(--purple); outline-offset:4px; }
.wrap { width:min(1100px,calc(100% - 40px)); margin:auto; }
header { border-bottom:1px solid var(--line); background:white; }
header nav,footer .wrap,.brand { display:flex; align-items:center; gap:12px; }
header nav { min-height:64px; justify-content:space-between; }
.brand { text-decoration:none; font-weight:750; color:var(--ink); }
.brand img { width:32px; height:32px; }
header nav>a:last-child { font-size:.92rem; }
h1,h2,h3,p { margin:0 0 .8em; }
h1,h2 { font-family:var(--serif); font-weight:500; line-height:1.06; letter-spacing:-.045em; }
h1 { font-size:clamp(2.65rem,6.2vw,5.5rem); max-width:15ch; }
h2 { font-size:clamp(1.9rem,3.5vw,3rem); }
h3 { font-size:1.12rem; }
p { max-width:64ch; }
.hero,.spread { display:grid; grid-template-columns:1.1fr 1fr; align-items:center; gap:clamp(30px,6vw,85px); padding:clamp(44px,8vw,100px) 0; }
.hero img { width:100%; display:block; border-radius:3px; }
.meta { color:var(--muted); font-size:.88rem; }
.lead { font-size:1.17rem; }
.action { display:inline-flex; align-items:center; background:var(--purple); color:white; border-radius:5px; padding:12px 19px; text-decoration:none; font-weight:650; }
.action:hover { background:#4034b7; }
section,.chapter { padding:42px 0; border-top:1px solid var(--line); }
.item { display:block; padding:22px 0; border-top:1px solid var(--line); }
.item a { font-size:1.25rem; font-weight:650; }
.item p { margin:.4em 0 0; }
.library { padding:48px 0 70px; }
.library h1 { font-size:clamp(2.6rem,5vw,4rem); }
input { width:min(100%,470px); padding:13px 15px; border:1px solid #828996; border-radius:4px; background:white; font:inherit; margin:5px 0 24px; }
label { display:block; font-size:.92rem; font-weight:650; }
figure { margin:0; }
figcaption { margin-top:10px; font-size:.86rem; color:var(--muted); }
.quote { background:white; padding:clamp(22px,3vw,44px); border-top:5px solid var(--purple); box-shadow:0 12px 35px #25253610; }
.quote h2 { font-size:2rem; }
dl { margin:0; }
dl div { display:flex; justify-content:space-between; gap:20px; border-top:1px solid var(--line); padding:11px 0; }
dt { color:var(--muted); }
dd { margin:0; text-align:right; font-variant-numeric:tabular-nums; }
.chapter { scroll-margin:20px; max-width:820px; }
li { padding:.3em 0; }
footer { border-top:1px solid var(--line); margin-top:36px; }
footer .wrap { flex-wrap:wrap; padding:24px 0; justify-content:space-between; }
.skip { position:absolute; left:-999px; }
.skip:focus { left:12px; top:4px; background:white; padding:6px; }
[hidden] { display:none!important; }
.book-head { padding:36px 0 16px; border:0; background:transparent; }
.book-head h1 { font-size:clamp(2.4rem,5vw,4.4rem); max-width:22ch; margin-bottom:.22em; }
.book-start { display:grid; grid-template-columns:1fr minmax(270px,.88fr); align-items:start; gap:clamp(22px,6vw,78px); padding:0 0 36px; }
.book-start>div { padding-top:22px; }
.book-start h2 { font-size:clamp(1.55rem,3vw,2.15rem); }
.book-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px 18px; }
.book-files,.book-agent { font-size:.9rem; margin-top:14px; }
.book-files span { display:block; color:var(--muted); }
.book-reader { display:grid; grid-template-columns:minmax(170px,.38fr) minmax(0,1fr); gap:clamp(20px,5vw,60px); }
.book-reader nav { padding-top:38px; border-top:1px solid var(--line); }
.book-reader nav h2 { font-family:inherit; font-size:1rem; font-weight:600; line-height:1.4; letter-spacing:0; }
.book-reader nav ul { margin:0; padding:0; list-style:none; }
.book-reader .chapter p,.book-reader .chapter li { max-width:68ch; }
.guide-tool { padding:16px 0; border-top:1px solid var(--line); }
.guide-tool summary { cursor:pointer; font-weight:650; color:var(--purple); }
.guide-tool[open]>div { margin:16px 0; }
.guide-tool input,.guide-tool select,.guide-tool textarea { display:block; width:min(100%,32rem); margin:5px 0 14px; padding:8px 10px; background:white; color:var(--ink); font:inherit; border:1px solid #828996; border-radius:4px; }
.guide-tool input[type=checkbox] { display:inline; width:auto; margin:0 5px 0 0; }
.guide-tool fieldset { min-width:0; margin:12px 0; padding:12px 16px; border:1px solid var(--line); border-radius:4px; }
.guide-tool legend { padding:0 5px; font-weight:650; }
.guide-tool .periods { display:flex; gap:16px; flex-wrap:wrap; }
.guide-tool button { font:inherit; padding:7px 13px; margin:2px 6px 6px 0; cursor:pointer; color:var(--purple); background:white; border:1px solid #a4a3bb; border-radius:4px; }
.guide-tool button:disabled { cursor:default; color:var(--muted); }
.guide-tool .confirm,.guide-tool [role=status]:not(:empty) { margin:14px 0; }
.guide-tool :focus-visible { outline:3px solid var(--purple); outline-offset:3px; }
.guide-tool pre { max-width:100%; overflow:auto; }
@media(max-width:700px) {
  .book-start,.book-reader { display:block; }
  .book-head { padding-top:26px; }
  .book-start .quote { margin-top:24px; }
  .book-start>div { padding-top:0; }
  .book-reader nav { padding:22px 0; }
}
@media(max-width:700px) { .hero,.spread { grid-template-columns:1fr; gap:24px; padding:36px 0; } .hero img { max-height:260px; object-fit:cover; } header nav { gap:8px; } .brand { gap:7px; } .wrap { width:calc(100% - 32px); } section,.chapter { padding:30px 0; } }
