:root {
  --color-bg: #f6f7f8;
  --color-surface: #ffffff;
  --color-text: #1f2933;
  --color-heading: #111827;
  --color-muted: #667085;
  --color-border: #e5e7eb;
  --color-accent: #087f5b;
  --color-accent-hover: #066c4d;
  --color-accent-soft: #e9f7f1;
  --content-width: 800px;
  --reading-width: 900px;
  --shell-width: 1120px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.045);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: "Open Sans", "Helvetica Neue", Arial, "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--color-accent);
  color: #fff;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

a:hover,
a:focus {
  color: var(--color-accent-hover);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(8, 127, 91, 0.24);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--color-heading);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.container,
#headerContainer,
.nav-container,
#footer {
  width: calc(100% - 40px);
  max-width: var(--shell-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
}

/* Header and navigation */
.site-header {
  background: var(--color-surface);
}

#headerContainer {
  height: auto;
}

#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 30px 0 28px;
}

.site-title {
  min-width: 0;
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.site-title a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-heading);
}

.site-title img {
  display: block;
  width: auto;
  max-height: 42px;
}

.site-title .default-blog-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-description {
  flex: 0 1 420px;
  max-width: 420px;
  margin: 0;
  padding: 7px 0 7px 20px;
  border-left: 2px solid #cfe5dc;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
}

.site-navigation.navbar {
  min-height: 56px;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
}

.navbar-brand {
  display: none;
}

.navbar-nav > li > a {
  padding: 17px 15px 16px;
  color: #475467 !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  background: transparent;
  color: var(--color-accent) !important;
}

.navbar-default .navbar-nav > .active > a::after {
  position: absolute;
  right: 15px;
  bottom: -1px;
  left: 15px;
  height: 2px;
  background: var(--color-accent);
  content: "";
}

.blog-search {
  width: 210px;
  margin-top: 9px;
  margin-bottom: 9px;
  padding: 0;
}

.blog-search .form-control,
.blog-search .btn {
  height: 38px;
  border-color: #d8dde5;
  box-shadow: none;
}

.blog-search .form-control {
  border-right: 0;
  border-radius: 8px 0 0 8px;
  font-size: 14px;
}

.blog-search .btn {
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #fff;
  color: var(--color-muted);
}

.blog-search .form-control:focus {
  border-color: var(--color-accent);
}

.blog-search .form-control:focus + .input-group-btn .btn {
  border-color: var(--color-accent);
}

@media (min-width: 768px) {
  .navbar-collapse.collapse {
    display: flex !important;
    align-items: flex-start;
  }

  .navbar-nav {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    min-width: 0;
  }

  .navbar-right {
    flex: 0 0 210px;
    margin-left: auto;
  }
}

/* Main content */
.site-main {
  display: block;
  background: var(--color-bg);
}

#postsContainer {
  min-height: 42vh;
  padding: 32px 0 48px;
  background: var(--color-bg);
}

#posts,
.content-width {
  width: calc(100% - 40px);
  max-width: var(--content-width);
  margin-right: auto;
  margin-left: auto;
}

.post-detail {
  max-width: var(--reading-width) !important;
}

#posts .each-post {
  margin: 0 0 24px;
  padding: 38px 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

#posts.posts-list .post-card {
  position: relative;
  margin: 0 0 16px;
  padding: 26px 30px;
  border: 1px solid #d8dee6;
  border-radius: 12px;
  background: var(--color-surface);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

#posts.posts-list .post-card:last-of-type {
  margin-bottom: 0;
}

#posts.posts-list .post-card:hover {
  border-color: #bdc7d3;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.055);
}

.post-header {
  margin-bottom: 22px;
}

#posts .title,
#posts .title a {
  color: var(--color-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

#posts h1.title {
  margin: 0 0 16px;
  font-size: 38px;
}

#posts h2.title {
  margin: 0 0 13px;
  padding: 0;
  font-size: 28px;
}

#posts.posts-list h2.title {
  font-size: 25px;
}

#posts .title a:hover,
#posts .title a:focus {
  color: var(--color-accent);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.5;
}

.post-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-meta .post-stats {
  display: inline-flex;
  gap: 14px;
  margin-left: auto;
}

.post-meta .post-stats > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.post-meta .fa {
  color: #87909f;
}

.post-meta a {
  color: var(--color-muted);
}

.post-meta a:hover,
.post-meta a:focus {
  color: var(--color-accent);
}

.post-meta .post-tags .label {
  display: inline-block;
  margin-right: 3px;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  vertical-align: 1px;
}

