:root {
  --bg: #fbfaf7;
  --fg: #1f2328;
  --muted: #646b75;
  --line: #e4e1da;
  --accent: #2f6f5e;
  --code-bg: #f1efe9;
  --max: 42rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --fg: #e3e5e8;
    --muted: #9aa1ab;
    --line: #2a2e33;
    --accent: #7cc4ad;
    --code-bg: #1e2125;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

header.site {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
  margin-bottom: 2.5rem;
}
header.site .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: .5rem 1.5rem;
}
.brand {
  font: 600 1.05rem/1.2 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--fg); text-decoration: none; letter-spacing: .01em;
}
.brand span { color: var(--muted); font-weight: 400; }
nav a {
  font: .95rem ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--muted); text-decoration: none; margin-left: 1.1rem;
}
nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--fg); }

h1, h2, h3 {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.25; letter-spacing: -.01em;
}
h1 { font-size: 1.9rem; margin: 0 0 .4rem; }
h2 { font-size: 1.3rem; margin: 2.2rem 0 .6rem; }
.lede { color: var(--muted); margin: 0 0 2.5rem; }
.meta {
  font: .88rem ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--muted); margin: 0 0 2rem;
}

ul.posts { list-style: none; padding: 0; margin: 0; }
ul.posts li { padding: 1.1rem 0; border-top: 1px solid var(--line); }
ul.posts li:last-child { border-bottom: 1px solid var(--line); }
ul.posts a.title {
  font: 600 1.12rem/1.35 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--fg); text-decoration: none;
}
ul.posts a.title:hover { color: var(--accent); }
ul.posts p { margin: .3rem 0 0; color: var(--muted); font-size: .97rem; }
ul.posts .meta { margin: .25rem 0 0; }

code, pre {
  font: .86em/1.5 ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  background: var(--code-bg);
  border-radius: 4px;
}
code { padding: .1em .35em; }
pre { padding: .9rem 1rem; overflow-x: auto; }
pre code { padding: 0; background: none; }
blockquote {
  margin: 1.5rem 0; padding: .2rem 0 .2rem 1rem;
  border-left: 3px solid var(--line); color: var(--muted);
}
table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1rem 0; }
th, td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid var(--line); }

footer.site {
  margin-top: 4rem; padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  font: .85rem ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--muted);
}
