/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.8;
  color: #333;
  background-color: #fafafa;
}

/* Layout */
.site-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header */
.site-header {
  margin-bottom: 3rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-title a {
  color: #111;
  text-decoration: none;
}

.site-nav {
  margin-top: 0.5rem;
}

.site-nav a {
  color: #666;
  text-decoration: none;
  margin-right: 1rem;
  font-size: 0.9rem;
}

.site-nav a:hover {
  color: #111;
}

/* Content */
.content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  letter-spacing: -0.01em;
}

.content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 1.8rem 0 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #eee;
}

.content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.content p {
  margin: 0.8rem 0;
}

.content ul,
.content ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.content li {
  margin: 0.3rem 0;
}

.content a {
  color: #0969da;
  text-decoration: none;
}

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

.content blockquote {
  border-left: 3px solid #ddd;
  padding-left: 1rem;
  color: #666;
  margin: 1rem 0;
}

.content code {
  background: #f0f0f0;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

.content pre {
  background: #f6f6f6;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1rem 0;
}

.content pre code {
  background: none;
  padding: 0;
}

.content hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 2rem 0;
}

.content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Page title */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

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

.post-list li {
  margin: 1rem 0;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.post-list time {
  color: #999;
  font-size: 0.85rem;
  white-space: nowrap;
}

.post-list a {
  color: #333;
  text-decoration: none;
}

.post-list a:hover {
  color: #0969da;
}

/* Post meta */
.post-meta {
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  color: #999;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 600px) {
  .site-wrapper {
    padding: 1.5rem 1rem;
  }

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

  .content h2 {
    font-size: 1.2rem;
  }

  .post-list li {
    flex-direction: column;
    gap: 0.2rem;
  }
}
