@import url("//fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic,700");
@import url("//fonts.googleapis.com/css?family=Noticia+Text:400,400italic");
/*@import url("//fonts.googleapis.com/css?family=Roboto+Slab:300,400,700");
@import url("//fonts.googleapis.com/css?family=Roboto:300,400,700");*/

/* Included from: /css/reset.css */
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Included from: /css/style.css */
/*
@author: Rich Adams
Flux "Zephyr": An enhanced version of my old "Flux" style.
*/

/* Defaults
***************************************************************************************************/

html, body {
    background: #fff;
    color: #000;
    height: 100%;

    font-family: "Open Sans", "Arial", sans-serif;
    font-size: 13px;
    line-height: 1.3;
    text-rendering: optimizeLegibility;

    /* Font anti-aliasing */
    /*-webkit-font-smoothing: antialiased;
    -webkit-text-shadow: rgba(0, 0, 0, .01) 0 0 1px;*/
}

/* Apply a natural box layout model to everything */
*, *:before, *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* Selection */
::-moz-selection {
    background-color: #000;
    color: #fff;
    text-shadow: none;
}
::selection {
    background-color: #000;
    color: #fff;
    text-shadow: none;
}

abbr {
    border-bottom: 1px dashed #555;
    cursor: help;
}

/* Quotes */
blockquote {
    font-style: italic;
    padding: 10px;
}

blockquote p {
    font-size: 1em !important;
    padding-bottom: 0px !important;
    padding-right: 0px !important;
}

/* Code blocks */
pre {
    display: block;
    border-radius: 5px;
    font-family: courier, monospace;
    background: #333;
    color: #fff;
}

/* Override some prettify styles */
pre.prettyprint {
    margin: 15px 0px -20px 0px !important;
    padding: 0.8em !important;
    white-space: pre-wrap;
}

em {
    font-style: italic;
}

strong {
    font-weight: 600;
}

/* Links */
a:link,
a:visited {
    font-weight: normal;
    text-decoration: underline;
    color: #0645ad;
}

a:visited {
    color: #663366;
}

a:hover {
    color: #f00;
}

/* Lists */
ul, ol {
    margin: 4px 0px 0px 20px;
    list-style-type: none;
}

/* Rules */
hr {
    display: none;
}

/* Main Layout
***************************************************************************************************/

/* Used for the sticky footer only */
#page-container {
    position: relative;
    min-height: 100%;
    overflow-x: hidden;
}

/* Wrapper for everything below breadcrumbs */
#primary-content {
    width: 800px;
    margin: 0 auto;
    overflow: visible;
}

/* Left-side main section */
main {
    padding: 10px 0px 24.5em 0px;
    width: 800px;
    overflow: visible;
}

#home main {
    padding-top: 15px;
}

/* Sidebar */
aside {
    position: absolute;
    width: 100%;
    bottom: 2.2em;
    left: 0px;

    overflow: auto;
    background: #f7f7f7;

    border-top: 1px solid #ddd;
}

aside section {
    position: relative;
    width: 800px;
    margin-left: -400px !important;
    left: 50% !important;
}


/* Breadcrumb Banner
***************************************************************************************************/

#breadcrumb {
    position: relative;
    background: #1f415d;

    width: 100%;
    min-height: 30px;
    height: auto;

    padding: 8px 0px;
    margin: 3px 0px;

    color: #fff;
    box-shadow: 0px 0px 5px #888;
}

    /* This is so the breadcrumb background can fade in gently, less jarring experience. */
    @-webkit-keyframes fadein {
        0%   { opacity: 0; }
        100% { opacity: 1; }
    }
    @keyframes fadein {
        0%   { opacity: 0; }
        100% { opacity: 1; }
    }

    #breadcrumb #bc-background {
        position: absolute;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 100%;

        z-index: 1;

        background: transparent;
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;

        opacity: 0; /* Default to hide */
    }

    /* Once loaded, fade in and keep opacity at last value. */
    #breadcrumb #bc-background.loaded {
        -webkit-animation: fadein 0.15s 1 linear forwards;
        animation: fadein 0.15s 1 linear forwards;
    }

    /* White semi-opacity band */
    #breadcrumb #bc-band {
        position: relative;
        z-index: 2;
        width: 100%;
        background: rgba(255, 255, 255, 0.83);
        letter-spacing: 0em;
    }

    #breadcrumb a {
        text-decoration: none;
    }

    #breadcrumb h2 {
        width: 800px;
        margin: 0 auto;

        padding: 7px 10px 3px 5px;
        font-weight: 300;
        font-size: 2em;

        color: #1f415d;
        text-shadow: 1px 1px #ddd;
    }

    #breadcrumb p {
        width: 800px;
        margin: 0 auto;

        padding: 0px 20px 10px 5px;
        font-size: 1.2em;
        color: #002442;
        font-weight: 300;
        text-shadow: 1px 1px #ddd;
    }

