:root {
  --text: #1a1a1a;
  --muted: #666;
  --bg: #fefefe;
  --accent: #a33;
  --border: #e5e5e5;
  --max-width: 680px;
}

* { box-sizing: border-box; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  margin: 0;
  font-size: 18px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  margin-bottom: 40px;
}
.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.site-title {
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text);
}
.site-header nav a {
  margin-left: 20px;
  font-size: 0.95em;
  color: var(--text);
}

.hero { margin-bottom: 48px; }
.hero h1 { margin-bottom: 4px; font-size: 2em; }
.hero .tagline { color: var(--muted); font-size: 1.1em; margin-top: 0; }
.hero .bio { max-width: 560px; }

section.wrap { margin-bottom: 48px; }
h2 { font-size: 1.3em; border-bottom: 1px solid var(--border); padding-bottom: 6px; }

.project-list, .post-list { list-style: none; padding: 0; }
.project-list li, .post-list li { margin-bottom: 20px; }
.project-list p { color: var(--muted); margin: 4px 0 0; font-size: 0.95em; }
.post-list .date { color: var(--muted); font-size: 0.9em; margin-left: 8px; }

.prose h1 { margin-bottom: 4px; }
.prose .date { color: var(--muted); font-size: 0.9em; margin-top: 0; }
.prose p { margin: 1em 0; }
.prose pre {
  background: #f5f5f5;
  padding: 12px 16px;
  overflow-x: auto;
  border-radius: 4px;
  font-family: Menlo, Consolas, monospace;
  font-size: 0.85em;
}
.prose code {
  font-family: Menlo, Consolas, monospace;
  background: #f5f5f5;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.9em;
}
.prose ul, .prose ol { padding-left: 1.4em; }

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.9em;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.site-footer .links a { margin-left: 16px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
  .site-header nav { margin-top: 8px; }
  .site-header nav a { margin-left: 0; margin-right: 16px; }
}
