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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0f0f1a;
  color: #c8ccd4;
  line-height: 1.7;
  min-height: 100vh;
}

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

/* Layout: sidebar + main */
.layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  padding: 48px 32px;
  border-right: 1px solid #1e1e30;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #e8eaed;
  margin-bottom: 6px;
}

.sidebar-tagline {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 32px;
  line-height: 1.5;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.sidebar-nav a {
  font-size: 0.9rem;
  color: #7c8aaa;
  padding: 4px 0;
  transition: color 0.15s;
}

.sidebar-nav a:hover { color: #a78bfa; }
.sidebar-nav a.active { color: #a78bfa; font-weight: 500; }

.sidebar-social {
  margin-top: auto;
  display: flex;
  gap: 16px;
}

.sidebar-social a {
  color: #4b5563;
  transition: color 0.15s;
}

.sidebar-social a:hover { color: #a78bfa; }

.sidebar-social svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  overflow: hidden;
}

/* Main content */
.content {
  flex: 1;
  padding: 48px 48px 80px;
  max-width: 720px;
}

.content-header {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e8eaed;
  margin-bottom: 40px;
}

/* Post list */
.post-list {
  display: flex;
  flex-direction: column;
}

.post-item {
  padding: 20px 0;
  border-bottom: 1px dashed #1e1e30;
  display: block;
  transition: background 0.1s;
}

.post-item:first-child { padding-top: 0; }

.post-item-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: #a78bfa;
  transition: color 0.15s;
  display: block;
  margin-bottom: 4px;
}

.post-item:hover .post-item-title { color: #c4b5fd; }

.post-item-meta {
  font-size: 0.8rem;
  color: #4b5563;
}

.post-item-meta span + span::before {
  content: " \00b7 ";
  margin: 0 4px;
}

.empty {
  color: #4b5563;
  font-style: italic;
}

/* Article page */
.post-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #1e1e30;
}

.post-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #e8eaed;
  line-height: 1.3;
  margin-bottom: 8px;
}

.post-header .post-meta {
  font-size: 0.85rem;
  color: #4b5563;
}

.post-header .post-meta span + span::before {
  content: " \00b7 ";
  margin: 0 4px;
}

/* Post body */
.post-body h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #e0e0e0;
  margin: 36px 0 12px;
}

.post-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #d0d0d0;
  margin: 28px 0 8px;
}

.post-body p { margin-bottom: 16px; }

.post-body a {
  color: #a78bfa;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-body a:hover { color: #c4b5fd; }

.post-body strong { color: #e0e0e0; font-weight: 600; }

.post-body ul, .post-body ol {
  margin: 0 0 16px 24px;
}

.post-body li { margin-bottom: 4px; }

.post-body blockquote {
  border-left: 3px solid #a78bfa40;
  padding: 2px 0 2px 16px;
  margin: 0 0 16px;
  color: #8b8fa4;
}

.post-body img {
  max-width: 100%;
  border-radius: 4px;
  margin: 16px 0;
}

.post-body hr {
  border: none;
  border-top: 1px dashed #1e1e30;
  margin: 32px 0;
}

/* Code */
.post-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: #1a1a2e;
  padding: 2px 6px;
  border-radius: 3px;
}

.post-body pre {
  background: #1a1a2e;
  border: 1px solid #252540;
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  margin: 0 0 16px;
  line-height: 1.5;
}

.post-body pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 24px 20px;
  color: #1e1e30;
  font-size: 0.8rem;
}

/* Mobile */
@media (max-width: 768px) {
  .layout { flex-direction: column; }

  .sidebar {
    width: 100%;
    position: static;
    height: auto;
    padding: 24px 20px;
    border-right: none;
    border-bottom: 1px solid #1e1e30;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .sidebar-name { margin-bottom: 0; margin-right: 8px; }
  .sidebar-tagline { display: none; }

  .sidebar-nav {
    flex-direction: row;
    gap: 16px;
    margin-bottom: 0;
  }

  .sidebar-social { margin-top: 0; margin-left: auto; }

  .content { padding: 32px 20px 60px; }
  .content-header { font-size: 1.25rem; }
}