.post-meta .post-tags .label-default {
  border-color: #dce3e9;
  background: #f3f6f8;
  color: #475467;
}

.post-meta .post-tags .label-red { border-color: #d9534f; background: #d9534f; }
.post-meta .post-tags .label-yellow { border-color: #f0ad4e; background: #f0ad4e; }
.post-meta .post-tags .label-blue { border-color: #428bca; background: #428bca; }
.post-meta .post-tags .label-green { border-color: #5cb85c; background: #5cb85c; }

.post-meta .post-tags .label:hover,
.post-meta .post-tags .label:focus {
  border-color: rgba(17, 24, 39, 0.24);
  color: #fff;
  filter: brightness(0.88);
}

.post-meta .post-tags .label-default:hover,
.post-meta .post-tags .label-default:focus {
  border-color: #cbd5df;
  background: #e8eef2;
  color: #344054;
  filter: none;
}

.post-excerpt {
  color: #344054;
  font-size: 16px;
  line-height: 1.78;
}

.posts-list .post-excerpt {
  position: relative;
  max-height: 5.35em;
  overflow: hidden;
}

.posts-list .post-excerpt h1,
.posts-list .post-excerpt h2,
.posts-list .post-excerpt h3,
.posts-list .post-excerpt h4,
.posts-list .post-excerpt h5,
.posts-list .post-excerpt h6 {
  margin: 0 0 0.45em;
  color: #344054;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
}

.posts-list .post-excerpt img {
  display: none;
}

.post-excerpt > :first-child,
.post-content > :first-child {
  margin-top: 0;
}

.post-excerpt > :last-child,
.post-content > :last-child {
  margin-bottom: 0;
}

.more-container {
  margin-top: 24px;
}

.posts-list .more-container {
  margin-top: 14px;
}

#posts .more,
.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #b8ddcf;
  border-radius: 8px;
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

#posts .more:hover,
#posts .more:focus,
.primary-link:hover,
.primary-link:focus {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-1px);
}

#posts.posts-list .more {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-accent);
}

#posts.posts-list .more:hover,
#posts.posts-list .more:focus {
  background: transparent;
  color: var(--color-accent-hover);
  transform: none;
}

#posts.posts-list .more span {
  transition: transform 160ms ease;
}

#posts.posts-list .more:hover span,
#posts.posts-list .more:focus span {
  transform: translateX(3px);
}

