/* Catppuccin Dark blog style */

/* Full-screen dark background */
html, body {
  background-color: #1e1e2e; /* base */
  color: #cdd6f4; /* text */
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

/* Centered content wrapper */
body {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  background-color: transparent;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #cdd6f4; /* text */
  font-weight: 600;
}

h1 {
  font-size: 2.75rem;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 2.25rem;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.75rem;
}
h4, h5, h6 {
  font-size: 1.35rem;
}

/* Paragraphs */
p {
  margin: 1.25rem 0;
  font-size: 1.1rem;
}

/* Links */
a {
  color: #89b4fa; /* blue */
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #cba6f7; /* mauve */
  text-decoration: none;
}

/* Lists */
ul, ol {
  margin: 1.25rem 0;
  padding-left: 2.5rem;
}

/* Blockquotes */
blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid #89b4fa; /* blue */
  background: #1e1e2e;
  color: #a6adc8; /* subtext0 */
  border-radius: 0 8px 8px 0;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid #313244; /* surface0 */
  margin: 2.5rem 0;
}

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

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: #1e1e2e; /* base */
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #313244; /* surface0 */
}

th {
  background: #313244; /* surface0 */
  font-weight: 600;
  color: #cdd6f4; /* text */
}

tr:hover {
  background: #313244; /* surface0 */
}

/* Navigation */
.top-nav {
  background: #1e1e2e; /* base */
  padding: 1.25rem 0;
  margin-bottom: 3rem;
  border-bottom: 1px solid #313244; /* surface0 */
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  background-color: rgba(30, 30, 46, 0.95);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #cdd6f4; /* text */
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #cdd6f4; /* text */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #89b4fa; /* blue */
}

/* Footer */
footer {
  margin-top: 4rem;
  padding: 2rem 0;
  text-align: center;
  color: #a6adc8; /* subtext0 */
  border-top: 1px solid #313244; /* surface0 */
}

/* Blog post list */
.blog-posts {
  display: grid;
  gap: 2rem;
  margin: 3rem 0;
}

.blog-post {
  background: #313244; /* surface0 */
  padding: 1.5rem;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.blog-post h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.post-preview {
  color: #a6adc8; /* subtext0 */
  margin: 1rem 0;
  font-size: 1rem;
  line-height: 1.6;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  color: #89b4fa; /* blue */
  font-weight: 500;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: #cba6f7; /* mauve */
} 