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

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

/* Navbar */
nav.navbar {
  position: sticky;
  top: 0;
  background: #fafafa;
  border-bottom: 1px solid #e1e1e1;
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  z-index: 100;
}
nav .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  margin-right: 2rem;
}
nav .logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 0.5rem;
}
nav .nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
nav .nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}
nav .nav-links a:hover,
nav .nav-links a.active {
  color: #2a9d8f;
}
nav .toggle {
  margin-left: auto;
  cursor: pointer;
}

/* Headings */
h1, h2, h3 {
  margin: 1.5rem 0 1rem;
  font-weight: normal;
}
h2 {
  font-family: 'Courier New', monospace;
  background: #f0f0f0;
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* About page sidebar */
.about-container {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 2rem;
}
.sidebar {
  flex: 0 0 250px;
  position: sticky;
  top: 4rem;
  padding-left: 1rem;
  border-left: 1px solid #e1e1e1;
}
.avatar {
  width: 100%;
  border-radius: 50%;
  border: 3px solid #4a90e2;
  margin-bottom: 1rem;
}
.sidebar-nav a {
  display: block;
  padding: 0.5rem 0;
  color: #333;
  text-decoration: none;
}
.sidebar-nav a:hover {
  text-decoration: underline;
}

/* Blog list */
ul.post-list {
  list-style: none;
  margin-top: 1rem;
}
.post-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e1e1e1;
}
.post-list li a {
  font-size: 1.2rem;
  font-weight: 500;
  color: #264653;
  text-decoration: none;
}
.post-list li a:hover {
  color: #2a9d8f;
}
.post-list .date {
  font-size: 0.85rem;
  color: #777;
  margin-left: 0.5rem;
}

/* Post content */
article.post {
  background: #fff;
  padding: 2rem;
  border-left: 4px solid #2a9d8f;
  margin: 2rem 0;
}
article.post h1 {
  margin-bottom: 0.5rem;
}
article.post .date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1rem;
}
article.post .content p {
  margin-bottom: 1rem;
}
article.post a.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  text-decoration: none;
  color: #2a9d8f;
  font-family: 'Courier New', monospace;
}
article.post a.back-link:hover {
  text-decoration: underline;
}

/* Utility */
.lead {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #555;
}

footer.container {
  font-size: 0.85rem;
  color: #aaa;
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid #e1e1e1;
}

/* Reset */ *{margin:0;padding:0;box-sizing:border-box;}
body{font-family:'Segoe UI',sans-serif;background:#fafafa;color:#333;line-height:1.6;}
.container{max-width:800px;margin:auto;padding:1rem;}
/* Navbar */
.navbar{display:flex;justify-content:space-between;align-items:center;padding:1rem 0;}
.logo{font-size:1.5rem;color:#4a90e2;text-decoration:none;}
.nav-links{list-style:none;display:flex;gap:1rem;}
.nav-links a{color:#555;text-decoration:none;}
.nav-links a:hover{color:#4a90e2;}
/* Profile */
.profile{display:flex;gap:1rem;align-items:center;margin-top:1rem;}
.profile-img{width:120px;border-radius:50%;border:4px solid #4a90e2;}
/* Blog list */
.post-list{list-style:none;margin-top:1rem;}
.post-list li{padding:0.5rem 0;border-bottom:1px solid #ddd;}
.post-list a{font-size:1.1rem;color:#4a90e2;text-decoration:none;}
.post-list a:hover{text-decoration:underline;}
.date{font-size:0.9rem;color:#777;margin-left:0.5rem;}
/* Post */
.post{background:#fff;padding:2rem;border-radius:6px;box-shadow:0 2px 8px rgba(0,0,0,0.1);margin:1rem 0;}
.post h1{margin-bottom:0.5rem;}
.post .date{font-size:0.9rem;color:#999;margin-bottom:1rem;}
.post .content p{margin-bottom:1rem;}
/* Utility */
.lead{font-size:1.25rem;margin-bottom:1rem;color:#555;}
footer{text-align:center;font-size:0.85rem;color:#aaa;padding:2rem 0;margin-top:2rem;border-top:1px solid #eee;}