/* Long-form content */
.post-content {
  color: #273444;
  font-size: 17px;
  line-height: 1.82;
  overflow-wrap: anywhere;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content pre,
.post-content blockquote,
.post-content table {
  margin-bottom: 1.35em;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin: 1.65em 0 0.65em;
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.35;
  scroll-margin-top: 24px;
}

.post-content h1 { font-size: 30px; }
.post-content h2 { font-size: 25px; }
.post-content h3 { font-size: 21px; }
.post-content h4 { font-size: 18px; }
.post-content h5,
.post-content h6 { font-size: 16px; }

.post-content strong,
.post-content b {
  color: var(--color-heading);
  font-weight: 700;
}

.post-content blockquote {
  padding: 3px 0 3px 20px;
  border-left: 4px solid #a7d8c6;
  color: #526071;
  font-size: 16px;
}

.post-content code {
  border-radius: 4px;
  background: #eef1f4;
  color: #b42318;
  font-size: 0.88em;
}

.post-content pre {
  max-width: 100%;
  padding: 18px;
  overflow: auto;
  border: 1px solid #dde2e8;
  border-radius: 9px;
  background: #f8fafb;
  font-size: 14px;
  line-height: 1.65;
}

.post-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.post-content img {
  display: block;
  margin: 28px auto;
  border-radius: 8px;
}

.post-content iframe,
.post-content video {
  max-width: 100%;
}

.post-content table,
.mce-item-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.post-content th,
.post-content td,
.mce-item-table th,
.mce-item-table td,
.mce-item-table caption {
  padding: 9px 12px;
  border: 1px solid #dfe3e8;
  text-align: left;
}

.post-content th {
  background: #f3f5f7;
  color: var(--color-heading);
  font-weight: 700;
}

.post-content tr:nth-child(even) {
  background: #fafbfc;
}

.content-loading {
  padding: 48px 0;
  color: var(--color-muted);
  text-align: center;
}

.content-loading img {
  display: inline-block;
  width: 24px;
  margin: 0 8px 0 0;
  border-radius: 0;
  vertical-align: middle;
}

/* Adjacent posts and pagination */
.pre-next-post {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.pre-next-post > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.pre-next-post .next-post {
  align-items: flex-end;
  text-align: right;
}

.pre-next-post span {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pre-next-post a {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pre-next-post em {
  color: #98a2b3;
  font-size: 14px;
  font-style: normal;
}

.pagination-nav {
  padding-top: 5px;
  text-align: center;
}

.posts-list .pagination-nav {
  margin-top: 8px;
  padding-top: 26px;
  border-top: 1px solid var(--color-border);
}

.page-status {
  color: var(--color-muted);
  font-size: 13px;
}

.pagination-nav .pager {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 0;
}

.pagination-nav .pager li > a,
.pagination-nav .pager li > span {
  padding: 9px 15px;
  border: 1px solid #d4dae2;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 14px;
}

.pagination-nav .pager li > a:hover,
.pagination-nav .pager li > a:focus {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.pagination-nav .pager .disabled > span {
  background: #f2f4f7;
  color: #98a2b3;
}

/* Page headings, tags, and archives */
.page-header {
  margin-top: 0;
  margin-bottom: 24px;
  padding: 0 2px;
  border: 0;
}

.page-header h1 {
  margin: 3px 0 0;
  color: var(--color-heading);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.page-eyebrow {
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-cloud a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid #dce2e8;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 14px;
  font-weight: 500;
}

.tag-cloud a:hover,
.tag-cloud a:focus {
  border-color: #9dcfbd;
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
}

.tag-cloud small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #eef1f4;
  color: var(--color-muted);
  font-size: 11px;
}

.archive-year + .archive-year {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.archive-year > h2 {
  margin: 0 0 24px;
  color: var(--color-heading);
  font-size: 27px;
  font-weight: 700;
}

.archive-month-group {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 24px;
}

.archive-month-group + .archive-month-group {
  margin-top: 26px;
}

.archive-month-group h3 {
  margin: 1px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
}

.archive-month-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-month-group li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 7px 0;
}

.archive-month-group time {
  color: var(--color-muted);
  font-size: 13px;
}

.archive-month-group a {
  color: #344054;
  font-weight: 500;
}

.archive-month-group a:hover,
.archive-month-group a:focus {
  color: var(--color-accent);
}

.empty-state,
.error-page {
  padding-top: 64px !important;
  padding-bottom: 64px !important;
  color: var(--color-muted);
  text-align: center;
}

.empty-state > .fa {
  margin-bottom: 10px;
  color: #aab2bd;
  font-size: 34px;
}

.empty-state h2 {
  margin: 0 0 5px;
  color: var(--color-heading);
  font-size: 22px;
  font-weight: 700;
}

.empty-state p,
.error-page p {
  margin-bottom: 22px;
}

.error-code {
  display: block;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.error-page h1.title {
  margin-top: 8px !important;
}

/* Table of contents */
#blogNav {
  position: fixed;
  z-index: 20;
  left: auto !important;
  right: 18px;
  width: 220px;
  padding: 7px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.11);
}

#blogNavNav {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

#blogNavNav:hover {
  background: #f2f4f7;
}

#blogNavNav .fa {
  margin-right: 6px;
}

#blogNavContent {
  display: none;
  max-height: min(55vh, 420px);
  padding: 5px 8px 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#blogNavContent ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#blogNavContent li {
  margin: 5px 0;
  line-height: 1.35;
}

#blogNavContent a {
  display: block;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 12px;
}

#blogNavContent a:hover {
  color: var(--color-accent);
}

#blogNavContent .nav-h2 { padding-left: 10px; }
#blogNavContent .nav-h3 { padding-left: 20px; }
#blogNavContent .nav-h4,
#blogNavContent .nav-h5,
#blogNavContent .nav-h6 { padding-left: 30px; }

/* Shared comments and controls */
.entry-controls {
  margin-top: 34px !important;
  padding-top: 24px !important;
  border-color: var(--color-border) !important;
}

.entry-controls .btn,
.comment-form .btn {
  border-radius: 8px;
}

.share-dropdown {
  display: inline-block;
  margin-left: 4px;
}

.share-more {
  padding: 6px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--color-muted);
}

.share-more:hover,
.share-more:focus {
  background: #f2f4f7;
  color: var(--color-heading);
}

.comment-form .editable {
  border-color: #d4dae2 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
}

#commentContent {
  min-height: 100px;
}

#comments {
  padding-left: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-muted);
}

#footer {
  padding-top: 40px;
  padding-bottom: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}

.footer-section h2 {
  margin: 0 0 13px;
  color: var(--color-heading);
  font-size: 14px;
  font-weight: 700;
}

.footer-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-section li + li {
  margin-top: 7px;
}

.footer-section a {
  color: var(--color-muted);
  font-size: 14px;
}

