:root {
  --bg: #f6f7f9;
  --text: #16181d;
  --muted: #5b6270;
  --line: #d9dde4;
  --accent: #2f66e8;
  --on-accent: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1014;
    --text: #eceef2;
    --muted: #9aa2b1;
    --line: #272b34;
    --accent: #6c97ff;
    --on-accent: #0b1020;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, "Segoe UI", sans-serif;
}
header, main, footer { width: 100%; max-width: 760px; margin: 0 auto; padding: 24px 20px; }
header img { display: block; }
main { flex: 1; }
.home main { display: flex; flex-direction: column; justify-content: center; }
h1 { margin: 0 0 12px; font-size: 40px; line-height: 1.15; font-weight: 650; }
.text h1 { font-size: 30px; }
h2 { margin: 32px 0 8px; font-size: 19px; }
p, ul { margin: 0 0 16px; }
a { color: var(--accent); overflow-wrap: anywhere; }
nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 24px; }
.button {
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.button.plain { background: none; border-color: var(--line); color: var(--text); }
.button[hidden] { display: none; }
.button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.note, small { color: var(--muted); font-size: 14px; }
.code { font-size: 22px; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
footer { display: flex; gap: 20px; border-top: 1px solid var(--line); }
footer a { color: var(--muted); }
