:root {
  color-scheme: light dark;
  --fg: #1d1d1f; --muted: #6e6e73; --bg: #ffffff; --soft: #f5f5f7; --line: #e5e5ea; --accent: #0066cc;
}
@media (prefers-color-scheme: dark) {
  :root { --fg: #f5f5f7; --muted: #98989d; --bg: #000000; --soft: #1c1c1e; --line: #2c2c2e; --accent: #2997ff; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 680px; margin: 0 auto; padding: 0 20px 64px; }

/* Top bar */
nav {
  display: flex; gap: 22px; flex-wrap: wrap; align-items: center;
  padding: 18px 0; margin-bottom: 40px; border-bottom: 1px solid var(--line);
}
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover, nav a[aria-current="page"] { color: var(--fg); }
nav .brand { color: var(--fg); font-weight: 600; margin-right: auto; }

/* Type */
h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 10px; }
h2 { font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; margin: 44px 0 10px; }
h3 { font-size: 17px; margin: 24px 0 4px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin: 6px 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; }
.muted { color: var(--muted); }
.lead { font-size: 19px; color: var(--muted); margin-bottom: 28px; }
.meta { color: var(--muted); font-size: 15px; margin-bottom: 32px; }

/* Blocks */
.box { background: var(--soft); border-radius: 14px; padding: 18px 20px; margin: 20px 0; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
.button {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 600; font-size: 16px;
  padding: 11px 22px; border-radius: 999px; margin-top: 6px;
}
.button:hover { text-decoration: none; opacity: .9; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1.1; }
details[open] summary::after { content: "−"; }
details > div { padding-top: 10px; color: var(--fg); }
details > div p:last-child { margin-bottom: 0; }

/* Lists of links */
.links { list-style: none; padding: 0; }
.links li { margin: 0; border-bottom: 1px solid var(--line); }
.links a { display: block; padding: 12px 0; }

footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }
section { scroll-margin-top: 16px; }

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  nav { gap: 16px; margin-bottom: 28px; }
  nav .brand { width: 100%; }
}
@media print { nav, footer { display: none; } a { color: inherit; } }
