/**
  * Blog at /blog. Keeps the look of the old Jekyll blog: a single narrow
  * column with blue titles.
  */

.blog-page {
  --blog-link-color: #337ab7;
  --blog-text-color: #111;
  --blog-muted-color: #6b7280;
  --blog-code-bg-color: #f3f4f6;
  background-color: #f7fcff;
  background-image: url(/resources/images/bg-other.png);
  background-position: top center;
  background-size: contain;
  background-repeat: no-repeat;
  color: var(--blog-text-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.blog-container {
  width: 100%;
  max-width: 690px;
  margin: 0 auto;
  padding: 1.5rem 16px 4rem;
}

/** Post list */

.blog-item {
  margin-bottom: 3rem;
}

.blog-item h2 {
  margin-bottom: 0.75rem;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
}

.blog-link {
  color: var(--blog-link-color);
}

.blog-link:hover {
  text-decoration: underline;
}

.blog-banner {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 0.75rem;
}

.blog-excerpt {
  margin-bottom: 0.625rem;
  font-size: 15px;
  line-height: 1.43;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  font-size: 13.3px;
  color: var(--blog-muted-color);
}

.blog-author {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--blog-link-color);
}

.blog-avatar {
  width: 25px;
  height: 25px;
  border-radius: 50%;
}

.blog-pager {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.blog-pager .next {
  margin-left: auto;
}

.blog-pager a,
.blog-back a {
  display: inline-block;
  padding: 0.3125rem 0.875rem;
  border: 1px solid #ddd;
  border-radius: 15px;
  background-color: white;
  color: var(--blog-link-color);
  font-size: 14px;
}

.blog-pager a:hover,
.blog-back a:hover {
  background-color: #eee;
}

.blog-back {
  margin-top: 3rem;
}

/** Post */

.blog-title {
  margin-bottom: 0.5rem;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
}

.blog-post header {
  margin-bottom: 1.75rem;
}

.blog-content {
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.blog-content > * + * {
  margin-top: 1rem;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5 {
  margin-top: 2rem;
  font-weight: 500;
  line-height: 1.25;
}

.blog-content h1 { font-size: 28px; }
.blog-content h2 { font-size: 24px; }
.blog-content h3 { font-size: 20px; }
.blog-content h4 { font-size: 18px; }
.blog-content h5 { font-size: 16px; }

.blog-content a {
  color: var(--blog-link-color);
}

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

.blog-content strong {
  font-weight: 600;
}

.blog-content ul,
.blog-content ol {
  padding-left: 1.5rem;
}

.blog-content ul { list-style: disc; }
.blog-content ol { list-style: decimal; }
.blog-content ul ul { list-style: circle; }

.blog-content li + li,
.blog-content li > ul,
.blog-content li > ol {
  margin-top: 0.375rem;
}

.blog-content img,
.blog-content video {
  max-width: 100%;
  height: auto;
}

.blog-content figure {
  margin: 1.5rem 0;
}

.blog-content figcaption {
  margin-top: 0.5rem;
  font-size: 14px;
  color: var(--blog-muted-color);
  text-align: center;
}

.blog-content code {
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  background-color: var(--blog-code-bg-color);
  font-size: 0.875em;
}

.blog-content pre {
  overflow-x: auto;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  background-color: #1f2328;
  color: #e6edf3;
  font-size: 14px;
  line-height: 1.55;
}

.blog-content pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}

.blog-content table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
}

.blog-content th,
.blog-content td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.blog-content th {
  background-color: #f9fafb;
  font-weight: 600;
}

.blog-content blockquote {
  padding: 0.25rem 1rem;
  border-left: 3px solid #e5e7eb;
  color: #4b5563;
}

.blog-content hr {
  border-color: #e5e7eb;
}

.blog-content .footnotes {
  margin-top: 2.5rem;
  font-size: 14px;
  color: var(--blog-muted-color);
}

.blog-content .callout {
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--blog-link-color);
  background-color: #337ab70d;
  color: var(--blog-text-color);
}

.blog-error {
  min-height: 40vh;
}
