:root {
    --light-yellow: #FBF1A9;
    --light-green: #9EEBCF;
    --blue: #357EDD;
    --light-gray: #EEEEEE;
    --moon-gray: #CCCCCC;
    --dark-gray: #333333;
    --near-black: #111111;
    --near-white: #F4F4F4;

    /* antique white: #dbd8c6 */
    /* sienna: #b35539 */
    /* light slate gray: #7895a3 */
    /* dark slate gray: #335c64 */
    /* dark olive green: #737145 */

    --brand-bg: #dbd8c6;
    --brand-red: #b35539;
    --brand-light-gray: #7895a3;
    --brand-dark-gray: #335c64;
    --brand-green: #737145;
    --brand-yellow: #caad68;

    --spacing-1: .25rem;
    --spacing-2: .5rem;
    --spacing-3: 1rem;
    --spacing-4: 2rem;
    --spacing-5: 4rem;
    --spacing-6: 8rem;

    --measure: 30em;
    --measure-wide: 34em;
    --measure-narrow: 20em;
}

html {
    font-family: "Open Sans", sans-serif;
    color: var(--dark-gray);
}

body {
    background-color: var(--brand-bg);
}


h2,
h3,
h4,
p {
    margin: 0;
}

h1 {
    color: var(--near-black);
    font-size: 3rem;
    margin-bottom: var(--spacing-5);
    text-decoration: underline solid var(--brand-light-gray);
    text-decoration-thickness: var(--spacing-2);
}

h2 {
    font-size: 2.50rem;
    font-weight: 600;
    margin: var(--spacing-4) 0;
    margin-bottom: var(--spacing-2);
    text-decoration: underline solid var(--brand-light-gray);
    text-decoration-thickness: calc(var(--spacing-1) / 2);
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: var(--spacing-3) 0;
    margin-bottom: var(--spacing-2);
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: .5rem;
    margin: var(--spacing-3) 0;
    margin-bottom: var(--spacing-2);
}

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

hr {
    margin: var(--spacing-3) var(--spacing-5);
}

.navigation-container button {
    background: none;
    border: none;
}

.navigation-container.close button .close,
.navigation-container.close #navigation-popout {
    display: none;
}

.navigation-container.close button .open {
    display: block;
}

.navigation-container.open button .open {
    display: none;
}

.navigation-container.open button .close,
.navigation-container.open #navigation-popout {
    display: block;
}

.navigation-container a,
.navigation-container a:visited {
    color: color-mix(in srgb, var(--brand-red) 90%, black 20%)
}

#navigation-popout {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--brand-green);
    color: white;
    padding: var(--spacing-3) 0;
}

#navigation-popout a,
#navigation-popout a:visited {
    color: var(--near-white);
}

#navigation-popout .menu .submenu {
    display: none;
}

#navigation-popout .menu.active .submenu {
    display: block;
}

.container {
    max-width: 75rem;
    margin: 0 auto;
}

.content-container {
    padding: var(--spacing-3);
    max-width: 50rem;
}

.homepage .splash-container {
    margin: 0 calc(var(--spacing-3) * -1);
    margin-top: calc(var(--spacing-3) * -1);
}

.homepage .splash-container img {
    height: initial;
}

.homepage .dyptych-container-mobile .dyptych {
    margin-bottom: var(--spacing-5);
}

.homepage .dyptych-container-mobile .dyptych .body {
    text-align: justify;
}

.homepage .dyptych-container-mobile .dyptych:nth-child(1) .body {
    margin-left: var(--spacing-5);
}

.homepage .dyptych-container-mobile .dyptych:nth-child(1) .title {
    text-align: end;
}

.homepage .dyptych-container-mobile .dyptych:nth-child(2) .body {
    margin-right: var(--spacing-5);
}

.homepage .dyptych-container .garnish {
    position: absolute;
    top: 45%;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--spacing-1);
    background-color: var(--brand-dark-gray);
    z-index: -1;
}

.homepage .dyptych .title {
    text-decoration-color: var(--dark-gray);
}

.logo-container {
    height: 5rem;
    z-index: 5;
}

a,
a:visited {
    color: color-mix(in srgb, var(--brand-red) 90%, black 20%)
}

img {
    object-fit: cover;
    border-radius: var(--spacing-1);
    margin: 2rem;
}

img.richtext-image {
    object-fit: contain;
    height: auto;
}

img.richtext-image.right {
    float: right;
    margin-right: 0;
}

img.richtext-image.left {
    float: left;
    margin-left: 0;
}

img.richtext-image.full-width {
    max-width: calc(100% - 4rem);

    display: block;
    margin-left: auto;
    margin-right: auto;
}

#container {
    min-height: 75vh;
}

/* Card Stack component */

