/*****************************************************************************/
/*
/* Common
/*
/*****************************************************************************/

/* Global Reset */
body, h1, h2, h3, h4, h5, h6, p, ol, ul {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

/* suggested by https://css-tricks.com/box-sizing/ */
/*
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
*/

/* to stretch very short pages down the page */
html {
  height: 100%;
}
body {
  min-height: 100%;
}


:root {
  --main-bg-color: lightgray;
}

body {
  background-color: var(--main-bg-color);
  font-size: .85em;
  font-family: "CMU Serif", "Georgia", serif;
  text-align: center;

  /*
  background-image: linear-gradient(rgba(1,140,1,1) 3px, transparent 3px);
  background-size:24px 24px;
  background-position:0px 2px;
  */
}

h1 {
  font-size: 110%;
}

h2 {
  font-size: 100%;
}

h3, h4, h5, h6{
  font-size: 90%;
}

h1 {
  margin-top: 1em;
}
p { margin: 1em 0; }

a         { color: #00a; }
a:hover   { color: #000; }
a:visited { color: #a0a; }

/*****************************************************************************/
/*
/* Home
/*
/*****************************************************************************/
ul.posts {
  list-style-type: none;
  margin-bottom: 2em;
}

ul.posts li {
  line-height: 1.75em;
}

ul.posts span {
  color: #aaa;
  font-family: Monaco, "Courier New", monospace;
  font-size: 80%;
}

/*****************************************************************************/
/*
/* Site
/*
/*****************************************************************************/

.site {
  font-size: 115%;
  text-align: left;
  width: 36em;
  margin: auto auto 2em;
  line-height: 1.5em;
  background-color: #FFF;
  border-radius: 15px;
  padding: 40px;
}

/* hacky fix for lack of margin on my iphone when vertical*/
@media all and (max-width: 500px) and (orientation:portrait){
  .site p, .site h1, .site h2, .site h3,
  .site pre, .site ul {
    padding-left: .4em;
    padding-right: .4em;
  }
}

.site .header a {
  font-weight: bold;
  text-decoration: none;
}

.site .header h1.title {
  display: inline-block;
  margin-bottom: 1em;
}

.site .header h1.title a {
  color: #a00;
}

.site .header h1.title a:hover {
  color: #000;
}

.site .header a.extra {
  color: #aaa;
  margin-left: 1em;
}

.site .header a.extra:hover {
  color: #000;
}

.site h2 {
  font-weight: bold;
}

.site .meta {
  color: #aaa;
}

.site .footer {
  font-size: 80%;
  color: #666;
  border-top: 4px solid #eee;
  margin-top: 2em;
  overflow: hidden;
}

.site .footer .contact {
  float: left;
  margin-right: 3em;
}

.site .footer .contact a {
  color: #8085C1;
}

.site .footer .rss {
  margin-top: 1.1em;
  margin-right: -.2em;
  float: right;
}

.site .footer .rss img {
  border: 0;
}

/*****************************************************************************/
/*
/* Front
/*
/*****************************************************************************/

body.body-front {
  background-color: #FFF;
}

.front {
  text-align: left;
}
.front .unit {
  padding-right: 20px;
}
.front h1, .front h2, .front h3, .front h4, .front h5, .front h6 {
  font-family: 'Lora', serif;
}
.front h1 {
  letter-spacing: 1px;
  font-size: 1.6em;
  margin-top: 8px;
}
.front h2 {
  border-top: solid 1px #bbbbbb;
  font-size: 1.3em;
  padding-top: 8px;
  padding-bottom: 4px;
  margin-top: 16px;
}
.front h3 {
  padding-top: 4px;
  font-size: 1.1em;
  font-weight: bold;
  font-size: 1.0em;
}
.front li {
  list-style-type: none;
}
.front a {
  color: #111111;
  text-decoration: none;
}
.front a:hover {
  text-decoration: underline;
}
.front .grid .unit {
  padding-top: 14px;
}
.front {
  margin: 0 auto;
  max-width: 963px;
  font-size: 14px;
  line-height: 24px;
}
.front .sidebar {
  padding-bottom: 0px;
}
.front .tidbit {
  display: none;
  margin-top: 5px;
  margin-bottom: 0px;
  line-height: 1.3em;
}
.front .software-section ul li > a:not(:first-child) {
  font-variant: small-caps;
}


.front-grid {
  display: grid;
  grid-template-columns: 2fr 5fr 5fr;
  column-gap: 30px;
  grid-template-areas:
    ". h h"
    "s l1 r1"
    "s l2 r2"
    "s l3 r3";
  margin: 0 16px;
}

@media handheld, only screen and (max-width: 767px) {
  .front-grid {
    display: grid;
    grid-template-columns: unset;
    column-gap: 0px;
    grid-template-areas:
      "h"
      "s"
      "l1"
      "r1"
      "l2"
      "r2"
      "l3"
      "r3";
  }
}

/*****************************************************************************/
/*
/* Posts
/*
/*****************************************************************************/

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

.highlight {
  padding: 0;
}

.post > pre {
  border: 1px solid #ddd;
  background-color: #eef;
  overflow-x: auto;
}

.post code {
  border: 1px solid #ddd;
  background-color: #eef;
  padding: 0 .2em;
}

.post .highlight code {
    background-color: inherit;
}
.post .highlight pre {
  padding-top: 0.4em;
  padding-left: 0.4em;
  padding-bottom: 0.4em;
  line-height: 1.4em;
  overflow-x: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.post pre code {
  border: none;
}

.post .asciicast, .post .center {
  text-align: center;
}

.post iframe {
  display: block;
  margin: 0 auto;
}

.post .code-with-caption {
  margin: 20px;
}

/* terminal */
.post pre.terminal {
  border: 1px solid #000;
  background-color: #333;
  color: #FFF;
}

.post pre.terminal code {
  background-color: #333;
}
.post sub, sup {
  line-height: 0.1em;
}

blockquote {
  background: #f9f9f9;
  border-left: 10px solid #ccc;
  margin: 1.5em 10px;
  padding: 0.5em 10px;
  quotes: "\201C""\201D""\2018""\2019";
}
blockquote:before {
  color: #ccc;
  content: open-quote;
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.25em;
  vertical-align: -0.4em;
}
blockquote:after {
  content: no-close-quote;
}
blockquote p {
  display: inline;
}

/*****
/* Footnotes
/*****/

div.footnotes {
  margin-top: 20px;
  border-top: solid 1px grey;
}

/*****
/* bpython page
/*****/

iframe#bpython-iframe {
  width: 1200px;
  height: 700px;
  position: relative;
  left: -310px;
  top: -90px;
}
div#bpython-iframe-wrapper {
  width: 890px;
  height: 612px;
  overflow: hidden;
}

/******
/* Listicle
/*****/

h2.listicle-title {
    font-size: 36px;
    font-weight: normal;
    clear: left;
    color: #333333;
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: normal;
    line-height: 38px;
    margin: 10px 0;
    text-transform: none;
    letter-spacing: normal;
    text-align: left;
}

.listicle {
    font-family: 'Montserrat', sans-serif;
    text-align: left;
}

.listicle p{
    margin: 0;
}

.listicle p:first-child{
    color: #121212;
    padding: 0;
    font-size: 26px;
    line-height: 28px;
}

.listicle p:not(:first-child){

    font-family: 'Montserrat:400', sans-serif;
    font-size: 17px;
    padding-top: 14px;
    color: #222;
    font-weight: normal;
}

.listicle p:nth-child(2) {
    font-size: 12px;
    padding-top: 0px;
    line-height: 12px;
}

.listicle p:nth-child(2) a {
    color: #999;
    font-style: italic;
    text-decoration: none;
}

.listicle p:nth-child(2) a:hover {
    text-decoration: underline;
}

.listicle li{
    color: #121212;
    padding-top: 20px;
    padding-bottom: 20px;
    list-style-type: decimal;
    list-style-position: inside;
    font-size: 26px;
    line-height: 28px;
}

.listicle img{
    padding-top: 8px;
    width: 625px;
}

a.listicle-option, .footnote{
  font-size: small;
  text-color: green;
}
