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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.7;
  font-size: 18px;
}

nav {
  border-bottom: 1px solid #e5e5e5;
}

.nav-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 16px 24px;
}

.site-name {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.site-name:hover {
  color: #2563eb;
}

main {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Homepage */
.intro {
  padding: 48px 0 32px;
}

.intro h1 {
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 12px;
}

.intro p {
  color: #555;
  margin-bottom: 8px;
}

.intro a {
  color: #2563eb;
}

.post-list {
  list-style: none;
  padding: 0 0 64px;
}

.post-list li {
  padding: 20px 0;
  border-top: 1px solid #e5e5e5;
}

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

.post-list .post-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.post-list a:hover .post-title {
  color: #2563eb;
}

.post-list .post-meta {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 4px;
}

.post-list .post-desc {
  color: #555;
  font-size: 0.95rem;
}

/* Article */
article {
  padding: 48px 0 64px;
}

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

.post-header h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

.post-header time {
  color: #888;
  font-size: 0.9rem;
}

article h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 12px;
  line-height: 1.3;
}

article h3 {
  font-size: 1.15rem;
  margin-top: 32px;
  margin-bottom: 8px;
}

article p {
  margin-bottom: 16px;
}

article ul, article ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

article li {
  margin-bottom: 6px;
}

article a {
  color: #2563eb;
}

article a:hover {
  text-decoration: none;
}

article strong {
  font-weight: 600;
}

article blockquote {
  border-left: 3px solid #d1d5db;
  padding-left: 16px;
  color: #555;
  margin-bottom: 16px;
}

/* Code */
article pre {
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 16px;
  font-size: 0.875rem;
  line-height: 1.5;
}

article code {
  font-family: 'Consolas', 'Menlo', 'Monaco', monospace;
  font-size: 0.875em;
}

article p code, article li code {
  background: #f5f5f5;
  padding: 2px 5px;
  border-radius: 3px;
  border: 1px solid #e5e5e5;
}

article pre code {
  background: none;
  padding: 0;
  border: none;
  border-radius: 0;
  font-size: inherit;
}

/* CTA box */
.cta {
  margin-top: 48px;
  padding: 24px;
  background: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
}

.cta p {
  margin-bottom: 8px;
}

.cta p:last-child {
  margin-bottom: 0;
}

.cta a {
  color: #2563eb;
  font-weight: 600;
}

/* Footer */
footer {
  border-top: 1px solid #e5e5e5;
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px;
  color: #888;
  font-size: 0.875rem;
}

.footer-inner a {
  color: #888;
  text-decoration: none;
}

.footer-inner a:hover {
  color: #2563eb;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .intro h1 {
    font-size: 1.5rem;
  }

  .post-header h1 {
    font-size: 1.625rem;
  }

  article h2 {
    font-size: 1.25rem;
  }
}
