:root {
  --bg: #fbfbf9;
  --fg: #1d1d1f;
  --muted: #6b6b70;
  --accent: #2f5d50;
  --border: #e6e6e0;
  --code-bg: #f2f2ee;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
  margin: 0;
  font-size: 17px;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 22px;
}

header.site {
  border-bottom: 1px solid var(--border);
  margin-bottom: 42px;
}

header.site .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 26px;
  padding-bottom: 22px;
}

header.site a.brand {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.95rem;
}

nav a:hover { color: var(--accent); }

a { color: var(--accent); }

h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.4em; }
h2 { font-size: 1.3rem; margin: 2em 0 0.6em; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; margin: 1.6em 0 0.4em; }

p { margin: 0 0 1.1em; }

.lede { font-size: 1.15rem; color: var(--muted); }

ul.posts { list-style: none; padding: 0; margin: 1.5em 0; }
ul.posts li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
ul.posts li:first-child { border-top: 1px solid var(--border); }
ul.posts a.title {
  font-weight: 500;
  text-decoration: none;
  color: var(--fg);
}
ul.posts a.title:hover { color: var(--accent); }
ul.posts .date {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

article .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 2em; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: var(--code-bg);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.5;
}
pre code { background: none; padding: 0; }

blockquote {
  margin: 1.4em 0;
  padding-left: 16px;
  border-left: 3px solid var(--border);
  color: var(--muted);
}

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 26px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--accent); }

.notfound { text-align: center; padding: 40px 0 20px; }
.notfound .code { font-size: 4rem; font-weight: 700; color: var(--accent); letter-spacing: -0.03em; }
