/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");

:root {
  --max-width: 960px;
  --primary-color: #1d3557;
  --accent-color: #e63946;
  --bg-color: #f7f9fc;
  --text-color: #333;
  --radius: 6px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  background: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 2rem 1rem;
  text-align: center;
}

.site-title a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 2rem;
  font-weight: 700;
}

.tagline {
  margin-top: 0.5rem;
  color: #666;
}

.posts-list {
  width: 100%;
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1rem;
  flex: 1;
}

.post-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.post-item:hover {
  transform: translateY(-3px);
}

.post-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
}

.post-title {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.post-excerpt {
  color: #555;
}

.site-footer {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* Single Post */
.single-container {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1rem;
}

.single-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.single-meta {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Responsive */
.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.pagination a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--primary-color);
  border-radius: var(--radius);
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.pagination a:hover {
  background: var(--primary-color);
  color: #fff;
}

@media (max-width: 600px) {
  .post-thumb {
    height: 160px;
  }
}
