:root {
  --fg: #1c1c1e;
  --muted: #6b6b70;
  --line: #e3e3e6;
  --bg: #fdfdfc;
  --accent: #2f5d50;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC",
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}

.nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 20px;
  flex-wrap: wrap;
}

.brand {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--fg);
  text-decoration: none;
}

.brand span {
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
  margin-left: 10px;
}

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

nav a:hover, nav a[aria-current="page"] { color: var(--accent); }

h1 {
  font-size: 27px;
  line-height: 1.4;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -.01em;
}

h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 44px 0 14px;
  letter-spacing: .01em;
}

.lede {
  color: var(--muted);
  margin: 0 0 40px;
  font-size: 15px;
}

article {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

article:first-of-type { border-top: 0; padding-top: 0; }

article h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}

article h3 a {
  color: var(--fg);
  text-decoration: none;
}

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

.meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
}

article p {
  margin: 0;
  color: #3a3a3e;
  font-size: 15px;
}

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

ul.plain li {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

ul.plain li:first-child { border-top: 0; }

ul.plain .date {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

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

p code, li code {
  background: #f2f2ef;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: .9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding-top: 20px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 520px) {
  .wrap { padding: 0 18px 64px; }
  h1 { font-size: 23px; }
  nav a { margin-left: 16px; }
}