.card-stack-card {
    position: sticky;
    min-height: 25rem;

    margin-top: 2rem;
    padding: var(--spacing-4);
    
    border: 1px solid transparent;
    border-radius: var(--spacing-1);
    
    background-color: var(--brand-light-gray);
    color: var(--near-black);

    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
}

.card-stack-card .title {
    margin-top: var(--spacing-1);
    text-decoration-color: var(--near-black);
}

.card-stack-card a,
.card-stack-card a:visited {
    font-weight: bold;
    color: var(--near-black);
}

details {
    border: 1px solid var(--light-gray);
    border-radius: var(--spacing-1);
    padding: var(--spacing-1);
}


details[open] summary {
    border-bottom: 1px solid var(--light-gray);
    margin: 0 -.25rem;
    padding: .25rem;
    padding-top: 0;
    margin-bottom: .5rem;

}

.card-stack-card:nth-child(1) {
    top: calc(1 * 2rem)
}

.card-stack-card:nth-child(2) {
    top: calc(2 * 2rem)
}

.card-stack-card:nth-child(3) {
    top: calc(3 * 2rem)
}

.card-stack-card:nth-child(4) {
    top: calc(4 * 2rem)
}

.card-stack-card:nth-child(5) {
    top: calc(5 * 2rem)
}

header {
    z-index: 2;
}

.template-info-page .splash-container img {
    height: initial;
}

.template-info-page .side-navigation-container {
    width: 34em;
    padding: 0 var(--spacing-2);
}

.template-info-page .copy-container {
    max-width: 45rem;
}

.template-info-page .side-navigation-container .menu {
    cursor: pointer;
}

.template-info-page .side-navigation-container .menu .submenu {
    display: none;
}

.template-info-page .side-navigation-container .menu.active .submenu {
    display: block;
}

.template-info-page a,
.template-info-page a:visited {
    color: color-mix(in srgb, var(--brand-red) 90%, black 20%)
}

footer {
    box-shadow: 0 -4px 5px 0px rgba(0, 0, 0, .05);
}

footer a,
footer a:visited {
    color: color-mix(in srgb, var(--brand-red) 90%, black 20%)
}


@media screen and (min-width: 35rem) {
    .flex-ns2 {
        display: flex;
    }

    .dn-ns2 {
        display: none;
    }

    .db-ns2 {
        display: block;
    }

    .logo-container {
        height: 7rem;
    }

    .splash-container {
        margin: 0 -8rem;
        position: relative;
        z-index: 1;
    }

    .splash-container img {
        object-fit: cover;
        width: 100%;
        height: 75vh;
    }

    .splash-container img {
        object-fit: cover;
        width: 100%;
        height: 75vh;
    }

    .homepage .splash-container {
        margin: 0 -16rem;
        min-height: 60vh;
    }

    .homepage .splash-container img {
        height: 85vh;
    }

    .homepage .splash-container video {
        width: 100%;
        height: 75vh;
    }

    .navigation-container .menu-container {
        /* prevent gaps in menu */
        font-size: 0;

    }

    .navigation-container .submenu {
        position: absolute;
        min-width: 30rem;
        top: 2rem;
        opacity: 0;
        transition: opacity 0;
    }

    .navigation-container .submenu.active {
        opacity: 100;
        transition-delay: 150ms;
        transition-duration: 400ms;
    }

    .navigation-container {
        max-width: 75rem;
        margin: 0 auto;
    }

    .navigation-container #navigation-drawer {
        background-color: var(--brand-bg);
        position: absolute;
        top: 6rem;
        left: 0;
        right: 0;
        height: 1rem;
        transition: height 300ms;
    }

    .navigation-container #navigation-drawer.active {
        box-shadow: 0 4px 5px 0px rgba(0, 0, 0, .2);
    }

    .homepage .dyptych-container {
        display: flex;
        justify-content: space-around;
        margin: 0 calc(var(--spacing-6) * -1);
        margin-top: var(--spacing-5);
        position: relative;
    }

    .homepage .dyptych-container .garnish {
        position: absolute;
        top: 45%;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: -1;
    }

    .homepage .dyptych {
        margin: var(--spacing-4);
        padding: var(--spacing-3);
        min-height: 25rem;
        color: var(--light-gray);
        max-width: 30em;
    }

    .homepage .dyptych a,
    .homepage .dyptych a:visited {
        font-weight: bold;
        color: white;
    }

    .homepage .dyptych:nth-child(2) {
        margin-bottom: var(--spacing-5);
    }

    .homepage .dyptych:nth-child(3) {
        margin-top: var(--spacing-5);
    }

    .homepage .dyptych .title {
        text-decoration-color: var(--near-white);
    }

    .template-info-page .splash-container img {
        height: 75vh;
    }

    .peeking-container {
        margin-top: calc(var(--spacing-6) * -1);
        position: relative;
        z-index: 2;
        background-color: var(--brand-bg);
    }
}