:root {
  --text-color: #333333;
  --bg-color: #ffffff;
  --link-color: #0366d6;
  --link-hover-color: #0056b3;
  --header-bg: #f6f8fa;
  --border-color: #eaecef;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.site-title h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
}

.site-title h1 a {
  color: var(--text-color);
  text-decoration: none;
}

.site-title p {
  margin: 0;
  color: #586069;
  font-size: 1.1rem;
}

.site-nav {
  margin-top: 1.5rem;
}

.site-nav a {
  margin-right: 1.5rem;
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

.page-content {
  margin-bottom: 4rem;
  min-height: 60vh;
}

.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  color: #586069;
  text-align: center;
  font-size: 0.9rem;
}

/* Post styles */
.post-header {
  margin-bottom: 2rem;
}

.post-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  line-height: 1.2;
}

.post-meta {
  color: #586069;
  font-size: 0.95rem;
}

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

.post-list li {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
}

.post-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.post-list h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

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

.post-list h3 a:hover {
  color: var(--link-color);
}

.post-excerpt {
  color: #586069;
  margin-top: 0.5rem;
}

/* Markdown elements */
a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

blockquote {
  border-left: 4px solid #dfe2e5;
  color: #586069;
  padding: 0.5rem 1rem;
  margin: 0 0 1rem 0;
  background-color: rgba(246, 248, 250, 0.5);
}

code {
  background-color: rgba(27, 31, 35, 0.05);
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
  font-size: 85%;
  margin: 0;
  padding: 0.2em 0.4em;
}

pre {
  background-color: var(--header-bg);
  border-radius: 6px;
  font-size: 85%;
  line-height: 1.45;
  overflow: auto;
  padding: 16px;
}

pre code {
  background-color: transparent;
  padding: 0;
}

hr {
  height: 0;
  margin: 15px 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-color);
}

img {
  max-width: 100%;
  box-sizing: content-box;
  background-color: #fff;
}

/* MathJax Specific Tweaks to prevent layout shifts */
.MathJax {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
}