:root {
  --paper: #faf7f2;
  --ink: #1e2a24;
  --ink-soft: #4d5a53;
  --line: #ddd6c8;
  --accent: #2f5d50;
  --accent-soft: #e4ede9;
  --radius: 10px;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Georgia", "Noto Serif KR", serif;
  line-height: 1.7;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--line);
}

.site-header .brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-header nav a {
  margin-left: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

main { max-width: 880px; margin: 0 auto; padding: 0 2rem 4rem; }

.hero { padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: 2.1rem; margin: 0 0 0.75rem; }
.hero p { color: var(--ink-soft); max-width: 60ch; }

section { margin-top: 3rem; }
section > h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.gallery-grid figure { margin: 0; }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.gallery-grid figcaption { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.35rem; }

.post-list { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 1.5rem; }
.post-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.post-card img { width: 120px; height: 90px; object-fit: cover; border-radius: var(--radius); }
.post-card .no-image {
  width: 120px; height: 90px; border-radius: var(--radius);
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem;
}
.post-card h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.post-card .summary { color: var(--ink-soft); margin: 0 0 0.4rem; }
.post-card .meta { font-size: 0.8rem; color: var(--ink-soft); }
.post-card .tags span {
  display: inline-block; font-size: 0.75rem; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 0.1rem 0.6rem; margin-right: 0.35rem;
}

.empty-note { color: var(--ink-soft); font-style: italic; }

.post-detail img.cover {
  width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius); margin: 1rem 0;
}
.post-detail .body { white-space: pre-wrap; }
.post-detail table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; }
.post-detail table th, .post-detail table td {
  border: 1px solid var(--line); padding: 0.5rem 0.75rem; text-align: left; font-size: 0.9rem;
}
.post-detail table th { background: var(--accent-soft); }

.site-footer {
  text-align: center; color: var(--ink-soft); font-size: 0.85rem; padding: 2rem; border-top: 1px solid var(--line);
}
