:root{--paper:#fbf5e9;--white:#fffcf6;--ink:#382a30;--wine:#742b3c;--wood:#b38b5c;--line:#dfd2c0;--muted:#6b5952;--green:#23696b;--gold:#975b18;font-family:Arial,sans-serif;color:var(--ink);background:var(--paper);line-height:1.6;font-size:16px;color-scheme:light}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}a{color:var(--wine);text-underline-offset:4px}button,input,select,textarea{font:inherit}button,.button{display:inline-flex;justify-content:center;align-items:center;border:1px solid var(--wine);border-radius:8px;padding:9px 16px;min-height:44px;background:var(--white);color:var(--wine);text-decoration:none;cursor:pointer;line-height:1.35}button:hover,.button:hover{background:#f0e2d4}button:disabled{opacity:.45;cursor:default}.primary{background:var(--wine);color:var(--white)}.primary:hover{background:#542030}.quiet{border-color:transparent;background:transparent;padding-left:0;font-size:14px}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--green);outline-offset:4px}h1,h2,h3{line-height:1.2;font-family:Georgia,serif;font-weight:400}h1{font-size:clamp(30px,3.7vw,46px);margin:10px 0 20px}h2{font-size:26px;margin:12px 0}h3{font-size:23px;margin:15px 0 8px}p{margin:8px 0 18px}.small{font-size:14px;color:var(--muted)}.eyebrow{font-size:12px;letter-spacing:1.7px;text-transform:uppercase;color:var(--wine);font-weight:bold}.lead{font-size:19px;max-width:620px}.skip{position:absolute;top:-100px;left:12px;padding:12px;background:white;z-index:5}.skip:focus{top:12px}.duo-header{display:flex;flex-wrap:wrap;align-items:center;gap:24px;padding:13px max(20px,calc((100vw - 1280px)/2));border-bottom:2px solid var(--wood);background:var(--white)}.logo{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;text-decoration:none}.logo img{display:block;width:52px;height:52px;border-radius:50%}.home-link{text-decoration:none}.duo-header nav{display:flex;gap:20px;flex-wrap:wrap;margin-left:auto}.duo-header nav a{display:inline-flex;align-items:center;min-height:44px;font-size:14px}main{max-width:1280px;margin:auto;padding:30px 30px 16px}.welcome{display:grid;grid-template-columns:1fr 240px;align-items:center;gap:28px}.welcome img{width:100%;height:auto;border-radius:50%;border:5px solid var(--wood)}.entrances{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:24px 0 36px}.entrances article{background:var(--white);border:1px solid var(--line);border-top:5px solid var(--wood);border-radius:70px 70px 12px 12px;padding:30px}.entrances article:last-child{border-top-color:var(--wine)}#resume{margin-bottom:24px}.exam-section{border-top:1px solid var(--line);padding-top:18px}#exam-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin:22px 0}#exam-list article{background:var(--white);border:1px solid var(--line);padding:20px;border-radius:12px}#exam-list h3{margin:0 0 12px}#exam-list .small{margin:7px 0 12px}#exam-list a{display:block;margin-top:12px}#exam-list a:not(.button){font-size:14px;min-height:44px;padding:10px 0;margin-top:4px}.privacy{margin:34px 0;max-width:850px}.privacy h2{font-size:23px}.privacy p{font-size:14px}.storage{border-top:1px solid var(--line);padding:22px 0 8px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.storage .small{display:block}.actions{display:flex;gap:10px;flex-wrap:wrap}#storage-message{flex-basis:100%;font-size:14px;margin:0}.warning{color:#8f2727;font-weight:bold}footer{max-width:1280px;margin:auto;padding:20px 30px 28px;display:flex;gap:18px;justify-content:space-between;font-size:13px;color:var(--muted);flex-wrap:wrap}.back{display:inline-block;min-height:44px;padding:6px 0}.exercise-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:8px 0 24px}.exercise-heading h1{font-size:34px;margin:8px 0 12px}.picker{min-width:200px;font-size:13px}select{display:block;width:100%;min-height:44px;background:var(--white);color:var(--ink);border:1px solid #bba78e;border-radius:7px;padding:9px;margin:7px 0 18px;max-width:100%}.work-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:34px}.work-grid>section{min-width:0}.problem h2{font-size:19px}.task{font-weight:600}.figure{background:#f4ecdf;border:1px solid var(--line);border-radius:12px;padding:4px;overflow:hidden}.figure svg{display:block;width:100%;height:auto;max-height:520px}.figure .given{fill:none;stroke:var(--wine);stroke-width:2.1}.figure .circle{fill:none;stroke:#a88c68;stroke-width:1.7}.figure .aux{fill:none;stroke:#675953;stroke-dasharray:6 5;stroke-width:1.6}.figure .accent{fill:none;stroke:var(--green);stroke-width:2.5}.figure .accent2{fill:none;stroke:var(--gold);stroke-width:2.5}.figure .shade{fill:#23696b18;stroke:none}.figure .shade2{fill:#975b1815;stroke:none}.figure .locus{fill:none;stroke:var(--green);stroke-width:5}.figure .point{fill:var(--ink)}.figure text{font:18px Georgia,serif;fill:var(--ink);paint-order:stroke;stroke:#f4ecdf;stroke-width:3;stroke-linejoin:round}.figure-caption{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px;color:var(--muted)}.thinking{background:var(--white);border:1px solid var(--line);padding:24px;border-radius:12px;align-self:start}.thinking h2{font-size:24px}.thinking textarea{width:100%;min-height:155px;resize:vertical;border:1px solid #bba78e;border-radius:8px;padding:13px;background:#fffdf8;color:var(--ink)}details{border-top:1px solid var(--line);padding:13px 0}summary{cursor:pointer;min-height:34px;color:var(--wine);font-weight:600}details p{margin:12px 0 16px}details ul{padding-left:20px}details li{margin:9px 0}#reference-links a{display:inline-block;padding:4px 0}.step-control{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.step-control button{font-size:14px}.step-control span{font-size:13px}#step-description{border-left:3px solid var(--green);padding-left:15px}.note{background:#f4ecdf;padding:14px;border-radius:7px;font-size:14px}#explore{margin:14px 0}#explore label{font-size:14px}input[type=range]{width:100%;min-height:44px;accent-color:var(--wine)}.question-nav{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:25px 0;flex-wrap:wrap}dialog{background:var(--paper);color:var(--ink);border:1px solid var(--wood);border-radius:12px;width:min(900px,94vw);max-height:92vh;padding:20px}dialog::backdrop{background:#25191dc9}dialog .figure{margin-top:12px}dialog p{margin-top:14px}dialog .figure svg{max-height:60vh}#exercise-title{scroll-margin-top:20px}
@media(max-width:900px){.work-grid{gap:22px}.thinking{padding:18px}.welcome{grid-template-columns:1fr 170px}#exam-list{grid-template-columns:1fr 1fr}.duo-header{gap:16px}.exercise-heading{align-items:flex-start;flex-direction:column}.picker{width:100%}}
@media(max-width:700px){main{padding:22px 18px 12px}.duo-header{padding:10px 18px;gap:8px 18px}.duo-header nav{flex-basis:100%;justify-content:space-between;margin:0;gap:10px}.welcome{display:block}.welcome img{display:none}.entrances,.work-grid,#exam-list{grid-template-columns:1fr}.entrances article{border-radius:40px 40px 12px 12px;padding:25px}.exercise-heading h1{font-size:30px}.figure text{font-size:24px}footer{padding:20px 18px}dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);padding:10px}dialog .figure text{font-size:28px}}
@media(max-width:380px){#exam-list{grid-template-columns:1fr}.thinking{padding:16px}.step-control{gap:7px}button,.button{padding:9px 12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
@media print{.duo-header,footer,.storage,.question-nav,.picker,.back,.actions,.quiet{display:none!important}body{background:white}.work-grid{display:block}.thinking{border:0}.figure{break-inside:avoid}textarea{min-height:120px}main{max-width:none;padding:0}}

.figure .open-point{fill:var(--paper);stroke:var(--green);stroke-width:2}

.method-picker{margin:16px 0 20px}.method-picker label{font-size:14px;font-weight:600}.method-picker select{font-size:14px;width:100%;min-width:0;margin-bottom:0}#method-info{margin-bottom:12px}
