* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  color: #374151;
  background: #fafafa;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 20px;
  overflow-wrap: break-word;
}

header {
  margin-bottom: 80px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
}

.subtitle {
  font-size: 1.1rem;
  color: #6b7280;
}

nav {
  margin-top: 30px;
}

nav a {
  color: #6b7280;
  text-decoration: none;
  margin-right: 24px;
  font-size: 0.95rem;
}

nav a:hover {
  color: #111827;
}

section {
  margin-bottom: 60px;
}

h2 {
  font-size: 1.5rem;
  margin: 40px 0 20px;
  color: #111827;
}

h3 {
  font-size: 1.2rem;
  margin: 30px 0 15px;
  color: #111827;
}

p {
  margin-bottom: 16px;
  text-align: justify;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.post-list {
  list-style: none;
}

.post-list li {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.post-date {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-left: 12px;
}

/* Blog post specific styles */
.post-header {
  margin-bottom: 40px;
}

.post-title {
  font-size: 2rem;
  margin-bottom: 12px;
}

.post-meta {
  color: #9ca3af;
  font-size: 0.95rem;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 30px 0;
  border-radius: 8px;
}

.post-content pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
  font-weight: 500;
  line-height: 1.7;
}

.post-content code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

.post-content pre code {
  background: transparent;
  padding: 0;
}

/* Back to blog link */
.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: #6b7280;
}

.back-link:hover {
  color: #111827;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
  }
  
  .post-title {
    font-size: 1.6rem;
  }
  
  nav a {
    display: block;
    margin: 8px 0;
  }
}

/* Code/text block styling */
.code-block {
  background: #f3f4f6;
  border-left: 4px solid #2563eb;
  padding: 20px;
  margin: 20px 0;
  border-radius: 4px;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  line-height: 1.6;
  white-space: pre-wrap;
  font-weight: 550;
}

.screenshot-caption {
  font-style: italic;
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: 10px;
  margin-bottom: 20px;
}

.screenshot-large {
  display: block;
  margin: 30px auto;
  max-width: 100%;   
  width: auto;
  height: auto;
  border: 2px solid #2563eb;
  border-radius: 4px;
}

.screenshot-large:hover {
  border-color: #1d4ed8; 
  opacity: 0.95;
}