body {
    font-family: Consolas, BIZ UDPGothic, YuGothic, sans-serif;
    font-size: 14pt;
    margin: 0;
    padding: 0;
    background: #fdfbf5;
    color: #8a5b58;
    word-break: break-all;
}

body * + * {
    line-height: 1.8;
}

p {
    letter-spacing: .05em;
}

header {
    text-align: center;
    font-size: 120%;
    padding: .5em;
}

nav {
    position: fixed;
    top: 0;
    right: 0;
    background: #d9ca90;
}

nav figure {
    font-size: 115%;
}

nav span {
    font-size: 160%;
    padding: 2em;
}

h1 {
    background: #ffbc61;
    text-indent: 1em;
}

h2 {
    border-bottom: 3px dotted #f99292;
}

h2 + p {
    text-indent: 1em;
}

h2 span {
    border-left: 14px solid #ef866b;
    padding-left: .5em;
    border-radius: .5em;
    margin: .5em;
}

h3 {
    font-size: 100%;
    border-bottom: 4px solid #ffbc61;
}

h3::before {
    content: url(h3.svg);
    display: inline-block;
    vertical-align: sub;
    width: 22px;
    height: 22px;
    padding: 0 .5em;
}

h4 {
    background: #c5e99b;
    padding: 1em;
    border-radius: .75em;
}

h4:before {
    content: url(h4.svg);
    display: inline-block;
    vertical-align: sub;
    width: 22px;
    height: 22px;
    padding: 0 .5em;
}

h5 {
    border-left: 12px double #fb7d79;
    padding: .5em 1.5em;
}

h5:before {
    content: url(h5.svg);
    display: inline-block;
    vertical-align: sub;
    width: 22px;
    height: 22px;
    padding: 0 .5em;
}

h5 p {
    font-weight: 300;
}

h6:before {
    content: url(h6.svg);
    display: inline-block;
    vertical-align: sub;
    width: 22px;
    height: 22px;
    padding: 0 .5em;
}

h6 a {
    color: #8a5b58;
}

h6 a:hover {
    color: #d06f56;
}

main {
    margin: 0 30px;
    padding: 1em;
    background: #fdfbf5;
    display: flex;
}

/*
main > ol > li:nth-child(5) > * {
    opacity: .1;
}*/

section {
    flex: 3;
}

article {
    margin: 3em auto;
    max-width: 36em;
}

aside {
    background: #f4e7c7;
    flex: 1;
    font-size: 90%;
    padding: 1em;
    position: absolute;
    top: 0;
    right: 0;
    display: block;
}

ol {
    counter-reset: section;
}

ul li {
    background: #e7f1e8;
    padding: 12px;
    margin: 12px;
}

li {
    list-style: none;
}

li a {
    color: #d06f56;
}

li a:hover {
    color: #dcaf6e;
}

ol > li:before {
    content: counters(section, '-') '.';
    counter-increment: section;
}

footer {
    text-align: center;
}

.nouse {
    visibility: hidden;
    height: 0;
}

pre {
    padding: 12px;
    margin: 12px;
    background: #e7f1e8;
    white-space: pre-wrap;
}

code {
    padding: 6px;
    margin: 6px;
    background: #e7f1e8;
}

img {
    width: 100%;
}

@media screen and (max-width: 868px) {
    main {
        margin: 0;
        flex-direction: column;
    }

    aside {
        display: block;
        position: relative;
    }

    nav {
        display: none;
    }
}
