:root {
  color-scheme: light;
  --ink: #252525;
  --muted: #777;
  --soft: #f5f5f2;
  --line: #e8e5de;
  --accent: #0f7f6f;
  --accent-quiet: #e8f3f1;
  --paper: #fff;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--soft);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

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

.site-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 88px 24px 48px;
  text-align: center;
}

.site-title a {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0;
}

.site-subtitle {
  margin: 18px auto 26px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav a {
  min-width: 72px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #555;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.58);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  border-color: #b9d9d2;
  background: var(--accent-quiet);
}

.site-main {
  max-width: 760px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.intro,
.post-list-item,
.post,
.page,
.archive {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 34px;
}

.intro {
  color: #444;
}

.post-list {
  margin-top: 22px;
}

.post-list-item {
  margin-bottom: 18px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.post-list-item:hover {
  border-color: #c9d7d4;
  transform: translateY(-1px);
}

time {
  color: #999;
  font-size: 12px;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  line-height: 1.25;
  letter-spacing: 0;
}

.post-list-item h2 {
  margin: 6px 0 10px;
  font-size: 26px;
  font-weight: 400;
}

.post-list-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.post-header {
  margin-bottom: 34px;
  padding-bottom: 22px;
  border-bottom: 3px double var(--line);
  text-align: center;
}

.post-header h1 {
  margin: 10px 0 14px;
  font-size: 34px;
  font-weight: 400;
}

.tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tags span {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
}

.markdown p {
  margin: 0 0 1.2em;
}

.markdown h1,
.markdown h2,
.markdown h3 {
  margin-top: 2em;
  margin-bottom: 0.7em;
  font-weight: 400;
}

.markdown a {
  color: var(--accent);
  border-bottom: 1px solid #b9d9d2;
}

.markdown blockquote {
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.1em;
  color: #555;
  border-left: 3px solid var(--accent);
}

.markdown code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #f4f2ec;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.markdown pre {
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fdfcf8;
}

.archive h1 {
  margin-top: 0;
  text-align: center;
  font-weight: 400;
}

.archive ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.archive li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.archive a:hover {
  color: var(--accent);
}

.site-footer {
  padding: 32px 24px 48px;
  color: #999;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 56px;
  }

  .site-title a {
    font-size: 34px;
  }

  .intro,
  .post-list-item,
  .post,
  .page,
  .archive {
    padding: 24px;
  }

  .archive li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