/* Header
***************************************************************************************************/

header {
    width: 800px;

    position: relative;
    min-height: 60px;
    height: auto;

    margin-bottom: 10em;
    margin: 0 auto;
}

#logo {
    margin: 15px 0px 10px 10px;
    max-width: 100%;
}

/* Menu
***************************************************************************************************/

nav ul {
    position: absolute;
    top: 0px;
    right: 0px;
    height: 100%;
    margin: 0px;
}

    nav ul li {
        height: 100%;
        text-align: right;
        display: table;
    }

    /* Access key info */
    nav ul li em {
        display: none;
    }

    nav ul li a:link, nav ul li a:visited {
        height: 100%;
        font-size: 1.4em;
        font-weight: normal;
        color: #1f415d;
        text-decoration: none !important;
        text-align: center;
        vertical-align: middle;
        display: table-cell;
        padding-bottom: 0.2em;
    }

    nav ul li a:hover {
        color: #32658f;
    }

/* Footer
***************************************************************************************************/

footer {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 2.5em;

    background: #fff;
    text-align: left;
    color: #888;
    letter-spacing: 1px;
    line-height: 1.2em;
    font-size: 0.9em;

    border-top: 1px solid #ddd;
    padding: 0.2em 0em 0.7em 0em;
    clear: both;
}

    footer ul {
        list-style: none;
        margin-left: 0px;
        padding: 0px;
    }

    footer ul#copyright-info,
    footer ul#meta-info {
        left: 50%;
        position: absolute;
        bottom: 0.6em;
        margin-left: -400px;
        width: 400px;
    }

    footer ul#meta-info {
        margin-left: 0px;
        text-align: right;
    }

    footer ul li {
        display: inline;
    }

    /* Icons for some footer links */
    footer #powered-by {
        padding-left: 20px;
        background: url(/img/icon/wblinks.png) center left no-repeat;
        background-size: contain;
    }

    footer #subscribe {
        padding-left: 20px;
        background: url(/img/icon/rss.png) center left no-repeat;
        background0size: contain;
    }

    /* Footer link styles */
    footer a {
        color: #555;
    }

    footer a:hover {
        color: #000;
    }

/* Articles
***************************************************************************************************/

article {
    padding: 0px 0px 20px 0px;
    margin: 0px 0px 10px 0px;
    overflow: visible;
}

