body {
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 720px;
  padding: 0 1.5rem;
  text-align: left;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
}

header h1 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: #111;
}

header h1 a {
  color: #111;
  text-decoration: none;
  transition: color 0.2s ease;
}

header h1 a:hover {
  color: #0066cc;
}

nav {
  font-size: 0.9rem;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

nav a:hover,
nav a.active {
  color: #111;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0066cc;
  transition: width 0.2s ease;
}

nav a:hover::after {
  width: 100%;
}

main {
  margin-bottom: 3rem;
}

main h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
  color: #111;
}

main h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: #222;
}

main h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: #222;
}

main p {
  margin: 0 0 1.25rem;
}

main a {
  color: #0066cc;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

main a:hover {
  border-bottom-color: #0066cc;
}

main ul, main ol {
  margin: 0 0 1.25rem 1.5rem;
}

main li {
  margin-bottom: 0.4rem;
}

main blockquote {
  border-left: 3px solid #ddd;
  margin: 1.5rem 0;
  padding: 0.5rem 1rem;
  color: #555;
  font-style: italic;
}

main code {
  background: #f5f5f5;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  font-size: 0.9em;
}

main pre {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

main pre code {
  background: none;
  padding: 0;
}

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

footer {
  border-top: 1px solid #eee;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #888;
}

/* Meta / taxonomy styling */
.meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1.5rem;
}

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

.meta a:hover {
  color: #555;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tags a {
  font-size: 0.75rem;
  color: #888;
  background: #f5f5f5;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.tags a:hover {
  background: #eee;
  color: #333;
}

/* Home page post sections */
main section {
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 6px;
  transition: all 0.2s ease;
}

main section:hover {
  border-color: #ccc;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

main section h2 a {
  color: #2e7d32;
  text-decoration: none;
  transition: color 0.2s ease;
}

main section h2 a:hover {
  color: #1b5e20;
}

main section p {
  color: #555;
  transition: color 0.2s ease;
}

main section:hover p {
  color: #333;
}
