:root {
  --bg: #fcfcfa;
  --surface: #eef2ea;
  --ink: #16211c;
  --ink-muted: #5c6b62;
  --brand: #1b4332;
  --accent: #d6236a;
  --rule: #dee5da;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Karla", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--brand);
  letter-spacing: -0.01em;
}

/* Hero (homepage, latest post) */
.hero {
  background: var(--surface);
  padding: 56px 0 60px;
  border-bottom: 1px solid var(--rule);
}
.hero-link { display: block; }
.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.12;
  margin: 0 0 16px;
  color: var(--brand);
}
.hero:hover h1 { color: var(--accent); transition: color 0.15s ease; }
.hero .excerpt {
  color: var(--ink-muted);
  font-size: 1.1rem;
  margin: 0 0 14px;
  max-width: 56ch;
}
.hero .meta {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Post list (homepage, remaining posts) */
main.wrap { padding: 48px 24px 80px; }
.section-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 8px;
}
.post-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.post-list li {
  border-top: 1px solid var(--rule);
  padding: 22px 0;
}
.post-list li:last-child { border-bottom: 1px solid var(--rule); }
.post-list a { display: block; }
.post-list .title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--brand);
}
.post-list a:hover .title { color: var(--accent); transition: color 0.15s ease; }
.post-list .excerpt {
  color: var(--ink-muted);
  margin: 6px 0 8px;
  font-size: 0.98rem;
}
.post-list .meta {
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.empty-note {
  color: var(--ink-muted);
  font-style: italic;
}

/* Article page */
.back-link {
  display: inline-block;
  margin: 32px 0 8px;
  font-size: 0.92rem;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.back-link:hover { color: var(--accent); border-color: var(--accent); }

article { max-width: 680px; margin: 0 auto; padding: 8px 24px 80px; }
article .meta {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin: 0 0 28px;
}
article h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  color: var(--brand);
  margin: 0 0 6px;
}
article h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--ink);
  margin: 40px 0 14px;
}
article p { margin: 0 0 20px; max-width: 68ch; }
article > p:first-of-type::first-letter {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 3.6em;
  line-height: 0.85;
  float: left;
  padding: 4px 8px 0 0;
  color: var(--brand);
}
article ul { margin: 0 0 20px; padding-left: 22px; }
article li { margin-bottom: 8px; }
article a { color: var(--accent); border-bottom: 1px solid rgba(214, 35, 106, 0.35); }
article a:hover { border-color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 24px 0;
}
.site-footer .wrap {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .hero { padding: 40px 0 44px; }
  main.wrap { padding: 36px 20px 60px; }
  article { padding: 8px 20px 60px; }
}
