
:root{
    --darkcream: #d7d4c4;
}

/* Reset */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header */
.header{
    background-color: var(--darkcream);
    position: sticky;
    top: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    z-index: 999;
    height: 4em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px double var(--lightgrey);
}


/* Logo */
.identity {
    font-size: 1.4em;
	font-family: goudy-old-style, serif;
    font-weight: 400;
    font-style: italic;
	display: inline-block;
    margin: 0 0 0 0;
    padding: 0 0 0 1em;
    letter-spacing: 0.05em;
    position: relative;    
       

}

/* Nav menu */
.nav {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    background-color: var(--darkcream);
    overflow: hidden;
    display: block;
    text-align: center;
    z-index: -1;
    border: none;
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    line-height: 1em;
    
}


.nav ul > li:first-of-type {
	padding-top: 25vh;
}

.nav li {
	padding: 1.2em;
	list-style: none;
}

.menu a{
    display: block;
    font-size: 1.4em;
    font-family: goudy-old-style, serif;
    font-weight: 400;
    font-style: normal;
    color: var(--orange);
    padding: 0 0 0 0;
    margin: 0;
    border: none;
    letter-spacing: 0.1em;
}

.menu a:hover{
    background-color: var(--darkcream);
}

.nav{
    max-height: 0;
    transition: max-height .5s ease-out;
}

/* Menu Icon */

.hamb{
    cursor: pointer;
    float: right;
    padding: 2em 2em 2em 0;
}


.hamb-line {
    background: var(--black);
    display: block;
    height: 2px;
    position: relative;
    width: 24px;
}

.hamb-line::before,
.hamb-line::after{
    background: var(--black);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
	}

.hamb-line::before{
    top: 6px;
}

.hamb-line::after{
    top: -6px;
}


.side-menu {
    display: none;
}

/* Toggle menu icon */

.side-menu:checked ~ nav{
    max-height: 100%;
}

.side-menu:checked ~ .hamb .hamb-line {
    background: transparent;
}

.side-menu:checked ~ .hamb .hamb-line::before {
    transform: rotate(-45deg);
    top:0;

}

.side-menu:checked ~ .hamb .hamb-line::after {
    transform: rotate(45deg);
    top:0;
}


/* Responsiveness */


@media (min-width: 768px) {

    .identity {
        margin-left: 2.0em;
        padding-left: 0em;
    }
    
    .nav {
        align-items: center;
        
    }
    .nav ul > li:first-of-type {
        
    }
    
    .nav li {
        padding: 2.0em;
    }
    
}

@media (min-width: 1200px) {
    
    .header {
        block-size: fit-content;
        padding: 1.0em 0;
    }
    
    .identity {
        width: 35%;
        font-size: 1.6em;
    }
    
    .nav{
        max-height: none;
        top: 0;
        position: relative;
        width: 100%;
        height: 100%;
        float: right;
        width: fit-content;
        background-color: transparent;
        line-height: 1em;
        margin-right: 3em;
        border: none;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        
    }
    
    
    
    .menu a {
        position: relative;
        display: inline-block;
        width: 100%;
        height: 100%;
        font-size: 1.0em;
        padding: 0 0 0 2em;
        margin: 0 0 0 0;
        border: none;
        line-height: 1em;
        
    }
    
    .menu li{
        float: left;
    }
    
    
    .nav ul > li:first-of-type {
        padding-top: 0;
    }
    
    .nav li {
        padding: 0;
    }
    
    .menu a:hover{
        background-color: transparent;
        color: var(--black);
        
    }
    
    .hamb{
        display: none;
    }
}