:root {
  --fg: #1c1d20;
  --muted: #6b6f76;
  --line: #e3e4e8;
  --accent: #2a4d69;
  --bg: #fcfcfd;
}

* { box-sizing: border-box; }

html { font-size: 17px; }

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

header.site, main, footer.site {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.4rem;
}

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 2.2rem;
  padding-bottom: 1.6rem;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  letter-spacing: .01em;
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
}

header.site nav a {
  margin-left: 1.3rem;
  font-size: .86rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .02em;
  text-transform: uppercase;
}

header.site nav a:hover { color: var(--fg); }

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.25;
  margin: .4rem 0 0;
  letter-spacing: -.01em;
}

.lede {
  color: var(--muted);
  font-size: 1rem;
  margin: .9rem 0 2.4rem;
  max-width: 36rem;
}

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

ul.index li {
  padding: 1.15rem 0 0.1rem;
  border-top: 1px solid var(--line);
}

ul.index li:last-child { border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; }

ul.index time {
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

ul.index h2 {
  font-size: 1.06rem;
  font-weight: 600;
  margin: .25rem 0 .35rem;
  line-height: 1.4;
}

ul.index h2 a { color: var(--fg); text-decoration: none; }
ul.index h2 a:hover { color: var(--accent); }

ul.index p { margin: 0; color: var(--muted); font-size: .92rem; }

article { padding-bottom: 2rem; }

article p { margin: 1rem 0; }

article h1 { margin-bottom: 1.2rem; }

article .meta {
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86em;
  background: #f1f2f5;
  padding: .12em .35em;
  border-radius: 3px;
}

article pre {
  background: #f1f2f5;
  padding: .9rem 1rem;
  overflow-x: auto;
  border-radius: 4px;
  font-size: .84rem;
  line-height: 1.55;
}

article pre code { background: none; padding: 0; }

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

footer.site {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  padding-bottom: 3rem;
  margin-top: 3.2rem;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--muted);
}

footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--fg); }

@media (max-width: 520px) {
  html { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  header.site, footer.site { flex-direction: column; gap: .5rem; align-items: flex-start; }
  header.site nav a:first-child { margin-left: 0; }
}
