*,:before,:after{box-sizing:border-box}*{margin:0}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{background-color:#fafafa;min-height:100vh;line-height:1.5;overflow-x:hidden}img,picture,video,canvas,svg{max-width:100%;display:block}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}#root{isolation:isolate}.hero-section{text-align:left;background:#fff;flex-direction:column;justify-content:center;align-items:flex-start;min-height:100vh;padding:2rem 2rem 2rem 8vw;display:flex;position:relative}.hero-content{max-width:900px}.hero-title{color:#1a1a1a;margin:0 0 1rem;font-family:Georgia,Times New Roman,serif;font-size:clamp(2.5rem,8vw,4.5rem);font-weight:700;line-height:1.1}.hero-title-accent{color:#2563eb}.hero-subtitle{color:#666;margin:0 0 2rem;font-family:Georgia,Times New Roman,serif;font-size:clamp(1rem,3vw,1.4rem);font-style:italic}.hero-animation{margin:2rem 0}.hero-scroll-indicator{cursor:pointer;color:#999;background:0 0;border:none;padding:.5rem;transition:color .2s,transform .2s;animation:2s infinite bounce;position:absolute;bottom:2rem;left:8vw}.hero-scroll-indicator:hover{color:#333}@keyframes bounce{0%,20%,50%,80%,to{transform:translateY(0)}40%{transform:translateY(-10px)}60%{transform:translateY(-5px)}}.essay-page{flex-direction:column;width:100%;display:flex}.youtube-player-container{z-index:100;background:#000;width:100%;padding:.5rem 1rem;position:sticky;top:0;box-shadow:0 2px 8px #0000004d}.youtube-player-wrapper{background:#000;border-radius:6px;width:53.3333vh;max-width:100%;height:30vh;margin:0 auto;position:relative;overflow:hidden}.youtube-player-wrapper iframe,.youtube-player-wrapper #youtube-player{border:none;border-radius:6px;width:100%;height:100%}.timestamp-link{cursor:pointer;color:inherit;border-bottom:2px solid #3b82f6;padding-bottom:1px;text-decoration:none;transition:all .2s;position:relative}.timestamp-link:hover{background-color:#3b82f61a;border-bottom-color:#2563eb}.timestamp-indicator{color:#fff;vertical-align:middle;opacity:.8;background-color:#3b82f6;border-radius:4px;margin-left:.5rem;padding:.1rem .4rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.75rem;transition:opacity .2s;display:inline-block}.timestamp-link:hover .timestamp-indicator{opacity:1}.timestamp-block{cursor:pointer;border-radius:8px;margin:1rem -1rem;padding:1rem;transition:background-color .2s;position:relative}.timestamp-block:hover{background-color:#3b82f614}.timestamp-block:active{background-color:#3b82f626}.timestamp-block-badge{color:#fff;opacity:0;background-color:#3b82f6;border-radius:4px;padding:.2rem .5rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.7rem;transition:opacity .2s;position:absolute;top:.5rem;right:.5rem}.timestamp-block:hover .timestamp-block-badge{opacity:1}.essay-layout{max-width:1200px;min-height:100vh;margin:0 auto;padding:2rem;font-family:Georgia,Times New Roman,serif;position:relative}.essay-content{max-width:600px}.essay-content h1{color:#1a1a1a;margin-top:1rem;margin-bottom:1.5rem;font-size:2rem;font-weight:700;line-height:1.2}.essay-content h2{color:#2a2a2a;margin-top:2.5rem;margin-bottom:1rem;font-size:1.5rem;font-weight:600}.essay-content h3{color:#3a3a3a;margin-top:2rem;margin-bottom:.75rem;font-size:1.25rem;font-weight:500}.essay-content p{color:#444;margin-bottom:1rem;font-size:1.1rem;line-height:1.8}.essay-content figure{text-align:center;margin:2rem 0}.essay-content figure img{border-radius:4px;max-width:100%;height:auto}.essay-content figcaption{color:#888;margin-top:.5rem;font-size:.85rem;font-style:italic}section.footnotes,section[data-footnotes=true]{display:none}.footnote-ref{color:#2563eb;vertical-align:super;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.85em;font-weight:600;text-decoration:none}.footnote-ref:hover{text-decoration:underline}.sidenotes-column{width:350px;position:absolute;top:2rem;left:660px}.sidenote{color:#555;border-left:2px solid #ddd;width:350px;padding-left:1rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.875rem;line-height:1.6;position:absolute}.sidenote-number{color:#2563eb;margin-right:.4rem;font-weight:600}.sidenote img{border-radius:4px;max-width:100%;height:auto;margin-top:.5rem}.sidenote p{margin:0 0 .5rem}.sidenote a{color:#2563eb;text-decoration:none}.sidenote a:hover{text-decoration:underline}.footnotes-hidden{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.footnotes-bottom{border-top:1px solid #e5e5e5;margin-top:3rem;padding-top:1.5rem;display:none}.footnotes-bottom h2{color:#666;margin-bottom:1rem;font-size:1rem;font-weight:600}.footnotes-bottom ol{margin:0;padding-left:1.5rem}.footnotes-bottom li{color:#666;margin-bottom:.75rem;font-size:.9rem;line-height:1.6}.footnotes-bottom a[data-footnote-backref]{color:#2563eb;margin-left:.25rem;text-decoration:none}.diagram-container{background-color:#fff;border:1px solid #e0e0e0;border-radius:8px;margin:2rem 0;padding:1.5rem}.diagram-title{color:#666;margin-bottom:1rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.9rem;font-weight:600}.diagram-row{flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:2rem;display:flex}.class-box{flex-direction:column;align-items:center;width:140px;display:flex}.class-interface{color:#1e40af;text-align:center;background-color:#dbeafe;border:2px solid #3b82f6;border-radius:4px 4px 0 0;justify-content:center;align-items:center;width:100%;padding:.25rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.75rem;display:flex}.class-interface--small{height:30px}.class-interface--large{height:80px}.class-implementation{color:#475569;text-align:center;background-color:#f1f5f9;border:2px solid #94a3b8;border-top:none;border-radius:0 0 4px 4px;flex-direction:column;justify-content:center;align-items:center;width:100%;padding:.25rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.75rem;display:flex}.class-implementation--large{height:120px}.class-implementation--small{height:70px}.hidden-complexity{color:#64748b;margin-top:.25rem;font-size:.65rem}.class-label{margin-top:.5rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.8rem;font-weight:500}.class-label--good{color:#16a34a}.class-label--bad{color:#dc2626}.module-box{flex-direction:column;align-items:center;display:flex}.module-box--deep{width:100px}.module-box--shallow{width:200px}.module-label-top{color:#374151;margin-bottom:.5rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.85rem}.module-interface{background-color:#3b82f6;width:100%;height:8px}.module-implementation{color:#374151;text-align:center;background-color:#fff;border:2px solid #1a1a1a;justify-content:center;align-items:center;width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.8rem;display:flex}.module-implementation--tall{height:150px}.module-implementation--short{height:40px}.cost-benefit-diagram{flex-direction:column;align-items:center;gap:.5rem;padding:1rem 0;display:flex}.cost-benefit-annotation{color:#374151;flex-direction:column;align-items:center;display:flex}.cost-benefit-annotation--top{margin-bottom:.25rem}.cost-benefit-annotation--bottom{margin-top:.25rem}.cost-benefit-label{text-align:center;color:#1f2937;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.85rem;font-weight:500;line-height:1.4}.cost-benefit-arrow{color:#374151;width:24px;height:40px}.cost-benefit-arrow--down{margin-top:.25rem}.cost-benefit-arrow--up{margin-bottom:.25rem}.cost-benefit-main{align-items:center;gap:.5rem;display:flex}.cost-benefit-brace-container{align-items:center;gap:.25rem;display:flex}.cost-benefit-brace{color:#374151;width:20px;height:100px}.cost-benefit-brace-label{color:#1f2937;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.9rem;font-weight:500}.cost-benefit-class{flex-direction:column;width:120px;display:flex}.cost-benefit-interface{background-color:#86efac;border:2px solid #22c55e;border-radius:2px 2px 0 0;height:20px}.cost-benefit-implementation{background-color:#bfdbfe;border:2px solid #3b82f6;border-top:none;border-radius:0 0 2px 2px;height:80px}.code-container{border:1px solid #e0e0e0;border-radius:8px;margin:1.5rem 0;overflow:hidden}.code-header{background-color:#f1f5f9;align-items:center;gap:.4rem;padding:.5rem 1rem;display:flex}.code-dot{background-color:#cbd5e1;border-radius:50%;width:10px;height:10px}.code-language{color:#64748b;margin-left:auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.75rem}.code-block{color:#e2e8f0;background-color:#1e293b;margin:0;padding:1rem;font-family:Monaco,Consolas,Courier New,monospace;font-size:.85rem;line-height:1.6;overflow-x:auto}.shiki-wrapper{max-width:100%;overflow-x:auto}.shiki-wrapper pre{border-radius:0;margin:0;padding:1rem;font-family:Monaco,Consolas,Courier New,monospace;font-size:.85rem;line-height:1.6;overflow-x:auto}.shiki-wrapper code{font-family:inherit}.callout{border-left:4px solid;border-radius:4px;align-items:flex-start;gap:.75rem;margin:1.5rem 0;padding:1rem 1rem 1rem 1.25rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.95rem;line-height:1.6;display:flex}.callout--info{background-color:#e0f2fe;border-left-color:#0ea5e9}.callout--warning{background-color:#fef3c7;border-left-color:#f59e0b}.callout--tip{background-color:#d1fae5;border-left-color:#10b981}.callout-icon{border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:20px;height:20px;font-size:1rem;font-weight:700;display:flex}.callout--info .callout-icon{color:#fff;background-color:#0ea5e9}.callout--warning .callout-icon{color:#fff;background-color:#f59e0b}.callout--tip .callout-icon{color:#fff;background-color:#10b981}.callout-content{flex:1}.quote{background-color:#f8fafc;border-left:4px solid #94a3b8;border-radius:0 8px 8px 0;margin:2rem 0;padding:1.5rem}.quote-text{color:#334155;margin:0;font-size:1.1rem;font-style:italic;line-height:1.7}.quote-footer{color:#64748b;margin-top:.75rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.9rem}@media (max-width:767px){.essay-layout{box-sizing:border-box;max-width:100%;padding:1rem;overflow-x:hidden}.essay-content{overflow-wrap:break-word;word-wrap:break-word;width:100%;max-width:100%}.sidenotes-column{display:none}.footnotes-bottom{display:block}.essay-content h1{font-size:1.75rem}.essay-content h2{font-size:1.35rem}.essay-content p{font-size:1rem}.diagram-row{flex-direction:column;align-items:center}.timestamp-block{margin:1rem 0}.code-container{border-left:none;border-right:none;border-radius:0;margin:1rem -1rem}.essay-footer:before{width:80%;max-width:300px}}@media (min-width:768px){.sidenotes-column{display:block}.footnotes-bottom{display:none}}.essay-footer{background-color:inherit;text-align:center;padding:3rem 2rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;position:relative}.essay-footer:before{content:"";background-color:#e5e5e5;width:650px;height:1px;position:absolute;top:0;left:50%;transform:translate(-50%)}.footer-github-link{color:#666;align-items:center;gap:.5rem;font-size:.9rem;text-decoration:none;transition:color .2s;display:inline-flex}.footer-github-link:hover{color:#333}.footer-text{color:#999;margin:.75rem 0 0;font-size:.85rem}
