:root {
  --bg: #f4f4f2;
  --surface: #ffffff;
  --text: #141414;
  --muted: #5c5c5c;
  --line: #e2e2de;
  --accent: #141414;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121212; --surface: #1b1b1b; --text: #efefec; --muted: #a3a3a0; --line: #2c2c2c; --accent: #efefec; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 16px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; text-underline-offset: 3px; }
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; text-decoration: none; }
.top nav { display: flex; gap: 18px; font-size: 14px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a[aria-current="page"], .top nav a:hover { color: var(--text); }
.wrap { max-width: 760px; margin: 0 auto; padding-inline: 20px; }
main.wrap { padding-block: 56px 80px; }
h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.02em; }
h2 { font-size: 20px; margin: 40px 0 8px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 8px; }
.meta { font-size: 14px; color: var(--muted); margin-bottom: 32px; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px; margin: 24px 0; }
.box p:first-child { margin-top: 0; } .box p:last-child { margin-bottom: 0; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { padding-block: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
