/**
 * 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: 400 17px/1.7 "Avenir Next", "Avenir", "Helvetica Neue", "Helvetica", sans-serif;
  color: #222;
  letter-spacing: -0.01em;
  background-color: white;
  font-feature-settings: "kern" 1;
  font-kerning: normal; }
  @media screen and (max-width: 570px) {
    body {
      font-size: calc(17px * 0.95); } }

.post-content > table {
  min-width: 80%;
  margin: auto;
  margin-bottom: 20px;
  border-collapse: collapse; }

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

th {
  padding: 0.5em; }

/**
 * Set `margin-bottom` to maintain vertical rhythm
 */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 24px; }

p,
ul, ol, dl, figure {
  margin-bottom: 24px; }

em {
  font: 400 17px/1.7 "Palatino", "Times New Roman", "Times", serif;
  font-weight: 400;
  font-style: oblique;
}

strong > em {
  font-weight: 500;
}

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

/**
 * 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 {
  color: #000;
  font-weight: 500;
  font-family: "Avenir Next", "Avenir", sans-serif;
  line-height: 1.2; }

h1 {
  margin-top: 48px; }
  @media screen and (max-width: 570px) {
    h1 {
      margin-top: 36px; } }

/**
 * This is deliberately *padding*, not *margin* to ensure the heading is visible
 * under the page nav-bar when anchor-linking to the heading
 */
h2 {
  padding-top: 24px; }
  @media screen and (max-width: 570px) {
    h2 {
      margin-top: 24px; } }

h3, h4, h5, h6 {
  font-weight: 600;
  margin-top: 20.01px;
  margin-bottom: 12px; }

h1 {
  letter-spacing: -0.05em;
  font-size: calc(17px * 2.2); }
  @media screen and (max-width: 570px) {
    h1 {
      font-size: calc(17px * 1.85); } }

h2 {
  letter-spacing: -0.05em;
  font-size: calc(17px * 1.65); }
  @media screen and (max-width: 780px) {
    h2 {
      font-size: calc(17px * 1.25); } }

h3 {
  letter-spacing: -0.015em;
  font-size: calc(17px * 1.2); }

h4 {
  font-size: calc(17px * 1.0); }

h5 {
  font-size: calc(17px * 0.85); }

h6 {
  font-size: calc(17px * 0.7); }

/**
 * Links
 */
