
:root {
  --bg: #f4eee4;
  --paper: #fffdf8;
  --ink: #2a231e;
  --muted: #6d6258;
  --line: #e4d9cc;
  --accent: #9b3048;
  --accent2: #c45b4a;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Georgia, "Times New Roman", serif;
  background: radial-gradient(circle at top, #fff7ee, var(--bg));
  color: var(--ink);
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
header.site {
  padding: 22px 0 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.brand { font-size: 28px; letter-spacing: .04em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.tagline { margin: 4px 0 14px; color: var(--muted); font-size: 14px; }
nav.cats { display: flex; flex-wrap: wrap; gap: 8px; }
nav.cats a {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--ink);
}
nav.cats a:hover, nav.cats a.is-on { background: var(--accent); color: #fff; text-decoration: none; border-color: var(--accent); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin: 24px 0 48px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 8px 24px rgba(90, 50, 20, .06);
}
.card:hover { text-decoration: none; transform: translateY(-2px); }
.card img { width: 100%; height: 210px; object-fit: cover; background: #eee; display: block; }
.card .meta { padding: 12px 14px 16px; }
.card h2 { font-size: 16px; margin: 0 0 6px; line-height: 1.3; }
.card .cat { color: var(--muted); font-size: 12px; }
article.post {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 28px 36px;
  margin: 0 auto 48px;
  max-width: 820px;
  box-shadow: 0 10px 30px rgba(90, 50, 20, .06);
}
article.post h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.2; }
.crumbs, .date { color: var(--muted); font-size: 14px; }
.content { margin-top: 18px; font-size: 18px; }
.content img, .content figure img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto 14px;
}
.content figure { margin: 0 0 18px; }
.content p { margin: 0 0 14px; }
footer.site {
  border-top: 1px solid var(--line);
  padding: 22px 0 40px;
  color: var(--muted);
  font-size: 13px;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-bottom: 8px; }
h1.page-title { font-size: 30px; margin: 0 0 8px; }
.empty { color: var(--muted); }
@media (max-width: 640px) {
  .brand { font-size: 24px; }
  article.post { padding: 18px; border-radius: 16px; }
  article.post h1 { font-size: 24px; }
  .card img { height: 180px; }
}
