:root {
  --primary: #0088FF;
  --surface: #E0E3E9;
  --window: #FFFFFF;
  --text: #373737;
  --border: #E1E5EA;
  --muted: #888;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, sans-serif;
  background: var(--window);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

header .logo {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

header .logo .dot {
  color: var(--primary);
}

main {
  word-wrap: break-word;
}

h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
  line-height: 1.3;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.3;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text);
}

h4, h5, h6 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

p {
  margin-bottom: 16px;
}

ul, ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

li {
  margin-bottom: 4px;
}

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

a:hover {
  text-decoration: underline;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

code {
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
}

pre {
  background: var(--surface);
  padding: 12px 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
  font-size: 14px;
}

pre code {
  background: transparent;
  padding: 0;
}

blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--muted);
  font-style: italic;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
  background: var(--surface);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

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

footer p {
  margin-bottom: 8px;
}

footer .lang-switcher {
  margin-top: 8px;
}

footer .lang-switcher a {
  color: var(--muted);
  font-weight: 500;
}

footer .lang-switcher a:hover {
  color: var(--primary);
}

@media (max-width: 480px) {
  .container {
    padding: 24px 16px 48px;
  }
  h1 { font-size: 24px; }
  h2 { font-size: 18px; }
  body { font-size: 15px; }
}
