:root {
  --max-width: 900px;
}

.light-theme {
  --body-color: #434c5e;
  --body-background-color: #fafafa;
  --post-date-color: #888;
  --code-background-color: #f0f0f0;
  --link-color: #155a7e;
}

.dark-theme {
  --body-color: #ccc;
  --body-background-color: #222;
  --post-date-color: #888;
  --code-background-color: #282828;
  --link-color: #2088c0;
}

#theme-toggle {
  align-self: center;
  cursor: pointer;
}

.tooltip {
  position: relative;
  cursor: pointer;
}

.tooltip-text {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -30px;
  display: inline-block;
  padding: 4px;
  border-radius: 3px;
  background-color: #555;
  color: #fff;
  font-size: 0.8rem;
  white-space: nowrap;
  transition: 0.3s ease-in-out;
}

.tooltip-text:before {
	content: '';
	position: absolute;
	top: -13px;
	left: 50%;
	margin-left: -7px;
	border: 7px solid transparent;
	border-bottom: 7px solid #555;
}

.tooltip:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
}

html,
body {
  font-family: sans-serif;
  font-size: 18px;
  padding: 0;
  margin: 0;
  color: var(--body-color);
  background-color: var(--body-background-color);
  line-height: 1.65;
}

a {
  color: var(--link-color);
}

a:hover {
  text-decoration: underline;
}

.container {
  padding: 0 2rem 0 2rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.post-list {
  font-size: 1.2em;
  list-style: none;
  padding-left: 0;
  padding-bottom: 0.5em;
}

.post-link {
  text-decoration: none;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

nav {
  display: flex;
  justify-content: flex-end;
}

.nav-link {
  padding-left: 0.7em;
  font-weight: 700;
  text-decoration: none;
}

.post-date {
  color: var(--post-date-color);
  font-size: 0.9rem;
}

.publish-date {
  color: var(--post-date-color);
  font-weight: 700;
  display: flex;
}

.publish-date-icon {
  padding-right: 4px;
}

.lastmod-icon {
  padding-right: 4px;
  padding-left: 4px;
}

.article-item {
  padding-bottom: 1em;
}

pre {
  padding: 0.5rem;
  background-color: var(--code-background-color);
  line-height: 1.1;
  border-radius: 4px;
  overflow-x: auto;
}

code {
  font-family: monospace;
  line-height: 1.3;
  border-radius: 4px;
  padding: 3px 5px 3px 5px;
  background-color: var(--code-background-color);
}

pre code {
  padding: 0;
  font-size: 0.9em;
  background: transparent;
}

figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}

figcaption {
  font-size: 0.9em;
}

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

figure img {
  max-width: none;
  width: auto;
}

header {
  padding: 0 2rem 0 2rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

header h1 a {
  text-decoration: none !important;
}

h1 {
  font-size: 1.5em;
}

h2 {
  font-size: 1.25em;
}

footer {
  margin: 1em 0 1em 0;
  font-size: 0.9em;
  text-align: center;
}

.pagination {
  display: inline-block;
  padding-left: 0;
  width: 100%;
  text-align: center;
}

.pagination>li {
  display: inline;
  padding-left: 4px;
  padding-right: 4px;
}