html {
  background: hsl(223 100% 99%);
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 18px;
  color: hsl(223 100% 8%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

a:hover {
  text-decoration: none;
}

p {
  margin: 2em 0 2em;
}

ul {
  margin-bottom: 2em;
}

.masthead {
  height: 135px;
  background: url(../images/tile-bg.jpg) center 0px no-repeat;
  background-attachment: fixed;
  margin-bottom: 2em;
  -webkit-box-shadow: inset 0 0 3em black;
  -moz-box-shadow: inset 0 0 3em black;
  -o-box-shadow: inset 0 0 3em black;
  box-shadow: inset 0 0 3em black;
}

.masthead h1 {
  width: 100%;
  text-align: center;
  font-size: 36px;
}

.masthead h1 a {
  color: #eee;
  text-shadow: 2px 2px #222;
}

.masthead h1 a:hover {
  text-decoration: none;
}

.masthead .navbar {
  background: rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
}

.masthead .nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.masthead .nav a:hover {
  color: rgba(255, 255, 255, 0.5);
}

.navbar-toggle:hover,
.navbar-toggle:focus {
  background-color: #000;
}

.navbar .nav,
.navbar .nav > li {
  float: none;
  display: inline-block;
  *display: inline; /* ie7 fix */
  *zoom: 1; /* hasLayout ie7 trigger */
  vertical-align: top;
}

.navbar .inner {
  text-align: center;
}

.recent > h2 {
  margin-bottom: 40px;
}

.blog-archive {
  margin-bottom: 40px;
}

.blog-archive .year {
  color: #ccc;
}

.posts .thumb {
  display: table;
  height: 180px;
  overflow: hidden;
  width: 100%;
  margin-bottom: 2em;
  border: 1px solid #eee;
  padding: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -o-border-radius: 4px;
  border-radius: 4px;
}

.posts .thumb a {
  display: table-cell;
  vertical-align: middle;
  /* background-url: ... */
  background-repeat: no-repeat;
  background-position: center;
  color: #eee;
}

.posts .thumb p {
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px;
  font-size: 15px;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.8);
}

.posts .thumb a:hover {
  color: #fff;
}

.posts .thumb a:hover p {
  background: rgba(0, 0, 0, 0.6);
}

.posts img {
  max-height: 180px;
}

.blog-archive time,
.articles time,
.talks time,
.post .meta {
  font-weight: normal;
  font-size: 12px;
  text-transform: uppercase;
  color: #777;
}

.post .meta {
  margin: 1em 0 2em;
}

.post .byline {
  visibility: hidden;
}

.post .post-img {
  display: block;
  float: right;
  margin: 0 0 24px 24px;
  width: auto;
}

.post img {
  max-width: 100%;
}

.post .body {
  margin-bottom: 2em;
}

.post header h1 {
  letter-spacing: -1px;
}

.post header h1 a {
  color: #444;
}

.post header h1 a:hover {
  text-decoration: none;
}

.recent-posts li {
  font-size: 14px;
}

.post .fn {
  font-size: 12px;
}

.project {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #eee;
}

article {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #eee;
}

article p {
  line-height: 1.5;
}

footer {
  border-top: 1px solid #ddd;
  margin-top: 40px;
  padding: 40px 0;
  font-size: 14px;
}

footer .copyright {
  font-size: 12px;
}

pre {
  font-family:
    Iosevka, Inconsolata, Menlo, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-size: 16px;
}

.footnotes {
  font-size: 13px;
}

.post li {
  margin-bottom: 1em;
}

figcaption {
  font-size: 12px;
  color: #777;
  text-align: center;
  padding: 3px;
}

figure > img,
p > img {
  display: block;
  margin: auto;
}

@font-face {
  font-family: "Geneva";
  src: url("/fonts/geneva-9-2.otf.woff2") format("woff2");
  font-display: swap;
  font-weight: normal normal;
}

@font-face {
  font-family: "Chicago";
  src: url("/fonts/chicago-12-1.otf.woff2") format("woff2");
  font-display: swap;
  font-weight: normal normal;
}

.classic-mac {
  .masthead {
    margin-bottom: 0;
  }
  main {
    background: url("/images/classic-mac-patterns/pattern_22_32x32-gray-bg.png");
    padding-top: 2em;
    padding-bottom: 2em;
  }
  footer {
    margin-top: 0;
  }

  article.post {
    background: white;
    padding: 0 10px 10px 10px;
    border: none;
    .body {
      margin-bottom: 0;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      font-family: "Chicago";
    }
    h2,
    h3,
    h4,
    h5,
    h6 {
      text-align: center;
      border: 1px solid black;
      image-rendering: pixelated;
      image-rendering: crisp-edges;
      background-image: url("/images/classic-mac-patterns/window-bar-bg.png");
      background-repeat: repeat-x;
      background-size: contain;
      padding: 5px;
      margin-top: 1em;
      span {
        background: white;
        padding: 5px 5px 5px 8px;
      }
    }
    h1 {
      font-size: 32pt;
    }
    h2 {
      font-size: 24pt;
    }
    h3 {
      font-size: 20pt;
    }
    h4,
    h5,
    h6 {
      font-size: 16pt;
    }
    p,
    ul,
    code,
    pre {
      font-family: "Geneva";
      margin-top: 0;
      margin-bottom: 1rem;
      line-height: 20pt;
      font-size: 20pt;
    }
    li {
      margin-bottom: 0;
    }
  }
}

@media (max-width: 768px) {
  .classic-mac {
    article.post {
      pre,
      code {
        font-size: 16pt;
      }
    }
  }
}
