:root{--ink:#143f45;--muted:#3d5558;--wash:#e4eeeb;--accent:#b9d3c7;--paper:#fff;--rule:#8c9f9d;--body:Calibri,'Segoe UI',Arial,sans-serif;--title:Georgia,serif}*{box-sizing:border-box}body{margin:0;background:#e8eeed;color:var(--ink);font:18px/1.4 var(--body)}h1,h2,h3,p,figure{margin:0}h1,h2,h3{line-height:1.1}h1,h2{font-family:var(--title);font-weight:400;text-wrap:balance}p+p{margin-top:.5em}a{color:inherit;text-underline-offset:4px}button,.button{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:10px 17px;background:white;border:0;border-radius:0;color:var(--ink);font:inherit;cursor:pointer;text-decoration:none}.primary{background:var(--ink);color:white}button:hover,.button:hover{background:var(--accent);color:var(--ink);transform:translateY(-2px)}button:active,.button:active{transform:translateY(1px)}:focus-visible{outline:3px solid #b06322;outline-offset:4px}button:disabled{opacity:.45;cursor:default}img{display:block;width:100%;height:auto;object-fit:contain}.toolbar{max-width:1250px;margin:auto;padding:18px 28px;display:flex;justify-content:space-between;gap:20px;align-items:center;font-size:16px}.toolbar>div{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.pubfooter{position:absolute;bottom:6mm;left:13mm;right:13mm;display:flex;justify-content:space-between;gap:10px;font-size:9px;color:var(--muted);z-index:2}.pubfooter a{text-decoration:none}.publication-terms{max-width:900px;margin:30px auto;background:white;padding:28px;font-size:16px}.publication-terms p{margin-top:16px}.publication-terms summary{cursor:pointer;font-weight:700}.prompt{font-weight:700}.writing-lines i{display:block;height:8mm;border-bottom:1px solid var(--rule)}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:6mm;margin:4mm 0}.workspace{border:1px solid var(--rule);padding:3mm;margin:4mm 0;min-width:0;background:white}.workspace p{font-size:14px!important;color:var(--muted)}.two-col .workspace{margin:0}.orders{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;margin:4mm 0}.orders th,.orders td{text-align:left;padding:3mm 4mm;border-bottom:1px solid var(--rule)}.orders thead{background:var(--ink);color:white}.orders tbody tr:nth-child(even){background:var(--wash)}.orders tbody th{font-weight:400}.algorithm{font-variant-numeric:tabular-nums;font-size:22px;min-width:0}.alg-row{display:grid;grid-template-columns:43% 57%;align-items:center;gap:4%;min-height:1.5em}.alg-row .number{text-align:right;font-size:1.2em;letter-spacing:.02em;white-space:nowrap}.alg-row .meaning{font-size:.65em;padding-right:4%}.alg-row.r1 .number,.alg-row.r3 .number{border-bottom:2px solid currentColor}.alg-row.r4{font-weight:700}.partition{display:grid;grid-template-columns:2fr 1fr;gap:3px;min-height:90px}.partition>div{display:flex;flex-direction:column;justify-content:center;gap:14px;padding:18px;background:var(--wash)}.partition .part-ones{background:var(--accent)}.partition span{white-space:nowrap;font-variant-numeric:tabular-nums}.model-label{font-size:13px!important;margin-top:2mm!important}.capacity-strip{background:var(--wash);padding:4mm;margin:3mm 0}.error-card{padding:5mm;background:var(--wash);margin:4mm 0}.error-card p{font-size:20px!important;font-variant-numeric:tabular-nums}.note{font-size:14px!important;margin-top:3mm}.commission-product{display:grid;grid-template-columns:53% 47%;min-height:88mm;margin:4mm 0}.design-space{border:1px solid var(--rule);padding:4mm;font-size:14px;color:var(--muted)}.order-fields{background:var(--wash);padding:5mm}.order-fields p{font-size:16px!important;margin:3mm 0}
/* The print commission is the visual object; art has its own large field. */
.index{background:#fff}.index-nav,.index main{max-width:1280px;margin:auto;padding:24px 40px}.index-nav{display:flex;justify-content:space-between;gap:20px;font-size:16px}.index-hero{display:grid;grid-template-columns:62% 38%;background:var(--wash);align-items:center}.index-hero>div{padding:36px 30px}.index-hero h1{font-size:clamp(38px,4.5vw,64px);letter-spacing:-.04em;margin-bottom:24px}.index-hero p{font-size:25px;line-height:1.25;margin-bottom:28px}.download-index{padding:60px 0}.download-index h2{font-size:40px;max-width:22ch}.lead{font-size:22px;max-width:48ch;margin:20px 0 28px}.print-note{font-size:16px;margin:16px 0 30px;max-width:70ch}.download-row{display:grid;grid-template-columns:32% 48% 20%;align-items:center;padding:24px;gap:0}.download-row:nth-of-type(odd){background:var(--wash)}.download-row h3{font-family:var(--title);font-weight:400;font-size:25px}.download-row p{font-size:18px;padding-right:30px}.download-row>div{display:flex;justify-content:flex-end;gap:25px}.index-close{display:grid;grid-template-columns:58% 42%;background:var(--wash);align-items:center;margin-bottom:50px}.index-close>div{padding:30px}.index-close h2{font-size:42px;margin-bottom:20px}.index-close p{font-size:22px}.index-end{background:var(--ink);color:white;padding:35px max(40px,calc((100% - 1200px)/2))}.index-end p{font-family:var(--title);font-size:34px;margin-bottom:20px}.index-end span{font-size:14px}
/* Presentation pages: illustrations supply story, live text supplies evidence. */
.story{padding-bottom:85px}.story main{max-width:1250px;margin:auto;padding:0 28px}.slide{container-type:inline-size;position:relative;aspect-ratio:16/9;background:white;display:grid;grid-template-columns:40% 60%;overflow:hidden}.slide>*{min-width:0;min-height:0}.slide-copy{padding:3.5cqw 3cqw 4cqw;display:flex;flex-direction:column;justify-content:center;gap:1.3cqw}.slide h1,.slide h2{font-size:3.8cqw;letter-spacing:-.025em}.slide p{font-size:1.75cqw;line-height:1.3}.slide .prompt{font-size:1.5cqw;margin-top:1cqw}.story-art{display:flex;align-items:center;background:var(--wash);min-height:0}.story-art img{width:100%;height:100%;object-fit:contain}.slide .pubfooter{font-size:.72cqw;left:3cqw;right:3cqw;bottom:1cqw}.cover,.close{grid-template-columns:100%;grid-template-rows:67% 33%}.cover .story-art,.close .story-art{grid-row:1}.cover .story-art img,.close .story-art img{object-fit:cover;object-position:center 48%}.cover .slide-copy,.close .slide-copy{grid-row:2;display:grid;grid-template-columns:36% 1fr;gap:.4cqw 3cqw;padding:1.8cqw 3cqw 3cqw}.cover h1,.close h2{font-size:3.3cqw;grid-row:span 3}.cover .slide-copy p,.close .slide-copy p{font-size:1.5cqw;margin:0}.cover .prompt,.close .prompt{font-size:1.3cqw!important}.math-evidence{display:flex;flex-direction:column;justify-content:center;background:var(--wash);padding:4cqw 3cqw 5cqw;gap:2cqw;min-height:0}.math-evidence .algorithm{font-size:3.6cqw}.math-evidence .partition{min-height:20cqw;gap:.35cqw}.math-evidence .partition>div{padding:1.5cqw;background:white;font-size:1.7cqw}.math-evidence .partition .part-ones{background:var(--accent)}.math-evidence .model-label{font-size:1.25cqw!important}.math-evidence .orders{font-size:2cqw}.math-evidence .orders th,.math-evidence .orders td{padding:1.2cqw}.split-evidence{display:grid;grid-template-rows:50% 50%;min-height:0}.split-evidence .math-evidence{padding:1.5cqw 3cqw 4cqw;gap:1cqw;background:var(--wash)}.split-evidence .story-art img{object-fit:cover;object-position:50% 45%}.mistake{display:flex;flex-direction:column;font-size:2.2cqw;gap:1cqw;font-variant-numeric:tabular-nums}.mistake strong{font-size:1.5cqw}.wrong{text-decoration:line-through;text-decoration-thickness:2px}.capacity{text-align:center;display:flex;flex-direction:column;gap:.8cqw;font-variant-numeric:tabular-nums}.capacity strong{font-size:5cqw}.capacity-label{font-size:1.7cqw}.capacity p{margin-top:1cqw}.change{display:grid;grid-template-columns:1fr;gap:.5cqw;font-size:1.8cqw}.change span{font-size:1.35cqw}.publish-rule{display:grid;gap:.8cqw;font-size:1.6cqw}.presentation-controls{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(1194px,100%);display:flex;justify-content:center;align-items:center;gap:15px;background:#fff;padding:10px;z-index:5}.presentation-controls #progress{min-width:80px;text-align:center;font-size:16px}.read-all{max-width:1194px;margin:22px auto;padding:0 28px;font-size:16px}.show-all .slide{margin-bottom:25px}
/* Order-book pages stay spacious and writable, even without colour. */
.book main{width:210mm;max-width:100%;margin:auto}.sheet{width:210mm;height:267mm;padding:13mm 13mm 17mm;position:relative;background:white;margin-bottom:24px;overflow:hidden;break-after:page}.sheet:last-child{break-after:auto}.sheet header{margin-bottom:6mm}.sheet h1{font-size:33px;letter-spacing:-.025em;margin:0 0 3mm}.sheet h2{font-family:var(--body);font-size:19px;font-weight:700;line-height:1.25;margin:3mm 0}.sheet p{font-size:17px;line-height:1.35}.sheet header>p{font-size:18px}.sheet .prompt{margin-top:4mm;margin-bottom:2mm}.worked{display:grid;grid-template-columns:52% 48%;align-items:center;gap:4mm;background:var(--wash);padding:4mm;margin:4mm 0 6mm}.worked>div:last-child{padding-right:4mm}.worked p{font-size:15px}.worked h2{font-size:17px}.worked .algorithm{font-size:22px}.low-ink{--ink:#111;--muted:#333;--wash:#fff;--accent:#fff;--paper:#fff;--rule:#777}.low-ink .orders thead{background:#fff;color:#111;border-bottom:2px solid #111}.low-ink .partition>div,.low-ink .error-card,.low-ink .capacity-strip,.low-ink .worked,.low-ink .order-fields{border:1px solid #777}.low-ink img{filter:grayscale(1)}
.teacher .sheet h1{font-size:31px;margin-bottom:5mm}.teacher-content section{margin-bottom:4mm}.teacher-content h2{font-family:var(--title);font-size:20px;font-weight:400;margin:0 0 1.8mm}.teacher-content p{font-size:15px;line-height:1.36;overflow-wrap:anywhere}.teacher-3 .teacher-content{columns:2;column-gap:7mm}.teacher-3 .teacher-content section{break-inside:avoid}.teacher-3 .teacher-content h2{font-size:18px}.teacher-3 .teacher-content p{font-size:14.4px}.terms-page{background:white;max-width:850px;padding:30px;margin:30px auto}.terms-page h1{font-size:34px;margin-bottom:20px}.terms-page .publication-terms{padding:0;margin:18px 0 0}.terms-page summary{display:none}
@page{size:Letter;margin:6.2mm 2.9mm}
@media print{body{background:white!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.toolbar,.presentation-controls,.read-all,.publication-terms{display:none!important}.book main{width:210mm}.sheet{margin:0;width:210mm;height:267mm}.story{padding:0}.story main{padding:0;margin:0;max-width:none}.story .slide{display:grid!important;width:304.8mm;height:171.45mm;aspect-ratio:auto;break-after:page;margin:0}.story .slide:last-child{break-after:auto}.terms-page{margin:0;width:210mm;padding:11mm;font-size:13px}.terms-page .publication-terms{display:block!important;font-size:13px}.terms-page h1{font-size:28px}.terms-page .publication-terms p{margin-top:11px}a{text-decoration:none}}
@media screen{.story:not(.show-all) .slide[hidden]{display:none}}
@media screen and (max-width:700px){.toolbar{padding:14px 16px;flex-wrap:wrap;align-items:flex-start}.toolbar>div{gap:8px}.toolbar .button,.toolbar button{font-size:14px;padding:8px 12px}.index-nav,.index main{padding:20px}.index-nav{font-size:14px}.index-hero,.index-close{display:flex;flex-direction:column;min-height:0}.index-hero>div,.index-close>div{padding:28px 24px}.index-hero h1{font-size:42px}.index-hero p{font-size:22px}.download-index{padding:38px 0}.download-index h2,.index-close h2{font-size:33px}.lead,.index-close p{font-size:20px}.download-row{display:block;padding:20px}.download-row h3{font-size:25px}.download-row p{padding:0;margin:12px 0;font-size:18px}.download-row>div{justify-content:flex-start}.index-end{padding:28px 20px}.index-end p{font-size:31px}.story main{padding:0 10px}.slide,.story.show-all .slide{display:flex!important;flex-direction:column;aspect-ratio:auto;min-height:600px}.story:not(.show-all) .slide[hidden]{display:none!important}.slide-copy,.cover .slide-copy,.close .slide-copy{display:block;padding:24px 22px;order:2}.slide h1,.slide h2,.cover h1,.close h2{font-size:34px;margin-bottom:18px}.slide p,.cover .slide-copy p,.close .slide-copy p{font-size:19px;margin:12px 0}.slide .prompt,.cover .prompt,.close .prompt{font-size:17px!important;margin-top:16px}.story-art{order:1;min-height:190px}.story-art img,.cover .story-art img,.close .story-art img{height:auto;object-fit:contain}.slide .pubfooter{position:static;order:4;font-size:10px;padding:12px 22px}.math-evidence{order:1;padding:28px 22px;gap:20px}.math-evidence .algorithm{font-size:29px}.math-evidence .partition{min-height:150px}.math-evidence .partition>div{font-size:16px;padding:12px}.math-evidence .model-label{font-size:13px!important}.math-evidence .orders{font-size:17px}.math-evidence .orders th,.math-evidence .orders td{padding:12px 7px}.split-evidence{display:flex;flex-direction:column;order:1}.split-evidence .math-evidence{padding:22px;order:2}.mistake{font-size:24px;gap:15px}.mistake strong{font-size:18px}.capacity{gap:10px}.capacity strong{font-size:48px}.capacity-label{font-size:18px}.change{font-size:22px;gap:10px}.change span{font-size:17px}.publish-rule{font-size:18px;gap:10px}.book main{width:100%}.sheet{width:100%;height:auto;min-height:980px;padding:24px 20px 55px;overflow:visible}.sheet h1{font-size:31px}.pubfooter{left:20px;right:20px;bottom:16px}.worked{grid-template-columns:1fr;padding:16px;gap:16px}.worked>div:last-child{padding:0}.worked .algorithm{font-size:26px}.partition>div{padding:12px;font-size:16px}.partition span{font-size:14px}.two-col{grid-template-columns:1fr;gap:16px}.orders{font-size:15px}.orders th,.orders td{padding:9px 6px}.commission-product{grid-template-columns:1fr}.design-space{min-height:230px}.order-fields{padding:20px}.teacher-content p,.teacher-3 .teacher-content p{font-size:16px}.teacher-3 .teacher-content{columns:1}.teacher-content section{margin-bottom:24px}.teacher-content h2,.teacher-3 .teacher-content h2{font-size:23px}.terms-page{padding:25px 20px;margin:0}.publication-terms{padding:25px 20px;margin:16px 0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}button:hover,.button:hover,button:active,.button:active{transform:none}}
