main {
  max-width: 70vw;
  margin: auto;
  padding: 40px 20px;
}

.back-link {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 30px;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 0.7;
}

#post-content {
  max-width: 800px;
  margin: 0 auto;

  a {
    font-weight: 600;
  }
}

#post-cover img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#post-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.post-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  color: #666;
  font-size: 0.95rem;
}

.post-date {
  color: #888;
}

.post-author {
  color: #666;
}

.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
}

.tag {
  background: #000;
  color: #fff;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 500;
}

#post-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

#post-body h2 {
  font-size: 2rem;
  margin: 40px 0 20px;
  color: #1a1a1a;
}

#post-body h3 {
  font-size: 1.5rem;
  margin: 32px 0 16px;
  color: #1a1a1a;
}

#post-body p {
  margin-bottom: 20px;
}

#post-body ul,
#post-body ol {
  margin: 20px 0;
  padding-left: 32px;
}

#post-body li {
  margin-bottom: 10px;
}

#post-body a:hover {
  text-decoration: underline;
}

#post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}

#post-body blockquote {
  border-left: 4px solid #1976d2;
  padding-left: 20px;
  margin: 24px 0;
  color: #666;
  font-style: italic;
}

#post-body code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.95em;
}

#post-body pre {
  background: #f5f5f5;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
}

#post-body pre code {
  background: none;
  padding: 0;
}

@media (max-width: 768px) {
  main {
    max-width: 95vw;
    padding: 20px 10px;
  }

  #post-title {
    font-size: 2rem;
  }

  .post-meta {
    flex-direction: column;
    gap: 8px;
  }

  #post-body {
    font-size: 1rem;
  }

  #post-body h2 {
    font-size: 1.5rem;
  }

  #post-body h3 {
    font-size: 1.25rem;
  }
}