/* Simple blog styles */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 750px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Back link */
.back-link {
  display: inline-block;
  color: #666;
  text-decoration: none;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.back-link:hover {
  color: #333;
}

/* Typography */
h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #222;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #0066cc;
}

/* Code */
code {
  background: #f4f4f4;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

pre {
  background: #f4f4f4;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 5px;
}

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

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

.post-list li {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}

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

.post-list a {
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  display: block;
}

.post-list .post-date {
  display: block;
  color: #999;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.post-list a:hover {
  text-decoration: underline;
}

.post-list .description {
  color: #666;
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

/* Math equations - scrollable on mobile */
mjx-container {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
}

/* Mobile */
@media (max-width: 600px) {
  .container {
    padding: 1.5rem 1rem;
  }
  
  h1 {
    font-size: 1.6rem;
  }
  
  h2 {
    font-size: 1.3rem;
  }
}
