:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #1b2733;
  --muted: #5b6b7a;
  --line: #d6deea;
  --accent: #0b5fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8f9fc 0%, #eef3f9 100%);
  line-height: 1.6;
}

.container {
  width: min(940px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
}

.nav-wrap {
  min-height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

nav {
  display: inline-flex;
  gap: 1.1rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: var(--ink);
}

.content-area {
  padding: 2.5rem 0 3rem;
}

.hero {
  padding: 3rem 0;
}

.eyebrow {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin: 0.2rem 0 1rem;
}

.page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 1.4rem;
}

.button {
  display: inline-block;
  margin-top: 0.9rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-weight: 600;
}

.post-list {
  display: grid;
  gap: 1rem;
}

.post-card,
.post-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem;
}

.post-card h2 {
  margin: 0.2rem 0 0.6rem;
}

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

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

.lead {
  font-size: 1.05rem;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tags span {
  border: 1px solid var(--line);
  background: #f3f6fc;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.82rem;
  color: #415264;
}

.markdown-content {
  margin-top: 1.1rem;
}

.markdown-content pre {
  background: #0f1a26;
  color: #f1f5fb;
  border-radius: 12px;
  padding: 0.9rem;
  overflow-x: auto;
}

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

@media (max-width: 680px) {
  .nav-wrap {
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 0;
  }
}
