:root {
  --fg: #16181d;
  --muted: #5b6270;
  --bg: #ffffff;
  --accent: #0C298C;
  --accent-ink: #001869;
  --border: #e6e8ec;
  --tldr-bg: #f2f5ff;
  --max-w: 720px;
}

* { box-sizing: border-box; }

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

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

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

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  margin-bottom: 2rem;
}
.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--fg);
}
.main-nav { display: flex; align-items: center; gap: 1.1rem; font-size: 0.95rem; }
.lang-switch a { margin-left: 0.4rem; color: var(--muted); }
.lang-switch a.active { color: var(--accent-ink); font-weight: 600; }

main.wrap { min-height: 50vh; padding-bottom: 3rem; }

h1 { font-size: 2rem; line-height: 1.25; margin-bottom: 0.4rem; }
h2 { font-size: 1.4rem; margin-top: 2rem; }
h3 { font-size: 1.15rem; }

.post-meta { color: var(--muted); font-size: 0.9rem; margin: 0.2rem 0 1rem; }
.lang-note { font-size: 0.9rem; color: var(--muted); }

.tldr-box {
  background: var(--tldr-bg);
  border-left: 4px solid var(--accent);
  padding: 0.9rem 1.1rem;
  border-radius: 6px;
  margin: 1.2rem 0 1.8rem;
}

.post-content p { margin: 1rem 0; }
.post-content img { max-width: 100%; border-radius: 8px; }
.post-content blockquote {
  border-left: 3px solid var(--border);
  margin: 1rem 0;
  padding-left: 1rem;
  color: var(--muted);
}
.post-content pre { background: #f5f6f8; padding: 1rem; border-radius: 8px; overflow-x: auto; }
.post-content code { background: #f5f6f8; padding: 0.15rem 0.35rem; border-radius: 4px; }

.faq { margin-top: 2.5rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.faq-item { margin-bottom: 1.3rem; }
.faq-item h3 { margin-bottom: 0.3rem; }

.tags { font-size: 0.9rem; color: var(--muted); }
.tags a { margin-right: 0.5rem; }

.post-list { list-style: none; padding: 0; }
.post-list-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.post-list-item h2 { margin: 0 0 0.3rem; color: var(--fg); }
.read-more { font-weight: 600; }

.section-intro { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.fine-print { margin-top: 0.5rem; color: #9aa0ab; }
