:root{
  --bg:#fbfaf8; --surface:#fff; --text:#1d1c1a; --dim:#5f5c57; --border:#e6e2dc; --accent:#c66a1e;
}
@media (prefers-color-scheme: dark){
  :root{--bg:#17161a; --surface:#201f24; --text:#eeece9; --dim:#a9a5a0; --border:#34323a; --accent:#e2954f}
}
*{box-sizing:border-box}
body{margin:0; background:var(--bg); color:var(--text); font:16px/1.65 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.wrap{max-width:860px; margin:0 auto; padding:0 20px}
a{color:var(--accent)}
header{border-bottom:1px solid var(--border)}
header .wrap{display:flex; align-items:center; justify-content:space-between; height:60px}
.brand{font-weight:700; color:var(--text); text-decoration:none}
nav a{margin-left:18px; color:var(--dim); text-decoration:none}
nav a:hover{color:var(--text)}
.hero{padding:64px 0 32px}
h1{font-size:clamp(28px,5vw,42px); line-height:1.15; margin:0 0 16px; letter-spacing:-.01em}
h2{font-size:22px; margin:48px 0 8px}
h3{margin:0 0 6px; font-size:17px}
.lead{font-size:19px; max-width:640px}
.muted{color:var(--dim)}
.grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px}
.card{background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:18px}
.card p{margin:0; color:var(--dim)}
code{font-size:14px; background:var(--surface); border:1px solid var(--border); border-radius:6px; padding:1px 5px}
main{padding-bottom:48px}
article{padding:40px 0 48px}
article h1{font-size:32px}
footer{border-top:1px solid var(--border); padding:24px 0; color:var(--dim); font-size:14px}
footer .wrap{display:flex; flex-wrap:wrap; gap:8px 20px}
