:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --ink: #17202a;
  --muted: #5b6675;
  --line: #dfe5ec;
  --accent: #0f766e;
  --accent-ink: #0a4f49;
  --code-bg: #101820;
  --code-ink: #e8edf2;
}

* {
  box-sizing: border-box;
}

html {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.wrap {
  width: min(920px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.hero {
  padding: 56px 0 36px;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 42px;
  line-height: 1.16;
  letter-spacing: 0;
}

.hero p {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.post-list {
  display: grid;
  gap: 18px;
  padding-bottom: 56px;
}

.post-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.post-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.3;
}

.post-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 14px;
}

.summary {
  margin: 14px 0 0;
  color: var(--muted);
}

.article {
  max-width: 820px;
  padding: 44px 0 72px;
}

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

.article h1 {
  margin: 0 0 12px;
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: 0;
}

.content h2,
.content h3 {
  margin-top: 34px;
  line-height: 1.3;
}

.content p,
.content ul,
.content ol {
  margin: 16px 0;
}

.content code {
  border-radius: 4px;
  background: #e8eef3;
  padding: 2px 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.content pre {
  overflow-x: auto;
  border-radius: 8px;
  background: var(--code-bg);
  padding: 18px;
}

.content pre code {
  background: transparent;
  color: var(--code-ink);
  padding: 0;
}

.tag {
  border-radius: 999px;
  background: #dbece8;
  color: var(--accent-ink);
  padding: 2px 9px;
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px 0;
  font-size: 14px;
}

@media (max-width: 640px) {
  .site-header .wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 16px 0;
  }

  .hero {
    padding-top: 36px;
  }

  .hero h1,
  .article h1 {
    font-size: 30px;
  }
}
