:root {
  --bg: #fbfaf7;
  --ink: #1c1d1f;
  --muted: #6b6a66;
  --rule: #e3e0d8;
  --accent: #9a3412;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { font-size: 17px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.site {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

header.site {
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.86rem;
}

header.site .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

header.site nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.1rem;
}

header.site nav a:hover,
header.site .brand:hover { color: var(--accent); }

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.4rem 1.5rem 4rem;
}

.hero h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.lede {
  font-size: 1.06rem;
  color: var(--muted);
  margin: 0 0 2.6rem;
  max-width: 34rem;
}

h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 500;
  margin: 2.6rem 0 1rem;
}

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

.posts li {
  border-top: 1px solid var(--rule);
  padding: 1rem 0 1.1rem;
}

.posts li:last-child { border-bottom: 1px solid var(--rule); }

.posts a {
  font-size: 1.08rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.posts a:hover { border-bottom-color: var(--accent); color: var(--accent); }

.posts .date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: 0.6rem;
  white-space: nowrap;
}

.posts p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.note p { color: var(--muted); }

article h1 {
  font-size: 1.85rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  font-weight: 600;
}

article .meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

article p { margin: 0 0 1.1rem; }

article code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: #f0ede6;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

article pre {
  background: #f0ede6;
  border-radius: 4px;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
}

article blockquote {
  margin: 1.4rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
  color: var(--muted);
}

footer.site {
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

footer.site .right { color: var(--muted); }

@media (max-width: 34rem) {
  header.site { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  header.site nav a { margin: 0 1rem 0 0; }
  .hero h1 { font-size: 1.7rem; }
}
