:root {
    --text-color: #252525;
    --link-color: #385cc7;
    --hl-bg-color: #ebebeb;
    --hl-bg-hover-color: #f5f5f5;
    --shadow-color: #aaaaaa;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    font-family: Georgia, serif;
    color: var(--text-color);
}

a {
    color: var(--link-color);
}

h1 {
    font-size: 1.4em;
    font-variant: small-caps;
}

h2 { font-size: 1.3em; }

h3 { font-size: 1.2em; }

aside, footer {
    font-size: 0.9em;
}

main > h1:first-child, main > h2:first-child, main > h3:first-child {
    margin-top: 0;
}

header {
    margin-bottom: 25px;
    & a {
        color: var(--text-color);
        text-decoration: none;
        display: block;
        width: 100%;
        text-align: center;

        & img {
            max-width: 20svw;
            max-height: 25svh;
            width: auto;
            height: auto;
            margin: 0 auto;
        }

        & h1, & h2 {
            margin: 10px;
        }

        & h2 {
            margin-top: 25px;
        }
    }
}

main {
    padding-bottom: 15px;
    flex: 1;
    max-width: 35em;
    text-align: justify;
    hyphens: auto;

    & a.section-link:hover {
        background-color: var(--hl-bg-hover-color);
    }

    & a.section-link {
        background-color: var(--hl-bg-color);
        border-radius: 10px;
        box-shadow: 0px 0px 10px var(--shadow-color);
        padding: 10px;
        display: block;
        margin-bottom: 30px;
        text-align: center;
        color: var(--text-color);
        text-decoration: none;

        & h2 {
            font-size: 1.1em;
            display: block;
            margin: 0 0 5px 0;
            text-align: center;
        }

        & p {
            margin: 0;
        }
    }
}

p {
    margin: 1em auto;
}

details {
    padding: 15px;
    background-color: var(--hl-bg-color);
    box-shadow: 0px 0px 10px var(--shadow-color);
    border-radius: 10px;
    > summary {
        cursor: pointer;
        padding: 15px;
        margin: -15px;
    }
}

details:not([open]) summary {
    cursor: pointer;
}

details:not([open]):hover {
    background-color: var(--hl-bg-hover-color);
}

.info {
    background-color: var(--hl-bg-color);
    border-radius: 10px;
    padding: 15px;
}

details > p:last-child { margin-bottom: 0; }

.info {
    width: 20em;
    max-width: 90%;
}

audio {
    margin: 1em auto -1em auto;
}

dl audio {
    margin: 0;
    display: block;
}

.subtitle {
    display: block;
    font-size: 0.8em;
    font-style: italic;
}

.author {
    display: block;
    font-size: 0.8em;
    font-weight: normal;
}

blockquote {
    text-align: right;
    line-height: 1;
    margin: 15px 0;

    > p {
        font-style: italic;
    }
}

body > aside, body > footer {
    display: block;
    text-align: center;
    color: var(--text-color);
    max-width: 50em;
    text-align: justify;
    hyphens: auto;
}

dt { font-weight: bold; }
dt:not(:first-of-type) { margin-top: 10px; }
dd {
    & p { margin: 5px 0; }
    > p:first-of-type { font-style: italic; }
}

img.float-left {
    float: left;
    max-height: 200px;
    margin-right: 1em;
    box-shadow: 0px 0px 10px var(--shadow-color);
    border-radius: 10px;
}

img.icon {
    height: 0.9em;
    vertical-align: baseline;
    display: inline;
    top: 1px;
    position: relative;
}

button.play-btn {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    margin: 0;
    padding: 0;
    font-size: 1em;
}