:root {
  --bg: #fdfdfc;
  --fg: #1f2328;
  --muted: #6e7781;
  --accent: #0b6bcb;
  --rule: #e5e7eb;
  --code-bg: #f3f4f6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --fg: #e6e6e6;
    --muted: #8b949e;
    --accent: #6cb6ff;
    --rule: #2a2d31;
    --code-bg: #1c1f23;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  max-width: 42rem;
  padding: 2.5rem 1.25rem 5rem;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 3rem; }
header .site { font-weight: 700; font-size: 1.15rem; color: var(--fg); text-decoration: none; }
header nav a { margin-left: 1.25rem; color: var(--muted); text-decoration: none; }
header nav a:hover { color: var(--fg); }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 2rem; margin: 0 0 0.25rem; }
h2 { font-size: 1.35rem; margin-top: 2.5rem; }
.meta { color: var(--muted); font-size: 0.9rem; margin-top: 0; }

.posts { list-style: none; padding: 0; margin: 0; }
.posts li { display: flex; gap: 1.5rem; padding: 0.4rem 0; }
.posts time { flex: 0 0 5.5rem; color: var(--muted); font-variant-numeric: tabular-nums; }

img { max-width: 100%; height: auto; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--rule); color: var(--muted); }

code { font: 0.875em/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
:not(pre) > code { background: var(--code-bg); padding: 0.15em 0.35em; border-radius: 4px; }
pre { padding: 1rem; border-radius: 6px; overflow-x: auto; }

@media (max-width: 480px) {
  .posts li { flex-direction: column; gap: 0; }
}
