:root {
  --font: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  --text: #1a1a1a;
  --text-muted: #666;
  --bg: #fff;
  --accent: #0052cc;
  --border: #e5e5e5;
  --max-width: 680px;
}

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

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  padding: 2.5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

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

/* main */
main {
  min-height: 60vh;
}

/* links */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* homepage intro */
.intro {
  color: var(--text);
}

.intro p {
  margin-bottom: 1rem;
}

/* section listing (projects, logs) */
h1 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  text-transform: lowercase;
}

.post-list {
  list-style: none;
}

.post-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.post-list li:first-child {
  border-top: 1px solid var(--border);
}

.post-list a {
  color: var(--text);
  font-size: 0.9rem;
}

.post-list a:hover {
  color: var(--accent);
  text-decoration: none;
}

.date {
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* article / single post */
.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.post-header h1 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  text-transform: none;
}

.post-header time {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content h2 {
  font-size: 0.95rem;
  margin: 2rem 0 0.75rem;
}

.post-content h3 {
  font-size: 0.9rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text-muted);
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.25rem 1.5rem;
}

.post-content li {
  margin-bottom: 0.25rem;
}

.post-content code {
  background: #f5f5f5;
  padding: 0.1em 0.35em;
  border-radius: 2px;
  font-size: 0.9em;
}

.post-content pre {
  background: #f5f5f5;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: 2px;
}

.post-content pre code {
  background: none;
  padding: 0;
  font-size: 0.85em;
}

.post-content blockquote {
  border-left: 2px solid var(--border);
  padding-left: 1rem;
  color: var(--text-muted);
  margin: 1.25rem 0;
}

/* footer */
footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}
