:root {
  --text:   #1a1a1a;
  --muted:  #666;
  --border: #e5e5e5;
  --link:   #0057b7;
  --bg:     #ffffff;
  --code-bg:#f6f6f4;
}

* { box-sizing: border-box; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

body {
  margin: 0;
  max-width: 640px;
  padding: 56px 24px 80px;
  margin-left: auto;
  margin-right: auto;
}

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

.site-header {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 48px;
}
.site-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}
.site-nav a {
  color: var(--muted);
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  text-decoration: none;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-list li {
  display: flex;
  gap: 18px;
  padding: 6px 0;
  align-items: baseline;
}
.post-list time {
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 96px;
}

article h1 {
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 6px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
article > time {
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.post-body { margin-top: 32px; font-size: 17px; line-height: 1.7; }
.post-body p { margin: 1em 0; }
.post-body h2 { font-size: 22px; margin: 2em 0 0.5em; }
.post-body h3 { font-size: 18px; margin: 1.75em 0 0.5em; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li { margin: 0.25em 0; }
.post-body blockquote {
  border-left: 3px solid var(--border);
  padding: 0 0 0 16px;
  margin: 1em 0;
  color: var(--muted);
}
.post-body code {
  background: var(--code-bg);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}
.post-body pre {
  background: var(--code-bg);
  padding: 14px 16px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.5;
}
.post-body pre code { background: transparent; padding: 0; font-size: inherit; }
.post-body a { text-decoration: underline; text-underline-offset: 2px; }
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.post-body th, .post-body td { padding: 6px 10px; border-bottom: 1px solid var(--border); text-align: left; }

.back { margin-top: 56px; font-size: 14px; }
.back a { color: var(--muted); }
