:root {
  color-scheme: light;
  --bg: #fff;
  --text: #111;
  --muted: #666;
  --border: #ddd;
  --link: #000;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-serif, Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--muted);
}

.site-header,
.site-footer,
.page {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
}

.site-nav a {
  text-decoration: none;
}

.page {
  padding: 48px 0 72px;
}

.intro {
  margin-bottom: 56px;
}

h1,
h2,
h3 {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.35;
}

h1 {
  margin: 0 0 24px;
  font-size: 2rem;
}

h2 {
  margin: 0 0 18px;
  font-size: 1.2rem;
}

h3 {
  margin: 36px 0 12px;
  font-size: 1rem;
}

p {
  margin: 0 0 1.1em;
}

.section {
  margin-top: 44px;
}

.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.post-list time,
.meta {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  white-space: nowrap;
}

.article-header {
  margin-bottom: 40px;
}

.article-header h1 {
  margin-bottom: 12px;
}

.content {
  letter-spacing: 0;
}

.content blockquote {
  margin: 28px 0;
  padding-left: 18px;
  color: #333;
  border-left: 3px solid var(--border);
}

.content hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.site-footer {
  padding: 24px 0 36px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 640px) {
  html {
    font-size: 17px;
  }

  .site-header,
  .site-footer,
  .page {
    width: min(var(--max-width), calc(100% - 28px));
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-top: 28px;
  }

  .page {
    padding-top: 36px;
  }

  h1 {
    font-size: 1.7rem;
  }

  .post-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .page-nav {
    flex-direction: column;
  }
}
