/* Matt Brictson reset */

:root {
    line-height: 1.5;
}

h1, h2, h3, h4, h5, figure, p, ol, ul {
    margin: 0;
}

ol, ul {
    list-style: none;
    padding-inline: 0;
}

h1, h2, h3, h4, h5 {
    font-size: inherit;
    font-weight: inherit;
}

img {
    display: block;
    max-inline-size: 100%;
}



* {
    box-sizing: border-box;
}

/* End reset */




/* fonts */

/* commissioner-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'commissioner-gwh';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/commissioner-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* commissioner-700 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'commissioner-gwh';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/commissioner-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }




/* Variables */

* {
    --foundation: #2B2B2B;
    --base: #AFAEAE;
    --spotlight: #3C3C3C;
    --highlight: #515151;
    --halflight: #373737;
    --emphasis: #BCBCBC;
    --support: #a3a3a3;
}

/*  */


body {
    font-family: 'commissioner-gwh';
    margin: 0;
    background-color: var(--foundation);
    color: var(--base);
    font-size: 23px;
}

a {
    color: var(--emphasis);
}

/* @media (max-width:1024px) {
    #header {
        width: 190px;
    }    
}
@media (max-width:1280px) and (min-width:1025px) {
    #header {
        width: 27vw;
    }    
}
@media (min-width:1281px) {
    #header {
        width: 260px;
    }    
} */

.icon-links a {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 6px;
    background-repeat: no-repeat;
    border-bottom: none;
    background-position: center;
    background-size: 24px 24px;
    /* padding: 18px; */
    /* opacity: 0.75; */
    /* border-radius: 8px; */
    opacity: 0.4;

 
}

.icon-links a:hover {
opacity: 1;
}

.icon-links .x {
    background-image: url('../img/link-x.svg');
}

.icon-links .instagram {
    background-image: url('../img/link-instagram.svg');
}

.presteignlink {
    display: block;
    position: absolute;
    top: 24px;
    right: 24px;
    height: 48px;
    width: 48px;
    background-image: url('../img/presteign-seal.png');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: .8;
    /* opacity: .5;
    mix-blend-mode: luminosity; */

}

#header {
    /* width: 18vw; */
    min-width: 200px;
    max-width: 260px;
}

.logo {
    padding: 1.5rem 0;
    margin: 0 1.5rem;
    border-bottom: 1px solid var(--highlight);
    /* position: fixed; */
    font-size: 1rem;
    line-height: 1.3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--support);
    img, h2 {
        margin-bottom: 1rem;
    }
    img {
        width: 160px;
    }
    /* h2 {
        max-width: 15ch;
    } */
}

.entries ul {
    display: flex;
    flex-direction: column;
    /* padding-top: 1.25rem; */
}

.entries li {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.entries a {
    width: 100%;
    height: 100%;
    display: flex;
    /* background: no-repeat center center; */
    background-repeat: no-repeat;
    background-position: center center;
    /* background-size: 75%; */
    img {
        width: auto;
        height: auto;
        max-width: 100%;
        opacity: 0.4;
    }    
    opacity: 0.4;
}

a.active {
    background-color: var(--highlight);
    img {
        opacity: 1;
    }
    opacity: 1;
}

.entries a:hover {
    background-color: var(--halflight); 
    opacity: 0.6;
}

.entries a.active:hover {
    background-color: var(--highlight);
    opacity: 1;
}

#page-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.navbar, .entries ul {
    display: flex;
    flex-direction: column;
}

.navbar {
    height: 100vh;
}

.entries {
    overflow-y: scroll;
}

#content-area {
    display: flex;
    /* flex-grow: 1; */
    justify-content: center;
    align-items: center;
}

.page-content {
    width: 120vh;
    max-width: 1280px;
    display: flex;
    height: 100vh;
    flex-direction: column;
    /* aspect-ratio: 1.2 / 1; */
}

#content-area {
    transition: all 250ms ease;
}

/* .db-image {
    aspect-ratio: 8 / 5;
    max-height: 75vh;
    background-color: aquamarine;
}  */

.page-content img {
    /* aspect-ratio: 8 / 5; */
    max-width: 100%;
    /* min-height: 50vh; */
    /* max-height: 75vh; */
    object-fit: contain;
    /* display: none; */
    /* max-height: 75vh; */
}

.db-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:space-between;
    /* min-height: 25vh; */
    /* max-height: 50vh; */
    flex-grow: 1;
    padding: 1em 3vw;
    /* inline-size: min-content; */
    .meta {
        opacity: 0;
        transition-duration: 800ms;
        transition-property: all;
        font-size: 18px;
        span {
            font-size: 16px;
            display: inline-block;
            margin: 2px 8px;
            opacity: .7;
        }
    }
    background-color: var(--spotlight);
}

