:root { color-scheme: light; font-family: system-ui, -apple-system, Segoe UI, sans-serif; color: #183440; background: #f1f5f4; }
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
main { max-width: 960px; margin: 30px auto; padding: 32px 42px; background: white; border-radius: 16px; }
.eyebrow { color: #147e6d; font-size: 13px; letter-spacing: .1em; font-weight: 700; }
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 10px 0 18px; }
h2 { margin: 32px 0 12px; font-size: 24px; }
h3 { font-size: 18px; margin: 18px 0 8px; }
p { margin: 8px 0 14px; }
figure { margin: 20px 0; }
img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.finished img { max-width: 700px; width: 100%; }
.wiring img { max-width: 650px; width: 100%; }
figcaption { color: #566e77; font-size: 13px; margin-top: 8px; line-height: 1.5; }
a { color: #147e6d; }
[data-tooltip]::after { content:attr(data-tooltip); display:none; position:fixed; inset:auto 16px 16px; width:min(420px,calc(100vw - 32px)); padding:10px 12px; border-radius:8px; background:#183440; color:white; box-shadow:0 5px 20px #0003; font:500 13px/1.45 system-ui,sans-serif; text-align:left; white-space:normal; overflow-wrap:anywhere; z-index:1000; pointer-events:none; }
[data-tooltip]:hover::after,[data-tooltip]:focus-visible::after { display:block; }
[data-tooltip]:focus-visible { outline:3px solid #167ddd; outline-offset:3px; }
@media print { [data-tooltip]::after { display:none!important; } }
li { margin-bottom: 8px; }
ol { padding-left: 24px; }
.note { padding: 14px 18px; border-left: 4px solid #147e6d; background: #edf7f4; border-radius: 0 8px 8px 0; }
.parts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.parts ul { margin: 0; padding-left: 22px; }
.sources { font-size: 13px; }
@media (max-width: 600px) { main { padding: 24px 20px; margin: 0; border-radius: 0; } .parts { grid-template-columns: 1fr; } }
@media print { :root { background: white; } main { margin: 0; padding: 0; max-width: none; } h2, h3 { break-after: avoid; } figure, .note { break-inside: avoid; } a { color: #183440; } }
