:root {
  --bg: #fdfdfc;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e5e5e5;
  --link: #1a1a1a;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 640px;
  padding: 0 16px;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 3px; text-decoration-color: var(--muted); }
a:hover { text-decoration-color: currentColor; }

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 48px 0 40px;
}
.site-title { font-weight: 600; text-decoration: none; }
nav a { margin-left: 20px; color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }

main { min-height: 60vh; }

h1 { font-size: 1.6rem; line-height: 1.3; margin: 0 0 8px; }
h2 { font-size: 1.2rem; margin-top: 2em; }

.meta { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 32px; }

.posts { list-style: none; padding: 0; margin: 0; }
.posts li { display: flex; gap: 24px; padding: 6px 0; }
.posts time {
  flex-shrink: 0;
  width: 100px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; }
pre { padding: 16px; overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; }
img { max-width: 100%; }
blockquote { margin: 0; padding-left: 16px; border-left: 2px solid var(--border); color: var(--muted); }

footer {
  margin-top: 80px;
  padding: 24px 0 48px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.9rem;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

nav a::before, footer a::before { content: "["; }
nav a::after, footer a::after { content: "]"; }

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