@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&display=swap');

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

body {
  font-family: 'JetBrains Mono', monospace;
  background: #fafafa;
  color: #111;
  font-size: 14px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 5% 0;
}

/* Home page — two-column layout */

.home {
  display: flex;
  min-height: 100%;
}

.bio {
  width: 25%;
  padding: 32px 20px;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
}

.bio .greeting {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.bio .description {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0;
}

.section-label {
  font-size: 10px;
  color: #bbb;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-section {
  margin-bottom: 28px;
}

.bio .project {
  margin-bottom: 12px;
}

.bio .project:last-child {
  margin-bottom: 0;
}

.bio .project:last-of-type {
  margin-bottom: 0;
}

.bio .project a {
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.bio .project a:hover {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: #ccc;
  text-underline-offset: 2px;
}

.bio .project p {
  font-size: 14px;
  color: #888;
  line-height: 1.4;
}

.bio .project:last-of-type p {
  margin-bottom: 0;
}

.bio .social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.bio .social a {
  display: flex;
  align-items: center;
}

.bio .social svg {
  width: 18px;
  height: 18px;
}

.bio .social a:hover svg {
  fill: #333;
}

.posts-column {
  width: 75%;
  padding: 32px 24px;
}

.post-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  text-decoration: none;

}



.post-title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  text-decoration: none;
}

.post-title:hover  {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: #ccc;
  text-underline-offset: 2px;
    cursor: pointer;
}


.post-date {
  font-size: 10px;
  color: #aaa;
  margin-left: 16px;
  white-space: nowrap;
}

/* Post reader */

.post-page .container {
  min-height: auto;
  padding: 32px 0 48px;
}

.reader {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.reader .back {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #666;
  font-size: 14px;
}

.reader .back:hover {
  color: #333;
}

.reader .date {
  font-size: 12px;
  color: #aaa;
}

.reader h1 {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  margin-bottom: 24px;
}

/* Markdown content */

.markdown-content {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
}

.markdown-content h2 {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-top: 24px;
  margin-bottom: 12px;
}

.markdown-content h3 {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin-top: 20px;
  margin-bottom: 8px;
}

.markdown-content p {
  margin-bottom: 12px;
}

.markdown-content ul,
.markdown-content ol {
  margin-bottom: 12px;
  padding-left: 24px;
}

.markdown-content li {
  margin-bottom: 4px;
}

.markdown-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
}

.markdown-content pre {
  background: #f0f0f0;
  padding: 16px;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 12px;
}

.markdown-content pre code {
  background: none;
  padding: 0;
}

.markdown-content a {
  color: #2563eb;
  text-decoration: none;
}

.markdown-content a:hover {
  text-decoration: underline;
}

.markdown-content strong {
  font-weight: 700;
  color: #222;
}

.markdown-content blockquote {
  border-left: 3px solid #ddd;
  padding-left: 16px;
  color: #666;
  margin-bottom: 12px;
}

.markdown-content hr {
  border: 0;
  border-top: 1px solid #e5e5e5;
  margin: 20px 0;
}

@media (max-width: 860px) {
  .container {
    padding: 24px 16px 40px;
  }

  .home {
    flex-direction: column;
    min-height: auto;
  }

  .bio,
  .posts-column {
    width: 100%;
    padding: 0;
  }

  .bio {
    border-right: 0;
    margin-bottom: 0;
  }

  .site-section {
    margin-bottom: 20px;
  }

  .reader {
    padding: 0 16px;
  }
}
