@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --ink: #1A1A1F;
  --muted: #5B5B63;
  --border: #E4E3DD;
  --accent: #1F5C4A;
  --accent-dark: #163F33;
  --radius: 6px;
  --content-width: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  background: var(--surface);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}
.logo:hover { text-decoration: none; color: var(--accent); }
.site-nav a { margin-left: 20px; color: var(--muted); font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }

/* Hero */
.hero { padding: 56px 0 40px; max-width: var(--content-width); }
.hero h1 { font-size: 40px; }
.hero p { color: var(--muted); font-size: 18px; margin: 0; }

/* Post grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  padding-bottom: 48px;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.post-card-img { width: 100%; height: 190px; object-fit: cover; display: block; }
.post-card-body { padding: 18px 20px 20px; }
.post-card-cat {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}
.post-card h2 { font-size: 20px; margin-bottom: 8px; }
.post-card h2 a { color: var(--ink); }
.post-card-excerpt { color: var(--muted); font-size: 15px; margin: 0 0 10px; }
.post-card time { color: var(--muted); font-size: 13px; }

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  padding: 20px 0 56px; color: var(--muted); font-size: 15px;
}

/* Single post */
.post-full { max-width: var(--content-width); margin: 0 auto; padding: 48px 0 72px; }
.post-full h1 { font-size: 36px; margin-top: 8px; }
.post-meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.post-full-img { width: 100%; border-radius: var(--radius); margin-bottom: 32px; }
.post-content { font-size: 18px; line-height: 1.75; }
.post-content p { margin: 0 0 1.4em; }
.post-content h2 { font-size: 26px; margin-top: 1.6em; }
.post-content h3 { font-size: 21px; margin-top: 1.4em; }
.post-content img { max-width: 100%; border-radius: var(--radius); }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.6em 0; padding: 4px 0 4px 20px;
  color: var(--muted); font-style: italic;
}
.post-content a { text-decoration: underline; }
.post-content code { background: #F0F0EC; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

.not-found { padding: 80px 0; text-align: center; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .post-full h1 { font-size: 27px; }
  .site-nav a { margin-left: 12px; font-size: 14px; }
}
