* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1f2937;
  background: #f5f7fb;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.brand {
  display: inline-block;
  padding: 14px 20px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
}
.home-side {
  position: sticky;
  top: 74px;
}
h1, h2, h3 {
  line-height: 1.2;
  color: #0f172a;
}
.tag-section {
  margin-top: 0;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 18px;
}
.tag-chip {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e0e7ff;
  color: #3730a3;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid #c7d2fe;
}
.post-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.post-list li {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(30, 64, 175, 0.08);
  padding: 14px 16px;
}
.post-list li > a {
  display: block;
  text-decoration: none;
  color: #1d4ed8;
  font-weight: 600;
}
.post-list li:hover {
  background: #eff6ff;
}
.inline-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mini-tag {
  font-size: 12px;
  text-decoration: none;
  color: #4338ca;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  padding: 3px 8px;
}
.post-body {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  line-height: 1.7;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}
.post-body pre {
  overflow-x: auto;
  background: #0b1020;
  color: #dbeafe;
  border-radius: 10px;
  padding: 12px;
}
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.home-btn {
  display: inline-block;
  margin-top: 14px;
  text-decoration: none;
  color: #fff;
  background: #2563eb;
  padding: 8px 12px;
  border-radius: 10px;
}
.empty {
  background: #fff;
  border: 1px dashed #94a3b8;
  border-radius: 12px;
  padding: 16px;
}

@media (max-width: 900px) {
  .home-layout {
    grid-template-columns: 1fr;
  }

  .home-side {
    position: static;
  }
}
