:root { --bg: #fafafa; --card: #fff; --text: #16161a; --muted: #5c5c66; --line: #e6e6ea; --accent: #6d4aff; }
@media (prefers-color-scheme: dark) { :root { --bg: #0e0e11; --card: #16161b; --text: #ececf1; --muted: #9a9aa6; --line: #26262e; --accent: #9b83ff; } }
* { 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; }
header, main, footer { max-width: 760px; margin: 0 auto; padding: 0 20px; }
header { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
nav { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
nav a:hover, a { color: var(--accent); }
h1 { font-size: 34px; line-height: 1.2; margin: 24px 0 12px; }
h2 { font-size: 20px; margin-top: 36px; }
.lead { font-size: 19px; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin: 16px 0; }
.muted { color: var(--muted); font-size: 14px; }
footer { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 20px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
footer a { color: var(--muted); margin-right: 16px; }
.card > h2:first-child { margin-top: 0; }
footer .footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
footer .footer-links a { margin-right: 0; }
ol li, ul li { margin: 4px 0; }
code { font-size: 14px; background: color-mix(in srgb, var(--muted) 14%, transparent); padding: 1px 5px; border-radius: 5px; }
main a, main code { overflow-wrap: anywhere; }
nav a.signin { color: #fff; background: var(--accent); padding: 6px 14px; border-radius: 9px; font-weight: 600; }
nav a.signin:hover { color: #fff; filter: brightness(1.1); }
.hero h1 { font-size: 40px; margin-top: 32px; }
.counter { display: flex; align-items: center; gap: 10px; margin: 20px 0; font-weight: 600; color: var(--muted); }
.counter img { height: 40px; width: auto; }
.button { display: inline-block; padding: 10px 18px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; margin: 4px 8px 4px 0; }
.button:hover { color: #fff; filter: brightness(1.1); }
.button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.grid .card { margin: 0; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 14px; }
h3 { font-size: 17px; margin-top: 24px; }
.toc ol { columns: 2; column-gap: 24px; margin: 8px 0 0; padding-left: 20px; font-size: 15px; }
@media (max-width: 560px) { .toc ol { columns: 1; } .hero h1 { font-size: 30px; } }
