:root {
  color-scheme: light dark;
  --bg: #f7f8f5;
  --card: #fff;
  --text: #18221d;
  --muted: #58665e;
  --line: #dce3de;
  --accent: #176b4d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
header, footer {
  max-width: 900px;
  margin: auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}
header { border-bottom: 1px solid var(--line); }
footer { border-top: 1px solid var(--line); font-size: .9rem; }
.brand { color: var(--text); font-size: 1.1rem; font-weight: 700; text-decoration: none; }
main { max-width: 900px; margin: 24px auto 48px; padding: 0 16px; }
article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 5vw, 56px);
  box-shadow: 0 10px 35px rgb(20 35 27 / 6%);
}
h1 { line-height: 1.15; font-size: clamp(2rem, 6vw, 3rem); }
h2 { margin-top: 2.2em; line-height: 1.25; }
h3 { margin-top: 1.7em; }
p, li { max-width: 76ch; }
a { color: var(--accent); text-underline-offset: 3px; }
code { overflow-wrap: anywhere; }
@media (prefers-color-scheme: dark) {
  :root { --bg:#101713; --card:#17211b; --text:#edf4ef; --muted:#a9b7ae; --line:#304039; --accent:#79d3aa; }
}
@media (max-width: 480px) {
  header, footer { padding-inline: 16px; }
  main { margin-top: 12px; padding: 0 8px; }
  article { border-radius: 12px; padding: 22px 18px; }
}
