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

/* Base */
body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #fff;
}

a {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: #555; }

/* Layout */
.wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden;
}

/* Header */
header {
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 0;
  margin-bottom: 48px;
}

header .wrap {
  display: flex;
  align-items: baseline;
  gap: 32px;
}

.site-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  color: #1a1a1a;
  margin-right: auto;
}
.site-title:hover { color: #1a1a1a; }

nav {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  display: flex;
  gap: 24px;
}

nav a {
  text-decoration: none;
  color: #555;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 13px;
}
nav a:hover, nav a.active { color: #1a1a1a; }

/* Footer */
footer {
  border-top: 1px solid #e0e0e0;
  margin-top: 80px;
  padding: 24px 0 32px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  color: #888;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
footer a { color: #888; }
footer a:hover { color: #1a1a1a; }

/* Main content */
main { margin-bottom: 0; }

/* Page title */
h1.page-title {
  font-size: 28px;
  font-weight: normal;
  margin-bottom: 40px;
  color: #1a1a1a;
}

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

.post-item {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #f0f0f0;
}
.post-item:last-child { border-bottom: none; }

.post-thumb {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 16px;
}

.post-meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.post-title {
  font-size: 22px;
  font-weight: normal;
  margin-bottom: 12px;
  line-height: 1.4;
}
.post-title a { text-decoration: none; }
.post-title a:hover { text-decoration: underline; }

.post-excerpt {
  color: #444;
  font-size: 17px;
  margin-bottom: 12px;
}

.read-more {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  text-decoration: none;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.read-more:hover { color: #1a1a1a; }

/* Single post */
.post-header { margin-bottom: 40px; }
.post-header h1 {
  font-size: 30px;
  font-weight: normal;
  line-height: 1.35;
  margin-bottom: 12px;
}

.post-content h2 { font-size: 22px; font-weight: normal; margin: 40px 0 16px; }
.post-content h3 { font-size: 19px; font-weight: normal; margin: 32px 0 12px; }
.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol { margin: 0 0 20px 24px; }
.post-content li { margin-bottom: 6px; }
.post-content code {
  font-family: 'Courier New', monospace;
  font-size: 15px;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
}
.post-content pre {
  background: #f5f5f5;
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 20px;
  border-radius: 4px;
}
.post-content pre code { background: none; padding: 0; }
.post-content img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 28px;
  border-radius: 4px;
}

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

/* Tools grid */
h2.tools-category {
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin: 56px 0 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}
h2.tools-category:first-of-type { margin-top: 0; }

.tools-list { list-style: none; }

.tool-card {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #f0f0f0;
}
.tool-card:last-child { border-bottom: none; }

.tool-name {
  font-size: 20px;
  font-weight: normal;
  margin-bottom: 8px;
}
.tool-name a { text-decoration: none; }
.tool-name a:hover { text-decoration: underline; }

.tool-lang {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.tool-desc {
  color: #444;
  font-size: 17px;
  margin-bottom: 12px;
}

.tool-link {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  text-decoration: none;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tool-link:hover { color: #1a1a1a; }

/* About / generic page */
.page-content h2 { font-size: 22px; font-weight: normal; margin: 36px 0 14px; }
.page-content h3 { font-size: 19px; font-weight: normal; margin: 28px 0 10px; }
.page-content p { margin-bottom: 18px; }
.page-content ul { margin: 0 0 18px 22px; }
.page-content li { margin-bottom: 6px; }
.page-content a { color: #1a1a1a; }

/* Home intro */
.home-intro {
  margin-bottom: 60px;
  font-size: 19px;
  color: #333;
  line-height: 1.65;
}
.home-intro strong { font-weight: normal; color: #1a1a1a; border-bottom: 1px solid #1a1a1a; }

/* Responsive */
@media (max-width: 600px) {
  body { font-size: 16px; }
  header .wrap { flex-wrap: wrap; gap: 16px; }
  .site-title { margin-right: 0; width: 100%; }
  h1.page-title { font-size: 24px; }
  .post-header h1 { font-size: 24px; }
}
