@font-face {
    font-family: 'Crimson';
    src: url('fonts/crimson-roman-webfont.eot');
    src: url('fonts/crimson-roman-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/crimson-roman-webfont.woff2') format('woff2'),
         url('fonts/crimson-roman-webfont.woff') format('woff'),
         url('fonts/crimson-roman-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Crimson';
    src: url('fonts/crimson-italic-webfont.eot');
    src: url('fonts/crimson-italic-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/crimson-italic-webfont.woff2') format('woff2'),
         url('fonts/crimson-italic-webfont.woff') format('woff'),
         url('fonts/crimson-italic-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Crimson';
    src: url('fonts/crimson-semibold-webfont.eot');
    src: url('fonts/crimson-semibold-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/crimson-semibold-webfont.woff2') format('woff2'),
         url('fonts/crimson-semibold-webfont.woff') format('woff'),
         url('fonts/crimson-semibold-webfont.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Crimson';
    src: url('fonts/crimson-semibolditalic-webfont.eot');
    src: url('fonts/crimson-semibolditalic-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/crimson-semibolditalic-webfont.woff2') format('woff2'),
         url('fonts/crimson-semibolditalic-webfont.woff') format('woff'),
         url('fonts/crimson-semibolditalic-webfont.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

@media (min-width: 1066px) {
    nav > a + a {
        margin-left: 8em;
    }

    span#name {
        font: 80px "Lato", serif;
        margin-top: 200px;
    }

    section, nav, div#post {
        font: 20px/1.5 "Crimson", serif;
        -webkit-font-feature-settings: 'liga' 1, 'onum' 0, 'kern' 1;
        -moz-font-feature-settings: 'liga' 1, 'onum' 0, 'kern' 1;
        -o-font-feature-settings: 'liga' 1, 'onum' 0, 'kern' 1;
        font-feature-settings: 'liga' 1, 'onum' 0, 'kern' 1;
    }

    code {
        font: 16px/1.35 "Cousine", monospace;
    }

    body#post {
        max-width: 75%;
    }

    a.permanchor {
        position: absolute;
        left: -1em;
    }

    table.narrow {
        display: none;
    }

    div.narrow {
        display: none;
    }

    div.wide {
        display: block;
    }

    figure {
        background-color: #e3e0e0;
        margin: 0.5em 0;
        padding: 0.5em 40px;
    }
}

body {
    -webkit-text-size-adjust: none;
    color: #444;
    background-color: #ece8e8;
    position: relative;
    margin: 0 auto;
}

@media (max-width: 1066px) {
    nav > a + a {
        margin-left: 4em;
    }

    span#name {
        font: 64px "Lato", serif;
        margin-top: 100px;
    }

    section, nav, div#post {
        font: 20px/1.5 "Crimson", serif;
        margin-left: 1em;
        margin-right: 1em;
        -webkit-font-feature-settings: 'liga' 1, 'onum' 0, 'kern' 1;
        -moz-font-feature-settings: 'liga' 1, 'onum' 0, 'kern' 1;
        -o-font-feature-settings: 'liga' 1, 'onum' 0, 'kern' 1;
        font-feature-settings: 'liga' 1, 'onum' 0, 'kern' 1;
    }

    code {
        font: 16px/1.35 "Cousine", monospace;
    }

    pre code {
        font: 14px "Cousine", monospace;
    }

    body#post {
        max-width: 800px;
    }

    a.permanchor {
        float: left;
        padding-right: 0.25em;
    }

    table {
        display: none;
    }

    table.narrow {
        display: table;
    }

    div.narrow {
        display: block;
    }

    div.wide {
        display: none;
    }

    figure {
        background-color: #e3e0e0;
        margin: 0;
        padding: 0.1em 10px;
        line-height: 1em;
    }
}

img {
    border: none;
}

span#name {
    text-transform: lowercase;
    font-variant: small-caps;
    display: block;
    text-align: center;
    margin-bottom: 0;
}

img#seal {
    float: right;
    display: block;
    height: 3em;
    width: 3em;
}

section > h1 {
    color: #333;
    font-size: 1.6em;
    font-weight: normal;
    margin-top: 0.55em;
    margin-bottom: 0;
}

section > h1:before {
    padding-right: 0.5em;
    content: '❧';
}

div#post > h1 {
    color: #333;
    font-size: 1.6em;
    font-weight: normal;
    font-style: italic;
    margin-top: 0.55em;
    margin-bottom: 0.45em;
}

div#post > h2 {
    color: #333;
    font-size: 1.3em;
    font-weight: normal;
    font-style: italic;
    margin-top: 0.4em;
    margin-bottom: 0.3em;
}

div#post > h2:before {
    padding-right: 0.5em;
    font-style: normal;
    content: '❧';
}

