:root {
  --bg: #0c0c0f;
  --surface: #16161b;
  --surface-2: #1d1d24;
  --text: #ececf1;
  --text-muted: #9b9ba8;
  --accent: #ff5a7a;
  --accent-soft: rgba(255, 90, 122, 0.15);
  --border: #2a2a33;
  --max-width: 760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 96px;
}

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 12, 15, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.brand .logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff5a7a, #a855f7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

nav.top-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}
nav.top-nav a {
  color: var(--text-muted);
}
nav.top-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 13px;
}
.lang-switch a {
  padding: 6px 12px;
  color: var(--text-muted);
}
.lang-switch a.active {
  background: var(--accent-soft);
  color: var(--accent);
}

h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 24px 0 8px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 20px;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 16px;
  margin: 20px 0 8px;
  color: var(--text);
}

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

ul, ol { padding-left: 22px; }

li { margin: 4px 0; }

.meta {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 14.5px;
}

.callout strong { color: var(--text); }

table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14.5px;
}
table.data th,
table.data td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.data th {
  color: var(--text-muted);
  font-weight: 600;
  background: var(--surface);
}

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

footer.site-footer a { color: var(--text-muted); }
footer.site-footer a:hover { color: var(--text); }

.muted { color: var(--text-muted); }
.mono { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }

@media (max-width: 600px) {
  h1 { font-size: 26px; }
  h2 { font-size: 18px; }
  .container { padding: 20px 18px 64px; }
  header.site-header { padding: 14px 16px; }
}