.db-text:hover {
    .meta {
        opacity: 0.5;
    }
}

.db-text p {
    max-width: 73ch;
    text-wrap: balance;
}


@supports (height: 100dvh) {
    .navbar {
        height: 100dvh;
    }
    .page-content {
        width: 120dvh;
        height: 100dvh;
    }
}

/* @media(max-width: 1280px) and (min-height: 960px)   { */
/* @media all and (orientation: portrait) { */
/* @media (min-aspect-ratio: 2.7 / 1) {
    .page-content {
        flex-direction: row;
        width: 80vw;
        max-width: inherit;
        height: 26.4vw;
    }
    .page-content img {
        max-height: 100%;
    }
    .db-text p {
        height: min-content;
    }
    .db-image {
        width: 170vh;
    }
} */



@media (max-height: 860px) {
    .logo {
        padding: 1.25rem;
        /* position: fixed; */
        /* font-size: 1rem; */
        /* line-height: 1.3rem; */
        img, h2 {
            margin-bottom: .8rem;
        }
        img {
            width: 130px;
        }
        /* h2 {
            max-width: 15ch;
        } */
    }
    .entries li {
        height: 110px;
        /* a {
            background-size: 63%;
        } */
    }
}

@media (max-aspect-ratio: 5 / 3.5) {
    .page-content {
        width: auto;
        max-width: 1280px;
    }    
}

/* @media (max-height: 480px) and (max-aspect-ratio: 2.7 / 1) { */
    @media (max-height: 480px) {

    .db-text p {
        max-width: inherit;
        text-wrap: inherit;
        font-size: 1rem;
        
    }
    .db-text {
        justify-content: center;
    }
    .meta {
        display: none;
    }
}

@media (max-aspect-ratio: 5 / 6) {
    #page-wrapper {
        flex-direction: column;
    }
    .page-content {
        height: 80vh;
    }
    #header {
        width: 100%;
        max-width: inherit;
        height: 20vh;
        /* min-height: 215px; */
    }

    #home-h {
        display: block !important;
        position: relative;
        left: -3px;
    }

    #home-v {
        display: none;
    }

    .logo {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem;
        /* padding: 0.5rem 1rem 1.4rem 1rem; */
        align-items: stretch;
        margin: 0;
        img {
            width: 160px;
        }
        img, h2 {
            margin-bottom: inherit;
        }
        /* h2 {
            max-width: inherit;
        } */
      
        .tagline {
            display: flex;
            flex-direction: row;
            flex-grow: 1;
            align-items: flex-end;
            gap: 1rem;
        }
        .icon-links {
            display: flex;
            flex-direction: row;
            gap: .5rem;
            a {
                margin: 0;
            }
            /* flex-grow: 1; */

        }
        
    }

    /* .tagline {
        flex-grow: 1;
    } */

    .navbar {
        height: inherit;
        display: flex;
        flex-direction: column;
        justify-content:space-evenly;
    }

    .entries {
        /* overflow-x: scroll;
        overflow-y: hidden; */
        overflow-y: hidden;
        overflow-x: scroll;
        padding: 0;
        ul {
            width: max-content;
            flex-direction: row;
            li {
                width: 150px;
                height: 100px;
                a {
                    background-size: 75%;
                }
            }
        }
    }

    .presteignlink {
        display: block;
        position: inherit;
    }

    @media (max-width: 480px) {
        /* .navbar {
            justify-content: space-between;
        } */
        .db-text {
            font-size: 1.15rem;
            padding: 2rem 3rem;
            justify-content: center;

        }

        /* #header {
            max-height: 198px;
        } */

        #home-h {
            display: flex !important;
        }

        .logo {
            display: flex;
            padding: 1rem;
            img {
                /* max-width: 120px;
                min-width: 112px; */
                width: 112px;
            }
            .tagline {
                gap: .75rem;
                align-items: center;
                h2 {
                    max-width: 110px;
                }
            }
            
            .icon-links {
                flex-direction: column;
            }
        }
        .page-content {
            height: inherit;
        }
        @supports (height: 100dvh) {
            /* .page-wrapper {} */
            .page-content {
                height: 70dvh;
            }
            #header {
                height: 30dvh;
                /* height: inherit; */
            }
        }
        .meta {
            display: none;
        }
        /* .presteignlink {
            width: 36px;
            height: 36px;
            top: 16px;
            right: 16px;
            opacity: .4;
        } */
    }
}

@media (min-height: 1280px) {
    .page-content {
        max-height: 1280px;
    }
}

