:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #242424;
  background: #faf9f6;
  line-height: 1.8;
}

* {
  box-sizing: border-box;
}

body {
  max-width: 800px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}

a {
  color: #315b4c;
  text-underline-offset: 4px;
}

a:hover {
  color: #172e25;
}

a:focus-visible {
  outline: 2px solid #315b4c;
  outline-offset: 4px;
}

.site-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid #deded7;
}

.site-title {
  color: inherit;
  font-size: 1.1rem;
  font-weight: 650;
  text-decoration: none;
}

main {
  flex: 1;
  min-width: 0;
  padding: 40px 0 64px;
}

h1, h2, h3, h4 {
  line-height: 1.4;
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  font-weight: 650;
}

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

.post-list li {
  padding: 20px 0;
  border-bottom: 1px solid #e6e5df;
}

.post-list h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 600;
}

time, .empty-state, .site-footer {
  color: #62665f;
}

time {
  font-size: 0.9rem;
}

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

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

.prose {
  overflow-wrap: anywhere;
}

.prose img {
  max-width: 100%;
  height: auto;
}

.prose pre {
  padding: 16px;
  overflow-x: auto;
  background: #efeee8;
  border-radius: 4px;
}

.prose code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
}

.prose blockquote {
  margin: 24px 0;
  padding-left: 20px;
  border-left: 3px solid #9aab9b;
  color: #62665f;
}

.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.prose th, .prose td {
  padding: 8px 12px;
  border: 1px solid #deded7;
}

.back-link {
  margin-top: 40px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid #deded7;
  font-size: 0.85rem;
}

.skip-link {
  position: absolute;
  top: -100px;
  padding: 8px 12px;
  background: #faf9f6;
}

.skip-link:focus {
  top: 8px;
}
