:root {
  --max-width: 780px;
  --color-text: #222;
  --color-bg: #fdfdfb;
  --color-muted: #666;
  --color-border: #e2e2e2;
  --color-accent: #2e6b4f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a { color: var(--color-accent); }

.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.site-header nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-header nav a {
  text-decoration: none;
  color: var(--color-text);
}

.site-header nav li.active a {
  color: var(--color-accent);
  font-weight: 600;
}

main.wrap {
  padding-top: 2rem;
  padding-bottom: 3rem;
  min-height: 60vh;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.85rem;
  padding: 1.5rem 0;
}

.entry-list {
  list-style: none;
  padding: 0;
}

.entry-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
}

.entry-list time {
  color: var(--color-muted);
  white-space: nowrap;
  font-size: 0.9rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.category-grid li a {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text);
}

.category-grid li a:hover {
  border-color: var(--color-accent);
}

.meta-table {
  border-collapse: collapse;
  margin: 1rem 0;
}

.meta-table td, .meta-table th {
  padding: 0.3rem 0.8rem 0.3rem 0;
  text-align: left;
  vertical-align: top;
}

.meta-table th {
  color: var(--color-muted);
  font-weight: 600;
  white-space: nowrap;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  list-style: none;
  margin: 1rem 0;
}

.gallery li img {
  width: 220px;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0.5rem 0;
}

.tag-list li {
  background: #eef3f0;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.85rem;
}
