:root {
  --bg: #ffffff;
  --text: #222222;
  --muted: #666666;
  --border: #e2e8f0;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --nav-bg: #f8fafc;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-w: 840px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --text: #e4e4e7;
    --muted: #a1a1aa;
    --border: #27272a;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --nav-bg: #18181b;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.05rem;
  padding-bottom: 4rem;
}

header {
  border-bottom: 1px solid var(--border);
  background: var(--nav-bg);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.brand span {
  color: var(--accent);
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.9rem;
}

.lang-switch a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.lang-switch a:hover {
  color: var(--text);
}

.lang-switch a.active {
  color: var(--text);
  font-weight: 600;
  background: var(--border);
}

main {
  max-width: var(--max-w);
  margin: 2.5rem auto;
  padding: 0 1.25rem;
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
}

p {
  margin-bottom: 1.25rem;
}

ul {
  margin: 0 0 1.25rem 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

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

a:hover {
  text-decoration: underline;
}

footer {
  max-width: var(--max-w);
  margin: 4rem auto 0;
  padding: 1.5rem 1.25rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
