:root {
    color: rgb(253, 246, 236);
    background-color: black;
    --fs-sm: clamp(0.8rem, 0.14vi + 0.76rem, 0.94rem);
    --fs-base: clamp(1rem, 0.26vi + 0.93rem, 1.25rem);
    --fs-md: clamp(1.25rem, 0.44vi + 1.14rem, 1.67rem);
    --fs-lg: clamp(1.56rem, 0.69vi + 1.39rem, 2.22rem);
    --fs-xl: clamp(1.95rem, 1.06vi + 1.69rem, 2.96rem);
    --fs-xxl: clamp(2.44rem, 1.58vi + 2.05rem, 3.95rem);
    --fs-xxxl: clamp(3.05rem, 2.33vi + 2.47rem, 5.26rem);
    --col-black: black;
    --col-white: rgb(253, 246, 236);
}

/* – – – – – – */
  /* TYPOGRAPHY */
  /* – – – – – – */

@font-face {
    font-family: 'bastardolight';
    src: url('../fonts/BastardoGrotesk-Light.woff2') format('woff2'),
         url('../fonts/BastardoGrotesk-Light.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

h1 {
    font-size: var(--fs-xxl);
    padding-bottom: 36px;
}

p {
    font-size: var(--fs-base);
}

a {
    font-size: var(--fs-base);
}

a:link {
    color: var(--col-white);
}

a:visited {
    color: var(--col-white);
  }
  
a:hover {
    color: var(--col-white);
  }
  
a:active {
    font-weight: bold;
  }


  /* – – – – – – */
  /* LAYOUT ELEMENTS */
  /* – – – – – – */


body {
    font-family: 'bastardolight';
    font-size: var(--fs-base);
}

main {
    margin: 144px 36px 144px 36px;


}

  /* – – – – – – */
  /* NAV & Footer */
  /* – – – – – – */

header {
    position: fixed;
    width: 100%;
    background-color: var(--col-black);
    top: 0px;
    left: 0px;
    padding: 36px 36px 12px 36px;
    z-index: 100;
}

.logo {
    text-decoration: none;
}

nav {
    position: fixed;
    right: 36px;
    top: 36px;
    display: flex;
    flex-direction: row;
    gap: 48px;
}
ul {
    list-style-type: none;
}

li {
    display: inline-block;
    padding-left: 1rem;
}

.language li{
    display: inline-block;
    padding-left: 0.5rem;
}

.active {
    text-decoration: underline;
  }

.active-lang {
    font-weight: bold;
    stroke: 1px;
  }

footer {
    position: fixed; 
    padding: 36px;
    width: 100%;
    bottom: 0px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    background-color: var(--col-black);
}

  /* – – – – – – */
  /* LANDING */
  /* – – – – – – */

section {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}

.intro {
    font-size: var(--fs-lg);
    width: 60%;
}

.intro a:link {
    text-decoration: underline;
}

.section-content {
    font-size: var(--fs-base);
    width: 30%;
}

.main-gallery {
    padding-top: 72px;
    display: flex; 
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
}

.main-gallery img {
    border-radius: 36px;
    width: 30rem;
    height: 20rem;
    
}
/* – – – – – – */
  /* PROJECTS */
  /* – – – – – – */



.projects {
    display: flex; 
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
}

.projects li {
    display: inline-block;
    width: auto;
    height: auto;
    position: relative;
    padding: 0px;
    
}

.projects li figure {
    display: block;
    width: 100%; 
    height: auto;
    margin: 0;    
}

.projects img {
    border-radius: 36px;
    width: 30rem;
    height: 20rem;
}

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .2s ease;
    background: var(--col-black);
  }

.projects li:hover .overlay {
    opacity: 1;
  }

  .text {
    color: var(--col-white);
    font-size: var(--fs-lg);
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
  }


 /* – – – – – – */
  /* MEDIA QUERIES */
  /* – – – – – – */
  
@media (width < 70rem) {
    main {
        margin: 144px 12px 144px 12px;
    }

    section {
        flex-direction: column;
    }

    .section-content {
        padding-top: 48px;
    }

    .intro {
        width: 100%;
    }

    header {
        padding: 12px;
    }
}

@media (width < 50rem) {
    .logo {
        visibility: hidden;
    }

    nav {
        left: 12px;
        padding: 0;
        gap: 0;
        width: 100%;
        justify-content: space-between;
        top: 24px;
    }
    
    li {
        padding-left: 0;
        padding-right: 1rem;
    }

    .language li{
        padding-left: 0rem;
    }
    footer {
        padding: 12px;
    }
}