:root {
  color-scheme: light dark;
  --fg: #1f2328;
  --muted: #59636e;
  --bg: #ffffff;
  --code-bg: #f3f4f6;
  --border: #d1d9e0;
  --link: #0b57d0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e6e6e6;
    --muted: #9198a1;
    --bg: #15171a;
    --code-bg: #23262b;
    --border: #3a3f46;
    --link: #8ab4f8;
  }
}

* { box-sizing: border-box; }

body {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
}

a { color: var(--link); }

header { margin-bottom: 2.5rem; }
.site-title { font-weight: 700; text-decoration: none; color: var(--fg); }

h1, h2, h3 { line-height: 1.25; }
h1 { margin-bottom: 0.25rem; }

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

.posts { list-style: none; padding: 0; }
.posts li { margin-bottom: 1.75rem; }
.posts a { font-size: 1.2rem; font-weight: 600; margin-right: 0.5rem; }
.posts p { margin: 0.25rem 0 0; }

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
code { background: var(--code-bg); padding: 0.1em 0.3em; border-radius: 4px; }
pre { background: var(--code-bg); padding: 1rem; border-radius: 6px; overflow-x: auto; line-height: 1.45; }
pre code { background: none; padding: 0; }

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

table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--border); padding: 0.4rem 0.75rem; text-align: left; }

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