*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 18px;
    font-family: var(--ff-sans);

    --ff-serif: 'Source Serif Pro', serif;
    --ff-sans: 'Source Sans Pro', sans-serif;
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    padding-block: .5em;
    display: flex;
    justify-content: center;
    background-color: #2a2a2a;
    user-select: none;
    color: white;
}

.outside-link {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.outside-link:hover {
    text-decoration: underline;
}

.site-name {
    display: inline;
    width: min-content;
    font-size: 2rem;
    font-family: var(--ff-serif);
}

.gray {
    color: #8d8d8d
}

main {
    margin-bottom: 7em;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1em;
    align-items: center;
}

/* .table-of-contents-header {
    margin-bottom: 0;
} */

.table-of-contents-items {
    list-style-type: none;
    margin: 0;
    padding-inline: 2ch;
    display: flex;
    flex-direction: column;
    /* border: 1px solid black; */
    border-radius: .3em;
}

:is(.table-of-contents,
    article)>h1:first-child {
    margin-top: 0;
}

.table-of-contents-items a {
    color: rgba(0, 0, 0, .7);
    font-size: 1.1rem;
}

.article-title {
    position: relative;
    margin-inline: 0;
    margin-bottom: 8px;
    border-bottom: 3px solid black;
    /* line-height: 1em; */
    font: bold 2.5em var(--ff-serif);
}

.article-title::after {
    content: "";
    width: 100%;
    position: absolute;
    left: 0;
    bottom: -6px;
    display: block;
    border-bottom: 1px solid black;
}

.article-details {
    padding-inline: .3em;
    color: rgba(0, 0, 0, .6);
}

.article-author {
    text-decoration: underline;
}



:is(header, main)>* {
    width: min(80%, 40rem);
}

article {
    margin: 0;
}

header :is(h1, h2, h3) {
    margin: 0;
}

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.2rem;
}

.description {
    padding: 1em;
    border: 1px solid rgba(0, 0, 0, .5);
    border-radius: .3em;
}

/* .description-term {} */

footer {
    padding-block: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .3em;
    background-color: #ccc;
    height: 2rem;
}