:root {
  color-scheme: dark;
  --bg: #0a0d14;
  --text: #f4f6fb;
  --muted: rgba(255, 255, 255, 0.58);
  --accent: #8c7afa;
  --line: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body { min-height: 100vh; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
nav a:hover { text-decoration: none; color: var(--text); }
nav a.is-current,
nav a.is-current:hover {
  color: var(--accent);
  font-weight: 650;
}

header, main, footer {
  width: min(42rem, calc(100% - 2.5rem));
  margin-left: auto;
  margin-right: auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.brand { font-weight: 650; color: var(--text); }

nav { display: flex; gap: 0.9rem; flex-wrap: wrap; }
nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a.is-current,
nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 650;
}

.langs { display: flex; gap: 0.4rem; }

.langs button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  cursor: pointer;
}

.langs button[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--accent);
}

main { padding: 2rem 0 3rem; }
h1 { font-size: 1.7rem; margin: 0 0 0.4rem; }
.updated { color: var(--muted); margin: 0 0 1.6rem; font-size: 0.95rem; }
p { color: var(--muted); margin: 0 0 1rem; }
h2 { font-size: 1.05rem; margin: 1.6rem 0 0.45rem; }

[data-copy] { display: none; }
[data-copy].is-on { display: block; }

footer {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0 0 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}
