:root {
  --accent: #5b6f3b;
  --paper-bg: rgba(255, 250, 235, 0.92);
  --text-main: #2f3e2e;
  --divider: rgba(0,0,0,0.08);
  --shadow-soft: 0 12px 30px rgba(0,0,0,0.15);
}

/* Base Layout */
body {
  margin: 0;
  background: url('bgblog12.jpg') center/cover fixed no-repeat;
  font-family: "Patrick Hand", cursive;
  color: var(--text-main);
  display: flex;
  justify-content: center;
}

/* Shared Container */
.blog-wrapper {
  width: 720px;
  margin: 4rem 1rem;
  background: var(--paper-bg);
  padding: 3rem;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

/* Titles */
.blog-wrapper h1 {
  font-family: 'Caveat', cursive;
  font-size: 3rem;
  margin-top: 0;
  color: var(--accent);
}

/* Date */
.blog-date {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-bottom: 2rem;
}

/* Post Content (for individual posts) */
.blog-content {
  line-height: 1.7;
  max-width: 65ch;
}

/* Blog Index Blocks */
.post-preview {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--divider);
  transition: background 0.2s ease;
  border-radius: 12px;
}

.post-preview:last-child {
  border-bottom: none;
}

.post-preview:hover {
  background: rgba(91, 111, 59, 0.08);
}

/* Post Links */
.post-preview a {
  text-decoration: none;
  color: var(--accent);
  font-size: 1.8rem;
  font-family: 'Amatic SC', cursive;
}

/* Snippet */
.post-snippet {
  line-height: 1.6;
  max-width: 65ch;
}

/* Back Links */
.back-link,
.back-home {
  margin-top: 3rem;
  display: block;
  text-decoration: none;
  color: var(--accent);
}

/* Responsive */
@media (max-width: 800px) {
  .blog-wrapper {
    width: 95%;
    padding: 2rem;
  }
}
