:root {
  color-scheme: light dark;
  --bg: #f0ecf7;
  --surface: #ffffff;
  --text: #1a1228;
  --muted: #5c5470;
  --accent: #9063f1;
  --border: #ddd6eb;
  --max: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15101d;
    --surface: #1f1829;
    --text: #f0ecf7;
    --muted: #a89bb8;
    --border: #2e2640;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

header {
  margin-bottom: 2rem;
}

.logo {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

h1 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.75rem;
  line-height: 1.25;
}

.updated {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

nav.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

nav.links a {
  color: var(--accent);
  text-decoration: none;
}

nav.links a:hover {
  text-decoration: underline;
}

article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.5rem;
}

article h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.1rem;
}

article h2:first-child {
  margin-top: 0;
}

article h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
}

article p,
article li {
  color: var(--text);
}

article ul {
  padding-left: 1.25rem;
}

article a {
  color: var(--accent);
}

.lang-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

footer {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
