/*  Reset */

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
ul, li{
    list-style-type: none;
}
iframe{
    border: 0;
}
input {
    border-radius: 0;
    -webkit-appearance: none;
}
:focus{
    border: 0px;
    outline: none;
}
:root{
    --color: #ecebdd;
    --color-2: rgb(0, 112, 58);
    --font-size-1: 1.2rem;
    --font-size-2: 1.75rem;
    --font-size-3: 0.7rem;
    --font-size-4: 0.4rem;
    --font-size-5: 0.6rem;
}
html {
	scroll-behavior: smooth;
}

/*  Typography */

@font-face {
    font-family: 'magister_engraved';
    src: url('fonts/magister-extendendengraved.woff2') format('woff2'),
         url('fonts/magister-extendendengraved.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'ibmbook';
    src: url('fonts/ibm-book.woff2') format('woff2'),
         url('fonts/ibm-book.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}
body, html, h1, h2, h3, h4, ::placeholder, input, button, small{
    font-family: 'ibmbook', Arial, Helvetica, sans-serif;
    letter-spacing: 0.01em;
    font-size: 38px;
    line-height: 1.25em;
    font-weight: normal;
    font-style: normal;
}
body, html{
    background-color:var(--color);
}
a{
	color: initial;
	text-decoration: none;
}
p a:hover{
	color: initial;
	text-decoration: none;
    border-bottom: 1px black solid;
}
div p{
    margin-bottom: 1em;
}

/* Header & Footer */

h1{
    font-family: 'magister_engraved';
    font-size: 10vw;
    line-height: 1.1em;
    text-align: center;
    height: calc(100% - 1em);
    display: flex;
    align-items: center;
}
header{
    padding: 1em;
}
nav{
    position: fixed;
    bottom: 1em;
    left: 1em;
    z-index: 10;
    font-size: var(--font-size-4);
}
.menu{
    display: flex;
    gap: 1em;
}
body.menu-open .menu{
    display: none;
}
[data-menu-close]{
    display: none;
}
[data-menu-close]::after{
    content: 'Close';
}
body.menu-open [data-menu-close]{
    display: inline;
}
.button{
    text-transform: uppercase;
    background-color: var(--color);
    border-radius: 2em;
    padding: 0.5em 1em;
    box-shadow: 0.25em 0.25em 1em rgba(0, 0, 0, 0.5);
    transition: background-color 0.5s ease-in-out;
    cursor: pointer;
    letter-spacing: 1px;
}
.button:hover{
    background-color: #fefdf5;
    border-bottom: 0;
}
.modal{
    background: var(--color-2);
    display: flex;
    align-items: center;
    width: 20em;
    height: calc(20em / 8 * 5);
    font-size: var(--font-size-3);
    line-height: 1.25em;
    text-align: center;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(250%) rotate(100deg);
    box-shadow: 0.25em 0.25em 1em rgba(0, 0, 0, 0.5);
    cursor: pointer;
}
body.modal-enter .modal{
    animation: card-enter 0.7s ease forwards;
}
body.modal-leave .modal{
    animation: card-leave 0.7s ease forwards;
}
@keyframes card-enter{
    0%{
        transform: translateX(-50%) translateY(100%) rotate(100deg);
    }
    100%{
        transform:  translateX(-50%) translateY(-50%) rotate(-10deg);
    }
}
@keyframes card-leave{
    0%{
        transform:  translateX(-50%) translateY(-50%) rotate(-10deg);
    }
    100%{
        transform: translateX(-50%) translateY(-300%) rotate(-180deg);
    }
}
footer p{
    padding: 1em;
}
footer p{
    margin-bottom: 0;
}
footer p:last-child, footer p:first-child{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}
footer p:first-child{
    top: 0;
}
footer .logo{
    padding:0;
}
footer .logo::after{
    content: 'Strategic Footprints';
    font-family: 'magister_engraved';
    font-size: 2.2em;
    line-height: 1.1em;
    text-align: center;
    opacity: 0.1;
    margin  : 0;
}
/* Home */
header{
    height: 90vh;
    position: sticky;
    top: 0;
}
.project-slides{
    position: sticky;
    top: 0;
    background: var(--color);
}
.about a{
    display: inline-flex;
}
.about a span{
    border-bottom: 2px black solid;
    display: inline-flex;
    pointer-events: none;
}
.about a::after{
    content: ',';
    border-bottom: 0px;
}
.about a:last-child::after{
    content: '.';
    border-bottom: 0px;
}
h3 a{ 
    width: 100%;
    height: calc(90vh - 2em);
    font-size: var(--font-size-2);
}
h3 a span{
    display: block;
    line-height: 1.2em;
}
h3 a span:first-child{
    text-transform: uppercase;
}
.project-slide.home-services{
    height: auto;
    padding-bottom: 5em;
    box-shadow: none;
}

/* Projects */

.overlay{
    background: rgba(0, 112, 58, 0.9);
    width: 100%;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    overflow: scroll;
    background-blend-mode: multiply;
}
body[data-layer="2"] {
    overflow: hidden;
}
body[data-layer="2"] main:first-child{
    filter: blur(0.2em);
}

.projects-grid{
    font-size: var(--font-size-3);
    padding: 1em 1em 4em 1em;
}
.projects-grid div{
    border-top: 1px black solid;
    padding: 0.25rem 0.5rem;
}
.projects-row{
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
}
.projects-row span:last-child{
    text-align: right;
}
div.grid-header{
    border-top: none;
    font-size: var(--font-size-4);
    text-transform: uppercase;
}
.project-thumb{
    position: fixed;
    bottom: 1em;
    right: 1em;
    width: 10em;
    pointer-events: none;
    display: none;
}
.projects-grid div:hover .project-thumb{
    display: block;
}

/* Project */
h2{
    text-align: center;
    font-size: var(--font-size-1);
    line-height: 1.1em;
}
h2 span{
    display: block;
}
.slide-images{
    top: 0;
    width: 100%;
/*     height: 90vh;
 */    box-shadow: 0 0 1em rgba(0, 0, 0, 0.3);
    background: var(--color);
}
.slides-text{
    padding: 1em 1em 3em 1em;
    width: 100%;
    height: auto;
}
.landing{
    position: relative;
}
.landing h3{
    font-size: var(--font-size-2);
    padding-top: 1em;
    text-align: center;
    display: block;
    position: absolute;
    width: 100%;
    top: 0;
}
.landing h3 span{
    display: block;
    line-height: 1.2em;
}
.landing h3 span:first-child{
    text-transform: uppercase;
}

.slides-credits{
    height: auto;
    min-height: 50vh;
    padding: 1rem;
    font-size: var(--font-size-5);
    line-height: 1.25em;
    columns: 2;
}
.slides-credits p{
    break-inside: avoid;
}    
.slides-images{
/*     height: 90vh;
 */    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}
.slides-images figure{
    width: 100%;
    height: 100%;
}
.slides-images[data-images-count="2"] figure{
    width: 50%;
/*     height: 100%;
 */}
.slides-images figure img{
    width: 100%;
/*     height: 100%;
    object-fit: cover;
 */    pointer-events: none;
    display: block;
}
.asc::after{
    padding-left: 0.5em;
    content: '👆';
}
.desc::after{
    padding-left: 0.5em;
    content: '👇';
}
/* Profile */
.overlay h2, .home-services h2{
    padding: 1.5em 1.5em 1em 1.5em;
}
.profile-content, .newsletter{
    margin: auto;
    max-width: 40em;
    padding: 0 1em;
    font-size: var(--font-size-3);
    line-height: 1.25em;
}
.services.profile-content, .home .profile-content{
   columns: 2; 
}
.profile.profile-content{
    columns: 1;
}
.profile-content p, .home-services p{
    break-inside: avoid;
}
b, strong{
    font-weight: normal;
    border-bottom: 2px black solid;
    margin-bottom: 1em;

}

/* Event */
header, .block{
    padding: 0.75rem 1rem 1rem 1rem;
    box-shadow: 0 0 1em rgba(0, 0, 0, 0.5);
    background-color:var(--color);
}
.article-title{
    text-align: center;
    margin-bottom: 1em;
}
.entry{
    margin-bottom: 1em;
}
.article-content{
    cursor: pointer;
}
.article-thumb{
    display: block;
    pointer-events: none;
    line-height: 0;
    display: flex;
    margin-top: 5em;

}
.article-sticky{
    position: sticky;
    top: 2em;
}

.article-thumb img{
    width: auto;
    height: 15em;
    box-shadow: 0 0 1em rgba(0, 0, 0, 0.5);
    margin: auto;
}
.article-details .entry{
    display: grid;
    grid-template-columns: 1fr 2fr;
}
.columns{
    display: flex;
    flex-wrap: wrap;
}
.columns div{
    width: 50%;
}
.newsletter input{
    font-size: var(--font-size-3);
    border: 0;
}
.newsletter input::placeholder{
    font-size: var(--font-size-3);
}
.newsletter .button{
    font-size: var(--font-size-4);
    width: auto;
}
.newsletter input[type="email"], .newsletter input[type="text"]{
    background-color: transparent;
    border-bottom: 2px black solid;
    width: 100%;
    margin-bottom: 1em;
}
.newsletter-wrapper{
    display: grid;
    grid-template-columns: auto min-content;
    gap: 1em;
}
.newsletter #mc_embed_signup div.mce_inline_error{
    background-color: transparent;
    color: rgba(0, 0, 0, 0.5);
    font-weight: normal;
    padding: 0.5em 0;
}

/*  Media Query */
@media only screen and (max-width: 768px) {
    body, html, h2, h3, h4, ::placeholder, input, button, small{
        font-size: 18px;
    }
    h1{
        font-size: 12vw;
        height: 60vh;
    }
    .columns{
        display: block;
    }
    .about a span{
        border-bottom: 1px black solid;
    }
    :root{
        --font-size-2: 1.5rem;
        --font-size-3: 0.8rem;
        --font-size-4: 0.5rem;
        --font-size-5: 0.6rem;
    }
    b, strong {
        border-bottom: 1px black solid;
    }
    .menu{
        display: block;
    }
    .menu li{
        display: inline-flex;
        padding: 1em 1em 0 0;
    }
    .services.profile-content, .home .profile-content, .slides-credits {
        columns: 1;
    }
    .slides-images {
        height: auto;
    }
    .slides-images[data-images-count="2"] figure {
        width: 100%;
        line-height: 0;
    }
    .slides-images figure{
        line-height: 0;
    }
    .grid-header span:first-child,  .grid-header span:last-child{
        display: none;
    }
    .projects-row{
        position: relative;
        grid-template-columns: 1fr;
    }
    .projects-row span:last-child {
        text-align: right;
        position: absolute;
        right: 0.5rem;
        top: 0;
    }     
    .profile-content {
        line-height: 1.25em;
    }   
}
