:root {
    --desktop-max-width: 1200px;

    --header-top-bottom-padding: 0.75rem;
    --header-internal-height: 80px;
    --header-height: calc(
        var(--header-internal-height) +
        2 * var(--header-top-bottom-padding)
    );
}
::selection {
    background-color: rgba(18, 18, 18, 0.2);
}

@font-face {
    font-family: Eczar;
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url("/static/fonts/eczar_n4.woff2") format("woff2"),
        url("/static/fonts/eczar_n4.woff") format("woff");
}

@font-face {
    font-family: Assistant;
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url("/static/fonts/assistant_n4.woff2") format("woff2"),
        url("/static/fonts/assistant_n4.woff") format("woff");
}

body {
    margin: 0;
    background-color: #f0f0f0;

    font-family: Assistant, sans-serif;
    font-size: 110%;
    letter-spacing: 0.06rem;
    line-height: 1.8;
}

a {
    color: #0000bf;
}
h1, h2, h3, h4 {
    font-family: Eczar, serif;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 0.4em;
}
h2 {
    font-size: 3rem;
    letter-spacing: calc(1.25 * 0.06rem);
    line-height: calc(1 + .3 / 1.25);
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    height: var(--header-internal-height);
    padding: 0.75rem 2rem 0.75rem;

    background-color: rgba(223, 223, 223, 0.8);
}
#header-logo {
    height: var(--header-internal-height);
}

#page-top-backdrop {
    position: relative;
    bottom: var(--header-height);
    min-height: calc(1.5 * var(--header-height));
    padding-left: 2em;
    padding-right: 2em;

    text-align: center;
    background: url("static/layout/wood_backdrop.jpg");
    background-size: cover;
    background-color: #94623a;
    color: white;
}
#page-top-backdrop img {
    width: 500px;
    max-width: 100%;
    padding-top: calc(2rem + var(--header-height));
}
#page-top-backdrop h2 {
    font-size: 4rem;
    margin-top: 1rem;
    margin-bottom: 0;

    text-shadow: 5px 5px 10px #00000080;
}

main {
    position: relative;
    bottom: var(--header-height);
    padding-top: 2em;
}
main section {
    max-width: var(--desktop-max-width);
    margin-top: 3em;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2em;
    padding-right: 2em;
}
main section:first-child {
    margin-top: 0;
}

.card-list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 8px;
    row-gap: 8px;
    padding-left: 0;

    list-style: none;

}
.card-list li {
    background-color: rgba(18, 18, 18, 0.1);
    border-radius: 0.8rem;
    text-align: center;
}
.card-list-3-col li {
    max-width: 100%;
    @media (min-width: 700px) { max-width: calc(50% - 8px); }
    @media (min-width: 1000px) { max-width: calc(33% - 8px); }
}
.card-list li img {
    width: 100%;
    transform: scale(0.95);
    transition: transform .3s;
}
.card-list li:hover img {
    transform: scale(1.05);
}
.card-list a, .card-list a:visited {
    color: currentColor;
    text-decoration: none;
}
.card-list a:hover { 
    text-decoration: underline;
}