/**
 * Reset some basic elements
 */
body, h1, h2, h3, h4, h5, h6,
p, blockquote, pre, hr,
dl, dd, ol, ul, figure {
  margin: 0;
  padding: 0; }

/**
 * Basic styling
 */
body {
  font: 300 17px/1.5 "Sukhumvit Set", "Avenir", "Avenir Next", "Cambria", serif;
  text-rendering: optimizeLegibility;
  color: #333333;
  background-color: white;
  -webkit-text-size-adjust: 100%;
  -webkit-font-feature-settings: "kern" 1;
  -moz-font-feature-settings: "kern" 1;
  -o-font-feature-settings: "kern" 1;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
  letter-spacing: -0.015em; }
  @media screen and (max-width: 570px) {
    body {
      font-size: calc(17px * 0.95); } }

strong {
  font: 500 16px/1.5 "Avenir", "Avenir Next", sans-serif; }

.post-content > p > strong {
  color: black; }

table {
  font: 300 15px/1.7 "Avenir", "Avenir Next", sans-serif;
  margin: auto;
  margin-bottom: 15px;
  border-collapse: collapse; }

td {
  border: 1px solid #d2cdcb;
  padding: 0.5em; }

.aside {
  display: block;
  float: right;
  width: 40%;
  padding-left: 30px;
  margin-left: 30px;
  margin-bottom: 15px;
  margin-top: 15px;
  font-style: italic;
  border-left: 1px solid #8c7d78; }
  @media screen and (max-width: 570px) {
    .aside {
      float: none;
      width: 90%;
      padding: 0px;
      margin-left: auto;
      margin-right: auto;
      border: none; } }

/**
 * Set `margin-bottom` to maintain vertical rhythm
 */
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
ul, ol, dl, figure,
.highlight {
  margin-bottom: 15px; }

/**
 * Images
 */
img {
  max-width: 100%;
  vertical-align: middle; }

/**
 * Figures
 */
figure > img {
  display: block; }

figcaption {
  font-size: 15px; }

.post-content > p > img {
  display: block;
  margin: auto; }

/**
 * Lists
 */
ul, ol {
  margin-left: 45px; }

.two-column-left > ul, .two-column-right > ul,
.two-column-left > ul > li > ul, .two-column-right > ul > li > ul {
  margin-left: 22.5px; }

li > ul,
li > ol {
  margin-bottom: 0; }

/**
 * Headings
 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  font-family: "Sukhumvit Set", "Avenir", "Avenir Next", sans-serif;
  line-height: 1.2; }

h1, h2 {
  padding-top: 30px; }

h2, h3, h4, h5, h6 {
  margin-top: -15px; }

h3, h4, h5, h6 {
  padding-top: 20.01px;
  margin-bottom: 7.5px; }

h1 {
  font-size: calc(15px * 2.0); }
  @media screen and (max-width: 570px) {
    h1 {
      font-size: calc(15px * 1.85); } }

h2 {
  font-size: calc(15px * 1.65); }
  @media screen and (max-width: 570px) {
    h2 {
      font-size: calc(15px * 1.5); } }

h3 {
  font-size: calc(15px * 1.25); }
  @media screen and (max-width: 570px) {
    h3 {
      font-size: calc(15px * 1.2); } }

h4 {
  font-size: calc(15px * 1);
  font-weight: 600; }

h5 {
  font-size: calc(15px * 0.9); }

h6 {
  font-size: calc(15px * 0.8); }

/**
 * Links
 */
a {
  color: #5e6eba;
  text-decoration: none; }
  a:visited {
    color: #4555a0; }
  a:hover {
    color: #333333;
    text-decoration: underline; }

/**
 * Blockquotes
 */
blockquote {
  font: 300 16px/1.7 "Avenir", "Avenir Next", sans-serif;
  color: #780000;
  background-color: #ffeeee;
  border-left: 4px solid #920000;
  padding: 15px;
  line-height: calc(17px * 1.25); }
  blockquote > :last-child {
    margin-bottom: 0; }

/**
 * Code formatting
 */
pre,
code {
  font-family: Menlo, monospace;
  font-size: 14px;
  line-height: 17px;
  border: 1px solid #c9aea3;
  border-radius: 3px;
  background-color: #fff8ee; }

code {
  padding: 1px 3px;
  margin: 0px 2px; }

h2 > code {
  font-size: 18px; }

h3 > code {
  font-size: 15px; }

pre {
  padding: calc(17px * 0.5) calc(17px * 0.75);
  overflow-x: auto; }
  pre > code {
    font-size: 13px;
    border: 0;
    padding-right: 0;
    padding-left: 0;
    margin: 0px; }

/**
 * Wrapper
 */
.wrapper {
  max-width: -webkit-calc(780px - (30px * 2));
  max-width: calc(780px - (30px * 2));
  margin-right: auto;
  margin-left: auto;
  padding-right: 30px;
  padding-left: 30px; }
  @media screen and (max-width: 960px) {
    .wrapper {
      max-width: -webkit-calc(780px - (30px * 2));
      max-width: calc(780px - (30px * 2));
      padding-right: 15px;
      padding-left: 15px; } }

@media screen and (max-width: 960px) {
  body {
    overflow-x: hidden;
    }
}

/**
 * Clearfix
 */
.wrapper:after, .footer-col-wrapper:after, .group:after {
  content: "";
  display: table;
  clear: both; }

/**
 * Icons
 */
.icon > svg {
  display: inline-block;
  width: 17px;
  height: 17px;
  vertical-align: middle; }
  .icon > svg path {
    fill: #7f818d; }

/**
 * Site header
 */
.site-header {
  position: relative;
  overflow: hidden;
  background: url("/assets/site/texture.svg"), #855e4e;
  border-bottom: 1px solid #8c7d78; }
  .site-header, .site-header:visited {
    color: #3e4154; }
  @media screen and (max-width: 570px) {
    .site-header {
      padding: 4px 8px;
      text-align: left;
      border-top: 1px solid #8c7d78; } }

.banner-baseline {
  height: 8px;
  background: #3e4154;
  width: 100%; }

.top {
  font: 500 15px/1.7 "Avenir", "Avenir Next", sans-serif;
  color: #c8c8c8;
  float: left;
  left: 18px;
  position: relative;
  display: block;
  line-height: 1.5;
  top: 1px; }
  .top, .top:visited, .top:hover {
    color: #c8c8c8; }
  @media screen and (max-width: 570px) {
    .top {
      display: none; } }

.hidetop {
  background: #3e4154;
  position: relative;
  display: block;
  width: 150px;
  height: 24px;
  top: -24px;
  left: 18px;
  z-index: 1040;
  margin-bottom: -24px; }
  @media screen and (max-width: 570px) {
    .hidetop {
      display: hidnoneden; } }

.hidetopextension {
  background: #3e4154;
  display: block;
  width: 100%;
  height: 24px;
  overflow: visible; }
  @media screen and (max-width: 570px) {
    .hidetopextension {
      display: none; } }

.site-title {
  padding: 4px 0px;
  display: block;
  position: relative; }
  @media screen and (max-width: 570px) {
    .site-title {
      padding: 0;
      left: -25%; } }

.site-banner {
  width: 100%; }
  @media screen and (max-width: 570px) {
    .site-banner {
      width: 150%;
      max-width: 150%; } }

.nav-header {
  background: #3e4154;
  position: fixed;
  overflow-x: visible;
  overflow-y: visible;
  left: 0px;
  right: 0px;
  top: 0px;
  z-index: 1030;
  height: 24px; }
  @media screen and (max-width: 570px) {
    .nav-header {
      height: 8px;
      position: relative; } }

.nav-header-baseline {
  width: 100%;
  height: 0px;
  border-bottom: 1px solid #8c7d78;
  position: fixed;
  top: 24px;
  z-index: 1050; }
  @media screen and (max-width: 570px) {
    .nav-header-baseline {
      display: none; } }

.heartandcup {
  position: relative;
  float: left;
  top: 4px; }
  @media screen and (max-width: 570px) {
    .heartandcup {
      display: none; } }

@media screen and (max-width: 570px) {
  .site-nav:hover .trigger {
    display: block;
    padding-bottom: 5px; } }

.site-nav, .site-nav-collapsed {
  position: relative;
  line-height: 24px;
  font-size: calc(17px * 0.9);
  display: block;
  text-transform: lowercase;
  float: right;
  top: 0px; }
  .site-nav .menu-icon, .site-nav-collapsed .menu-icon {
    display: none; }
  .site-nav .page-link, .site-nav-collapsed .page-link {
    font: 500 15px/1.7 "Avenir", "Avenir Next", sans-serif;
    color: #c8c8c8; }
    .site-nav .page-link:not(:last-child), .site-nav-collapsed .page-link:not(:last-child) {
      margin-right: 20px; }
    @media screen and (max-width: 570px) {
      .site-nav .page-link, .site-nav-collapsed .page-link {
        color: #3e4154; } }
  @media screen and (max-width: 570px) {
    .site-nav, .site-nav-collapsed {
      position: absolute;
      top: 18px;
      right: 8px;
      background-color: white;
      border: 1px solid #7f818d;
      border-radius: 5px;
      text-align: right; }
      .site-nav .menu-icon, .site-nav-collapsed .menu-icon {
        display: block;
        float: right;
        width: 36px;
        height: 26px;
        line-height: 0;
        padding-top: 10px;
        text-align: center; }
        .site-nav .menu-icon > svg, .site-nav-collapsed .menu-icon > svg {
          width: 18px;
          height: 15px; }
          .site-nav .menu-icon > svg path, .site-nav-collapsed .menu-icon > svg path {
            fill: #3e4154; }
        .site-nav .menu-icon:hover, .site-nav-collapsed .menu-icon:hover {
          display: block; }
      .site-nav .trigger, .site-nav-collapsed .trigger {
        clear: both;
        display: none; }
      .site-nav .page-link, .site-nav-collapsed .page-link {
        display: block;
        padding: 5px 10px;
        margin-left: 20px; }
        .site-nav .page-link:not(:last-child), .site-nav-collapsed .page-link:not(:last-child) {
          margin-right: 0; } }

/**
 * Site footer
 */
.site-footer {
  border-top: 1px solid #c8c8c8;
  padding: 30px 0; }

.footer-heading {
  font-size: calc(17px * 1.1);
  margin-bottom: 15px; }

.em1 {
  direction: rtl;
  unicode-bidi: bidi-override; }

.contact-list,
.social-media-list {
  list-style: none;
  margin-left: 0; }

.footer-col-wrapper {
  font: 300 15px/1.7 "Avenir", "Avenir Next", sans-serif;
  color: #7f818d;
  margin-left: -15px; }

.footer-col {
  float: left;
  margin-bottom: 15px;
  padding-left: 15px; }

.footer-col-1 {
  width: -webkit-calc(40% - (30px / 2));
  width: calc(40% - (30px / 2)); }

.footer-col-2 {
  width: -webkit-calc(60% - (30px / 2));
  width: calc(60% - (30px / 2)); }

@media screen and (max-width: 570px) {
  .footer-col {
    float: none;
    width: -webkit-calc(100% - (30px / 2));
    width: calc(100% - (30px / 2)); } }
/**
 * Page index
 */
.pagination {
  margin: 30px 0;
  display: table;
  width: 100%;
  font: 500 15px/1.7 "Avenir", "Avenir Next", sans-serif; }

.paginator-prev, .paginator-next, .paginator-curr, .paginator-index {
  display: table-cell;
  width: 4%;
  text-align: center; }

.paginator-prev, .paginator-next {
  width: 15%; }

.paginator-curr {
  border: 1px solid #c8c8c8;
  border-radius: 16px;
  background-color: #eef; }

.paginator-prev {
  text-align: right;
  padding-right: 8px; }

.paginator-next {
  text-align: left;
  padding-left: 8px; }

.page-prev {
  float: left;
  width: 50%; }
  @media screen and (max-width: 570px) {
    .page-prev {
      float: none;
      width: 100%; } }

.page-next {
  float: right;
  width: 50%;
  text-align: right; }
  @media screen and (max-width: 570px) {
    .page-next {
      float: none;
      width: 100%;
      text-align: left;
      margin-top: 15px; } }

/**
 * Page content
 */
.page-content {
  margin: 0 0; }

.post-list, .tag-list {
  margin-top: 15px;
  margin-left: 0;
  list-style: none; }

.post-list > li > h2 {
  padding-top: calc(30px / 2);
  margin-bottom: 0;
  margin-top: 0; }

.post-list > li {
  margin-bottom: 15px; }

.tag-list > li > h2 {
  margin-top: calc(30px / 2);
  margin-bottom: 0;
  font-size: calc(17px * 1.4); }

.read-more {
  font: 500 15px/2 "Avenir", "Avenir Next", sans-serif; }

.post-link {
  letter-spacing: -1px;
  font-weight: 400;
  font-size: calc(17px * 1.3); }

.post-meta, .post-tags {
  font: 300 15px/1.7 "Avenir", "Avenir Next", sans-serif;
  color: #7f818d; }

.caption {
  text-align: center;
  font-style: italic;
  margin-bottom: 15px; }

.group {
  margin-bottom: 30px;
  font: 400 15px/1.7 "Avenir", "Avenir Next", sans-serif; }

.two-column-left {
  float: left;
  width: 50%; }
  @media screen and (max-width: 570px) {
    .two-column-left {
      float: none;
      width: 100%; } }

.two-column-right {
  float: right;
  width: 50%; }
  @media screen and (max-width: 570px) {
    .two-column-right {
      float: none;
      width: 100%; } }

.group .two-column-left {
   width: 70%;
}

.group .two-column-right {
   width: 30%;
}

.divider {
  border-top: 1px solid #c8c8c8;
  padding-top: 30px; }

.centeredmath {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px auto;
  font-size: 1.1em; }

/**
 * Posts
 */
.notice {
  margin-top: 30px;
  margin-bottom: 0; }

.post-header {
  margin-bottom: 15px; }

.post-title {
  paading-top: 30px;
  margin-bottom: 0;
  letter-spacing: -1px; }

#TableOfContents {
  display: block;
  width: 60%;
  background-color: #fff8ee;
  border: 1px solid #c9aea3;
  padding: 15px;
  border-radius: 3px;
  margin-bottom: 15px;
  font: 300 15px/1.7 "Avenir", "Avenir Next", sans-serif;
}

.toc-heading {
  font-weight: 500;
}

#TableOfContents > ul {
list-style: none;
margin-left: 0px;
margin-bottom: 0px;
}

#TableOfContents > ul > li > ul {
list-style: decimal;
}

#TableOfContents > ul > li > ul > li > ul {
display: none;
}

li.option {
  color: #5e6eba; }

input[type="checkbox"]:not(:checked) ~ ul {
  opacity: 0;
  height: 0;
  display: none; }

input[type="checkbox"]:checked ~ ul {
  opacity: 1;
  height: auto;
  display: block; }

input[type="checkbox"] {
  display: none; }

.swift-era, .objc-era {
  text-align: center;
  color: #ff5f5f;
  padding: calc(30px / 2) 0px; }

.swift-era {
  border-bottom: 1px solid #ff9292; }

/**
 * Syntax highlighting styles
 */
.highlight {
  background: #fff; }
  .highlighter-rouge .highlight {
    background: #eef; }
  .highlight .c {
    color: #008400; }
  .highlight .err {
    color: #a61717;
    background-color: #e3d2d2; }
  .highlight .k {
    color: #ba2da2; }
  .highlight .o {
    font-weight: bold; }
  .highlight .cm {
    color: #007400; }
  .highlight .cp {
    color: #78492a; }
  .highlight .c1 {
    color: #007400; }
  .highlight .cs {
    color: #007400; }
  .highlight .gd {
    color: #000;
    background-color: #ffdddd; }
  .highlight .gd .x {
    color: #000;
    background-color: #ffaaaa; }
  .highlight .ge {
    font-style: italic; }
  .highlight .gr {
    color: #aa0000; }
  .highlight .gh {
    color: #999999; }
  .highlight .gi {
    color: #000;
    background-color: #ddffdd; }
  .highlight .gi .x {
    color: #000;
    background-color: #aaffaa; }
  .highlight .go {
    color: #888888; }
  .highlight .gp {
    color: #555555; }
  .highlight .gs {
    font-weight: bold; }
  .highlight .gu {
    color: #aaaaaa; }
  .highlight .gt {
    color: #aa0000; }
  .highlight .kc {
    color: #ba2da2; }
  .highlight .kd {
    color: #ba2da2; }
  .highlight .kp {
    font-weight: bold; }
  .highlight .kr {
    color: #ba2da2; }
  .highlight .kt {
    color: #31595d; }
  .highlight .m {
    color: #009999; }
  .highlight .s {
    color: #d12f1b; }
  .highlight .na {
    color: teal; }
  .highlight .nb {
    color: #0086b3; }
  .highlight .nc {
    color: #445588; }
  .highlight .no {
    color: teal; }
  .highlight .ni {
    color: purple; }
  .highlight .ne {
    color: #990000; }
  .highlight .nf {
    color: #3e1e81; }
  .highlight .nn {
    color: #555555; }
  .highlight .nt {
    color: black; }
  .highlight .nv {
    color: black; }
  .highlight .ow {
    font-weight: bold; }
  .highlight .w {
    color: #bbbbbb; }
  .highlight .mf {
    color: #272ad8; }
  .highlight .mh {
    color: #272ad8; }
  .highlight .mi {
    color: #272ad8; }
  .highlight .mo {
    color: #272ad8; }
  .highlight .sb {
    color: #d12f1b; }
  .highlight .sc {
    color: #d12f1b; }
  .highlight .sd {
    color: #d12f1b; }
  .highlight .s2 {
    color: #272ad8; }
  .highlight .se {
    color: #272ad8; }
  .highlight .sh {
    color: #272ad8; }
  .highlight .si {
    color: #272ad8; }
  .highlight .sx {
    color: #d12f1b; }
  .highlight .sr {
    color: #d12f1b; }
  .highlight .s1 {
    color: #d12f1b; }
  .highlight .ss {
    color: #d12f1b; }
  .highlight .bp {
    color: #445588; }
  .highlight .vc {
    color: teal; }
  .highlight .vg {
    color: teal; }
  .highlight .vi {
    color: teal; }
  .highlight .il {
    color: #272ad8; }
