:root {
  --green-dark: #3a5a40;
  --green-mid: #588157;
  --green-light: #a3b18a;
  --cream: #f7f6f0;
  --text: #2d3b2d;
  --muted: #6b7a6b;
}

* { box-sizing: border-box; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--cream);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

.site-header {
  background: var(--green-dark);
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand a {
  color: #fff;
  font-size: 1.3em;
  font-weight: bold;
  text-decoration: none;
  font-family: Georgia, serif;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.site-header nav a {
  color: #eef2ea;
  text-decoration: none;
  font-family: -apple-system, Helvetica, Arial, sans-serif;
  font-size: 0.92em;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}

.site-header nav a:hover,
.site-header nav a.active {
  border-bottom: 2px solid var(--green-light);
  color: #fff;
}

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

h1 {
  color: var(--green-dark);
  border-bottom: 2px solid var(--green-light);
  padding-bottom: 8px;
  margin-top: 0;
}

h2 {
  color: var(--green-mid);
  margin-top: 2em;
}

.meta {
  color: var(--muted);
  font-size: 0.85em;
  font-style: italic;
  margin-top: -8px;
}

p { margin: 1em 0; }

.intro { font-size: 1.05em; }

a { color: var(--green-mid); }
a:hover { color: var(--green-dark); }

img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 1.2em 0 0.3em;
}

/* italic paragraphs directly after an image often serve as captions */
p em {
  color: var(--muted);
  font-size: 0.92em;
}

ul.post-list {
  list-style: none;
  padding: 0;
}

ul.post-list li {
  padding: 8px 0;
  border-bottom: 1px solid #e2e0d4;
}

.post-date {
  color: var(--muted);
  font-size: 0.85em;
  margin-right: 10px;
  font-family: -apple-system, Helvetica, Arial, sans-serif;
}

main ul {
  padding-left: 1.3em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 1em 0 2em;
}

.card {
  background: #fff;
  border: 1px solid #e2e0d4;
  border-radius: 6px;
  padding: 16px;
  text-decoration: none;
  color: var(--green-dark);
  transition: box-shadow 0.15s, transform 0.15s;
}

.card:hover {
  box-shadow: 0 2px 8px rgba(58, 90, 64, 0.2);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0;
  font-family: -apple-system, Helvetica, Arial, sans-serif;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85em;
  padding: 20px;
  border-top: 1px solid #e2e0d4;
}
