:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #5a6b5a;
  --link: #2d6a4f;
  --border: #d8e4d8;
  --table-border: rgba(90, 107, 90, 0.35);
  --code-bg: #f4f8f4;
  --accent: #40916c;
  --accent-light: #74c69d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.site-header {
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-title {
  color: var(--link);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.site-title:hover {
  color: var(--accent);
  text-decoration: none;
}

.content {
  min-height: 60vh;
}

.site-footer {
  margin-top: 48px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  color: var(--muted);
  transition: color 0.2s;
  display: inline-flex;
}

.footer-socials a:hover {
  color: var(--accent);
  text-decoration: none;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 24px 0 12px;
  line-height: 1.2;
}

p {
  margin: 0 0 16px;
}

ul {
  padding-left: 20px;
}

.post-body blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  background: var(--code-bg);
  border-radius: 4px;
}

.post-body blockquote p:last-child {
  margin-bottom: 0;
}

.post-body table {
  width: 100%;
  margin: 0 0 16px;
  border-collapse: collapse;
  border: 1px solid var(--table-border) !important;
}

.post-body th,
.post-body td {
  border: 1px solid var(--table-border) !important;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.post-body thead th {
  background: var(--code-bg);
  border-bottom: 1px solid var(--table-border) !important;
}

.post-title {
  font-size: 32px;
  margin-top: 0;
}

.post-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

pre,
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

pre {
  background: var(--code-bg);
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow-x: auto;
  line-height: 1.5;
  font-size: 14px;
}

code {
  background: var(--code-bg);
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 0.95em;
}

.post-body :not(pre) > code {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}



pre code.hljs, pre .highlight {
  background: var(--code-bg) !important;
  padding: 0;
}

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

.post-list li {
  margin: 16px 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 12px;
}

.post-list a {
  font-weight: 600;
  min-width: 0;
}

.post-list .date {
  color: var(--muted);
  font-size: 13px;
  margin-right: 0;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .page {
    padding: 32px 18px 48px;
  }

  .post-title {
    font-size: 26px;
  }

  .post-list li {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }
}

ol {
  padding-left: 24px;
}