/* Reset */
/* ----------------------------------------------------------*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body { height: 100%; }

body {
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 21px;
  line-height: 1.58;
  font-weight: 400;
  color: #292929;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: #292929;
}

a         { color: inherit; text-decoration: none; }
a:hover   { color: #000; }
a:visited { color: inherit; }


/* Utility */
/* ----------------------------------------------------------*/

.wrap:before,
.wrap:after { content:""; display:table; }
.wrap:after { clear: both; }
.wrap {
  max-width: 680px;
  padding: 0 20px;
  margin: 0 auto;
  zoom: 1;
}


/* Site header */
/* ----------------------------------------------------------*/

.site-header {
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
  background-color: #fff;
}

.site-title,
.site-title:hover,
.site-title:visited {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #292929;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.3px;
  float: left;
  line-height: 40px;
  text-decoration: none;
}

.site-nav {
  float: right;
  line-height: 40px;
}

.site-nav .menu-icon { display: none; }

.site-nav .page-link {
  margin-left: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #757575;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0;
}

.site-nav .page-link:hover { color: #292929; }


/* Site footer */
/* ----------------------------------------------------------*/

.site-footer {
  border-top: 1px solid rgba(0,0,0,.05);
  padding: 40px 0;
}

.footer-heading {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.site-footer .column { float: left; margin-bottom: 15px; }

.footer-col-1 {
  width: calc(35% - 10px);
  margin-right: 10px;
}
.footer-col-2 {
  width: calc(23.125% - 10px);
  margin-right: 10px;
}
.footer-col-3 {
  width: calc(41.875%);
  text-align: right;
}

.site-footer ul { list-style: none; }

.site-footer li,
.site-footer p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #757575;
  letter-spacing: 0;
}

.github-icon-svg,
.twitter-icon-svg {
  display: inline-block;
  width: 16px;
  height: 16px;
  position: relative;
  top: 3px;
}


/* Page Content */
/* ----------------------------------------------------------*/

.page-content {
  padding: 0;
  background-color: #fff;
  min-height: calc(100vh - 240px);
}


/* Home styles */
/* ----------------------------------------------------------*/

.home {
  padding-top: 40px;
}

.home h1 {
  font-size: 32px;
  margin-bottom: 30px;
  margin-top: 0;
}

.posts { list-style-type: none; }

.posts li {
  margin-bottom: 35px;
}

.posts .post-link {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #292929;
  letter-spacing: -0.3px;
  line-height: 1.25;
  text-decoration: none;
}

.posts .post-link:hover {
  text-decoration: underline;
}

.posts .post-date {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #757575;
  margin-top: 4px;
}


/* Post styles */
/* ----------------------------------------------------------*/

.post-header {
  margin: 50px 0 10px;
}

.post-header h1 {
  font-size: 40px;
  letter-spacing: -0.5px;
  line-height: 1.15;
  font-weight: 700;
}

.post-header .meta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #757575;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-header .meta .read-time {
  color: #757575;
}

.post-content {
  margin: 30px 0 50px;
}

.post-content > * {
  margin-bottom: 28px;
}

.post-content p {
  letter-spacing: -0.003em;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  line-height: 1.2;
  margin-top: 50px;
  margin-bottom: 8px;
}

.post-content h2 {
  font-size: 30px;
  letter-spacing: -0.5px;
}

.post-content h3 {
  font-size: 24px;
  letter-spacing: -0.25px;
}

.post-content h4 {
  font-size: 20px;
  letter-spacing: 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  cursor: zoom-in;
}

/* Image zoom overlay */
.img-zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.img-zoom-overlay.active {
  opacity: 1;
}

.img-zoom-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  transform-origin: center center;
  transition: transform 0.1s ease;
}

.post-content img + em {
  display: block;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #757575;
  font-style: normal;
  margin-top: -28px;
  margin-bottom: 40px;
}

.post-content blockquote {
  border-left: 3px solid #292929;
  padding-left: 20px;
  margin-left: -23px;
  font-style: italic;
  color: #292929;
}

/* Highlight blockquote */
.post-content blockquote.highlight {
  line-height: 35px;
  border-left: 3px solid #292929;
  margin: 36px 0;
  margin-left: 0;
  padding: 20px 24px;
  font-style: italic;
  font-size: 21px;
  line-height: 1.58;
  color: #292929;
  background-color: #f9f9f9;
  border-radius: 0 4px 4px 0;
}

.post-content ul,
.post-content ol {
  padding-left: 30px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content a {
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,.35);
  text-underline-offset: 2px;
}

.post-content a:hover {
  text-decoration-color: rgba(0,0,0,.85);
}

.post-content strong { font-weight: 700; }

/* Tables */

.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  margin: 35px 0;
}

.post-content table th,
.post-content table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e6e6e6;
}

.post-content table th {
  font-weight: 600;
  color: #757575;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-content table td strong {
  font-weight: 600;
}

/* Horizontal rules — Medium-style three dots */

.post-content hr {
  border: none;
  text-align: center;
  margin: 45px 0;
}

