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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #1a0a1a;
  color: #fff;
  min-height: 100vh;
  padding: 2rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.light-mode {
  background-color: #f5f5f5;
  color: #333;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.avatar-link {
  display: inline-block;
  margin-bottom: 2rem;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.2s;
}

.avatar-link:hover {
  transform: scale(1.05);
}

.avatar-pfp {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #10A7AF;
  display: block;
}

.twitter-bird-link {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
  z-index: 1000;
}

.twitter-bird-link:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.twitter-logo {
  width: 50px;
  height: 50px;
  display: block;
}

.welcome-text {
  font-size: 3rem;
  font-weight: 700;
  color: #10A7AF;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.list-item {
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

body.light-mode .list-item {
  background-color: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.list-item:hover {
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
}

body.light-mode .list-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-color: rgba(0, 0, 0, 0.05);
}

.list-item a {
  color: #10A7AF;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
}

.list-item a:hover {
  color: #0d8a91;
}

.article-date {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  transition: color 0.3s ease;
}

body.light-mode .article-date {
  color: rgba(0, 0, 0, 0.6);
}

/* Theme toggle button */
.theme-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

body.light-mode .theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
}

.theme-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  color: #10A7AF;
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.sun-icon {
  opacity: 0;
  transform: rotate(90deg);
}

body.light-mode .moon-icon {
  opacity: 0;
  transform: rotate(-90deg);
}

body.light-mode .sun-icon {
  opacity: 1;
  transform: rotate(0deg);
}

/* Blog post page styles */
.blog-post-container {
  max-width: 880px;
  width: min(880px, 100%);
  margin: 0 auto;
  padding: 2.25rem 2rem;
}

.blog-nav {
  margin-bottom: 2rem;
}

.blog-nav a {
  color: #10A7AF;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.blog-nav a:hover {
  opacity: 0.7;
}

.blog-post {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.light-mode .blog-post {
  background-color: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-post-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #10A7AF;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.blog-content {
  line-height: 1.85;
  font-size: 1.1rem;
  color: #fff;
  transition: color 0.3s ease;
  word-break: break-word;
  overflow-wrap: break-word;
}

body.light-mode .blog-content {
  color: #333;
}

.blog-content p {
  margin-bottom: 1.5rem;
}

.blog-content strong {
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 1.5rem;
  }
  
  .welcome-text {
    font-size: 2rem;
  }
  
  .list-item {
    padding: 0.75rem;
  }
  
  .blog-post-title {
    font-size: 1.9rem;
  }
  
  .blog-content {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .blog-post {
    padding: 1.4rem;
  }
  
  .blog-post-container {
    padding: 1.5rem 1.1rem;
  }
  
  .theme-toggle {
    top: 1.25rem;
    right: 1.25rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 1.1rem;
  }
  
  .blog-post-title {
    font-size: 1.65rem;
  }
  
  .blog-nav {
    margin-bottom: 1.25rem;
  }
  
  .blog-post {
    padding: 1.25rem;
  }
  
  .blog-content {
    font-size: 0.98rem;
    line-height: 1.65;
  }
  
  .theme-toggle {
    width: 42px;
    height: 42px;
    top: 1rem;
    right: 1rem;
  }
}