article > h1 {
    color: black;
    font-size: 1.15em;
    font-style: italic;
    font-weight: normal;
    margin: 0;
}

article > h2 {
    font-size: 1em;
    font-weight: normal;
    margin: 0;
    padding-left: 1em;
}

ul {
    list-style: square;
    margin-left: 0 1.5em;
}

li {
    margin-top: 0.25em;
}

p {
    margin: 0;
    -webkit-font-feature-settings: 'liga' 1, 'onum' 1, 'kern' 1;
    -moz-font-feature-settings: 'liga' 1, 'onum' 1, 'kern' 1;
    -o-font-feature-settings: 'liga' 1, 'onum' 1, 'kern' 1;
    font-feature-settings: 'liga' 1, 'onum' 1, 'kern' 1;
}

p + p {
    margin-top: 0.5em;
}

section {
    display: block;
    margin: 0 auto;
    padding-left: 18px;
    padding-right: 18px;
}

nav {
    display: block;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
}

a.permanchor:before {
    content: '§';
}

@media (hover: hover), (-moz-touch-enabled: 0) {
    a {
        color: black;
        outline: none;
        font-style: italic;
        text-decoration: none;
        -moz-transition: color 0.3s;
        -webkit-transition: color 0.3s;
        -o-transition: color 0.3s;
        transition: color 0.3s
    }

    a:hover {
        outline: none;
        color: #0087ff;
        text-decoration: underline;
    }

    a:active {
        outline: none;
        color: #0087ff;
        text-decoration: underline;
    }
}

@media (hover: none), (-moz-touch-enabled: 1) {
    body#idx a {
        color: black;
    }

    nav a {
        color: black;
    }

    a {
        color: #0087ff;
        outline: none;
        font-style: italic;
        text-decoration: none;
    }

    a:active {
        outline: none;
        text-decoration: underline;
    }
}

#date {
    clear: both;
    font-family: 'Crimson', serif;
    display: block;
    text-align: center;
    margin-top: 2em;
    margin-bottom: 2em;
    -webkit-font-feature-settings: 'liga' 1, 'onum' 1, 'kern' 1;
    -moz-font-feature-settings: 'liga' 1, 'onum' 1, 'kern' 1;
    -o-font-feature-settings: 'liga' 1, 'onum' 1, 'kern' 1;
    font-feature-settings: 'liga' 1, 'onum' 1, 'kern' 1;
    color: #ccc;
}

span.sc {
  text-transform: lowercase;
  font-variant: small-caps;
}

span.amp {
    font-size: 1.5em;
    font-weight: normal;
    font-style: italic;
    position: relative;
    top: 0.1em;
}

hr.sep {
    margin-top: 2.5em;
    margin-bottom: 2.5em;
    text-align: center;
    color: #333;
    width: 60%;
}

hr {
    display: block;
    height: 1px;
    width: 80%;
    border: 0;
    border-top: 1px solid #999;
    margin: 1em auto;
    padding: 0;
}

dt {
    margin-left: 1em;
    font-weight: 600;
}

dd + dt {
    margin-top: 0.5em;
}

div.highlight {
    margin-left: 1.5em;
}

pre.sparse {
    margin-top: 16px;
    margin-bottom: 16px;
    margin-left: 1.5em;
    font: 16px/1.1 "Cousine", monospace;
}

pre.dense {
    margin-top: 16px;
    margin-bottom: 16px;
    margin-left: 1.5em;
    font: 16px/1 "Cousine", monospace;
}

span.button {
    cursor: pointer;
    text-transform: lowercase;
    font-family: "Lato", serif;
    font-weight: bold;
    font-variant: small-caps;
    color: #ece8e8;
    background-color: #444;
    border: 1px solid #444;
    border-radius: 3px;
    padding: 0.4em 0.9em 0.4em 0.9em;
    margin-right: 1em;
}

span.button:active {
    position: relative;
    top: 2px;
    left: 2px;
}

div.measurement {
    margin-left: 1.5em;
}

span.output {
    font-size: 1.35em;
}

table {
    margin: 1em 1.5em;
    border-collapse: collapse;
    border-top: 1px solid #999;
    border-bottom: 1px solid #999;
}

tbody.colors tr:nth-child(even) {
    background-color: #e3e0e0;
}

thead th {
    padding: 0.75ex 2ex;
}

tbody td {
    padding: 0.5ex 2ex;
}

.faded {
    opacity: 0.05;
}

.onum {
    -webkit-font-feature-settings: 'onum' 1;
    -moz-font-feature-settings: 'onum' 1;
    -o-font-feature-settings: 'onum' 1;
    font-feature-settings: 'onum' 1;
}

.nnum {
    -webkit-font-feature-settings: 'onum' 0;
    -moz-font-feature-settings: 'onum' 0;
    -o-font-feature-settings: 'onum' 0;
    font-feature-settings: 'onum' 0;
}
