:root {
  color-scheme: light dark;
  --text: #1f2430;
  --muted: #5b6472;
  --bg: #ffffff;
  --panel: #f4f5f7;
  --line: #e3e6ea;
  --link: #14676b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8eaed;
    --muted: #9aa3af;
    --bg: #14171c;
    --panel: #1e2229;
    --line: #2a2f38;
    --link: #7fd1d6;
  }
}

* { box-sizing: border-box; }

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

.wrap { max-width: 740px; margin: 0 auto; padding: 0 1.25rem; }

header { border-bottom: 1px solid var(--line); padding: 1rem 0; }
header .wrap { display: flex; justify-content: space-between; align-items: baseline; }
.brand { font-size: 1.3rem; font-weight: 700; color: var(--text); text-decoration: none; }
nav a { color: var(--link); text-decoration: none; margin-left: 1rem; }
nav a:hover, a:hover { text-decoration: underline; }

main { padding: 2rem 0 3rem; }

h1 { font-size: 2rem; line-height: 1.25; margin: 0 0 .5rem; }
h2 { font-size: 1.5rem; line-height: 1.3; margin: 2rem 0 .75rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }

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

.meta { color: var(--muted); font-size: .95rem; margin: .25rem 0 1.5rem; }

.post-item { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.post-item h2 { margin: 0 0 .25rem; font-size: 1.4rem; }
.post-item h2 a { color: var(--text); text-decoration: none; }
.post-item h2 a:hover { color: var(--link); text-decoration: none; }
.post-item .meta { margin-bottom: .5rem; }
.post-item p:last-child { margin-bottom: 0; }

.content img { max-width: 100%; height: auto; border-radius: 6px; }
.content pre {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  font-size: .9rem;
  line-height: 1.5;
}
.content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.content p code, .content li code { background: var(--panel); padding: .1em .35em; border-radius: 4px; }
.content blockquote { margin: 1.5rem 0; padding: .25rem 1rem; border-left: 3px solid var(--line); color: var(--muted); }

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