:root {
  --ink: #1a1a1a;
  --muted: #666;
  --line: #e5e1db;
  --paper: #fdfcf9;
  --accent: #1a1a1a;
  --max-w: 680px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.65;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.hidden { display: none; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 28px 0 22px;
  margin-bottom: 8px;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}

/* Post list */
.post-list {
  list-style: none;
  margin: 24px 0 48px;
  padding: 0;
}

.post-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.post-item:first-child { padding-top: 8px; }
.post-item:last-child { border-bottom: none; }

.post-link {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
}

.post-link:hover { text-decoration: underline; }

.excerpt {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.empty {
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Single post page shell (used by the Pages Function render) */
.article {
  padding: 28px 0 48px;
}

.article h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 6px;
}

.article .meta {
  margin: 0 0 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}

.article-body {
  font-size: 1.05rem;
}

.article-body h2 { margin-top: 1.6em; font-size: 1.3rem; line-height: 1.3; }
.article-body h3 { margin-top: 1.4em; font-size: 1.1rem; }
.article-body p { margin: 1.1em 0; }
.article-body pre {
  overflow-x: auto;
  font-size: 0.85rem;
  background: #f4f2ee;
  padding: 12px 14px;
  border-radius: 4px;
}
.article-body code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; }
.article-body img { max-width: 100%; height: auto; }
.article-body blockquote {
  margin: 1.4em 0;
  padding: 0 0 0 16px;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

.back-link {
  display: inline-block;
  margin-top: 32px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover { text-decoration: underline; }