/** variables **/
:root {
  --color-bg: hsl(0, 0%, 100%);
  --color-primary: hsl(0, 0%, 0%);
  --color-contrast-lower: hsl(0, 0%, 95%);
  --color-contrast-higher: hsl(240, 8%, 12%);
  --color-contrast-medium: hsl(240, 1%, 48%);
  --color-contrast-low: hsl(240, 1%, 83%);
  --color-contrast-high: hsl(240, 4%, 20%);
  --line-height: 1.68;
}

/** fonts **/
/* long-cang-regular - chinese-simplified_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Long Cang";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/long-cang-v17-chinese-simplified_latin-regular.woff2")
    format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-serif-sc-regular - chinese-simplified_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/noto-serif-sc-v22-chinese-simplified_latin-regular.woff2")
    format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/** body **/
body {
  background-color: #eceff1;
  font-family: "glyph-correction", "Noto Serif SC", serif;
  padding: 0;
  margin: 0;
}

a {
  color: var(--color-contrast-high);
  text-decoration: none;
  transition: all 0.5s;
}

blockquote {
  padding-left: 1em;
  border-left: 1px solid #ddd;
  margin: 1rem 0;
}

/** header & menu **/
.header-bar {
  position: relative;
  background-color: #000;
  text-align: center;
  display: flex;
  justify-content: center;
}

.zimu-logo {
  width: 20rem;
  height: 6rem;
  background-image: url("/img/zimu.svg");
  background-repeat: no-repeat;
  margin: 1rem;
  margin-top: 1.5rem;
}

ul.menu {
  margin: 0;
  list-style: none;
  line-height: 1.5;
  font-weight: 500;
  text-align: center;
  background: var(--color-contrast-lower);
  padding: 0.8rem 0 0.8rem;
  font-family: "glyph-correction", "Noto Serif SC", serif;
}

.menu-item {
  display: inline-block;
  margin: 0 1.618rem;
}

.menu-item a.nav-item {
  color: var(--color-contrast-medium);
  text-decoration: none;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-item a.nav-item:hover {
  color: var(--color-primary);
}

.menu-item a.nav-item .icon {
  width: 1.25rem;
  height: 1.25rem;
  padding-bottom: 0.25rem;
}

.menu-item a.nav-item .icon:hover {
  color: #000;
}

/** content **/
.container {
  padding: 2rem 1rem 5rem;
  display: block;
}

span.drop-cap {
  float: left;
  font-size: 48px;
  margin-right: 16px;
  margin-top: 1rem;
  line-height: 32px;
}

.page-content {
  display: block;
  margin: 0 auto;
}

.page-content .article {
  background-color: #fcfaf2;
  padding: 4rem 6rem 6rem 6rem;
  width: 38rem;
  margin: 0 auto;
}

.page-content.page-tech .article {
  width: 50rem;
}

.page-content .post-list {
  width: 38rem;
  margin: 0 auto;
}

.page-content .main-page {
  width: 38rem;
  margin: 0 auto;
}

.page-content ul, .page-content ol {
  padding-left: 1.3rem;
}

.page-content ol li {
  line-height: 2;
}

.post-content a {
  color: #2484c1;
}

.post-title {
  font-family: "Yuji Mai", "Noto Serif SC", serif;
  margin: 0 0 2rem;
}

.post-title a {
  text-decoration: none;
}

.page-content.page-article .post-content p {
  --line-height: 2;
  line-height: var(--line-height) !important;
  font-size: 1.4rem;
  font-family: "楷体", "楷体_GB2312", "Noto Serif SC", "新宋体", serif;
}

.page-content.page-tech .post-content p {
  font-size: 1rem;
  --line-height: 2;
  line-height: var(--line-height) !important;
  font-family: "Noto Serif SC", "新宋体", serif;
  text-align: left;
}

.page-content.page-tech .post-content blockquote p {
  font-size: 1rem;
  font-family: "FangSong", Arial, sans-serif;
  text-align: left;
}

.page-content.page-tech .post-content sup {
  font-weight: bold;
  color: red;  
  background-color: yellow;
}

.post-content p img {
  width: 100%;
  height: auto;
}

.list-year {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 1.618rem 0 1rem;
  color: var(--color-contrast-higher);
  font-size: 1.8rem;
}

.list-item {
  line-height: 2;
  position: relative;
  transition: border 0.5s;
  border-bottom: 1px dashed var(--color-contrast-low);
  margin-top: 1rem;
  padding-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  font-family: "Noto Serif SC", "新宋体", "宋体", serif;
}

.list-item:hover {
  border-bottom-color: var(--color-primary);
}

.list-item:hover ::before {
  background: var(--color-primary);
}

.list-item ::before {
  content: " ";
  position: absolute;
  left: 0.618rem;
  top: 0.618rem;
  width: 6px;
  height: 6px;
  background: var(--color-contrast-low);
  border-radius: 50%;
  border: 1px solid var(--color-bg);
  transition: background 0.5s;
  font-size: 1.2rem;
  border-color: #eceff1;
}

.list-item-title {
  margin: 0 0.618rem 0 2rem;
  font-size: 1.2rem;
  line-height: 1.618;
  flex: 1;
  white-space: nowrap;
  text-overflow: clip;
  overflow: hidden;
}

.list-item-time {
  margin: 0 0.618rem 0 2rem;
  color: var(--color-contrast-medium);
  line-height: 1.5;
  text-align: right;
}

.tag-list {
  font-size: 1.8rem;
  font-weight: 600;
  font-family: "楷体", "楷体_GB2312";
}

.post-tags a {
  font-size: 1rem;
  font-family: "楷体", "楷体_GB2312", sans-serif;
}

.self-intro {
  font-family: "glyph-correction", "EB Garamond", "Noto Serif SC", serif;
  font-size: 1.1rem;
  line-height: 2;
}

.self-intro hr {
  border: none;
  margin: 2.427em 0 1.5em;
  text-align: center;
}

.self-intro hr::after {
  content: "···";
  letter-spacing: 2em;
  padding-left: 2em;
}

.highlight {
  overflow-x: auto;
  padding-top: 24px;
  border-radius: 5px;
  background: url(/img/dot.svg) 0% 0% / auto no-repeat scroll padding-box border-box;
  background-color: #282a36;
  background-size: 50px;
  background-position: 6px 7px; 
}

.highlight code {
  font-family: "Consolas", "Menlo", "Monaco", monospace, serif;
	font-size: .9em;
  line-height: 1.25em;
}

/** footer **/
.footer {
  color: #ccc;
  background-color: #000;
  font-size: 0.8rem;
  text-align: center;
}

.footer .footer-inner {
  padding: 2rem 2rem 2rem 2rem;
}

.footer .footer-inner a {
  color: white;
}

/** image previewer */
#img-previewer {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  display: none;
}

#img-previewer-container {
  height: 100%;
  width: 100%;
  overflow-x: scroll;
  display: flex;
  flex-direction: row;
  align-items: center;
}

#img-previewer-container img {
  max-width: 200%;
  max-height: 100%;
  margin: 0 auto;
}

/***************************** media query ***********************/

/** media query **/
@media (min-width: 768px) {
}

@media (max-width: 768px) {
  .container {
    padding: 1rem 0.8rem 1rem;
  }

  .self-intro {
    font-size: 1rem;
  }

  .page-content .main-page {
    width: 100%;
  }

  .page-content .article {
    padding: 1rem;
    width: calc(100% - 2rem);
  }

  .page-content.page-tech .article {
    width: calc(100% - 2rem);
  }
}

@media (min-width: 1024px) {
}
