@font-face {
  font-family: "LXGW WenKai";
  src: url("assets/LXGWWenKai-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

/* Only the post body is reset; site navigation and the homepage remain untouched. */
body.single-post .wp-block-post-content,
body.single-post .wp-block-post-content :where(p, li, blockquote, h2, h3, h4, ol, ul) {
  font-family: "LXGW WenKai", "霞鹜文楷", serif !important;
  font-size: 20px !important;
  line-height: 2 !important;
}

body.single-post .wp-block-post-content {
  width: min(1120px, calc(100% - 40px)) !important;
  max-width: 1120px !important;
  box-sizing: border-box;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow-x: clip;
}

/* Text, images, quotes and headings share the same reading column. */
body.single-post .wp-block-post-content > :where(p, h2, h3, h4, ol, ul, blockquote, hr, figure, .wp-block-image) {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.single-post .wp-block-group:has(> .wp-block-post-title) {
  background-color: #f7f3ef !important;
}

body.single-post .wp-block-post-title,
body.single-post .wp-block-post-title.has-white-color,
body.single-post .entry-title {
  color: #7c4538 !important;
  font-family: "LXGW WenKai", "霞鹜文楷", serif !important;
  font-size: 52px !important;
  font-weight: 500 !important;
  max-width: 1120px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: .45em !important;
  text-align: left !important;
}

/* The theme's category and reading-time line sits directly below the title. */
body.single-post .wp-block-post-title + :is(p, .wp-block-group, .wp-block-post-date, .wp-block-post-terms),
body.single-post .wp-block-post-title + :is(p, .wp-block-group, .wp-block-post-date, .wp-block-post-terms) :is(p, span, a),
body.single-post .wp-block-post-date,
body.single-post .wp-block-post-terms,
body.single-post .entry-meta {
  color: #8a6257 !important;
  font-family: "LXGW WenKai", "霞鹜文楷", serif !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
}

body.single-post .wp-block-post-title + :is(p, .wp-block-group, .wp-block-post-date, .wp-block-post-terms) a,
body.single-post .wp-block-post-date a,
body.single-post .wp-block-post-terms a,
body.single-post .entry-meta a {
  color: #8a6257 !important;
}

/* Some block themes place that line inside the same hero group as the title. */
body.single-post .wp-block-group:has(.wp-block-post-title) :is(p, span, time, a, .has-white-color),
body.single-post .wp-block-group:has(.wp-block-post-title) .has-white-color {
  color: #8a6257 !important;
}

body.single-post .youlin-article-category-prefix {
  color: #8a6257 !important;
  font-family: "LXGW WenKai", "霞鹜文楷", serif !important;
}

body.single-post .wp-block-post-content p {
  margin: 0 0 1.4em !important;
}

body.single-post .wp-block-post-content h2,
body.single-post .wp-block-post-content h3,
body.single-post .wp-block-post-content h4 {
  color: #242321 !important;
  font-family: "LXGW WenKai", "霞鹜文楷", serif !important;
  font-weight: 500 !important;
}

body.single-post .wp-block-post-content h2 {
  font-size: 32px !important;
  line-height: 1.45 !important;
  margin: 2.4em 0 .8em !important;
}

body.single-post .wp-block-post-content h3 {
  font-size: 26px !important;
  line-height: 1.5 !important;
  margin: 2em 0 .7em !important;
}

body.single-post .wp-block-post-content h4 {
  font-size: 22px !important;
  margin: 1.7em 0 .6em !important;
}

body.single-post .wp-block-post-content hr {
  border: 0;
  border-top: 1px solid #bdb6ad;
  margin: 2.2em 0 !important;
}

body.single-post .wp-block-post-content figure,
body.single-post .wp-block-post-content .wp-block-image,
body.single-post .wp-block-post-content p:has(> img) {
  margin: 2.2em 0 2.5em !important;
}

body.single-post .wp-block-post-content img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  margin: 0 auto;
}

body.single-post .wp-block-post-content figcaption {
  margin-top: .75em;
  color: #716d67;
  font-family: "LXGW WenKai", "霞鹜文楷", serif;
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

body.single-post .wp-block-post-content blockquote {
  margin: 2em 0 !important;
  padding: .35em 1.25em !important;
  border-left: 3px solid #7c4538;
}

body.single-post .wp-block-post-content ol,
body.single-post .wp-block-post-content ul {
  margin: 1.3em 0 1.8em !important;
  padding-left: 1.6em !important;
}

body.single-post .youlin-article-navigation {
  width: min(1120px, calc(100% - 40px));
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: .8em 1.4em;
  margin-left: auto;
  margin-right: auto;
  font-family: "LXGW WenKai", "霞鹜文楷", serif;
  font-size: 16px;
  line-height: 1.6;
}

body.single-post .youlin-article-navigation--top {
  margin-top: 2.2em;
  margin-bottom: 1.4em;
  padding-top: 1em;
  border-top: 1px solid #cfc5ba;
}

body.single-post .youlin-article-navigation--bottom {
  margin-top: 3.5em;
  margin-bottom: 4em;
  padding-top: 1.2em;
  border-top: 1px solid #cfc5ba;
}

body.single-post .youlin-article-navigation a {
  color: #7c4538 !important;
  text-decoration: none;
}

body.single-post .youlin-article-navigation a:hover {
  color: #3f2a25 !important;
  text-decoration: underline;
  text-underline-offset: .18em;
}

@media (max-width: 680px) {
  body.single-post .wp-block-post-title,
  body.single-post .wp-block-post-title.has-white-color,
  body.single-post .entry-title {
    font-size: 36px !important;
  }

  body.single-post .wp-block-post-content,
  body.single-post .wp-block-post-content :where(p, li, blockquote, h2, h3, h4, ol, ul) {
    font-size: 18px !important;
  }

  body.single-post .youlin-article-navigation {
    font-size: 15px;
    gap: .65em 1em;
  }
}
