@charset "UTF-8";

/* Blog */

#blog {
  background: #fff;

  padding: 18px 20px;

  border-radius: 8px;

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#blog > *:last-child {
  margin-bottom: 0;
}

.site-title {
  display: block;

  font-size: 2.4rem;
  font-weight: 600;

  line-height: 1.2;

  color: #1a365d;

  margin: 0;

  text-decoration: none;

  transition: color 0.2s ease;
}

.site-title:hover {
  color: #4085f4;

  text-decoration: none;
}

.blog-header {
  position: relative;
}

.blog-post-header {
  margin-bottom: 1.2rem;

  padding-bottom: 0.8rem;

  border-bottom: 1px solid #e5e7eb;
}

.blog-post-title {
  margin: 0 0 0.4rem 0;

  font-size: 2rem;
  font-weight: 700;

  line-height: 1.2;
  letter-spacing: -0.015em;

  color: #1a365d;
}

.blog-rss-link {
  position: absolute;
  top: 50%;
  right: 10px;

  transform: translateY(-50%);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;

  border-radius: 8px;

  background: rgba(255, 255, 255, 0.08);

  color: rgba(255, 255, 255, 0.98);

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.blog-rss-link:hover {
  background: rgba(255, 255, 255, 0.24);

  color: #ffffff;

  text-decoration: none;
}

.blog-rss-link svg {
  width: 20px;
  height: 20px;

  fill: #ffffff;

  display: block;
}

.blog-description {
  padding-inline: 6px;

  color: #4b5563;
}

.blog-post-date {
  margin: 0;

  padding-inline: 0;

  text-align: left;

  font-size: 0.9rem;

  color: #9ca3af;
}

.blog-page-nav {
  padding-inline: 6px;

  margin-top: 1.6rem;

  font-size: 0.9rem;
}

.blog-page-nav a {
  color: #1a365d;
  font-weight: 600;
}

.blog-page-nav a:hover {
  color: #4085f4;
}

.blog-page-nav-back {
  display: inline-block;
}

.blog-entry {
  margin-bottom: 12px;

  line-height: 1.5;

  padding-top: 10px;
  padding-bottom: 6px;
  padding-left: 12px;
  padding-right: 12px;

  background: #f9fafb;

  border-radius: 6px;

  border-left: 3px solid #4085f4;

  transition: background-color 0.2s ease;
}

.blog-entry:hover {
  background-color: #f5f7fa;
}

.blog-entry h3 {
  margin: 0 0 0.25rem 0;

  font-size: 1rem;
  font-weight: 600;
}

.blog-entry h3 a {
  color: #1a365d;
}

.blog-date {
  margin: 0 0 0.5rem 0;

  font-size: 0.9rem;

  color: #9ca3af;
}

.post-content {
  line-height: 1.7;

  margin-top: 0.6rem;

  padding:
    1.15rem
    1.25rem;

  background: #f9fafb;

  border-radius: 8px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: #1a365d;

  background: transparent;

  padding: 0;

  border-radius: 0;

  font-weight: 700;

  line-height: 1.25;
}

.post-content h1 {
  margin: 1.8rem 0 0.8rem;

  font-size: 1.6rem;
}

.post-content h2 {
  margin: 1.7rem 0 0.75rem;

  font-size: 1.35rem;
}

.post-content h3 {
  margin: 1.5rem 0 0.65rem;

  font-size: 1.15rem;
}

.post-content h4 {
  margin: 1.35rem 0 0.55rem;

  font-size: 1rem;
}

.post-content h5,
.post-content h6 {
  margin: 1.2rem 0 0.45rem;

  font-size: 0.9rem;
}

.post-content pre {
  overflow-x: auto;

  padding: 1rem;

  border-radius: 8px;

  background: #111827;

  color: #f9fafb;
}

@media (max-width: 768px) {

  .site-title {
    font-size: 1.9rem;
  }

  .blog-post-title {
    font-size: 1.75rem;
  }

}

@media (max-width: 480px) {

  #blog {
    padding: 20px 16px;
  }

  .site-title {
    font-size: 1.6rem;

    margin-bottom: 0;
  }

  .blog-post-title {
    font-size: 1.5rem;
  }

  .post-content {
    padding:
      1rem
      1rem;
  }

}
