:root {
  --bg: #fbfaf8;
  --text: #1f2328;
  --muted: #6a737d;
  --accent: #0b6e4f;
  --line: #e4e2dd;
  --code: #f1efea;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --text: #e3e5e8;
    --muted: #9099a3;
    --accent: #5fd0a5;
    --line: #2a2e33;
    --code: #1e2226;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

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

header.site .name {
  font: 600 1.05rem ui-monospace, "Cascadia Code", Consolas, monospace;
  color: var(--text);
  text-decoration: none;
}

header.site nav a { margin-left: 1.25rem; }

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

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 0.5rem; }
h2 { font-size: 1.2rem; margin: 2.5rem 0 0.75rem; }

.lead { color: var(--muted); margin: 0 0 2rem; }
.date { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }

ul.notes { list-style: none; padding: 0; margin: 0; }
ul.notes li { display: flex; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
ul.notes .date { flex: 0 0 6.5rem; }

code, pre { font: 0.9em ui-monospace, "Cascadia Code", Consolas, monospace; background: var(--code); border-radius: 4px; }
code { padding: 0.1em 0.35em; }
pre { padding: 0.9rem 1rem; overflow-x: auto; line-height: 1.5; }
pre code { padding: 0; background: none; }

footer { margin-top: 3.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