.post-content hr::before {
  content: '\00b7\00a0\00a0\00b7\00a0\00a0\00b7';
  font-size: 24px;
  letter-spacing: 0;
  color: #292929;
}

/* Code */

.post pre,
.post code {
  font-family: Menlo, Monaco, "Courier New", monospace;
  font-size: 16px;
  background-color: #f7f7f7;
  border: none;
  border-radius: 3px;
  padding: 12px 16px;
  overflow: auto;
}

.post code {
  padding: 2px 6px;
  font-size: 17px;
}

.post ul,
.post ol { margin-left: 1.35em; }

.post pre code {
  border: 0;
  padding: 0;
  background-color: transparent;
}


/* Syntax highlighting */
/* ----------------------------------------------------------*/

.highlight  { background: #fff; }
.highlight .c { color: #999988; font-style: italic }
.highlight .err { color: #a61717; background-color: #e3d2d2 }
.highlight .k { font-weight: bold }
.highlight .o { font-weight: bold }
.highlight .cm { color: #999988; font-style: italic }
.highlight .cp { color: #999999; font-weight: bold }
.highlight .c1 { color: #999988; font-style: italic }
.highlight .cs { color: #999999; font-weight: bold; font-style: italic }
.highlight .gd { color: #000000; background-color: #ffdddd }
.highlight .gd .x { color: #000000; background-color: #ffaaaa }
.highlight .ge { font-style: italic }
.highlight .gr { color: #aa0000 }
.highlight .gh { color: #999999 }
.highlight .gi { color: #000000; background-color: #ddffdd }
.highlight .gi .x { color: #000000; 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 { font-weight: bold }
.highlight .kd { font-weight: bold }
.highlight .kp { font-weight: bold }
.highlight .kr { font-weight: bold }
.highlight .kt { color: #445588; font-weight: bold }
.highlight .m { color: #009999 }
.highlight .s { color: #d14 }
.highlight .na { color: #008080 }
.highlight .nb { color: #0086B3 }
.highlight .nc { color: #445588; font-weight: bold }
.highlight .no { color: #008080 }
.highlight .ni { color: #800080 }
.highlight .ne { color: #990000; font-weight: bold }
.highlight .nf { color: #990000; font-weight: bold }
.highlight .nn { color: #555555 }
.highlight .nt { color: #000080 }
.highlight .nv { color: #008080 }
.highlight .ow { font-weight: bold }
.highlight .w { color: #bbbbbb }
.highlight .mf { color: #009999 }
.highlight .mh { color: #009999 }
.highlight .mi { color: #009999 }
.highlight .mo { color: #009999 }
.highlight .sb { color: #d14 }
.highlight .sc { color: #d14 }
.highlight .sd { color: #d14 }
.highlight .s2 { color: #d14 }
.highlight .se { color: #d14 }
.highlight .sh { color: #d14 }
.highlight .si { color: #d14 }
.highlight .sx { color: #d14 }
.highlight .sr { color: #009926 }
.highlight .s1 { color: #d14 }
.highlight .ss { color: #990073 }
.highlight .bp { color: #999999 }
.highlight .vc { color: #008080 }
.highlight .vg { color: #008080 }
.highlight .vi { color: #008080 }
.highlight .il { color: #009999 }


/* Media queries */
/* ----------------------------------------------------------*/

@media screen and (max-width: 750px) {

  .footer-col-1 { width: 50%; }

  .footer-col-2 {
    width: calc(50% - 10px);
    margin-right: 0;
  }

  .site-footer .column.footer-col-3 {
    width: auto;
    float: none;
    clear: both;
  }
}

@media screen and (max-width: 600px) {

  body { font-size: 18px; }

  .wrap { padding: 0 16px; }

  .site-nav {
    position: fixed;
    z-index: 10;
    top: 14px; right: 8px;
    background-color: white;
    border-radius: 5px;
    border: 1px solid #e8e8e8;
  }

  .site-nav .menu-icon {
    display: block;
    font-size: 24px;
    color: #505050;
    float: right;
    width: 36px;
    text-align: center;
    line-height: 36px;
  }

  .site-nav .menu-icon svg { width: 18px; height: 16px; }

  .site-nav .trigger {
    clear: both;
    margin-bottom: 5px;
    display: none;
  }

  .site-nav:hover .trigger { display: block; }

  .site-nav .page-link {
    display: block;
    text-align: right;
    line-height: 1.25;
    padding: 5px 10px;
    margin: 0;
  }

  .post-header { margin: 30px 0 10px; }
  .post-header h1 { font-size: 32px; }
  .post-content h2 { font-size: 26px; }
  .post-content h3 { font-size: 22px; }
  .post-content h4 { font-size: 18px; }

  .post-content blockquote {
    padding-left: 15px;
    margin-left: 0;
  }

  .post-content ul,
  .post-content ol { padding-left: 20px; }

  .site-footer .column {
    float: none;
    clear: both;
    width: auto;
    margin: 0 0 15px;
  }
}
