:root {
  --bg: #fbfaf7;
  --fg: #1f1f1f;
  --muted: #6b6b6b;
  --rule: #e6e3dc;
  --code-bg: #f1eee8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17171a;
    --fg: #e8e6e1;
    --muted: #9a978f;
    --rule: #2c2c31;
    --code-bg: #222227;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 44rem;
  padding: 0 1rem;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 Georgia, "Times New Roman", serif;
}

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

.top, .bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.25rem;
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.top { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.top nav { display: flex; gap: 1.25rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--fg); }
.brand { color: var(--fg); font-weight: 700; text-decoration: none; }

.bottom {
  margin: 4rem 0 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.intro { margin: 2.5rem 0 1.5rem; }
.intro h1 { margin: 0 0 .25rem; font-size: 2rem; }
.intro p { margin: 0; color: var(--muted); }

.posts { list-style: none; padding: 0; margin: 0; }
.posts li { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.posts a { font-size: 1.2rem; font-weight: 700; text-decoration: none; color: var(--fg); }
.posts a:hover { color: var(--accent); }
.posts p { margin: .35rem 0 0; color: var(--muted); }

time, .tags {
  display: block;
  color: var(--muted);
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}

article { margin-top: 2.5rem; }
article h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 .5rem; }
article h2 { font-size: 1.3rem; margin-top: 2rem; }
article header { margin-bottom: 1.75rem; }
article img { max-width: 100%; height: auto; }

code, pre { font: 14px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--code-bg); }
code { padding: .1em .3em; border-radius: 4px; }
pre { padding: 1rem; overflow-x: auto; border-radius: 6px; }
pre code { padding: 0; background: none; }

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

.back { margin-top: 3rem; font-family: system-ui, sans-serif; font-size: 15px; }
