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

/* Base */
:root {
  --text: #1a1a1a;
  --text-secondary: #6b6b6b;
  --accent: #0066cc;
  --accent-hover: #0052a3;
  --bg: #ffffff;
  --border: #e5e5e5;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Layout */
main, .site-header nav, footer {
  max-width: 680px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Header */
.site-header {
  padding-top: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.site-header nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.site-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--text);
}

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

.post-list li {
  margin-bottom: 16px;
}

.post-list a {
  color: var(--accent);
  text-decoration: none;
  font-size: 19px;
  font-weight: 500;
}

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

.post-list time {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 2px;
}

/* Post */
.post-header {
  margin-bottom: 40px;
}

.post-header h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.post-header time {
  color: var(--text-secondary);
  font-size: 15px;
}

.post-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 16px;
}

.post-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(0, 102, 204, 0.3);
  text-underline-offset: 2px;
}

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

.post-content ul, .post-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 6px;
}

.post-content blockquote {
  border-left: 3px solid var(--border);
  padding-left: 20px;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-style: italic;
}

.post-content code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.88em;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
}

.post-content pre {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.post-content pre code {
  background: none;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
}

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

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

/* Page (about, etc.) */
.page h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.page p {
  margin-bottom: 20px;
}

.page a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(0, 102, 204, 0.3);
  text-underline-offset: 2px;
}

.page a:hover {
  text-decoration-color: var(--accent);
}

/* Footer */
footer {
  margin-top: 80px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
}
