body {
    color: #222;
}

a:link, a:hover, a:visited {
/* section a:link, section a:hover, section a:visited { */
    color: #222;
}

body section h1, body section h2, body section h3, body section h4, body section h5 {
    width: 70%;
    text-align: center;
    margin: 1rem auto;
    clear: both;
}

body section h1 {
    font-size: 32px;
}
body section h2 {
    font-size: 28px;
}
body section h3 {
    font-size: 24px;
}
body section h4 {
    font-size: 20px;
}
body section h5 {
    font-size: 16px;
}

body section .wrapper h1:first-of-type {
    margin: 10vh auto 2vh;
    padding: 2em;
    border-bottom: 3px double #333;
    border-top: 1px solid #333;
}

body section:first-of-type h1 {
    margin: 0 auto;
}

body .page-skip {
/* todo: replace selector with a "following a full-screen bg"? */
/*body .wrapper:after(.full-screen) { .. something like that? */
/*body .wrapper:first-of-type {*/
/* i think that works except that oops! things change -- it works differently */
    margin-top: 100vh;
}

/* this works poorly after a full-screen bg (except at top of page)..
   element jumps up, transition doesn't affect it */
body .half-page-skip {
    margin-top: 50vh;
}

body .full-screen {
    height: 100vh;
    background-color: black;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body .full-screen.fixed {
    position: fixed;
    top: 0;
    left: 0;
}

body .background {
/*    z-index: -1; /* and/or raise foreground elements */
    position: relative;
}

body .foreground {
    z-index: 10; /* and/or raise foreground elements */
}

body .wrapper {
    display: inline-block;
    padding-bottom: 10vh;
    position: relative;
    width: 100%;
/*    background-color: silver; */
    background-color: hsla(0,0%,80%,0.5);
}

body section:not(:last-of-type) .wrapper:last-of-type {
    border-bottom: 1px solid #333;
}

/* i dislike this class name but 'logo' won't do either... */
body .introduction {
    position: fixed;
    max-width: 666px;
    max-width: 666px;
    margin: 0 auto;
    top: 50vh;
    top: 34vh;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    left: 0;
    right: 0;
    color: #ddd;
    text-align: center;
    text-shadow: 1px 1px 3px black;
    background: rgba(0,0,0,0.15);
    padding: 1rem;
    border-radius: 16px;
    border: 2px dashed rgba(0,0,0,0.15);
    border: 2px dotted rgba(0,0,0,0.2);
    border: 2px inset rgba(50,50,50,0.25);
}

section {
    width: 100%;
/*    background: hsla(0,0%,20%,0.5); */
    text-shadow: 0 0 8px white;
}

section .content {
    position: relative;
/*
    max-width: 666px;
    max-width: 800px;
*/
/* go to % widths for everything ? (lon-mon does) */
    width: 80%;
    margin: 4em auto;
    clear: both;
    font-size: x-large;
}

section .content p {
    display: block;
    width: 42%;
    margin: 0 auto;
    margin: 0.5em auto;
    margin: 0.5rem auto;
}

section .content>p,
section .content aside,
section .content li,
section .content dl dd {
    background: hsla(0,0%,90%,0.4);
    padding: 8px;
    border-radius: 4px;
    -webkit-box-shadow: 1px 1px 6px #111;
    -moz-box-shadow: 1px 1px 6px #111;
    box-shadow: 1px 1px 6px #111;
}

section .content aside {
    float: right;
    clear: right;
    display: inline-block;
    width: 25%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1em;
    padding-left: 2%;
    border-left: 2px solid rgba(0,0,0,0.25);
}

section .content aside.left {
    float: left;
    clear: left;
    padding-left: 0;
    border-left: none;
    padding-right: 2%;
    border-right: 2px solid rgba(0,0,0,0.25);
}

section ol, section ul {
    width: 33%;
    margin: 1rem auto;
    -webkit-padding-start: 0;
}

@media screen and (max-device-width: 600px) {
    section .content p {
        width: 92%;
    }

    /* maybe position "important" asides like p */
    section .content aside {
        float: none;
        display: none;
    }

    section ol, section ul {
        width: 75%;
    }
}

section li {
/* not to apply to `ul.slideshow li`, if any.. */
    margin-top: 0.8rem;
}

ol.roman {
    /* list-style-position: inside; */
    list-style-type: lower-roman;
}

ol.Roman {
    /* list-style-position: inside; */
    list-style-type: upper-roman;
}

section dl>* {
/* section dl dt, section dl dd { */
    vertical-align: top;
    display: inline-block;
/* well, this has the unfortunate side effect of destroying my guarantee of a new line per term-definition pair -- wrapping everything in a div will work (with selector version 2) but that's too fuckin' annoying.. adding line-breaks is no better .. tho that also works */
    margin-top: 0.8rem;
}

section dl dt {
    width: 25%;
    float: left;
    clear: both;
}

section dl dd {
    max-width: 70%;
    min-width: 70%;
    margin-left: 5%;
    -webkit-margin-start: 0;
    clear: right;
}

section .left {
    float: left;
    margin-right: 1em;
}

section .right {
    float: right;
    margin-left: 1em;
}

.caption {
    display: block;
    text-align: center;
    font-style: italic;
    margin-bottom: 1em;
}

header {
    z-index: 100;
    position: fixed;
    top: 0;
    width: 100%;
    -webkit-transition: 0.8s background-color ease, 2s text-shadow ease;
    -moz-transition: 0.8s background-color ease, 2s text-shadow ease;
    -o-transition: 0.8s background-color ease, 2s text-shadow ease;
    transition: 0.8s background-color ease, 2s text-shadow ease;
    background-color: hsla(0,0%,75%,0.5);
/*    text-shadow: 1px 1px 2px black; */
}

header nav {
    text-align: center;
}

header nav a:link, header nav a:visited, header nav a:hover {
    color: #ddd;
    margin: 0 1rem;
    text-decoration: none;
    font-size: large;
}

header nav a.external {
    border-radius: 3px;
/*    border: 1px solid rgba(0,0,0,0.3); */
    background-color: rgba(0,0,0,0.1);
    padding: 0 2px;
}

.scrolled header {
    background: silver;
    background: hsla(0,0%,75%,0.75);
    text-shadow: 0 0 4px black;
}

footer {
    position: relative;
    background-color: hsla(0,0%,75%,0.5);
}
