:root {
    --base-background-color: #474;
    --page-background-color: #fff7ee;
    --page-background-alt-color: #ffecd8;
}

html {
    font-family: sans-serif;
    background-color: var(--page-background-alt-color);
    display: flex;
    justify-content: center;
}

body {
    margin: 0px;
    background-color: var(--page-background-color);
}

header {
    display: flex;
    padding: 10px;
    margin-bottom: 10px;
    flex-direction: row;
    align-items: center;
    border-bottom: 2px solid #999;
}

header a {
    padding: 0px 20px;
}

header img {
    max-width: 180px;
}

header p {
    text-align: center;
    font-style: italic;
    font-size: 18px;
    color: #49574d;
    margin: 0px;
}

footer {
    padding: 7px;
    background: linear-gradient(#eee, #fff 33%, #ccc);
    color: #444;
    border-top: 1px solid #999;
}

footer p {
	text-align: right;
	margin: 0px;
	font-style: italic;
    font-weight: bold;
	font-size: 15px;
}

nav {
    background-color: var(--page-background-alt-color);
    border: 1.5px solid #999;
    border-radius: 10px;
    box-shadow: 0px 0px 10px #0002;
    margin: 16px;
    padding: 6px;
}

nav details summary {
    background: linear-gradient(#190, #160);
    box-shadow: 1px 2px 2px #0004;
    font-size: 20px;
    font-weight: bold;
    color: #eef;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

nav details summary:active {
    background: linear-gradient(#170, #180);
    color: white;
    box-shadow: none;
    position: relative;
    top: 2px;
}

nav details>ul {
    list-style-type: none;
    padding: 0px 15px;
    margin: 8px 0px;
}

article {
    padding: 0px 16px;
}

/* headings */
h1 {
    font-size: 30px;
    margin: 0px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
    font-style: italic;
}

h1, h2, h3 {
    clear: both;
    margin-bottom: 0px;
}

h1 + p, h2 + p, h3 + p {
    margin-top: 6px;
}

/* links */
a:link {
    color: #160;
}
a:active {
    color: #6b3;
}
a:visited {
    color: #450;
}

ul.reviews {
    list-style-type: none;
    padding: 0px;
}

/* reviews on home page */
ul.reviews>li {
    background-color: var(--page-background-alt-color);
    border: 1.5px solid #999;
    border-radius: 0px 10px;
    box-shadow: 0px 0px 10px #0002;
    margin: 10px;
    padding: 0px 10px;
}

ul.reviews>li>blockquote {
    margin: 10px;
}
ul.reviews>li>blockquote p:before, ul.reviews>li>blockquote p:after {
    content: "\"";
}

ul.reviews>li>p {
    margin: 10px;
    font-style: italic;
    text-align: right;
    color: #444;
}

/* image styles */
article figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--page-background-alt-color);
    border: 1.5px solid #999;
    border-radius: 10px;
    box-shadow: 0px 0px 10px #0002;
    margin: 16px 0px;
    padding: 10px;
    clear: both;
}

article figure img, article figure a {
    width: 100%;
    display: block;
}

article figure>figcaption {
    margin-top: 10px;
    font-style: italic;
    text-align: center;
    color: #444;
}

article figure>figcaption * {
    display: unset;
}

/* misc. elements */
.checkmark-list {
    list-style-image: url("/static/checkmark.svg");
}

hr {
    border: none;
    border-bottom: 2px dotted #999;
    clear: both;
}


/* desktop style, mainly lays things out with a grid */
@media screen and (min-device-width: 768px) {
    html {
        background-color: var(--base-background-color);
    }

    body {
        display: grid;
        grid-template-columns: 1fr 3fr;
		max-width: 1080px;
        box-shadow: 0px 0px 50px #0004;
    }

    header {
        grid-column: 1 / 3;
        grid-row: 1;
        flex-direction: column;
    }

    header img {
        max-width: 480px;
        margin: 24px;
    }

    header p {
        font-size: 26px;
    }

    nav {
        grid-column: 1;
        grid-row: 2;
        margin: 5px;
        border-radius: 10px 10px 0px 0px;
        border-bottom: none;
        margin-bottom: 0px;
        box-shadow:
            inset 0px -1000px 20px -1000px #0003,
            0px 0px 10px #0002;
    }

    nav details summary:hover {
        background: linear-gradient(#170, #180);
        color: white;
    }

    article {
        grid-column: 2;
        grid-row: 2;
    }

	footer {
		grid-column: 1 / 3;
		grid-row: 3;
	}

    article aside {
        float: right;
        margin: 8px;
    }

    article aside figure {
        margin: 0px;
        width: 360px;
    }
}
