:root {
  --text-color: #1a1a1a;
  --bg-color: #ffffff;
  --accent-color: #0066cc;
  --border-color: #e5e5e5;
  --date-color: #666;
  --max-width: 650px;
}

[data-theme="dark"] {
  --text-color: #e5e5e5;
  --bg-color: #1a1a1a;
  --accent-color: #66b3ff;
  --border-color: #333;
  --date-color: #999;
}

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

body {
  font-family: 'EB Garamond', serif;
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
  padding: 2rem;
  transition: background 0.3s, color 0.3s;
}

header {
  max-width: var(--max-width);
  margin: 0 auto 3rem;
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.site-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.site-subtitle {
  color: var(--date-color);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

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

main {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 60vh;
  padding: 0 1.5rem;  /* Increased padding */
}

/* Specific fixes for lists */
main ul, main ol {
  padding-left: 1.5rem;
  margin-left: 0;
}

main li {
  margin-bottom: 0.5rem;
  margin-left: 0;
}

/* Ensure content doesn't overflow on mobile */
@media (max-width: 768px) {
  main {
    padding: 0 1.5rem;
  }
  
  main ul, main ol {
    padding-left: 1.2rem;
  }
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  margin: 2rem 0 1rem;
}

.post-date {
  color: var(--date-color);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

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

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

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

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

.post-list .post-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

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

img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
}

footer {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--date-color);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 18px;
    padding: 1rem;
  }
  
  nav {
    gap: 1rem;
  }
}