:root {
  color-scheme: light dark;
  --text: #1c1c1e;
  --muted: #5c5c61;
  --surface: #ffffff;
  --page: #f2f2f7;
  --line: #d9d9de;
  --accent: #1f6295;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f2f2f7;
    --muted: #b0b0b7;
    --surface: #1c1c1e;
    --page: #000000;
    --line: #38383a;
    --accent: #79b8e8;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 16px;
  background: var(--page);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

header, main, footer {
  max-width: 680px;
  margin: 0 auto;
}

header {
  padding: 28px 0 8px;
}

header a {
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

main {
  padding: 16px 0 32px;
}

h1 { font-size: 34px; line-height: 1.2; margin: 16px 0 12px; }
h2 { font-size: 22px; line-height: 1.3; margin: 32px 0 8px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 8px; }
a { color: var(--accent); }

.lead { font-size: 21px; line-height: 1.4; color: var(--text); }
.updated, footer { color: var(--muted); font-size: 15px; }

.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 20px 0;
}

.note p:last-child { margin-bottom: 0; }

footer {
  border-top: 1px solid var(--line);
  padding: 16px 0 32px;
}

footer a { margin-right: 16px; white-space: nowrap; }
