:root{--bg:#f7f8f5;--ink:#18211c;--muted:#59665e;--line:#dce3da;--green:#245743;--orange:#c7532b;--path:#e46f46;--blue:#4879a9;--white:#fff;color-scheme:light}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:1rem/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
[hidden]{display:none!important}
a{color:var(--green);text-underline-offset:.2em}
button,input{font:inherit}
button,a,input,summary{-webkit-tap-highlight-color:transparent}
button,summary{cursor:pointer}
button{min-height:44px;padding:.6rem 1rem;border:1px solid #b9ccc0;border-radius:9px;background:#edf4ed;color:var(--green);font-weight:650}
button:hover{background:#e0efe2}
button:disabled{cursor:wait;opacity:.65}
:focus-visible{outline:3px solid #7cb99a;outline-offset:4px}
.wrap{width:min(960px,calc(100% - 40px));margin-inline:auto}
.site-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-block:22px;border-bottom:1px solid var(--line)}
.brand{font-size:1.25rem;font-weight:800;letter-spacing:-.04em;text-decoration:none;color:var(--ink)}
.brand span,.accent{color:var(--orange)}
.site-header nav{display:flex;align-items:center;gap:24px;min-width:0;font-size:.875rem}
.site-header nav a{text-decoration:none}
.site-header form{margin:0}
.login-prompt{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.55rem .85rem;border:1px solid #b33b32;border-radius:9px;color:#a3302c;font-weight:600;line-height:1.35}
.login-prompt:hover{background:#fff0ed}
.account-avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;border-radius:50%;background:var(--green);color:var(--white);font-size:1rem;font-weight:650}
.text-button{border:0;padding:0;min-height:44px;background:transparent;font-weight:400}
.text-button:hover{background:transparent;text-decoration:underline}
.intro{padding:46px 0 30px}
.topic-intro{padding-top:32px}
.eyebrow{font-size:.875rem;color:var(--muted);margin:0 0 12px}
.eyebrow a{text-decoration:none}
h1{font-size:clamp(2.3rem,5.5vw,3.9rem);line-height:1.08;letter-spacing:-.055em;margin:0 0 18px;font-weight:760}
.intro>p:last-child{max-width:720px;margin:0;color:var(--muted);font-size:1.0625rem}
h2{font-size:1.65rem;line-height:1.2;letter-spacing:-.035em;margin:0 0 18px}
h3{line-height:1.3;font-size:1.0625rem;margin:0}
p{margin:0 0 14px}
.topic-list{margin-top:12px}
.topic-row{padding:27px 0;border-top:1px solid var(--line)}
.topic-row-title{display:flex;align-items:baseline;justify-content:space-between;gap:14px}
.topic-row h3{font-size:1.55rem;letter-spacing:-.025em}
.topic-row h3 a{text-decoration:none;color:var(--ink)}
.topic-row h3 a:hover{color:var(--green);text-decoration:underline}
.topic-row>p{color:var(--muted);margin:7px 0 18px}
.topic-state{font-size:.875rem;font-weight:650;color:var(--green)}
.progress-caption{display:flex;justify-content:space-between;gap:12px;font-size:.875rem;color:var(--muted);margin-bottom:7px}
.viewed-state{color:var(--green)}
progress{display:block;width:100%;height:6px;border:0;border-radius:5px;overflow:hidden;background:#e3e8e1;appearance:none}
progress::-webkit-progress-bar{background:#e3e8e1;border-radius:5px}
progress::-webkit-progress-value{background:#b0c3a7;border-radius:5px}
progress::-moz-progress-bar{background:#b0c3a7;border-radius:5px}
.is-complete progress::-webkit-progress-value{background:var(--green)}
.is-complete progress::-moz-progress-bar{background:var(--green)}
.quiet-note{font-size:.875rem;color:var(--muted);max-width:620px;margin:28px 0 46px}
.model{border:1px solid var(--line);background:var(--white);border-radius:16px;overflow:hidden;padding:23px 24px 18px;margin-bottom:20px}
.model-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.model-controls.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.field{min-width:0}
.field label{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;font-size:.875rem;font-weight:650;margin-bottom:8px}
.field output{font-weight:500;color:var(--green);font-variant-numeric:tabular-nums}
.field input[type=range]{width:100%;margin:0;min-height:28px;accent-color:var(--green);cursor:pointer}
.model-actions{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 0}
.model-actions button{font-size:.875rem}
.model-actions [data-play]{margin-left:auto;min-width:86px;background:var(--green);color:white}
.scene{display:block;width:100%;height:auto;max-height:330px;margin:8px 0;overflow:hidden}
.scene text,.exercise-diagram text{font-family:inherit;fill:var(--green);font-size:14px}
.scene-legend{display:flex;gap:22px;margin-top:18px;font-size:.875rem}
.scene-legend span:before{content:"";display:inline-block;width:18px;height:3px;vertical-align:middle;margin-right:7px;background:var(--path)}
.scene-legend .displacement-key:before{background:var(--blue)}
.readouts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;border-top:1px solid var(--line);padding-top:16px}
.readouts span{display:block;color:var(--muted);font-size:.875rem}
.readouts output{display:block;font-size:1.4rem;font-weight:700;line-height:1.35;color:var(--green);font-variant-numeric:tabular-nums}
.readouts .path-color{color:var(--orange)}
.readouts .displacement-color{color:var(--blue)}
.model-note{margin:12px 0 0;color:var(--muted);font-size:.875rem}
.model-graph{margin:16px -24px -18px;padding:14px 24px;border-top:1px solid var(--line);font-size:.875rem}
.model-graph svg{display:block;width:100%;height:auto;margin-top:14px}
.model-graph text{font:13px -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;fill:var(--muted)}
summary{font-size:.9375rem;font-weight:650;color:var(--green);padding-block:8px;min-height:44px}
details>p{margin:8px 0 12px}
.reference{padding:4px 0;border-bottom:1px solid var(--line)}
.symbols{margin:6px 0 16px}
.symbols>div{display:grid;grid-template-columns:72px 1fr;gap:16px;padding:9px 0;border-top:1px solid #e9ede7}
.symbols dt{color:var(--green);font-weight:650}
.symbols dd{margin:0}
.symbol-unit{margin-left:12px;color:var(--muted);font-size:.875rem;white-space:nowrap}
.lesson-section{margin-block:36px}
.formula-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.formula-card{min-width:0;background:var(--white);border:1px solid var(--line);border-radius:12px;padding:18px}
.formula-card>p:last-child{font-size:.875rem;color:var(--muted);margin:8px 0 0}
.equation{font-family:Georgia,"Times New Roman",serif;font-size:1.3rem;color:var(--green);line-height:1.6;margin:10px 0;overflow-wrap:anywhere}
.advanced{margin-top:-16px}
.advanced-values{display:flex;gap:12px 25px;flex-wrap:wrap;color:var(--green)}
.mistakes details{border-top:1px solid var(--line);padding:5px 0}
.mistakes details p{max-width:760px;color:var(--muted)}
.lesson-end{height:25px;min-height:25px;font-size:.875rem;color:var(--green);margin:0}
.pulley-comparison{width:100%;border-collapse:collapse;font-size:.9375rem;font-variant-numeric:tabular-nums}
.pulley-comparison caption{caption-side:bottom;text-align:left;color:var(--muted);padding-top:12px;font-size:.875rem}
.pulley-comparison th,.pulley-comparison td{text-align:left;padding:9px 8px;border-top:1px solid var(--line)}
.pulley-comparison th{font-weight:600}
.pulley-comparison td output{color:var(--green);font-weight:650}
.exercises{margin-top:30px}
.exercise{border:1px solid var(--line);border-radius:14px;background:white;padding:25px;margin:0 0 20px}
.exercise.is-solved{border-color:#9fbaa8}
.exercise-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}
.exercise-title h3{font-size:1.25rem;letter-spacing:-.02em}
.solved-badge{color:var(--green);font-size:.875rem;font-weight:650}
.statement{max-width:760px}
.exercise-source{font-size:.875rem;color:var(--muted);margin-bottom:12px}
.source-note{font-size:.9375rem;border-left:3px solid var(--path);padding:8px 14px;background:#fff7f0}
.density-readouts{grid-template-columns:repeat(3,minmax(0,1fr))}
.density-model>p:first-child{color:var(--muted);font-size:.9375rem}
.density-model .scene{max-height:220px}
.density-model .scene text{font-size:17px}
.exercise-context{display:grid;grid-template-columns:1fr 240px;gap:20px;align-items:center;padding:10px 0}
.exercise-context h4{font-size:.875rem;color:var(--muted);margin:0 0 6px}
.givens{list-style:none;margin:0;padding:0;line-height:1.8;color:var(--green)}
.find{margin:8px 0 0}
.exercise-diagram{width:100%;height:auto;max-width:260px;justify-self:center}
.exercise-formulas{margin-block:5px;border-bottom:1px solid var(--line)}
.hints{margin:12px 0}
.hint summary{font-weight:500}
.hint p{font-size:.9375rem;color:var(--muted)}
.answer-form{margin-top:18px}
.answer-form label{display:block;font-size:.875rem;font-weight:650;margin-bottom:7px}
.answer-controls{display:flex;gap:9px;max-width:540px}
.answer-controls input{width:100%;min-width:0;border:1px solid #adbbb0;border-radius:9px;padding:10px 12px;background:#fff;color:var(--ink)}
.answer-feedback{font-size:.9375rem;margin:10px 0 0;min-height:24px;color:var(--muted)}
.answer-feedback.correct{color:var(--green)}
.answer-feedback.incorrect{color:#9c472e}
.topic-navigation{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding-block:24px;font-size:.9375rem}
.site-footer{display:flex;justify-content:space-between;gap:20px;padding-block:25px;color:var(--muted);font-size:.8125rem}
.site-footer nav{display:flex;flex-wrap:wrap;gap:4px 20px}
.site-footer a{display:inline-flex;align-items:center;min-height:44px;color:inherit}
.legal-page{max-width:650px;padding-block:42px 24px}
.legal-page h1{font-size:clamp(1.9rem,5vw,2.8rem);line-height:1.15}
.legal-page h2{font-size:1.0625rem;letter-spacing:0;margin:25px 0 8px}
.legal-page .updated{color:var(--muted);font-size:.8125rem;margin-bottom:25px}
.login-page{max-width:650px;padding:70px 0}
.login-page p{color:var(--muted)}
.login-page form{margin:25px 0}
.skip-link{position:fixed;top:-100px;left:20px;z-index:10;background:white;padding:12px}
.skip-link:focus{top:12px}
@media(max-width:760px){.formula-grid{grid-template-columns:1fr}.model-controls.three{grid-template-columns:repeat(2,minmax(0,1fr))}.model-controls.three .field:last-child{grid-column:1/-1}.formula-card{padding:16px 18px}.formula-card .equation{margin-block:7px}}
@media(max-width:520px){.wrap{width:calc(100% - 28px)}.site-header{padding-block:13px}.site-header nav{gap:18px}.intro{padding-block:30px 24px}.intro>p:last-child{font-size:1rem}.model{padding:17px 15px 16px}.model-controls,.model-controls.three{grid-template-columns:1fr;gap:13px}.model-controls.three .field:last-child{grid-column:auto}.model-actions{gap:6px;margin-top:13px}.model-actions button{padding:8px 10px}.model-actions [data-play]{margin-left:0;min-width:70px}.scene{margin-block:4px}.readouts{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.readouts output{font-size:1.3rem}.model-graph{margin-inline:-15px;margin-bottom:-16px;padding:12px 15px}.scene-legend{gap:16px;font-size:.8125rem}.lesson-section{margin-block:28px}.symbols>div{grid-template-columns:54px 1fr;gap:10px}.symbols dd{font-size:.9375rem}.exercise{padding:18px 16px}.exercise-context{grid-template-columns:1fr;gap:0}.exercise-diagram{max-width:220px;max-height:135px}.answer-controls{flex-wrap:wrap}.answer-controls input{flex:1 1 160px}.answer-controls button{flex:0 0 auto}.topic-row h3{font-size:1.35rem}.topic-row-title{align-items:flex-start}.topic-state{font-size:.8125rem}.site-footer{display:block}.site-footer span{display:block;margin-bottom:5px}.topic-navigation{font-size:.875rem}.equation{font-size:1.25rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important}}
@media(max-width:520px){.site-header{gap:10px}.site-header nav{flex:1;justify-content:flex-end;gap:12px}.login-prompt{padding:.55rem .65rem;font-size:.75rem;text-align:center}}
@media(max-width:520px){.model-controls.three{grid-template-columns:repeat(2,minmax(0,1fr))}.model-controls.three .field:last-child{grid-column:1/-1}}