#home article {
    padding-bottom: 30px;
    margin-bottom: 20px;
    border-bottom: 3px solid #ddd;
}

    /* Title */
    article h1 {
        padding-top: 0px;
        padding-bottom: 5px;
        margin-bottom: -0.2em;
        color: #15549b;
        font-weight: 300;
        font-size: 25px;
        line-height: 1.1em;
    }

    /* Hide the title on the post page, title already in breadcrumb. */
    #notes article h1 {
        display: none;
    }

    /* Title link */
    article h1 a:visited,
    article h1 a:link,
    article h1 a:hover {
        font-weight: 300;
        color: #15549b;
        border-bottom: none !important;
        text-decoration: none;
    }

    /* Subtitles, sections within a post. */
    article h3.subtitle {
        padding-top: 2px;
        padding-bottom: 0px;
        margin-bottom: -10px;
        margin-top: 5px;
        color: #15549B;
        overflow: visible;
        position: relative;
        font-weight: 300;
        font-size: 1.8em;
        line-height: 1.6em;
    }

    article h3.subtitle:hover a.anchor-link {
        opacity: 0.25;
    }

    article h3.subtitle a.anchor-link {
        background: transparent url("/img/icon/link.png") left center no-repeat;
        background-size: contain;
        width: 0.9em;
        height: 0.9em;
        padding-right: 2em;
        opacity: 0;
        display: block;
        position: absolute;
        left: -1.4em;
        top: 0.45em;

        transition: opacity 0.15s ease-in-out;
    }

    /* Post date */
    article time {
        display: block;
        text-align: left;
        margin-top: 0.5em;
        margin-right: 0px;
        font-weight: 600;
        text-transform: uppercase;
    }

    article time span.month:after {
        content: ",";
    }

    /* Hide this for now. All articles written by me, but Google authorship wants this present. */
    article .byline {
        float: left;
        margin-top: 0.5em;
        padding-right: 0.5em;
        display: none;
    }

    /* Tags */
    article .tag-list {
        display: block;
        float: right;
        margin-left: 5px;
        margin-top: -1.18em;
        padding-left: 20px;
        background: url(/img/icon/tag.png) 0em 0em no-repeat;
        background-size: contain;
    }

    article .tag-list li {
        display: inline;
        padding-left: 5px;
    }

    article .tag-list li a {
        text-decoration: none;
        color: #999;
        border: 1px solid #eee;
        border-radius: 2px;
        padding: 2px 3px;

        transition: all 0.1s ease-in-out;
    }

    article .tag-list li a:hover {
        border: 1px solid #aaa;
        color: #888;
    }

    /* Main post content */
    article .content {
        line-height: 1.4em;
        margin-top: 1em;
        font-size: 14px;
        line-height: 1.5em;
        font-weight: 400;
        clear: left;
        text-align: left;
        color: #131313;
    }

    article .content p {
        margin-right: 0px;
        padding-bottom: 8px;
        padding-right: 10px;
    }

    /* Some posts have images */
    article .descriptive-image img {
        border: 1px solid #ccc;
        box-shadow: 0px 0px 20px 5px rgba(0, 0, 0, 0.1);
        display: block;
        margin: 0.5em auto;
        width: auto;
        position: relative;
        margin-bottom: 1.5em;
    }

    article .descriptive-image.normal-center {
        text-align: left;
    }

    article .descriptive-image.auto-size {
        width: auto;
    }

    article .descriptive-image p.blurb {
        font-size: 0.9em;
        color: #888;
        padding: 0em 1em;
        text-align: center;
        font-style: italic;
    }

    /* Quotes */
    article blockquote {
        padding: 1em;
        background: transparent;
        margin-top: 20px;
        margin-bottom: -10px;
        border-left: 10px solid #ddd;
        font-family: "Noticia Text", "Arial", sans-serif;
        font-weight: 400;
        color: #444;
    }

    article blockquote.big {
        background: transparent;
        padding: 0.5em;
        padding-left: 3em;
        position: relative;
        font-size: 2em;
        line-height: 1.3;
        border-left: none;
        margin-left: -3em;
    }

    article blockquote.big:before {
        content: "“";
        font-size: 3em;
        position: absolute;
        top: -.2em;
        left: 0.3em;
        color: #777;
        font-family: "Arial", serif;
    }

    /* Lists */
    article .content ol,
    article .content ul {
        padding: 10px;
        padding-left: 40px;
        margin-left: 0em;
        padding-bottom: 0px;
        border-left: 10px solid #cbe1fe;
        margin-bottom: -20px;
        color: #333;
    }

    article .content ol {
        list-style-type: decimal;
    }

    article .content ul {
        list-style-type: disc;
    }

    article .content li {
        padding-bottom: 10px;
    }

    /* "Read more...", only shown on homepage. */
    article .content a.readMore {
        text-decoration: none;
        font-size: 0.9em;
        display: block;
        width: 8.4em;
        text-transform: uppercase;
        color: #555;
        border: 1px solid #ddd;
        border-radius: 3px;
        padding: 0.5em 0.8em;
        margin-top: 1em;
        margin-bottom: -0.6em;

        transition: all 0.1s ease-in-out;
    }

    article .content a.readMore:hover {
        border: 1px solid #aaa;
    }

    /* Tabular Data */
    article table {
        width: 100%;
        border: 1px solid #bbb;
        margin-bottom: -1em;
    }

    article table td,
    article table th {
        padding: 0.3em 0.5em;
        border-right: 1px solid #bbb;
    }

    article table td:last-child,
    article table th:last-child {
        border-right: none;
    }

    article table th {
        border-bottom: 1px solid #bbb;
        color: #555;
        background: #f7f7f7;
    }

    article table td {
        font-family: monospace;
        border-bottom: 1px solid #eee;
        color: #333;
    }

    article table tr:last-child td {
        border-bottom: none;
    }

    article table tr:hover td {
        background: #f7f7ff;
        transition: background 0.1s ease-in-out;
    }

