:root {
  --fg: #1c1c1e;
  --muted: #6b6b70;
  --bg: #fdfdfc;
  --rule: #e3e3df;
  --link: #1a5fb4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e6e6e3;
    --muted: #9a9a9f;
    --bg: #16161a;
    --rule: #2c2c31;
    --link: #7fb4f0;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  max-width: 40rem;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}

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

.brand { font-weight: 600; color: var(--fg); }

nav a { margin-left: 1rem; color: var(--muted); }

h1 { font-size: 1.6rem; margin: 0 0 .5rem; }
h2 { font-size: 1.15rem; margin: 0 0 .25rem; }

.lede { color: var(--muted); margin: 0 0 2rem; }

ul.posts { list-style: none; margin: 0; padding: 0; }
ul.posts li { padding: 1rem 0; border-top: 1px solid var(--rule); }
ul.posts li:first-child { border-top: none; padding-top: 0; }

.meta { color: var(--muted); font-size: .875rem; margin: 0 0 .5rem; }

article p { margin: 0 0 1.1rem; }
article pre {
  overflow-x: auto;
  padding: .8rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: .875rem;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
}

footer.site {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .875rem;
}
