/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lora', serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header styles */
header {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 1.1rem;
}

.brand small {
  color: #666;
  font-size: 0.85rem;
}

.profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-pic-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 1rem 0;
}

/* Navigation styles */
nav {
  display: flex;
  gap: 1.25rem;
}

nav a {
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: #007bff;
}

nav svg {
  width: 16px;
  height: 16px;
}

/* Main content styles */
main {
  min-height: 60vh;
}

/* Article styles */
article {
  margin-bottom: 2rem;
}

article header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

article header h1 {
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
  color: #333;
}

article header time {
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
}

article .content {
  line-height: 1.7;
}

/* Welcome section styles */
.welcome-content {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin: 2rem 0;
}

.welcome-text {
  flex: 1;
}

.welcome-text p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.welcome-text a {
  color: #007bff;
  text-decoration: none;
}

.welcome-text a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

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

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
  color: #333;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* List styles */
ul {
  list-style: none;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

li:last-child {
  border-bottom: none;
}

li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1.1rem;
}

li a:hover {
  color: #007bff;
}

time {
  color: #666;
  font-size: 0.9rem;
}

/* Post list styles */
.post-list {
  margin: 1.5rem 0;
}

.post-preview {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

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

.post-preview header {
  margin-bottom: 0.25rem;
}

.post-preview h2 {
  margin: 0 0 0.15rem 0;
  font-size: 1.3rem;
  line-height: 1.3;
}

.post-preview h3 {
  margin: 0 0 0.15rem 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.post-preview h2 a,
.post-preview h3 a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s;
}

.post-preview h2 a:hover,
.post-preview h3 a:hover {
  color: #007bff;
}

.post-preview time {
  color: #666;
  font-size: 0.8rem;
  font-weight: normal;
}

.post-preview .excerpt {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0.5rem 0;
}

.read-more {
  display: inline-block;
  color: #007bff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.read-more:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Footer styles */
footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid #eee;
  text-align: center;
}

footer .social {
  margin-bottom: 1rem;
}

footer .social a {
  margin: 0 0.5rem;
  text-decoration: none;
  color: #333;
  transition: color 0.2s;
}

footer .social a:hover {
  color: #007bff;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

footer .llm-notice {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* Code block styling */
pre {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.4;
}

code {
  background-color: #f8f9fa;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
}

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

/* YouTube embed styling */
.youtube-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: 1.5rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Prism.js overrides */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #6a737d;
}

.token.punctuation {
  color: #393A34;
}

.token.keyword {
  color: #d73a49;
}

.token.string {
  color: #032f62;
}

.token.function {
  color: #6f42c1;
}

.token.number {
  color: #005cc5;
}

/* Responsive design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav {
    width: 100%;
    justify-content: center;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .profile-pic-large {
    width: 100px;
    height: 100px;
  }
  
  .welcome-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .welcome-content .profile-pic-large {
    align-self: center;
  }
}