html {
    height: 100%;
    font-family: sans-serif;
    font-size: 16px;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    font-family: -apple-system, BlinkMacSystemFont, Lato, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
    line-height: 1.5;
    background-color: #222222;
    color: #eeeeee;
    accent-color: #5a8a5b;
}
body {
    margin: 0;
    min-height: 100%;
    position:relative;
    padding-bottom:4rem;
}
header {
    text-align: center;
    color: #5a8a5b;
}
header h1 {
    font-size:3rem;
    line-height: 1;
    text-transform:lowercase;
    letter-spacing: .1em;
    padding-bottom: .25rem;
    font-weight:500;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-color: #777;
    margin-bottom: 3rem;
}
h1 a {
    color: #5a8a5b;
}
a {
    word-wrap: break-word;
    background-color: transparent;
    color: #aa5baa;
    text-decoration:none;
}
a, a:focus, a:hover {
    transition: opacity .2s ease-in;
}
a:focus, a:hover {
    opacity: 0.5;
}
a:active {
    opacity:.8;
    transition:opacity .15s ease-out;
}
div.main {
    width:85%;
    padding-left:1rem;
    padding-right:1rem;
    margin-left: auto;
    margin-right: auto;
}
div.intro {
    line-height: 1.5;
    margin-left: auto;
    margin-right: auto;
}
section div.postcontent {
    max-width: 55rem;
    margin-left: auto;
    margin-right: auto;
}
span.hl {
    color: #5a8a5b;
    font-weight: bold;
}
span.email {
    font-style: italic;
    font-family: monospace;
    font-size: 90%;
    color: #aa5baa;
}
a.email {
    pointer-events: none;
}
span.emailparent span:nth-child(2),span:nth-child(4) {
    display: none;
}
footer {
    width:40%;
    margin-top: 4rem;
    text-align: center;
    display: block;
    margin-right: auto;
    margin-left: auto;
}
footer > p {
    font-size: 80%;
}
section.post {
    margin-top: 4rem;
    padding-top: .5rem;
    line-height: 1.5;
    margin-left: auto;

    & h2 {
        font-weight: 700;
        font-size: 1.25rem;
        line-height:1.25;
        letter-spacing:.1em;
        padding-top:.25rem;
        padding-bottom:.25rem;
        margin-top:.25rem;
        margin-bottom:0;
        text-align:center;
        border-bottom-style:solid;
        border-bottom-width:1px;
        border-color:#777;
    }
}
.post p img {
    display: block;
    margin: 0 auto;
}
.post ul {
    list-style-type: circle;
}
.post ul, .post ol {
    margin-top: 0;
    margin-left: 40px;
}
.post blockquote {
    background: rgba(0,0,0,0.02);
    font-style: italic;
    padding: 20px;
}

.linkgrid {
    display: grid;
    grid-template-columns: auto auto;
    margin-top:1rem;
}

.linkgriditem {
    & span.linkhdr {
        font-style: italic;
        font-size: 90%;
    }
    & a {
        font-size: 90%;
    }
    & ul {
        margin-left: 0;
    }
}

.imgflex {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    margin-top: 2rem;
}

.flexitem {
  flex-basis: 0;
  padding: 10px;
  text-align: center;
  & span.license {
  }
  & span.title {
    font-style: italic;
  }
  & span.artist {
  }
  & span {
      display: block;
      font-size: 80%;
  }
}

.fleximg {
    max-width: 20rem;
    max-height: 20rem;
    object-fit: contain;
}

.fleximg:hover {
  transition: transform .3s;
  -webkit-transition: transform .3s;
  transform: scale(1.8);
}

.accordion {
    width: 90%;
    margin: 2rem auto 0 auto;

    & input {
        display: none;
    }
    & input + label + .content {
        opacity: 0;
        height: 0;
        font-size: 0%;
        transition: ease .1s;
    }
    & input:checked + label + .content {
        opacity: 1;
        font-size: 100%;
        height: auto;
        transition: ease .2s;
        margin-bottom: 1rem;
    }
    & input:checked + label:after {
        content: '-';
    }
    & label {
        display: block;
        position: relative;
        cursor: pointer;
        border-radius: 3px;
        transition: ease .5s;
        background: #aa5baa;
        padding: 0.3rem 0.5rem 0.3rem 0.5rem;
        letter-spacing: .05em;
    }
    & label:hover {
        background: #5a8a5b;
    }
    & label:after {
        position: absolute;
        right: 1rem;
        content: '+';
    }
    & div.content {
        background: #222222;
        border: 1px solid #555;
        border-radius: 3px;
    }
    & ul, & ol {
        margin: 1rem 0 2rem 2rem;
        padding-left: 0;
    }
    & ul {
        list-style-type: circle;
    }
    & ol {
        list-style: none;
        counter-reset: cntr;
    }
    & ol li {
        counter-increment: cntr;
    }
    & ol li::before {
        content: counter(cntr) ". ";
        color: #aaa;
        font-size: 75%;
        font-weight: bold;
        margin-right: 0.5rem;
    }
}

@media screen and (min-width: 30em) {
    header h1 {
        font-size: 5rem;
    }
    .accordion {
        width: 85%;
    }
}
@media screen and (min-width:30em) and (max-width:60em){
    div.main {
        width:80%;
        padding-left:1rem;
        padding-right:1rem;
        margin-left: auto;
        margin-right: auto;
    }
    .accordion {
        width: 80%;
    }
}
@media screen and (min-width:60em) {
    h1.header {
        margin-bottom: 0;
    }
    div.main {
        width:80%;
        padding-left:0;
        padding-right:0;
        margin-left: auto;
        margin-right: auto;
    }
    section.post {
        padding-top: 1.5rem;
    }
    .accordion {
        width: 70%;
    }
}
@media screen and (min-width:90em) {
    .accordion {
        max-width: 45rem;
    }
}
