:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --panel: #ffffff;
  --text: #202421;
  --muted: #687068;
  --line: #dfe5dd;
  --accent: #256f5c;
  --accent-strong: #174b3f;
  --code-bg: #eef2ee;
}

* {
  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.7;
}

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

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

.site-header,
.site-footer {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
}

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

.site-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 15px;
}

.site-main {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.hero {
  max-width: 760px;
  padding: 28px 0 56px;
}

.eyebrow,
time {
  color: var(--muted);
  font-size: 14px;
}

.hero h1,
.page-head h1,
.article-header h1 {
  margin: 8px 0 14px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.section {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: 24px;
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.post-item h2,
.post-item h3 {
  margin: 6px 0 8px;
  line-height: 1.25;
}

.post-item h2 {
  font-size: 26px;
}

.post-item h3 {
  font-size: 22px;
}

.post-item p,
.article-header p,
.empty {
  color: var(--muted);
}

.article {
  max-width: 760px;
}

.article-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.article-body {
  padding-top: 28px;
  font-size: 17px;
}

.article-body h2,
.article-body h3 {
  margin-top: 34px;
  line-height: 1.25;
}

.article-body pre {
  overflow-x: auto;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #cfd8d1;
  border-radius: 8px;
}

.article-body code {
  background: var(--code-bg);
  border-radius: 4px;
  padding: 2px 5px;
}

.article-body pre code {
  color: #000000;
  background: transparent;
  padding: 0;
}

.article-body .highlight pre {
  color: #000000;
  background: #ffffff;
}

.article-body .highlight code,
.article-body .highlight span {
  color: #000000;
  background: transparent;
}

.comments {
  max-width: 760px;
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.comments h2 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.25;
}

.site-footer {
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-main {
    padding-top: 32px;
  }
}