/* Lede */
#home hr {
    height: 1px;
    display: block;
    border: none;
    background: #ddd;
    margin-top: -1.5em;
    margin-bottom: 1.5em;
    background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%,
                                          rgba(200, 200, 200, 0.65) 51%,
                                          rgba(0, 0, 0, 0) 100%);
}

#home main {
    padding-top: 2em;
}

#home main #about-the-author {
    border-top: none;
    margin-top: -1.6em;
}

#home article.lede {
    border-bottom: none;
}

    #home article.lede h1 a {
        font-size: 1em;
    }

    #home article.lede h1 a:hover {
        color: #00f;
    }

    #home article.lede time {
        margin-top: 0.3em;
        text-transform: uppercase;
    }

    #home article.lede .content {
       margin-top: 1em;
       font-size: 14px;
    }

    article.lede .tag-list {
        display: none;
    }

.additional-content {
    margin: 0px 0px 10px 0px;
    padding: 20px 0px 20px 0px;
    border-top: 2px solid #ddd;
    word-wrap: break-word;
}

    .additional-content h2 {
        overflow: visible;
        position: relative;
        padding-top: 0px;
        color: #15549b;
        font-weight: 300;
        font-size: 1.8em;
        line-height: 1.3em;
        padding-bottom: 5px;
    }

    .additional-content h2:hover a.anchor-link {
        opacity: 0.25;
    }

    .additional-content h2 a.anchor-link {
        background: transparent url("/img/icon/link.png") left center no-repeat;
        background-size: contain;
        width: 0.9em;
        height: 0.9em;
        padding-right: 2em;
        opacity: 0;
        display: block;
        position: absolute;
        left: -1.4em;
        top: 0.25em;

        transition: opacity 0.15s ease-in-out;
    }

    .additional-content p {
        color: #555;
        font-weight: 400;
        font-size: 1.1em;
        font-style: italic;
    }

    .additional-content ul {
        list-style-type: lower-roman;
        padding-left: 20px;
        padding-top: 10px;
    }

    .additional-content ul li {
        padding-bottom: 3px;
      font-size: 1.1em;
    }

    .additional-content ul li.external a {
        padding-right: 15px;
        background: url("/img/icon/external.png") top right no-repeat;
    }

aside .additional-content {
    border-top: none;
}

aside #popular.additional-content ul {
    list-style: none;
    padding-left: 0px;
    margin-left: 0px;
    margin-top: 10px;
    overflow: auto;
}

aside #popular.additional-content ul li {
    float: left;
    width: 50%;
    height: 3.5em;
}

aside #popular.additional-content ul li a {
    text-decoration: none;
    color: #15549b;
    font-weight: 300;
    font-size: 1.3em;
    line-height: 1.3em;

    width: 100%;
    display: block;
    height: 1.3em;
    border-right: 1em solid transparent;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

aside #popular.additional-content ul li a:hover {
    color: #00f;
}

aside #popular.additional-content ul li em {
    font-weight: 400;
    display: block;
    font-size: 1em;
}

/* Tags
***************************************************************************************************/

#tag-cloud-list {
    overflow: auto;
    display: block;
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 1em;
}

#tag-cloud-list li {
    padding-right: 0.5em;
    float: left;
    margin: 0.5em 0em;
}

#tag-cloud-list li a em {
    font-style: normal;
    color: #fff;
    background: #999;
    padding: 0px 0.3em;
    font-weight: 300;
}

#tag-cloud-list li a {
    text-decoration: none;
    color: #555;
    border: 1px solid #aaa;
    border-radius: 3px;
    padding: 0px 0px 0px 4px;

    transition: all 0.1s ease-in-out;
}

#tag-cloud-list li a:hover {
    border: 1px solid #555;
}

/* Archive
***************************************************************************************************/

#archive-content {
  padding: 0px;
  margin: 1em 0em 2em 0em;
}

#archive-content ul {
  margin: 0px;
}

#archive-content ul li {
  padding: 0.5em 0em;
}

#archive-content ul li span.date a {
  color:#000;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
}

#archive-content ul li span.date a:hover {
  text-decoration: underline;
}

#archive-content ul li span.date {
  display: block;
  width: 8em;
  float: left;
  text-align: right;
  padding-right: 0.4em;
  margin-top: 0.35em;
}

#archive-content ul li span.date a span.sup {
  font-size: 0.6em;
  vertical-align: super;
  padding-top: 0.3em;
}

