:root {
  color-scheme: light dark;
  --paper: #fbfaf6; --ink: #202a35; --muted: #526273; --line: #c5ced4;
  --panel: #f0f3f2; --accent: #075e68; --accent-ink: #fff; --warm: #8f4812;
  --code: #e9eef0; --shadow: 0 10px 34px rgb(18 38 45 / .08);
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #151a20; --ink: #edf1f3; --muted: #bdc8cf; --line: #48535d; --panel: #222a31; --accent: #83d8df; --accent-ink: #102328; --warm: #ffc18b; --code: #28343b; --shadow: 0 10px 34px rgb(0 0 0 / .2); }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 Georgia, 'Iowan Old Style', serif; }
main { max-width: 860px; margin: 0 auto; padding: 48px 26px 90px; }
.kicker { font: 700 12px/1.3 system-ui, sans-serif; color: var(--accent); letter-spacing: .14em; text-transform: uppercase; }
h1,h2,h3 { line-height: 1.18; }
h1 { max-width: 700px; font-size: clamp(2.5rem, 7vw, 4.6rem); letter-spacing: -.045em; margin: 18px 0 8px; }
h2 { margin-top: 2.2em; font-size: 1.65rem; }
p { margin: .8em 0; }
.estimate { color: var(--muted); font: 14px system-ui, sans-serif; margin-bottom: 30px; }
.lede { max-width: 690px; font-size: 1.16rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin: 24px 0; }
.diagram { display: block; width: 100%; height: auto; border-radius: 10px; }
figcaption,.small { color: var(--muted); font: 14px/1.55 system-ui,sans-serif; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--code); padding: 18px; border-radius: 10px; border: 1px solid var(--line); font: 15px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace; }
code { font: .9em ui-monospace,SFMono-Regular,Menlo,monospace; background: var(--code); padding: .1em .28em; border-radius: 4px; }
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .17em; }
.callout { border-left: 4px solid var(--warm); padding: 4px 0 4px 16px; }
.steps { display: grid; grid-template-columns: 2.2rem 1fr; gap: 10px 14px; }
.steps b { color: var(--accent); font: 700 14px system-ui,sans-serif; }
.quiz label { display:block; margin: 16px 0 6px; font-weight: 700; }
.quiz input { width:100%; background:var(--paper); color:var(--ink); border:1px solid var(--line); border-radius:8px; padding:12px; font:inherit; }
button { background:var(--accent); color:var(--accent-ink); border:0; border-radius:8px; padding:11px 16px; font:700 14px system-ui,sans-serif; cursor:pointer; margin:14px 0; }
button:focus-visible,input:focus-visible,a:focus-visible { outline:3px solid var(--warm); outline-offset:3px; }
.feedback { min-height:2em; font:14px/1.5 system-ui,sans-serif; }
footer { margin-top:48px; border-top:1px solid var(--line); padding-top:18px; color:var(--muted); font:14px/1.6 system-ui,sans-serif; }
@media print { body{background:#fff;color:#111} main{max-width:none;padding:0} .panel,pre{break-inside:avoid} button{display:none} }
