:root {
  --fg: #222;
  --muted: #777;
  --bg: #fdfdfd;
  --accent: #0366d6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e6e6e6;
    --muted: #999;
    --bg: #111;
    --accent: #58a6ff;
  }
}

* { box-sizing: border-box; }

html { font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }

body {
  margin: 0;
  padding: 2rem 1rem;
  max-width: 40rem;
  margin-inline: auto;
  color: var(--fg);
  background: var(--bg);
}

header, footer { margin-block: 1.5rem; }
footer { color: var(--muted); font-size: 0.9rem; }

.rss {
  margin-left: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

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

h1, h2, h3 { line-height: 1.25; }

.meta { color: var(--muted); font-size: 0.9rem; }

.posts { list-style: none; padding: 0; }
.posts li { display: flex; gap: 1rem; margin-block: 0.5rem; }
.posts time { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 6rem; }

pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
pre {
  background: rgba(127,127,127,0.1);
  padding: 0.75rem 1rem;
  overflow-x: auto;
  border-radius: 4px;
}
code { font-size: 0.9em; }
pre code { background: none; padding: 0; }

blockquote {
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--muted);
  color: var(--muted);
}

img { max-width: 100%; height: auto; }

.post-nav {
  display: flex;
  flex-direction: row;
}
