:root {
  --text: #1e1e1e;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 19.2px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Home: full-screen hero, like the old Lettre theme */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
}
.site-title {
  margin: 0;
  max-width: 360px;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.3;
}
.tagline {
  max-width: 360px;
  margin: 1.5rem 0 0;
  font-size: 16px;
  line-height: 1.6;
}
.read-all {
  margin-top: 12rem;
  font-size: 16px;
  text-decoration: underline;
}

/* Post list: date on the left, big title on the right */
.post-list {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.post-item {
  display: grid;
  grid-template-columns: 8rem 1fr;
  align-items: baseline;
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
.post-item time,
.post-header time {
  font-size: 16px;
  text-transform: uppercase;
  color: var(--text);
}
.post-item h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
}

/* Single post */
.top-nav {
  text-align: center;
  padding: 2rem 1.5rem 0;
  font-weight: 700;
}
.post {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.post-header { margin-bottom: 3rem; }
.post-header h1 {
  margin: 0 0 0.75rem;
  font-size: 44px;
  line-height: 1.2;
}
.post-content p {
  margin: 0 0 1.4em;
  line-height: 1.9;
  text-align: justify;
}
.post-content strong { font-weight: 700; }
.back { margin-top: 3rem; font-size: 16px; }

.site-footer {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
  .site-title, .post-header h1 { font-size: 34px; }
  .read-all { margin-top: 8rem; }
  .post-item { grid-template-columns: 1fr; gap: 0.5rem; padding: 2rem 0; }
  .post-item h2 { font-size: 26px; }
  body { font-size: 18px; }
}
