:root {
  --bg: #f0efeb;
  --card: #faf9f6;
  --card-alt: #f5f4f0;
  --accent: #5a7a6a;
  --accent-light: #e8f0ec;
  --text-primary: #2c2c2c;
  --text-secondary: #555;
  --text-muted: #999;
  --border: #e5e2dd;
  --border-light: #eeebe6;
  --radius: 10px;
}

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

body {
  background: var(--bg);
  color: var(--text-secondary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  padding: 48px 24px 80px;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  padding: 48px 52px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
}

/* ---- Header ---- */
.site-header { margin-bottom: 40px; }

.site-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.site-tagline {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* ---- Post list ---- */
.post-list { list-style: none; }

.post-entry {
  padding: 22px 0;
  border-bottom: 1px solid var(--border-light);
}

.post-entry:first-child { padding-top: 0; }
.post-entry:last-child { border-bottom: none; padding-bottom: 0; }

.post-link {
  display: block;
  text-decoration: none;
}

.post-date {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.post-title {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.post-link:hover .post-title { color: var(--accent); }

.post-empty {
  padding: 24px 0 4px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---- Post page ---- */
.post-back {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 36px;
}

.post-back:hover { text-decoration: underline; }

.post-header { margin-bottom: 36px; }

.post-title-page {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.post-meta {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.post-meta time {
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 600;
}

.post-content {
  font-size: 17px;
  line-height: 1.8;
  color: #454545;
}

.post-content > *:first-child { margin-top: 0; }
.post-content > *:last-child { margin-bottom: 0; }

.post-content h2 {
  font-size: 22px;
  font-weight: 650;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  line-height: 1.35;
  margin: 2em 0 0.7em;
}

.post-content h3 {
  font-size: 18px;
  font-weight: 650;
  color: var(--text-primary);
  letter-spacing: -0.1px;
  line-height: 1.4;
  margin: 1.6em 0 0.5em;
}

.post-content p { margin: 1.1em 0; }

.post-content ul,
.post-content ol {
  padding-left: 1.5em;
  margin: 1.1em 0;
}

.post-content li { margin: 0.45em 0; }

.post-content a {
  color: var(--accent);
  text-decoration: none;
}

.post-content a:hover { text-decoration: underline; }

.post-content strong { color: var(--text-primary); font-weight: 600; }

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 18px;
  margin: 1.6em 0;
  color: var(--text-secondary);
  font-style: italic;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.4em 0;
}

.post-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.86em;
  background: var(--accent-light);
  color: #3c5a4b;
  padding: 2px 6px;
  border-radius: 4px;
}

.post-content pre {
  background: #2c2c2c;
  color: #e8e6e0;
  border-radius: 8px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 1.5em 0;
}

.post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.65;
  border-radius: 0;
}

/* ---- Footer ---- */
.site-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  body { padding: 24px 12px 64px; }
  .container { padding: 28px 24px; }
  .site-title { font-size: 24px; }
  .post-title-page { font-size: 24px; }
  .post-content { font-size: 16px; }
  .post-title { font-size: 18px; }
}