#archive-content ul li a.article-link {
  text-decoration: none;
  font-weight: 300;
  padding-left: 0.4em;
  color: #15549b;
  font-weight: 300;
  font-size: 1.4em;
  line-height: 1.3em;
}

#archive-content ul li a.article-link:hover {
  color: #00f;
  text-decoration: underline;
}

/* About Author
***************************************************************************************************/

#about-me-blurb p {
    padding-bottom: 2.6em;
}

#about-me-blurb p.blurb {
    font-size: 1.1em;
    font-style: italic;
    font-weight: 400;
    margin-top: 25px;
    padding-right: 1em;
}

#about-me-blurb p.blurb a {
    font-style: italic;
}

#about-me-blurb p sup {
  font-size: 0.7em;

  vertical-align: super;
}

#about-me-blurb p.extra {
  float: right;
  font-size: 0.8em;
  color: #aaa;
  margin-top: -3em;
  margin-right: 1.5em;
}

#headshot {
    float: left;
    margin-top: 5px;
    margin-right: 1em;
    margin-bottom: 1em;
}

#headshot img {
    width: 100px;
    height: 100px;

    border-radius: 100px;
    /*box-shadow: 2px 2px 5px 1px rgba(0, 0, 0, 0.2);*/
    border: 1px solid #ddd;
    padding: 2px;
    /*box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.05);*/
}

/* Misc
***************************************************************************************************/

#alt-nav {
    text-align: center;
}

/* Link at bottom of home page. */
#view-older-notes {
    text-decoration: none;
    font-size: 1.1em;
    display: inline-block;
    margin-bottom: 2.2em;
    margin-top: -0.5em;
    text-transform: uppercase;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 0.7em 1em;

    transition: all 0.1s ease-in-out;
}

#view-older-notes:hover {
    border: 1px solid #aaa;
}

/* 404 Error Page
***************************************************************************************************/

/* Breadcrumb becomes the focus of the page. */
#page-not-found #breadcrumb {
     font-size: 1.2em;
     position: absolute;
     top: 50%;
     margin-top: -7em;
     text-align: center;
}

#page-not-found #breadcrumb p {
     line-height: 1.3;
     padding: 0.5em 0.3em 0.7em 0.3em;
}

#page-not-found #breadcrumb p a {
     border-bottom: 1px dashed #5e83ac;
}

#page-not-found #breadcrumb p a:hover {
     border-bottom: 1px solid #5e83ac;
}

/* Hide some normal elements. */
#page-not-found nav,
#page-not-found footer,
#page-not-found main h2,
#page-not-found main p {
     display: none;
}

/* This has the footnote text */
#page-not-found main p.footnote {
     position: absolute;
     display: block;
     bottom: 1em;
     right: 1em;
     text-align: right;
     font-style: italic;
     color: #aaa;
}