.footer-section a:hover,
.footer-section a:focus {
  color: var(--color-accent);
}

.footer-leanote {
  padding: 15px 20px 22px;
  border-top: 1px solid #f0f1f3;
  color: #98a2b3;
  font-size: 12px;
  text-align: center;
}

.footer-leanote a {
  color: #667085;
}

/* Theme management preview */
#themeList label {
  margin-bottom: 5px;
  text-align: center;
}

#themeList .preview {
  display: block;
  width: min(100%, 400px);
  padding: 5px;
  border: 1px solid #d4dae2;
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 1100px) {
  #blogNav {
    top: auto !important;
    right: 14px;
    bottom: 14px;
    width: min(260px, calc(100% - 28px));
  }
}

@media (max-width: 900px) and (min-width: 768px) {
  #header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .site-description {
    flex-basis: auto;
    max-width: 680px;
    padding: 0;
    border-left: 0;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .container,
  #headerContainer,
  .nav-container,
  #footer,
  #posts,
  .content-width {
    width: calc(100% - 28px);
  }

  .site-branding {
    display: none;
  }

  .site-navigation.navbar {
    min-height: 58px;
  }

  .nav-container {
    width: 100%;
  }

  .nav-container > .navbar-header {
    min-height: 57px;
    margin-right: 0;
    margin-left: 0;
    padding: 0 14px;
  }

  .navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 70px);
    height: 57px;
    padding: 17px 0;
    overflow: hidden;
    color: var(--color-heading) !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 23px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .navbar-brand img {
    width: auto;
    max-height: 27px;
  }

  .navbar-brand .default-blog-logo {
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    object-fit: contain;
  }

  .navbar-brand .site-title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .navbar-toggle {
    margin-top: 11px;
    margin-right: 0;
    margin-bottom: 11px;
    border: 0;
    border-radius: 8px;
  }

  .navbar-default .navbar-toggle:hover,
  .navbar-default .navbar-toggle:focus {
    background: #eef1f4;
  }

  .nav-container > .navbar-collapse {
    margin-right: 0;
    margin-left: 0;
    padding: 6px 14px 14px;
    border-top: 1px solid var(--color-border);
    box-shadow: none;
  }

  .navbar-nav {
    margin: 0;
  }

  .navbar-nav > li > a {
    padding: 10px 11px;
    border-radius: 7px;
  }

  .navbar-default .navbar-nav > .active > a {
    background: var(--color-accent-soft);
  }

  .navbar-default .navbar-nav > .active > a::after {
    display: none;
  }

  .blog-search {
    width: 100%;
    margin: 9px 0 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  #postsContainer {
    padding: 28px 0 38px;
  }

  #posts .each-post {
    margin-bottom: 16px;
    padding: 26px 22px;
    border-radius: 10px;
  }

  #posts.posts-list .post-card {
    margin: 0 0 14px;
    padding: 22px 18px;
    border: 1px solid #d8dee6;
    border-radius: 10px;
  }

  #posts h1.title {
    font-size: 30px;
  }

  #posts h2.title {
    font-size: 24px;
  }

  #posts.posts-list h2.title {
    font-size: 22px;
  }

  .post-header {
    margin-bottom: 18px;
  }

  .post-meta {
    gap: 6px 13px;
    font-size: 12px;
  }

  .post-meta .post-stats {
    width: 100%;
    margin-top: 2px;
    margin-left: 0;
  }

  .post-excerpt {
    font-size: 15px;
  }

  .posts-list .post-excerpt {
    max-height: 5.28em;
  }

  .post-content {
    font-size: 16px;
    line-height: 1.76;
  }

  .post-content h1 { font-size: 26px; }
  .post-content h2 { font-size: 23px; }
  .post-content h3 { font-size: 20px; }

  .page-header h1 {
    font-size: 29px;
  }

  .pre-next-post {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pre-next-post .next-post {
    align-items: flex-start;
    text-align: left;
  }

  .archive-month-group {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .archive-month-group li {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
  }

  #blogNav {
    top: auto !important;
    right: 14px;
    bottom: 14px;
    width: min(260px, calc(100% - 28px));
  }

  .entry-controls .right-section {
    display: none;
  }

  .entry-controls .voters {
    margin-top: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 420px) {
  #posts .each-post {
    padding: 23px 18px;
  }

  .post-meta > .post-stats {
    display: none;
  }

  .pagination-nav .pager li > a,
  .pagination-nav .pager li > span {
    padding: 8px 11px;
  }

  .archive-month-group li {
    grid-template-columns: 1fr;
    gap: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
