:root {
  --bg: ##ffffff;
  --text: #111;
  --muted: #555;
  --rule: #e5e5e5;
}

* { box-sizing: border-box; }

body {
  font-family: "Courier New", Courier, monospace;
  line-height: 1.6;
  max-width: 40rem;
  margin: 2rem auto;
  padding: 0 1.25rem;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--text); }
a:hover { color: var(--muted); }

/* Nav */
nav {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}
nav a { text-decoration: none; }
nav a:hover, nav a.active { text-decoration: underline; }

/* Headings */
h1 { font-size: 1.875rem; font-weight: 600; line-height: 1.1; margin: 0; }
h2 { font-size: 1.25rem; font-weight: 600; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
p { margin: 0 0 0.9rem; }

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

/* Post list */
ul.post-list { list-style: none; padding: 0; margin: 0; }
ul.post-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--rule);
}
ul.post-list .date { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }

/* Projects */
.project { display: flex; align-items: center; gap: 15px; margin-bottom: 2rem; }
.project img { width: 200px; height: auto; flex-shrink: 0; }
.project-title { margin-bottom: 0.4rem; }

@media (max-width: 560px) {
  .project { flex-direction: column; align-items: flex-start; }
  .project img { width: 100%; }
}

/* Post body */
article img { max-width: 100%; height: auto; display: block; margin: 1rem 0; }
article pre {
  background: #f5f5f5;
  padding: 0.75rem;
  overflow-x: auto;
  font-size: 0.85rem;
}
article blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
  color: var(--muted);
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.75rem;
  color: var(--muted);
}