body {
  color: #222831;
  font-size: calc(110% + 0.1vw);
  line-height: 1.6;
  background-color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
    "Helvetica Neue", sans-serif;
}

.wrap {
  width: 95%;
  max-width: 45em;
  margin: 0 auto;
}

p {
  letter-spacing: -.01em;
  line-height: 1.8;
  margin: .6em 0;
}

a,
a:active {
  color: #222831;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -.002em;
  font-weight: 600;
  line-height: 1.2;
}

::selection {
  color: #fff;
  background-color: #9e1900;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-list-link {
  padding-bottom: .15em;
  border-bottom: .2em solid transparent;
}

.nav-list-link:hover {
  border-bottom: .2em solid #9e1900;
  padding-bottom: .15em;
  transition: 150ms ease-in-out;
}

code {
  padding: .2em .4em;
}

iframe,
video {
  max-width: 100%;
  margin: 1rem auto;
}

table th {
  font-weight: 600;
  border: 1px solid #9e1900;
  text-align: left;
  margin: 0;
  padding: .4em .8em;
  background-color: #f6f8fa;
}
table thead {
  background-color: #fff;
}
table tbody tr {
  border-top: 1px solid #9e1900;
  background-color: #fff;
}
table tbody td {
  border: 1px solid #9e1900;
  text-align: left;
  padding: 10px;
}

header {
  min-height: 7em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header .branding {
  display: inline-block;
  margin: .6em 0 0 0;
  position: relative;
}

header .branding img {
  display: block;
}

.logo-image:hover {
  animation: sway 1.4s ease-in-out both;
}

@keyframes sway {
  10%,
  90% {
    transform: rotate(-15deg);
  }

  20%,
  80% {
    transform: rotate(15deg);
  }

  30%,
  50%,
  70% {
    transform: rotate(-10deg);
  }

  40%,
  60% {
    transform: rotate(10deg);
  }
}

.logo-image {
  height: 5em;
}

header .nav-list-item {
  display: inline-block;
  padding: 1em .8em;
}
header .nav-list-item a {
  font-size: .9em;
  line-height: 1.4;
}

.home.post-list {
  list-style: none;
}
.home.post-list .post-list-item {
  padding: 1em .4em;
}

.home.post-list .post-content h2:before,
.home.post-list .post-content h3:before,
.home.post-list .post-content h4:before,
.home.post-list .post-content h5:before,
.home.post-list .post-content h6:before {
  content: "";
}
.home.post-list .post-content > ul {
  list-style: initial;
}

.home.post-list .read-more {
  color: #9e1900;
}

.post-block .post-title {
  margin: .4em 0;
  font-size: 1.5em;
}
.post-block .post-info {
  color: #393e46;
  margin: .8em 0;
}
.post-block .post-info span {
  margin-left: .5rem;
}
.post-block .post-info a.post-from {
  margin-left: .5rem;
  padding: .2em .3em;
  border-radius: .3em;
  font-size: .7em;
  color: #fff;
  background-color: #e36b6b;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin-bottom: 0.2em;
}

.post-content h2 a:before,
.post-content h3 a:before,
.post-content h4 a:before,
.post-content h5 a:before,
.post-content h6 a:before {
  content: "#";
  color: #9e1900;
  position: absolute;
  left: -.8em;
  top: -.1em;
  font-size: 1.1em;
  font-weight: 500;
}
.post-content h4 a:before,
.post-content h5 a:before,
.post-content h6 a:before {
  content: "";
}

.post-list .post-tile {
  font-size: 1.6em;
}

.post-content h1,
.post .post-title {
  margin-top: 1.2em;
  font-size: 2.2em;
}

.post-content h2 {
  margin-top: 1.1em;
  font-size: 2em;
}

.post-content h3 {
  margin-top: 1em;
  font-size: 1.8em;
}

.post-content h4 {
  margin-top: 0.9em;
  font-size: 1.6em;
}

.post-content h5 {
  margin-top: 0.8em;
  font-size: 1.4em;
}

.post-content h6 {
  margin-top: 0.7em;
  font-size: 1.2em;
}

.post-content a {
  color: #9e1900;
}

.post-content blockquote {
  margin: 2em 0;
  padding: .5em 1.3em;
  border: .05em solid #eee;
  border-radius: .1em;
  border-left-color: #9e1900;
  border-left-width: .1em;
}

.post-content li {
  margin-left: 1em;
  list-style-type: disc;
}

.post-content blockquote.warning {
  border-left-color: #f0ad4e;
  border-left-width: 4px;
}
.post-content img {
  display: block;
  max-width: 100%;
  margin: 1em auto;
}
.post-content .tip {
  position: relative;
  margin: 2em 0;
  padding: .6em 1.2em .6em 1.2em;
  border-left: 4px solid #f66;
  border-top-right-radius: .06em;
  border-bottom-right-radius: .06em;
  background-color: #f8f8f8;
}
.post-content .tip br {
  display: none;
}
.post-content .tip:before {
  position: absolute;
  top: 14px;
  left: -12px;
  content: "!";
  width: 20px;
  height: 20px;
  border-radius: 100%;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-align: center;
  background-color: #f66;
  font-family: "Dosis", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
}

.ds-thread,
#disqus_thread {
  margin-bottom: 2em;
}

