:root {
  --color-main: #0ea5e9;
  --color-accent: #64748b;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: #1e293b;
  background: #f8fafc;
}

a { color: var(--color-main); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0;
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.site-title { font-size: 1.5rem; font-weight: 700; color: #0f172a; }
.site-title:hover { text-decoration: none; color: var(--color-main); }
.site-nav a { margin-left: 1.5rem; color: var(--color-accent); }
.site-nav a:hover { color: var(--color-main); }

/* Main */
.site-main { padding: 2rem 0; min-height: 60vh; }

/* Hero */
.hero { margin-bottom: 2.5rem; }
.hero-title { font-size: 2rem; font-weight: 700; color: #0f172a; margin: 0 0 0.5rem; }
.hero-subtitle { color: var(--color-accent); margin: 0; font-size: 1.1rem; }

/* Posts grid (index) */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.post-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  transition: box-shadow .2s;
}
.post-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.post-card-image {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e2e8f0;
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}
.post-card-body { padding: 1rem; }
.post-date { font-size: 0.8rem; color: var(--color-accent); }
.post-card-title { font-size: 1.1rem; margin: 0.5rem 0; }
.post-card-title a { color: #0f172a; }
.post-card-title a:hover { color: var(--color-main); }
.post-card-excerpt { font-size: 0.9rem; color: var(--color-accent); margin: 0; }

/* Posts list */
.posts-list { display: flex; flex-direction: column; gap: 1.5rem; }
.page-title { margin: 0 0 1.5rem; font-size: 1.75rem; }
.post-list-item {
  display: flex;
  gap: 1.5rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.post-list-thumb {
  flex: 0 0 200px;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e2e8f0;
}
.post-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb-placeholder { width: 100%; height: 100%; background: #e2e8f0; }
.post-list-body { padding: 1rem; flex: 1; }
.post-list-title { margin: 0.25rem 0; font-size: 1.2rem; }
.post-list-title a { color: #0f172a; }
.post-list-excerpt { margin: 0.5rem 0 0; color: var(--color-accent); font-size: 0.95rem; }

/* Single post */
.single-post { max-width: 720px; margin: 0 auto; background: #fff; padding: 2rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.post-header { margin-bottom: 1.5rem; }
.post-title { font-size: 2rem; margin: 0.5rem 0; line-height: 1.3; }
.post-thumbnail { margin-bottom: 1.5rem; border-radius: 8px; overflow: hidden; }
.post-thumbnail img { width: 100%; height: auto; display: block; }
.post-content { font-size: 1.05rem; }
.post-content h2 { font-size: 1.4rem; margin-top: 2rem; }
.post-content img { max-width: 100%; height: auto; }
.post-content p { margin: 1rem 0; }

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  color: var(--color-accent);
  font-size: 0.9rem;
}
.site-footer p { margin: 0; }
