/* Measurements and colors match the public stylesheet at
   patrickcollison.com/static/style.css: 13px Helvetica, a 500px
   column, a 200px left gutter, and link blue #0864c7.
   The menu is 150px, the same width as the reference. The short name fits on one line.
   Below 960px the menu stacks above the column; type and colors stay the same. */

html {
  background: #fff;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: Helvetica, "Liberation Sans", Arial, sans-serif;
  font-size: 13px;
  background: #fff;
}

#menu {
  float: right;
  margin-top: 30px;
  margin-right: 20px;
  text-align: right;
  width: 150px;
  font-family: "Myriad Pro", "Helvetica Neue", Helvetica, "Liberation Sans", Arial, sans-serif;
}

#menu a.title,
#menu a.title:visited {
  color: #000;
  text-decoration: none;
}

#menu ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

#menu li a {
  display: inline-block;
  color: #0864c7;
}

#left {
  height: 1px;
  float: left;
  display: block;
  min-width: 0;
  overflow: hidden;
  width: 200px;
  margin: 0;
  padding: 0;
}

#content {
  margin-top: 15px;
  float: left;
  width: 500px;
}

#content h1,
#content h2,
#content h3,
#content h4 {
  font-family: "Myriad Pro", "Helvetica Neue", Helvetica, "Liberation Sans", Arial, sans-serif;
  margin: 0;
}

#content h2 {
  margin-top: 2em;
}

#content .byline,
#content .byline a,
#content .note {
  font-size: 10px;
  color: #aaa;
}

#content a,
#content a:visited {
  color: #0864c7;
  overflow-wrap: anywhere;
}

#content p,
#content ul {
  color: #333;
  line-height: 18px;
}

#content sup.note {
  display: inline-block;
  margin-top: -5px;
}

#content p.notop {
  margin-top: 0;
}

#content .thanks {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #eee;
  margin-bottom: 4em;
  font-size: smaller;
  color: #777;
}

#content .thanks a {
  color: #777;
}

#content li {
  margin-bottom: 0.7em;
}

#content .thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2em;
}

#content .thumbs img {
  height: 100px;
  width: auto;
  display: block;
}

.post + .post {
  margin-top: 50px;
}

sup,
sub {
  vertical-align: baseline;
  position: relative;
  top: -0.4em;
}

sub {
  top: 0.4em;
}

#content img {
  max-width: 100%;
  height: auto;
}

#content img.profile {
  height: 130px;
  width: 130px;
  max-width: 130px;
}

#content pre {
  overflow-x: auto;
  padding: 8px 10px;
  border: 1px solid #eee;
  line-height: 16px;
  color: #333;
}

#content code,
#content pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
}

@media (max-width: 960px) {
  body {
    margin: 16px 18px 48px;
  }

  #menu {
    float: none;
    width: auto;
    margin: 4px 0 12px;
    text-align: right;
  }

  #left {
    display: none;
  }

  #content {
    float: none;
    width: auto;
    max-width: 500px;
    margin-top: 8px;
  }
}