/* Included from: /css/prettify.css */
/* desert scheme ported from vim to google prettify */
pre { display: block; background-color: #333 }
pre .nocode { background-color: transparent; color: #000 }
pre .str { color: #ffa0a0 } /* string  - pink */
pre .kwd { color: #f0e68c; font-weight: bold }
pre .com { color: #87ceeb } /* comment - skyblue */
pre .typ { color: #98fb98 } /* type    - lightgreen */
pre .lit { color: #cd5c5c } /* literal - darkred */
pre .pun { color: #fff }    /* punctuation */
pre .pln { color: #fff }    /* plaintext */
pre .tag { color: #f0e68c; font-weight: bold } /* html/xml tag    - lightyellow */
pre .atn { color: #bdb76b; font-weight: bold } /* attribute name  - khaki */
pre .atv { color: #ffa0a0 } /* attribute value - pink */
pre .dec { color: #98fb98 } /* decimal         - lightgreen */

/* Specify class=linenums on a pre to get line numbering */
ol.linenums { margin-top: 0; margin-bottom: 0; color: #AEAEAE } /* IE indents via margin-left */
li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8 { list-style-type: none }
/* Alternate shading for lines */
li.L1,li.L3,li.L5,li.L7,li.L9 { }

@media print {
  pre { background-color: transparent }
  pre .str, code .str { color: #060 }
  pre .kwd, code .kwd { color: #006; font-weight: bold }
  pre .com, code .com { color: #600; font-style: italic }
  pre .typ, code .typ { color: #404; font-weight: bold }
  pre .lit, code .lit { color: #044 }
  pre .pun, code .pun { color: #440 }
  pre .pln, code .pln { color: #000 }
  pre .tag, code .tag { color: #006; font-weight: bold }
  pre .atn, code .atn { color: #404 }
  pre .atv, code .atv { color: #060 }
}


/* Included from: /css/print.css */
/* Scale and colour things properly for printing. */
@media print {

    /* Hide some unnecessary things */
    header nav,
    #breadcrumb,
    aside,
    article .readMore,
    #view-older-notes,
    footer em,
    footer li,
    #headshot,
    #about-the-author {
        display: none !important;
    }

    /* Standardise style for displayed parts */
    body,
    #page-container,
    #primary-content,
    footer {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: #fff !important;
        overflow: visible !important;
    }

    /* Content areas should have reasonable lr margins. */
    main, header, footer {
        margin: 0em 2em !important;
        width: auto !important;
        padding-bottom: 0em !important;
    }

    /* Minor logo adjustment */
    #logo {
        margin-left: -5px !important;
    }

    /* Make blog entries look ok */
    article {
        background: #fff !important;
        border: none !important;
        overflow: visible !important;
    }

    article h1 {
        background: #fff !important;
        display: block !important;
        margin: 0px !important;
        padding: 0px !important;
        padding-top: 10px !important;
    }

    article h1 a {
        color: #000 !important;
    }
    
    article h3 {
        color: #000 !important;
    }
    
    .additional-content h2 {
        color: #000 !important;
    }

    /* Show the date properly */
    article time {
        border: none !important;
        width: auto !important;
        text-align: left !important;
        display: block !important;
        margin: 0px !important;
        padding-right: 1em !important;
    }

    article time span {
        display: inline !important;
        font-size: 14px !important;
    }

    article time span.month:after {
        content: ",";
    }

    article .tag-list {
        display: none !important; /* Not really useful to show any more */
        background-image: none !important;
        padding-left: 0px !important;
        float: none !important;
        margin-top: 1px !important;
        margin-bottom: 20px !important;
        margin-left: 0px !important;
    }
    
    /* Fix about blurb */
    #about-me-blurb p {
        padding-bottom: 1em !important;
    }

    #about-me-blurb p.blurb {
        margin-top: 1em !important;
    }
    
    /* Don't show the quote image. */
    article blockquote.big:before {
        display: none !important;
    }

    /* Use text instead of icon when printing. */
    article .tag-list:before {
        content: "Tags: ";
    }

    /* Footer gets some changes when printing */
    footer {
        position: relative !important;
        width: 100%;
        margin-left: 0px;
        left: 4px !important;
        border-top: 1px solid #aaa !important;
    }

    footer ul#copyright-info {
        left: 0%;
        position: absolute;
        bottom: 0.6em;
        width: 100%;
        margin-left: 0px;
    }

    /* Show copyright info. */
    footer li#copyright {
        display: block !important;
    }

    footer li#copyright a {
        text-decoration: none;
    }

    /* Show URLs for links */
    #primary-content a[href]:after,
    footer a[href]:after {
        content: " (" attr(href) ") ";
        font-size: 0.9em;
        text-decoration: none;
    }

    /* But not for tag links, title, or additional link */
    #primary-content article .tag-list a[href]:after,
    #primary-content article h1 a[href]:after,
    #primary-content #sources.additional-content ul li a[href]:after,
    #primary-content article h3 {
        content: "";
    }

    /* I can't imagine anyone would want to print the 404 page, but... */
    #page-not-found main {
        top: 100px;
    }

    #page-not-found main h2,
    #page-not-found main p {
        display: block;
        font-size: 1.2em;
        color: #000;
        font-style: normal;
        text-align: left;
    }

    #page-not-found main p.footnote {
        display: block;
        text-align: right;
        font-style: italic;
        padding-top: 3em;
        color: #aaa;
    }

} /* end of @media print */

/* Included from: /css/responsive.css */
/* At ~900px the fixed width layout will break, switch to fluid. */
@media only screen and (max-width: 900px) {

    html, body {
        -webkit-text-size-adjust: none;
    }

    /* Make some elements scale to 100%. */
    #primary-content,
    main,
    aside,
    header,
    footer,
    #breadcrumb,
    #breadcrumb h2,
    #breadcrumb p,
    .module {
        width: 100%;
    }

    /* Move nav away from right edge. */
    nav ul {
      margin-right: 1em;
    }

    /* Extra padding */
    main {
        padding-right: 1em;
        padding-left: 1em;
    }
    
    header {
        padding: 0em 1em;
    }

    #page-not-found main {
        border-bottom: none;
    }

    /* Footer need to be positioned correctly. */
    footer {
        left: 0px;
        margin-left: 0px;
        padding-left: 0.5em;
        padding-right: 0.5em;
    }

    /* Font sizes and padding for breadcrumbs. */
    #breadcrumb {
        font-size: 0.9em;
    }

    #breadcrumb h2 {
        padding-left: 0.5em;
        padding-right: 0.5em;
    }

    #breadcrumb p {
        padding-left: 1em;
        padding-right: 1em;
    }

    /* Scale down font for articles. */
    article h1 {
        font-size: 1.6em;
    }

    /* Show the time and tags as a block. */
    article time,
    article .tag-list {
        display: block;
        float: none;
    }

    /* Position the tag list properly. */
    article .tag-list {
        margin-left: 0px;
        margin-top: 0.5em;
    }
    
    /* Make sure images don't overflow */
    article .descriptive-image img {
        max-width: 95% !important;
    }

    /* Display the popular notes section properly. */
    main {
        padding-bottom: 36em;
    }

    aside section {
        width: 100%;
        margin-left: 0px !important;
        left: 0% !important;
        padding: 1em 1em 0em 1em !important
    }

    aside { 
      width: 100%;
      margin-left: 0px;
      left: 0px;
    }

    aside #popular.additional-content ul li {
        display: block;
        float: none;
        width: 100%;
    }

    /* Fix footer */
    footer ul#copyright-info,
    footer ul#meta-info {
        left: 0%;
        position: absolute;
        bottom: 0.6em;
        width: 100%;
        margin-left: 0px;
    }    
    
    footer ul#copyright-info {
        padding-left: 0.5em;
    }

    footer ul#meta-info {
        padding-right: 0.5em;
    }

    /* Footnote text */
    #page-not-found main p.footnote{
        position: absolute;
        right: 1em;
        bottom: 1em;
        width: auto;
    }

    /* Position correctly. */
    #page-not-found #breadcrumb {
        margin-top: -4.5em;
    }

    /* Remove ugly line break. */
    #page-not-found #breadcrumb br {
        display: none;
    }

} /* end of max-width: 1000 */

/* At ~430px the menu will overlap the logo, so change to smaller header layout. */
@media only screen and (max-width: 430px) {

    /* Old logo goes. */
    #logo {
        background: url("/img/logo_small.png") 0.5em 50% no-repeat;
        background-size: contain;
        padding: 0px 0px 0px 160px;
        width: 50px;
        height: 50px;
        margin: 0.2em 0em;
    }

    /* Scale down breadcrumb font again. */
    #breadcrumb {
        font-size: 0.9em;
    }

    /* Add a new icon logo to nav, and scale up nav a bit. */
    nav {
        position: absolute;
        float: none;
        top: 0.5em;
        left: 60px;
        width: 95%;
        width: calc(100% - 60px); /* https://www.w3.org/Bugs/Public/show_bug.cgi?id=18913 */
        height: 3.5em;
        overflow: auto;
    }

    nav ul {
        position: absolute;
        right: 1em;
    }

    /* Scale down font for articles. */
    article h1 {
        font-size: 1.4em;
    }

    /* Fix tag layout */
    article .tag-list {
        background-size: 20px 20px;
        background-position: 0% 3px;
        line-height: 2em;
        padding-left: 28px;
        text-indent: -6px;
    }
    
    /* Fix archive page */    
    #archive-content ul li span.date {
        width: 100%;
        text-align: left;
        padding-left: 0.4em;
    }

    /* Change about blurb layout slightly. */
    #about-me-blurb p {
        text-align: center;
    }

    #headshot {
        float: none;
        margin: 0 auto;
        margin-top: 1em;
        width: 30%;
    }

    #headshot img {
        width: 100%;
        height: 100%;
        border-radius: 999px;
    }

    /* Hide non-copyright info once we get to this size */
    footer ul#meta-info {
        display: none;
    }    

    /* 404 page adjustments */
    #page-not-found #breadcrumb {
        top: 100px;
        font-size: 0.9em;
        margin-top: 0px;
    }

    #page-not-found #breadcrumb p {
        padding: 1em 0.8em;
    }

} /* end of max-width: 430 */
