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

body {
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  background-color: #fefcf5;
  color: #3c3836;
  line-height: 1.6;
  font-size: 14px;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.8s ease, color 0.8s ease;
}

body.dark {
  background-color: #282828;
  color: #ebdbb2;
}

.container {
  width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  padding: 40px;
  max-height: 90vh;
  overflow-y: auto;
}

/* Custom scrollbar */
.container::-webkit-scrollbar {
  width: 6px;
}

.container::-webkit-scrollbar-track {
  background: #fefcf5;
}

.container::-webkit-scrollbar-thumb {
  background: #a89984;
  border-radius: 3px;
}

.container::-webkit-scrollbar-thumb:hover {
  background: #7c6f64;
}

body.dark .container::-webkit-scrollbar-track {
  background: #282828;
}

body.dark .container::-webkit-scrollbar-thumb {
  background: #4a4a4a;
}

body.dark .container::-webkit-scrollbar-thumb:hover {
  background: #665c54;
}

header {
  margin-bottom: 40px;
  position: relative;
  flex-shrink: 0;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  margin-bottom: 0;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.breadcrumb a {
  color: #3c3836;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.breadcrumb a:hover {
  color: #7c6f64;
}

body.dark .breadcrumb a {
  color: #ebdbb2;
}

body.dark .breadcrumb a:hover {
  color: #a89984;
}

.breadcrumb-separator {
  color: #7c6f64;
  font-weight: normal;
  flex-shrink: 0;
}

body.dark .breadcrumb-separator {
  color: #a89984;
}

.breadcrumb-current {
  color: #7c6f64;
  font-weight: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

body.dark .breadcrumb-current {
  color: #a89984;
}

.name {
  font-size: 24px;
  font-weight: normal;
  letter-spacing: -0.5px;
  margin: 0;
}

.name a {
  color: inherit;
  text-decoration: none;
}

.name a:hover {
  color: #7c6f64;
}

body.dark .name a:hover {
  color: #a89984;
}

.theme-toggle {
  background: transparent;
  border: 1px solid #a89984;
  color: #3c3836;
  font-family: inherit;
  font-size: 12px;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background-color: #a89984;
  color: #fefcf5;
}

body.dark .theme-toggle {
  border-color: #665c54;
  color: #ebdbb2;
}

body.dark .theme-toggle:hover {
  background-color: #665c54;
  color: #282828;
}

.title {
  font-size: 16px;
  color: #7c6f64;
  margin-bottom: 40px;
}

body.dark .title {
  color: #a89984;
}

nav {
  margin-bottom: 20px;
  flex-shrink: 0;
}

nav ul {
  list-style: none;
}

nav li {
  margin-bottom: 15px;
}

nav a {
  color: #3c3836;
  text-decoration: none;
  font-size: 16px;
  position: relative;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #7c6f64;
}

body.dark nav a {
  color: #ebdbb2;
}

body.dark nav a:hover {
  color: #a89984;
}

nav a::before {
  content: "• ";
  opacity: 0;
  transition: opacity 0.3s ease;
}

nav a:hover::before {
  opacity: 1;
}

.content {
  margin-bottom: 20px;
  flex-grow: 1;
  overflow-y: auto;
}

.intro {
  font-size: 16px;
  line-height: 1.8;
  color: #504945;
  max-width: 600px;
}

body.dark .intro {
  color: #bdae93;
}

/* About page styles */
.about-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #504945;
  margin-bottom: 20px;
}

body.dark .about-content p {
  color: #bdae93;
}

.experience,
.skills {
  margin-top: 40px;
}

.experience h3,
.skills h3 {
  font-size: 16px;
  font-weight: normal;
  color: #3c3836;
  margin-bottom: 15px;
}

body.dark .experience h3,
body.dark .skills h3 {
  color: #ebdbb2;
}

.experience p,
.skills p {
  font-size: 14px;
  line-height: 1.6;
  color: #7c6f64;
}

body.dark .experience p,
body.dark .skills p {
  color: #a89984;
}

/* Projects page styles */
.project {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #f0f0f0;
}

body.dark .project {
  border-bottom-color: #3c3836;
}

.project:last-of-type {
  border-bottom: none;
}

.project h3 {
  font-size: 16px;
  font-weight: normal;
  margin-bottom: 5px;
}

.project h3 a {
  color: #3c3836;
  text-decoration: none;
}

.project h3 a:hover {
  color: #7c6f64;
}

body.dark .project h3 a {
  color: #ebdbb2;
}

body.dark .project h3 a:hover {
  color: #a89984;
}

.project-date {
  font-size: 12px;
  color: #a89984;
  margin-bottom: 10px;
}

body.dark .project-date {
  color: #665c54;
}

.project p {
  font-size: 14px;
  line-height: 1.6;
  color: #504945;
  margin-bottom: 8px;
}

body.dark .project p {
  color: #bdae93;
}

.project-tech {
  font-size: 12px;
  color: #7c6f64;
  font-style: italic;
}

body.dark .project-tech {
  color: #a89984;
}

.more-projects {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #f0f0f0;
}

body.dark .more-projects {
  border-top-color: #3c3836;
}

.more-projects a {
  color: #3c3836;
  text-decoration: none;
}

.more-projects a:hover {
  color: #7c6f64;
}

body.dark .more-projects a {
  color: #ebdbb2;
}

body.dark .more-projects a:hover {
  color: #a89984;
}

/* Blog page styles */
.blog-post {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #f0f0f0;
}

body.dark .blog-post {
  border-bottom-color: #3c3836;
}

.blog-post:last-of-type {
  border-bottom: none;
}

.blog-post h3 {
  font-size: 16px;
  font-weight: normal;
  margin-bottom: 5px;
}

.blog-post h3 a {
  color: #3c3836;
  text-decoration: none;
}

.blog-post h3 a:hover {
  color: #7c6f64;
}

body.dark .blog-post h3 a {
  color: #ebdbb2;
}

body.dark .blog-post h3 a:hover {
  color: #a89984;
}

.post-date {
  font-size: 12px;
  color: #a89984;
  margin-bottom: 10px;
}

body.dark .post-date {
  color: #665c54;
}

.blog-post p {
  font-size: 14px;
  line-height: 1.6;
  color: #504945;
}

body.dark .blog-post p {
  color: #bdae93;
}

.blog-archive {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #f0f0f0;
}

body.dark .blog-archive {
  border-top-color: #3c3836;
}

.blog-archive a {
  color: #3c3836;
  text-decoration: none;
}

.blog-archive a:hover {
  color: #7c6f64;
}

body.dark .blog-archive a {
  color: #ebdbb2;
}

body.dark .blog-archive a:hover {
  color: #a89984;
}

footer {
  margin-top: 40px;
  flex-shrink: 0;
}

/* Post content styles */
.post-content {
  line-height: 1.7;
}

.post-content h1 {
  font-size: 28px;
  font-weight: normal;
  color: #3c3836;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

body.dark .post-content h1 {
  color: #ebdbb2;
}

.post-content h2 {
  font-size: 20px;
  font-weight: normal;
  color: #3c3836;
  margin: 40px 0 20px 0;
}

body.dark .post-content h2 {
  color: #ebdbb2;
}

.post-content h3 {
  font-size: 16px;
  font-weight: normal;
  color: #3c3836;
  margin: 30px 0 15px 0;
}

body.dark .post-content h3 {
  color: #ebdbb2;
}

.post-content p {
  font-size: 15px;
  color: #504945;
  margin-bottom: 16px;
}

body.dark .post-content p {
  color: #bdae93;
}

.post-content ul {
  margin: 16px 0;
  padding-left: 20px;
}

.post-content li {
  font-size: 15px;
  color: #504945;
  margin-bottom: 8px;
  list-style-type: none;
  position: relative;
}

body.dark .post-content li {
  color: #bdae93;
}

.post-content pre {
  background-color: #f5f5f0;
  border: 1px solid #e8e8e0;
  border-radius: 4px;
  padding: 16px;
  margin: 20px 0;
  overflow-x: auto;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 13px;
  line-height: 1.4;
}

body.dark .post-content pre {
  background-color: #1d2021;
  border-color: #3c3836;
}

.post-content code {
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 13px;
  color: #3c3836;
}

body.dark .post-content code {
  color: #ebdbb2;
}

.api-table {
  margin: 20px 0;
}

.api-row {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #504945;
}

body.dark .api-row {
  border-bottom-color: #3c3836;
  color: #bdae93;
}

.api-row:last-child {
  border-bottom: none;
}

.api-row strong {
  color: #3c3836;
  font-weight: normal;
}

body.dark .api-row strong {
  color: #ebdbb2;
}

.contact {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.contact a {
  color: #7c6f64;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.contact a:hover {
  color: #3c3836;
}

body.dark .contact a {
  color: #a89984;
}

body.dark .contact a:hover {
  color: #ebdbb2;
}

@media (max-width: 600px) {
  .container {
    width: 350px;
    padding: 20px;
  }

  .name {
    font-size: 20px;
  }

  .theme-toggle {
    font-size: 11px;
    padding: 3px 6px;
  }
}
