:root {
  --bg:        #ffffff;
  --text:      #1a1a1a;
  --muted:     #888888;
  --border:    #e5e5e5;

  --max-width: 640px;
  --pad:       2rem;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--border);
  transition: text-decoration-color 200ms;
}

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

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Header */
header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem var(--pad) 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
}

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

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

/* Intro */
.intro {
  padding: 5rem 0 1.5rem;
}

.intro p {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.links {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.links a {
  text-decoration: underline;
}

.sep {
  color: var(--border);
  margin: 0 0.4rem;
}

.text-muted {
  color: var(--muted);
  font-size: 0.875rem;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

/* About */
.about {
  padding: 2rem 0;
}

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

/* Entries */
.entries {
  padding: 1.5rem 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 2.5rem 0 1.25rem;
}

.section-label:first-of-type {
  margin-top: 0;
}

.entry {
  margin-bottom: 1.75rem;
}

.entry h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.entry h3 a {
  text-decoration: none;
  font-weight: 500;
}

.entry h3 a:hover {
  text-decoration: underline;
}

.entry p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  line-height: 1.55;
}

.entry-meta {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tag {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.6875rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
}

.status {
  font-size: 0.6875rem;
  font-weight: 500;
}

.status.active {
  color: #2e7d32;
}

.status.stable {
  color: #1565c0;
}

.status.research {
  color: #6a1b9a;
}

/* Footer */
footer {
  display: flex;
  flex-direction: column;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem var(--pad) 4rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

footer p, footer .email {
  margin-bottom: 0.15rem;
}

footer .email {
  font-size: 0.8125rem;
}

footer .email a {
  text-decoration: none;
  color: var(--muted);
}

footer .email a:hover {
  color: var(--text);
}

footer .links {
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 600px) {
  :root {
    --pad: 1.25rem;
  }

  .intro {
    padding-top: 3rem;
  }

  footer {
    gap: 0.75rem;
  }
}
