:root {
  color-scheme: light dark;
  --bg: #f7f6fb;
  --surface: #ffffff;
  --text: #17161d;
  --muted: #5d5a6b;
  --accent: #5b47d6;
  --line: #e3e0ee;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f14;
    --surface: #1a1a22;
    --text: #ececf1;
    --muted: #a3a1b2;
    --accent: #a597ff;
    --line: #2c2b38;
  }
}

* {
  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(--accent);
}

header,
main,
footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  padding-top: 20px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #2b2440, #5b47d6, #e57aa0, #f3b27a, #2b2440);
  flex: none;
}

main {
  padding-bottom: 32px;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 24px 0 8px;
}

h2 {
  font-size: 1.2rem;
  margin: 32px 0 8px;
}

p,
ul,
ol {
  margin: 0 0 14px;
}

li {
  margin-bottom: 6px;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

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

.card p:last-child,
.card ul:last-child,
.card ol:last-child {
  margin-bottom: 0;
}

.links {
  list-style: none;
  padding: 0;
}

.links a {
  font-weight: 600;
}

footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  padding-bottom: 32px;
  font-size: 0.9rem;
  color: var(--muted);
}

footer a {
  color: var(--muted);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-bottom: 6px;
}

.card h2.first {
  margin-top: 0;
}
