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

body {
  background: #0d1117;
  color: #c9d1d9;
  font-family: 'IBM Plex Mono', 'Fira Code', 'Source Code Pro', 'Courier New', monospace;
  font-size: 16px;
  line-height: 1.6;
  padding: 2rem 1rem;
}

main {
  max-width: 720px;
  margin: 0 auto;
}

a {
  color: #4ec9b0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  color: #e6edf3;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

h1 { font-size: 1.4rem; }
h2 { font-size: 1.2rem; margin-top: 1.5rem; }
h3 { font-size: 1rem; margin-top: 1rem; }

p {
  margin-bottom: 1rem;
}

pre.ascii {
  color: #4ec9b0;
  font-size: 0.75rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  overflow-x: auto;
}

nav {
  margin: 1rem 0;
  padding: 0.5rem 0;
  border-top: 1px solid #21262d;
  border-bottom: 1px solid #21262d;
}

nav a {
  margin-right: 1.5rem;
}

/* Article lists */
.article-list {
  list-style: none;
  padding: 0;
}

.article-list li {
  margin-bottom: 0.4rem;
}

.article-list .date {
  color: #8b949e;
  margin-right: 0.75rem;
  font-size: 0.9rem;
}

.article-list .category-tag {
  color: #8b949e;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

/* Category filter buttons */
.filters {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filters button {
  background: #161b22;
  color: #c9d1d9;
  border: 1px solid #30363d;
  padding: 0.25rem 0.75rem;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.filters button:hover,
.filters button.active {
  background: #4ec9b0;
  color: #0d1117;
  border-color: #4ec9b0;
}

/* Definition list for projects */
dl {
  margin: 1rem 0;
}

dt {
  color: #4ec9b0;
  font-weight: 600;
  margin-top: 0.75rem;
}

dd {
  margin-left: 1rem;
  color: #8b949e;
}

/* Images */
article img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  margin: 1rem 0;
}

article figure {
  margin: 1rem 0;
}

article figcaption {
  color: #8b949e;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Article content */
article {
  margin-top: 1rem;
}

article p {
  margin-bottom: 1rem;
}

article code {
  background: #161b22;
  padding: 0.15rem 0.4rem;
  font-size: 0.9rem;
  border-radius: 3px;
}

article pre {
  background: #161b22;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  border-radius: 3px;
}

article pre code {
  background: none;
  padding: 0;
}

article ul, article ol {
  margin: 0 0 1rem 1.5rem;
}

article blockquote {
  border-left: 3px solid #4ec9b0;
  padding-left: 1rem;
  color: #8b949e;
  margin-bottom: 1rem;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #21262d;
  color: #8b949e;
  font-size: 0.85rem;
}