a {
  color: #56b;
  text-decoration: none; }
  a:visited {
    color: #56b; }
  a:hover {
    color: #333333;
    text-decoration: underline; }

/**
 * Code and blockquote formatting
 */
h2 > code {
  font-size: 18px; }

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

blockquote {
  letter-spacing: -0.01em;
  font: 400 16px/1.7 "Avenir Next", "Avenir", sans-serif;
  color: #780000;
  border: 1px solid #f0d0c0;
  background-color: #fff3f2; }
  blockquote > :last-child {
    margin-bottom: 0; }

pre,
code {
  color: #154590;
  font: 300 14px "Menlo", monospace;}

pre {
  border: 1px solid #f0dcce;
  background-color: #fffaf5;
  overflow-x: auto; }
  pre > code {
    color: #000;
    background-color: #00000000;
    font-size: 14px;
    line-height: 22px;
    border: 0px;
    padding-right: 0;
    padding-left: 0;
    margin: 0px; }

pre, blockquote {
  margin-top: 36px;
  margin-bottom: 36px;
  padding: 30px; }
  pre > code { padding-right: 4px; }

figcaption {
  font-size: 15px;
  font-weight: 600;
  font-style: italic;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 24px;}

.centeraside {
  font: 400 17px/1.7 "Palatino", "Times New Roman", "Times", serif;
  font-weight: 400;
  font-style: oblique;
  text-align: center;
  margin-top: -8px;
  margin-bottom: 24px;}

.aside {
  display: block;
  float: right;
  width: 330px;
  background: #00000008;
  color: #000000B0;
  padding: 15px 30px 15px 30px;
  margin: 4px -105px 15px 30px;
  font: 400 15px/1.5 "Avenir Next", "Avenir", sans-serif;
  border: 1px solid #8c7d7844; }

@media screen and (max-width: 752px) {
   pre, blockquote {
     padding: 15px;
   }
  pre > code {
    font-size: 12px;
    line-height: 18px;
   }
}

/**
 * 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: 10px;
      padding-left: 10px; } }
@media screen and (max-width: 960px) {
  body {
    overflow-x: hidden;
    }
}

.post-content > p > img, figure > img {
  max-width: calc(930px - (1px * 2));
  margin-left: 50%;
  margin-right: -50%;
  transform: translateX(-50%);
}
blockquote, pre {
  width: calc(930px - (30px * 2) - (1px * 2));
  margin-left: calc(930px * -0.5 + 720px * 0.5);
}

@media screen and (max-width: 950px) {
   .post-content > p > img, figure > img {
     max-width: calc(100vw - (15px * 2) - 2px);
    }
   blockquote, pre {
     width: calc(100vw - (30px * 2) - (15px * 2) - 2px);
     margin-left: calc(100vw * -0.5 + 720px * 0.5 + 15px);
    }
    .aside {
      margin-right: calc((720px - 100vw + 40px) * 0.5);
   }
}
@media screen and (max-width: 752px) {
    .post-content > p > img, figure > img {
     max-width: calc(100vw - (15px * 2) - 15px);
    }
    blockquote, pre {
     width: calc(100vw - (15px * 2) - (15px * 2) - 15px);
     margin-left: auto;
     margin-right: auto;
    }
    .aside {
      float: none;
      width: 90%;
      padding: 15px;
      margin-left: auto;
      margin-right: auto;
      border: none; }
}

/**
 * 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 {
      text-align: left;
      border-top: 1px solid #8c7d78; } }

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

.top {
  font: 400 15px/1.5 "Avenir Next", "Avenir", sans-serif;
  margin: auto;
  margin-bottom: 15px;
  color: #ddd;
  float: left;
  left: 18px;
  position: relative;
  display: block;
  line-height: 1.5;
  top: 1px; }
  .top, .top:visited, .top:hover {
    color: #ddd; }
  @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 {
   display: flex;
   justify-content: space-between;
   padding-top: 24px;
   padding-bottom: 24px;
}

.banner-title {
  display: block;
  max-height: 86px;
  width: auto;
  height: auto;
}

.banner-logo {
  display: block;
  max-height:86px;
  width: auto;
  height: auto;
}

  @media screen and (max-width: 780px) {
    .banner-title {
      max-height: 60px;}
    .banner-logo {
      max-height: 60px;}
      }
  @media screen and (max-width: 570px) {
    .banner-title {
      max-height: 48px; }
    .banner-logo {
      max-height: 48px; }
      }

.compact-site-title > .banner-title {
  max-height:42px;
   padding-top: 8px;
   padding-bottom: 8px;
}

.compact-site-title > .banner-logo {
  max-height:54px;
   padding-top: 3px;
   padding-bottom: 3px;
}

.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: 400 15px/1.5 "Avenir Next", "Avenir", sans-serif;
    color: #ddd; }
    .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: #ffffff; } }
  @media screen and (max-width: 570px) {
    .site-nav, .site-nav-collapsed {
      position: absolute;
      top: 70px;
      right: 13px;
      background-color: #3e4154;
      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: 21px;
        line-height: 0;
        padding-top: 7px;
        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: #e8e8e8; }
        .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 {
  margin-top: 32px;
  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 {
  letter-spacing: -0.015em;
  font: 400 15px/1.5 "Avenir Next", "Avenir", 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.5 "Avenir Next", "Avenir", 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: 0px;
  margin-left: 0;
  list-style: none; }

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

.post-list > li > div > h2 {
   padding-top: 0px;
   margin-bottom: 0px;
   margin-top: 48px;
}

.front-page-list > li {
   display: flex;
   border-bottom: 4px solid #3e4154;
   margin-left: -10px;
   margin-bottom: 10px;
}

.front-page-list > li > .post-row-title > h2,
.front-page-list > li > .post-row-title > .post-meta {
  display: block;
  margin-top: 0px;
  margin-right: 0px;
  max-width: calc(0.35 * (780px - (48px * 2)));
}

.front-page-list > li > .post-row-description > .content {
   margin-right: auto;
   margin-left: 0px;
   max-width: calc(0.65 * (780px - (30px * 2)));
}

.front-page-list > li > .post-row-description {
   flex-basis: calc(50% + 0.15 * (780px - (30px * 2)));
   padding: 20px;
}

.front-page-list > li > .post-row-title {
   flex-basis: calc(50% - 0.15 * (780px - (30px * 2)));
   padding: 10px;
   margin: 10px 0px 0px 0px;
   background: #3e4154;
   border: 0.5px solid #ffffff08;
}

.front-page-list > li > .post-row-title > h2 > a {
   color: #fff;
}

@media screen and (max-width: 570px) {
   .front-page-list > li {
      display: block;
	  margin-left: 0px;
	  border-bottom: 0px;
	}
   .front-page-list > li > .post-row-title {
      padding-top: 10px;
      padding-left: 15px;
      padding-right: 15px;
      padding-bottom: 5px;
   }
   .front-page-list > li > .post-row-description {
      padding-top: 8px;
      padding-left: 15px;
      padding-right: 15px;
   }
   .front-page-list > li > .post-row-title > h2 {
      max-width: 100%;
   }
}

.read-more {
  margin-top: 12px;
  font: 500 15px/1.5 "Avenir Next", "Avenir", sans-serif; }

.post-link {
  letter-spacing: -1px;
  font-weight: 500;}

.post-meta, .post-tags {
  letter-spacing: -0.015em;
  font: 400 15px/1.5 "Avenir Next", "Avenir", sans-serif;
  color: #999999;
  margin-top: 5px;
  margin-bottom: 5px;
  }

.post-tags {
  margin-top: -5px;
}

.post-tags > a {
  color: #b49682
}

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

.group {
   display: block;
  margin-bottom: 30px;
  font: 400 15px/1.5 "Avenir Next", "Avenir", 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
 */
.post-header {
  padding-top:24px;
  padding-bottom:24px;
  background: #3e4154;
  margin-bottom: 36px; }
  @media screen and (max-width: 570px) {
    .post-header {
      padding-top: 20px;
      padding-bottom: 20px;
      } }

.post-title {
   width: 100%;
   color: #fff;
  margin-top: 0px;
  margin-bottom: 0; }
  @media screen and (max-width: 570px) {
    .post-title {
      margin-top: 0px; } }

.toc-heading {
	margin-left:20px;
	font: 500 15px/1.5 "Avenir Next", "Avenir", sans-serif;
}

#TableOfContents {
  display: block;
  max-width: 450px;
  border: 1px solid #f0dcce;
  background-color: #fffaf5;
  padding: 15px 0px 15px 0px;
  border-radius: 3px;
  margin-top: 38px;
  margin-bottom: 24px;
  font: 400 15px/1.5 "Avenir Next", "Avenir", sans-serif;
}

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

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

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

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 .p {
    color: #000000; }
  .highlight .n {
    color: #154590; }
  .highlight .c {
    color: #008400; }
  .highlight .err {
    color: #154590; }
  .highlight .k {
    color: #ba2da2; }
  .highlight .o {}
  .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: #dd2da2; }
  .highlight .kd {
    color: #dd2da2; }
  .highlight .kp {
    font-weight: bold; }
  .highlight .kr {
    color: #881166; }
  .highlight .kt {
    color: #31595d; }
  .highlight .m {
    color: #009999; }
  .highlight .s {
    color: #d12f1b; }
  .highlight .na {
    color: teal; }
  .highlight .nb {
    color: #0086b3; }
  .highlight .nc {
    color: #228888; }
  .highlight .no {
    color: teal; }
  .highlight .ni {
    color: purple; }
  .highlight .ne {
    color: #990000; }
  .highlight .nf {
    color: #1122bb; }
  .highlight .nn {
    color: #555555; }
  .highlight .nt {
    color: black; }
  .highlight .nv {
    color: #08b4cd; }
  .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: #4488cc; }
  .highlight .vc {
    color: teal; }
  .highlight .vg {
    color: teal; }
  .highlight .vi {
    color: teal; }
  .highlight .il {
    color: #272ad8; }
