// HEADINGS
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 3rem 0 1rem;
    font-weight: lighter;
    line-height: normal;
    font-family: var(--font-antique);
    letter-spacing: -0.05em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

small {
    color: var(--fg-muted-5);
    font-size: 0.8rem;
}

abbr[title] {
    -webkit-text-decoration: underline dotted;
    cursor: help;
    text-decoration: underline dotted;
}

figcaption {
    color: var(--fg-muted-4);
    font-size: 0.8rem;
    text-align: center;
}

blockquote {
    margin: 0;
    border-left: 0.25rem solid var(--primary-color);
    padding: 0 0.75rem;
    color: var(--fg-muted-5);
}

mark {
    box-shadow: var(--edge-highlight);
    border-radius: var(--rounded-corner-small);
    background-color: var(--primary-color-alpha);
    padding: 0.125rem 0.375rem;
    color: var(--primary-color);
}

kbd {
    display: inline-block;
    transition-duration: var(--transition);
    transition-property: transform, box-shadow, background-color;
    cursor: pointer;
    box-shadow: inset 0 -2px 0 var(--fg-muted-2), 0 -1px 0 var(--fg-muted-3);
    border-radius: var(--rounded-corner-small);
    background-color: var(--fg-muted-2);
    padding: 0.125rem 0.375rem;
    font-size: 0.8rem;
    line-height: normal;

    // Small nice thingy, keys can be pressed!
    &:active {
        transform: translateY(2px);
        box-shadow: inset 0 1px 0 var(--fg-muted-2);
        background-color: var(--fg-muted-3);
    }
}

a {
    color: var(--primary-color);
    font-weight: bold;

    &:hover {
        -webkit-text-decoration: underline wavy;
        text-decoration: underline wavy;
    }
}

hr {
    margin: 2rem auto;
    border: none;
    border-top: 3px double var(--fg-muted-2);
    overflow: visible;
    color: var(--fg-muted-4);
    font-size: 1.5rem;
    text-align: center;

    &::after {
        position: relative;
        top: -1.5rem;
        background: var(--bg-color);
        padding: 0 0.25rem;
        content: "☙❧";
    }
}

dt {
    font-weight: bold;
}

dd {
    margin-bottom: 1rem;
}

aside {
    float: right;
    margin-inline-start: 1rem;
    box-shadow: var(--edge-highlight);
    border-radius: var(--rounded-corner);
    background-color: var(--primary-color-alpha);
    padding: 1rem;
    width: 30%;

    @media only screen and (max-width: 720px) {
        float: none;
        margin-inline-start: 0;
        width: 100%;
    }
}

details {
    border-radius: var(--rounded-corner);
    background-color: var(--fg-muted-1);
    padding: 1rem;

    &>summary {
        cursor: pointer;
    }
}
