:root {
    --width: 45rem;
    --text-color: #444;
    --link-color: #3273dc;
    --background-color: #fff;
    --background-alt-color: #f2f2f2;
    --visited-color: #8b6fcb;

    --text-color-secondary: #888;

    --heading-color: #444;
}

/* container */
body {
    margin: auto;
    padding: 1.5rem;
    max-width: var(--width);
    line-height: 1.5;
}

/*make blog title slightly bigger */
:nth-child(1 of div.outline-2) > h2 {
    font-size: 1.8em;
}

/* general */
a {
    color: var(--link-color);
    text-decoration: none;
}

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

a:hover {
    text-decoration: wavy underline;
}

/* header */
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
}

nav a {
    margin-right: 0.5rem;
}

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

/* footer */
footer {
    font-size: .8em;
    padding: 1rem 0;
    color: var(--text-color-secondary);
    text-align: center;
}

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

/* content */
main {
    line-height: 1.6;
}

blockquote {
    background-image: url(/static/images/quote-left-solid.svg),
                      url(/static/images/quote-right-solid.svg);
    background-position: top left, right bottom;
    background-repeat: no-repeat, no-repeat;
    background-size: 1em 1em, 1em 1em;
    filter: invert;
    margin: 1.25rem;
    padding: 2rem;
}

summary p {
    display: inline-block;
    text-decoration: underline;
    cursor: pointer;
}

details summary {
    padding: 1rem;
}

pre {
    overflow-x: auto;
    border-radius: .125rem;
    background-color: var(--background-alt-color);
    margin: .5rem 0 .5rem 0;
    font-family: Jetbrains Mono;
    font-size: .875rem;
    line-height: 1.25rem;
    padding: .5rem;
}

img {
    max-width: 100%;
    height: auto;
}
