/* Clean, structured blog design */
html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0a0a;
  color: #ffffff;
  font-size: 16px;
  min-height: 100vh;
  line-height: 1.6;
}

/* Container for main content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Header styling */
.header {
  margin-bottom: 60px;
}

.logo {
  display: block;
  margin-bottom: 20px;
  text-decoration: none;
  color: #ffffff;
}

.logo-text {
  font-family: 'Hubot Sans', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: 2px;
  line-height: 1;
  margin: 0;
}

.logo-year {
  font-family: 'Hubot Sans', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: #888888;
  letter-spacing: 1px;
  margin: 0;
  margin-top: 8px;
}

/* Main title */
.title {
  font-size: 4rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 1.1;
  font-family: 'Hubot Sans', sans-serif;
  letter-spacing: -2px;
}

/* Blog description */
.blog-description {
  color: #888888;
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 600px;
}

/* Two column layout for articles */
.article-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  margin-top: 40px;
}

/* Metadata sidebar */
.metadata-sidebar {
  position: sticky;
  top: 40px;
  height: fit-content;
}

.metadata-section {
  margin-bottom: 40px;
}

.metadata-header {
  font-size: 0.9rem;
  font-weight: 600;
  color: #888888;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.metadata-item {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metadata-label {
  font-size: 0.85rem;
  color: #666666;
  font-weight: 500;
}

.metadata-value {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 600;
}

/* Article content */
.article-content {
  max-width: 700px;
}

.article-content .article-title {
  font-size: 4.5rem !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  margin: 0 0 50px 0 !important;
  font-family: 'Hubot Sans', sans-serif !important;
  letter-spacing: -2px !important;
}

/* Blog homepage layout */
.blog-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  margin-top: 40px;
}

/* Folder structure sidebar */
.folder-sidebar {
  position: sticky;
  top: 40px;
  height: fit-content;
}

.folder-section {
  margin-bottom: 40px;
}

.folder-header {
  font-size: 0.9rem;
  font-weight: 600;
  color: #888888;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.folder-item {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.folder-item:hover {
  color: #ffffff;
}

.folder-item.active {
  color: #ffffff;
  background-color: #1a1a1a;
  border-radius: 4px;
  padding: 8px 12px;
  margin: 4px 0;
}

.folder-item.active .folder-name {
  color: #ffffff;
}

.folder-icon {
  width: 12px;
  height: 12px;
  background: #333333;
  border-radius: 2px;
}

.folder-name {
  font-size: 0.9rem;
  color: #888888;
  font-weight: 500;
}

.folder-count {
  font-size: 0.8rem;
  color: #666666;
  margin-left: auto;
}

/* Main articles section */
.main-articles {
  width: 100%;
}

.articles-header-main {
  font-size: 0.9rem;
  font-weight: 600;
  color: #888888;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-main-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #1a1a1a;
  transition: all 0.2s ease;
  cursor: pointer;
}

.article-main-item:hover {
  background-color: #111111;
  padding-left: 8px;
}

.article-main-date {
  font-size: 0.9rem;
  color: #888888;
  font-family: 'JetBrains Mono', monospace;
  min-width: 100px;
  flex-shrink: 0;
}

.article-main-title {
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
  flex: 1;
}

.article-main-title:hover {
  color: #ffffff;
}

.article-expand {
  color: #666666;
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

/* Code blocks */
pre {
  background: #111111;
  border: 1px solid #333333;
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #e8e8e8;
}

code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9em;
  color: #ebdbb2;
}

pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

/* Links */
a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffffff;
}

/* Paragraphs */
p {
  margin: 24px 0;
  color: #e0e0e0;
  line-height: 1.8;
  font-size: 1.25rem;
  font-weight: 400;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  font-family: 'Hubot Sans', sans-serif;
  margin: 30px 0 20px 0;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  border-bottom: 1px solid #333333;
  padding-bottom: 10px;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Images */
img {
  margin: 32px auto;
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Responsive design */
@media (max-width: 1024px) {
  .article-layout,
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .metadata-sidebar,
  .articles-sidebar {
    position: static;
  }
  
  .title {
    font-size: 3rem;
  }
  
  .article-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 20px 16px;
  }
  
  .title {
    font-size: 2.5rem;
  }
  
  .article-title {
    font-size: 2rem;
  }
  
  .article-main-item {
    flex-direction: column;
    gap: 8px;
  }
  
  .article-main-date {
    min-width: auto;
    font-size: 0.8rem;
  }
  
  .article-main-title {
    font-size: 1rem;
  }
}