:root {
  --text: #111;
  --muted: #666;
  --bg: #fff;
  --border: #e0e0e0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 64px;
  font-size: 0.95rem;
}
nav .nav-links { display: flex; gap: 20px; }

/* Links */
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; }
nav > a { font-weight: 600; }

/* Typography */
h1 { font-size: 1.6rem; font-weight: 600; line-height: 1.3; margin-bottom: 16px; }
h2 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; margin: 32px 0 12px; }
h3 { font-size: 1rem; font-weight: 600; margin: 24px 0 8px; }
p { margin-bottom: 16px; color: var(--text); }
ul, ol { margin: 0 0 16px 20px; }
li { margin-bottom: 4px; }
blockquote {
  border-left: 2px solid var(--border);
  padding-left: 16px;
  color: var(--muted);
  margin: 16px 0;
}
code {
  font-family: "SF Mono", "Fira Code", "Fira Mono", monospace;
  font-size: 0.9em;
  background: #f5f5f5;
  padding: 2px 5px;
  border-radius: 3px;
}
pre {
  background: #f5f5f5;
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
  border-radius: 3px;
  line-height: 1.5;
}
pre code { background: none; padding: 0; }
hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
img { max-width: 100%; height: auto; }

/* Post header */
.post-header { margin-bottom: 32px; }
.post-header time { color: var(--muted); font-size: 0.9rem; }

/* Post list */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
}
.post-list time { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }

/* Project list */
.project-list { list-style: none; margin: 0; padding: 0; }
.project-list li { padding: 12px 0; }
.project-list .desc { color: var(--muted); font-size: 0.95rem; }

/* Footer */
footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Socials */
.socials { font-size: 0.85rem; color: var(--muted); }
.socials a { color: var(--muted); }
.socials a:hover { color: var(--text); }

/* Utility */
.muted { color: var(--muted); }
