:root {
  --bg: #fbf7fa;
  --text: #24131f;
  --muted: #6b5966;
  --card: #ffffff;
  --line: #ecdfe7;
  --accent: #d9467a;
  --accent-text: #ffffff;
  --link: #b8325f;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a0f19;
    --text: #f5e9f0;
    --muted: #bba5b3;
    --card: #2b1a28;
    --line: #3d2838;
    --accent: #e0598a;
    --accent-text: #ffffff;
    --link: #f08fb2;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); }
.wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 48px; }
header.top { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
header.top a { color: inherit; text-decoration: none; font-weight: 700; font-size: 19px; display: flex; align-items: center; gap: 10px; }
header.top img { width: 36px; height: 36px; border-radius: 10px; }
h1 { font-size: 34px; line-height: 1.2; margin: 0 0 16px; }
h2 { font-size: 22px; line-height: 1.3; margin: 32px 0 8px; }
p, li { margin: 0 0 12px; }
ul { padding-left: 22px; }
.lead { font-size: 20px; color: var(--text); }
.hero { display: grid; gap: 24px; }
.hero img { width: 120px; height: 120px; border-radius: 28px; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 14px;
  margin: 8px 0 12px;
}
.note { color: var(--muted); font-size: 15px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 24px 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.doc h2 { font-size: 20px; }
footer { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 16px; font-size: 15px; color: var(--muted); }
footer a { color: var(--muted); margin-right: 16px; }
@media (max-width: 480px) {
  h1 { font-size: 28px; }
  .lead { font-size: 18px; }
}
