:root {
  --bg: #f8f7f4;
  --text: #1c1c1c;
  --muted: #666;
  --border: #ddd7cf;
  --link: #1f5fbf;
  --link-hover: #174999;
  --code-bg: #f1eee8;
  --quote-border: #cfc8be;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.75;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 42px;
}

.site-title {
  display: inline-block;
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 6px;
}

.site-title:hover {
  color: var(--text);
}

.site-description {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.content {
  padding-bottom: 80px;
}

h1, h2, h3, h4 {
  line-height: 1.3;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

h1 {
  font-size: 2.4rem;
  margin-top: 0;
}

h2 {
  font-size: 1.7rem;
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 1.1rem 0;
}

ul, ol {
  margin: 1rem 0 1.4rem 1.5rem;
  padding: 0;
}

li {
  margin: 0.45rem 0;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

blockquote {
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 4px solid var(--quote-border);
  color: #444;
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.4rem 0;
}

code {
  background: var(--code-bg);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.92em;
}

pre {
  background: var(--code-bg);
  padding: 1rem;
  overflow-x: auto;
  border-radius: 6px;
  line-height: 1.55;
}

pre code {
  background: none;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
}

.post-list-heading {
  margin-top: 2rem;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.post-list li {
  margin-bottom: 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
}

.post-meta {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.post-link {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 50px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  html {
    font-size: 17px;
  }

  .site-header {
    padding-top: 36px;
  }

  .site-title {
    font-size: 1.8rem;
  }

  h1 {
    font-size: 2rem;
  }

  .post-link {
    font-size: 1.25rem;
  }
}
.home-intro {
  margin-bottom: 2rem;
}

.home-intro p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-secondary, #333);
}

.post-index h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.9rem;
}

.compact-post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compact-post-list li {
  padding: 0 0 1.25rem 0;
  margin: 0 0 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.post-date {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.post-title-link {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.post-title-link:hover {
  text-decoration: underline;
}
