@font-face {
    font-family: "roboto";
    src: url("../fonts/Roboto-Regular.ttf");
}

/* Automatically enabled if user has Dark mode enabled */
@media only screen and (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary: #728949;
        --primary-hover: #718949ef;
        --primary-focus: #7089495f;
        --font-family: 'roboto', sans-serif;
    }
}

/* Global CSS variables */
:root:not([data-theme="dark"]),
[data-theme="light"],
:root {
    --font-weight: 400;
    --border-radius: 0;
    --primary: #728949;
    --primary-hover: #718949ef;
    --primary-focus: #70894924;
    --font-family: 'roboto', sans-serif;
    --spacing-aside: 2rem;
}

aside {
    padding: 1rem 2rem;
    border-top: var(--primary) solid .75px;
}

aside h2 {
    font-size: 1.25rem;
}

aside ul {
    padding: 0;
}

body>header,
body>main {
    padding: 1rem;
}

h1 {
    margin-top: 2rem;
    margin-bottom: 0;
}

/* Typography */
h2,
h3,
hgroup> :last-child {
    font-weight: 200;
}

nav {
    flex-wrap: wrap;
}

small {
    color: var(--muted-color);
}

header {
    padding: 1rem;
}

section>ol {
    padding-left: 0;
}

.contact-image {
    max-width: 200px;
}

.event-list {
    margin: 2rem 0;
}

.event-list>li {
    list-style: none;
    margin-top: 2rem;
}

.footer-list>li {
    list-style: none;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.gallery-list>li {
    list-style: none;
    margin-top: 2rem;
}

.h1 {
    font-size: 2rem;
}

.h2 {
    font-size: 1.75rem;
}

.h3 {
    font-size: 1.5rem;
}

.image-subtitle {
    color: var(--muted-color);
    font-size: .75rem;
}

.logo {
    max-height: 8rem;
    max-width: 6.5rem;
    margin-right: 1.25rem;
}

.mobile-hidden {
    display: none;
}

.nav-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.paginator {
    display: flex;
    justify-content: center;
}

.paginator:first-child {
    width: 300px;
}

.paginator>a {
    margin: 0 1rem;
}

.post-list>li {
    list-style: none;
}

.text-muted {
    color: var(--muted-color);
}

/* Nav */
summary[role="link"].contrast:is([aria-current], :hover, :active, :focus) {
    background-color: transparent;
    color: var(--contrast-hover);
}

/* Main */
@media (min-width: 992px) {

    aside {
        /* border: var(--primary) .25px solid; */
        padding: 0 2rem;
        border-left: var(--primary) solid .75px;
        border-top: 0;
    }

    main .grid {
        grid-column-gap: 3rem;
        /* TODO: Re-enable when sidebar is usable */
        grid-template-columns: auto 25%;
    }

    .container {
        max-width: 1400px;
    }

    /* Header */
    .hero {
        height: 500px;
        width: 100%;
        background-color: #394046;
        background-image: url("../images/header.png");
        background-position: center;
        background-size: cover;
    }

    .mobile-hidden {
        display: inherit;
    }
}

form.grid {
    grid-row-gap: 0;
}

/* Aside nav */
aside img {
    margin-bottom: 0.25rem;
}

aside p {
    margin-bottom: var(--spacing-aside);
    line-height: 1.25;
}