:root {
  --bg: #fbfbf9;
  --text: #1f2328;
  --muted: #6b7280;
  --line: #e5e5e0;
  --accent: #0b5cad;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --text: #e4e6e8;
    --muted: #8b949e;
    --line: #272c31;
    --accent: #6cb6ff;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.1rem/1.75 var(--serif);
}

.wrap { max-width: 40rem; margin: 0 auto; padding: 0 1rem; }
a { color: var(--accent); }

header.site { padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.brand { font: 700 1.3rem var(--sans); color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
header.site nav { font: .95rem var(--sans); }
header.site nav a { color: var(--muted); text-decoration: none; margin-left: 1.25rem; }
header.site nav a:hover { color: var(--text); }

main { padding: 2.5rem 0 4rem; }
h1 { font: 700 2rem/1.25 var(--sans); margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font: 700 1.2rem var(--sans); margin: 2.5rem 0 1rem; }
.intro { color: var(--muted); margin-bottom: 2rem; }

.posts { list-style: none; padding: 0; margin: 0; }
.posts li { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.posts li:last-child { border-bottom: 1px solid var(--line); }
.posts a { font: 600 1.15rem var(--sans); text-decoration: none; }
.posts a:hover { text-decoration: underline; }
.posts p { margin: .3rem 0 0; color: var(--muted); font-size: 1rem; }

.meta { font: .85rem var(--sans); color: var(--muted); margin-bottom: 2rem; }
article p { margin: 0 0 1.2rem; }

footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; font: .85rem var(--sans); color: var(--muted); }
footer a { color: var(--muted); }
