/* Tarski-inspired theme for Hugo */

/* === Reset === */
html, body, form, fieldset { margin: 0; padding: 0; }
fieldset { border: none; }
*, *::before, *::after { box-sizing: border-box; }

/* === Body === */
body {
  font-family: Verdana, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #404040;
  background: #fff;
}

/* === Wrapper === */
#wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Header === */
#header {
  margin-bottom: 0;
  padding-top: 20px;
}

#blog-title {
  font-family: 'Times New Roman', "Songti SC", STSong, "Noto Serif SC", SimSun, serif;
  font-size: 2.5em;
  font-weight: normal;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

#tagline {
  font-family: 'Times New Roman', "Songti SC", STSong, "Noto Serif SC", SimSun, serif;
  font-size: 1.2em;
  font-weight: normal;
  font-style: italic;
  color: #808080;
  margin: 0.1em 0 0.3em 0;
  line-height: 1.2;
}

#blog-title a {
  color: #404040;
  text-decoration: none;
}

#blog-title a:hover {
  color: #a8001c;
}

/* === Navigation === */
#navigation {
  margin: 0 0 2em 0;
  padding: 6px 0 7px 0;
  border-bottom: 1px solid #ccc;
}

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

#navigation li {
  display: inline-block;
  margin-right: 15px;
}

#navigation a {
  color: #006a80;
  text-decoration: none;
  font-size: 0.95em;
}

#navigation a:hover {
  color: #a8001c;
}

/* === Content === */
#content {
  margin-bottom: 2em;
}

/* === Entries (post list) === */
.posts .entry {
  margin-bottom: 2em;
}

.entry h2 {
  font-family: 'Times New Roman', "Songti SC", STSong, "Noto Serif SC", SimSun, serif;
  font-size: 1.5em;
  font-weight: normal;
  line-height: 1.2;
  margin: 0 0 0.2em 0;
}

.entry h2 a {
  color: #404040;
  text-decoration: none;
  border: none;
}

.entry h2 a:hover {
  color: #a8001c;
}

.entry .metadata {
  font-size: 0.85em;
  color: #808080;
  margin: 0 0 0.8em 0;
}

.entry .metadata a {
  color: #808080;
  text-decoration: none;
}

.entry .metadata a:hover {
  color: #a8001c;
}

/* === Page title === */
h1.title {
  font-family: 'Times New Roman', "Songti SC", STSong, "Noto Serif SC", SimSun, serif;
  font-size: 1.5em;
  font-weight: normal;
  line-height: 1.2;
  margin: 0 0 0.2em 0;
  padding: 0;
}

/* === Content typography === */
.content {
  margin-top: 1.5em;
}

.content p {
  margin: 0 0 1em 0;
  line-height: 1.7;
}

.content a:link,
.content a:visited,
.content a:active {
  color: #006a80;
  text-decoration: none;
  border-bottom: 1px solid #cfe2e5;
}

.content a:hover {
  color: #a8001c;
  border-bottom: 1px solid #e5cfd2;
}

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

/* === Headings in content === */
.content h1, .content h2, .content h3, .content h4 {
  font-family: 'Times New Roman', "Songti SC", STSong, "Noto Serif SC", SimSun, serif;
  font-weight: normal;
  line-height: 1.2;
}

.content h2 {
  font-size: 1.8em;
  margin: 0.8em 0 0.3em 0;
}

.content h3 {
  font-size: 0.85em;
  font-weight: normal;
  color: #404040;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 1.5em 0 0.8em 0;
  padding: 0;
}

.content h4 {
  font-size: 1.4em;
  margin: 1em 0 0.3em 0;
}

/* === Blockquote === */
blockquote {
  margin: 0 0 1em 0;
  padding: 0 30px;
  color: #808080;
}

/* === Code === */
pre, code, tt {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  line-height: 1.8;
  color: #4d4d4d;
}

pre {
  margin: 0 0 1em 0;
  border: 1px solid #e5e5e5;
  padding: 0.5em 1em;
  white-space: pre-wrap;
  overflow: hidden;
  background: #fafafa;
}

code, tt {
  background: #efefef;
  padding: 1px 4px;
}

pre code, pre tt {
  background: none;
  padding: 0;
}

/* === Lists === */
ul, ol {
  margin: 0 0 1em 15px;
  padding: 0;
}

ul { list-style: disc; }

li {
  margin: 0 0 0.25em 0;
  line-height: 1.6;
}

/* === Horizontal rule === */
hr {
  width: 60px;
  height: 1px;
  background: #ddd;
  color: #ddd;
  margin: 2em auto;
  border: none;
  padding: 0;
}

/* === Article navigation === */
.articlenav {
  margin: 3em 0 1em 0;
  padding: 0;
  color: #808080;
  font-size: 0.85em;
  overflow: hidden;
}

.articlenav .prev {
  float: left;
}

.articlenav .next {
  float: right;
}

.articlenav a {
  color: #006a80;
  text-decoration: none;
}

.articlenav a:hover {
  color: #a8001c;
}

/* === Section headings (archives etc.) === */
#content > h4 {
  font-family: 'Times New Roman', "Songti SC", STSong, "Noto Serif SC", SimSun, serif;
  font-size: 1.1em;
  font-weight: normal;
  color: #404040;
  margin: 1.5em 0 0.5em 0;
}

/* === Category list === */
.category-list {
  list-style: none;
  margin: 0 0 2em 0;
}

.category-list li {
  margin: 0.4em 0;
}

.category-list a {
  color: #006a80;
  text-decoration: none;
}

.category-list a:hover {
  color: #a8001c;
}

.category-desc {
  color: #808080;
  font-size: 0.9em;
}

/* === Archive list === */
.archive-list {
  list-style: none;
  margin: 0 0 1em 0;
  padding: 0;
}

.archive-list li {
  margin: 0.2em 0;
  line-height: 1.5;
}

.archive-list time {
  display: inline-block;
  min-width: 45px;
  color: #808080;
  font-size: 0.85em;
  margin-right: 0.5em;
}

.archive-list a {
  color: #404040;
  text-decoration: none;
}

.archive-list a:hover {
  color: #a8001c;
}

/* === Pagination === */
.pagination {
  margin: 2em 0;
  font-family: 'Times New Roman', "Songti SC", STSong, "Noto Serif SC", SimSun, serif;
  font-size: 1.2em;
  color: #808080;
  text-align: center;
}

.pagination a {
  color: #006a80;
  text-decoration: none;
  margin: 0 0.5em;
}

.pagination a:hover {
  color: #a8001c;
}

/* === Footer === */
#footer {
  margin-top: 1em;
  border-top: 3px double #ccc;
  padding: 1em 0 2em 0;
  color: #808080;
  font-size: 0.85em;
}

/* === Links (global) === */
a { text-decoration: none; }
a:link, a:visited, a:active { color: #006a80; }
a:hover { color: #a8001c; }

/* === Tables === */
table {
  border-collapse: collapse;
  margin: 0 0 1em 0;
}

th, td {
  border: 1px solid #e5e5e5;
  padding: 0.4em 0.8em;
  text-align: left;
}

th {
  background: #fafafa;
  font-weight: bold;
}

/* === Responsive === */
@media (max-width: 780px) {
  #wrapper {
    padding: 0 15px;
  }
}