main.container {
  margin: 1em .7em;
  min-height: 30vh;
}

footer .copyright {
  font-size: .8em;
  margin: 4em 4em;
  border-top: 1px solid #eee;
  text-align: center;
}
footer .copyright p,
footer .copyright a {
  color: #393e46;
  font-weight: 300;
}

footer .copyright a {
  text-decoration: underline;
}

footer .copyright a:hover {
  color: #393e46;
}

.tag-prefix, .cat-prefix {
  font-weight: bold;
}

.category.current *, .tag.current *, .home.categories-list *, .home.tags-list * {
  display: inline;
}

.home.tags-list, .home.categories-list {
  margin-top: 1em;
  margin-bottom: 1em;
}

.category.current, .tag.current, .home.tags-list p, .home.categories-list p {
  font-weight: bold;
  font-style: italic;
}

.home.tags-list a, .home.categories-list a {
  font-style: italic;
}

.home.tags-list a:hover, .home.categories-list a:hover {
  text-decoration: underline;
  font-style: italic;
}

.post-block a:hover, .paginator a:hover {
  text-decoration: underline;
}

.post-info {
  font-size: 0.8em;
  font-style: italic;
}

#to-top{
  float: right;
  text-decoration: underline;
}

#mce-subscription-form {
  width: 100%;
  padding: 10px 10px;
  border: 1px solid black;
  border-radius: 0.1em;
  margin-top: 3em;
  display: flex;
  flex-direction: row;
}

#mce-subscription-form label {
  flex: 0 0 auto;
  margin-right: 10px;
}

#mce-subscription-form input[type="email"] {
  border: 1px solid #eee;
  flex: 1 1 auto;
  margin-right: 10px;
}

#mce-subscription-form input[type="submit"] {
  flex: 0 0 auto;
}

.paginator {
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.paginator * {
  display: inline;
}

.paginator p {
  font-weight: bold;
  font-style: italic;
  margin-right: 20px;
}

.page-number {
  margin: 1px 10px;
  padding: 5px 5px;
}

.page-number.current {
  border: 1px solid black;
  border-radius: 0.1em;
}

@media screen and (max-width: 700px) {
  .ds-thread,
  #disqus_thread {
    margin: 2em .8em;
  }

  #mce-subscription-form {
    flex-wrap: wrap;
  }

  #mce-subscription-form input[type="email"] {
    flex: 1 1 100%;
    margin-top: 10px;
    line-height: 2em;
  }

  #mce-subscription-form input[type="submit"] {
    margin-top: 10px;
    line-height: 2em;
    flex: 0 0 100%;
  }

  #mce-subscription-form label {
    flex: 0 0 100%;
  }
}

.video-container iframe {
  min-height: 400px;
  width: 100%;
}

summary:not(.opened)::before {
  content: '→';
}

summary.opened::before {
  content: '↓';
}

summary * {
  cursor: pointer;
  display: inline;
}

summary *:hover {
  text-decoration: underline;
}

summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

article {
  padding-bottom: 30px;
}