:root{
    --color-primary: #281E14;
    --container-width: 60em;
    --h1-size:40px;
    --h2-size:32px;
    --h3-size:25px;
    --p-size:20px;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--color-primary);
}

*{
  box-sizing: border-box;
  margin: 0;
}

html {
  width: 100%;
}

body {
  width: 100%;
  overflow-x: hidden;
  background-color: #FFFEF2;
}

img {
  display: block;
  max-width: 100%;
}

.wrapper{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container{
    margin-top: 3em;
    margin-bottom: 6em;    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: var(--container-width);
    gap: 2em;
}

.section{
    width: 100%;
}

h1{
    font-size: var(--h1-size);
    margin-bottom: calc(var(--h1-size)*0.75);
    margin-top: calc(var(--h1-size)*1.25);
    line-height: calc(var(--h1-size)*1.3);
}
h2{
    font-size: var(--h2-size);
    margin-bottom: calc(var(--h2-size)*0.75);
    margin-top: calc(var(--h2-size)*1.25);
    line-height: calc(var(--h2-size)*1.3);
}
h3{
    font-size: var(--h3-size);
    margin-bottom: calc(var(--h3-size)*0.75);
    margin-top: calc(var(--h3-size)*1.25);
    line-height: calc(var(--h3-size)*1.3);
}
p{
    font-size: var(--p-size);
    margin-bottom: var(--p-size);
    line-height: calc(var(--p-size)*1.5);
}

a{
    font-size: var(--p-size);
}

.contacts>h2{
    margin-top: 0;
}

a:link,a:visited,a:hover{
    text-decoration: none;
    color: inherit;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--p-size)*0.5) calc(var(--p-size)*2);
    border-radius: var(--p-size);
    font-size: calc(var(--p-size)*0.75);
    transition: opacity 0.25s ease-in;
}

.btn:hover{
    opacity: 0.8;
}

.btn.primary{
    background-color: var(--color-primary);
    color: white;
}
.btn.secondary{
    border: calc(var(--p-size)*0.1) solid var(--color-primary);
    color: var(--color-primary);
}

.btn.backward{
    width: fit-content;
    padding: calc(var(--p-size)*0.5) var(--p-size);
    border: 1px solid #281E14;
}

.header{
    display: flex;
    flex-direction: row;
    gap: calc(var(--p-size)*2);
    align-items: start;
}

.avatar{
    width: calc(var(--p-size) * 20);
    aspect-ratio: 1/1;
    border-radius: 1000px;
    border: solid calc(var(--p-size)*0.2) #FF9000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar>img{
    object-fit: cover;
}

.profile-detail{
    padding-right: 5em;
}

#name{
    margin-bottom: 0;
    margin-top: 0;
}

#role{
    display: block;
    font-weight: 600;
    font-size: var(--p-size);
    margin-top: calc(var(--p-size)*0.5);
    margin-bottom: calc(var(--p-size)*1.25);
}

.description>p{
    font-size: calc(var(--p-size)*0.8);
    margin-bottom: calc(var(--p-size)*1.25);
}

.actions{
    display: flex;
    gap: calc(var(--p-size) * 0.5);
}

.three-items-gallery, .four-items-gallery{
    display: grid;
    grid-template-columns: auto auto;
    gap:1em;
    width: 100%;
    margin: 0;
    padding: 0;
}

.three-items-gallery{
    grid-template-columns: auto auto auto;
}

.case-card{
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--p-size)*1.5);
    width: 100%;
    border: solid calc(var(--p-size)*0.1) #D4D1C6;
    border-radius: var(--p-size);
    overflow: hidden;
    padding-bottom: calc(var(--p-size)*1.5);
    transition: opacity 0.25s ease-in;
}

.case-card:hover{
    opacity: 0.8;
}

.case-card>a{
    padding: 0 calc(var(--p-size)*2) 0 calc(var(--p-size)*1.5);
}

.case-card-cover>img{
    width: 100%;
    aspect-ratio: 2/1;
    object-fit: cover;
}

.separator{
    width: 100%;
    height: calc(var(--p-size)*0.1);
    background-color: #D4D1C6;
}

.illustration{
    border-radius: var(--p-size);
    margin-bottom: calc(var(--p-size)*2);
}

@media screen and (max-width: 1280px) {
  :root {
    --container-width: 50em;
    --h1-size:36px;
    --h2-size:29px;
    --h3-size:23px;
    --p-size:18px;
  }
    .three-items-gallery{
        overflow-x: scroll;
    }
    .three-items-gallery>li{
    width: 20em;
    }
}

@media screen and (max-width: 960px) {
  :root {
    --container-width: 40em;
    --h1-size:31px;
    --h2-size:25px;
    --h3-size:20px;
    --p-size:16px;
  }
    .container{
        width: 100%;
        padding: 0 var(--p-size);
        min-width: var(--container-width);
    }
}

@media screen and (max-width: 640px) {
  :root {
    --container-width: 30em;
    --h1-size:26px;
    --h2-size:21px;
    --h3-size:17px;
    --p-size:14px;
  }

  .description>p{
    font-size: var(--p-size);
    margin-bottom: var(--p-size);
    }
    .avatar{
        display: none;
    }
.profile-detail{
    padding-right: 0;
}
}

@media screen and (max-width: 480px) {
  :root {
    --container-width: 20em;
    --h1-size:25px;
    --h2-size:20px;
    --h3-size:16px;
    --p-size:12px;
  }
    .three-items-gallery>li{
        width: 18em;
    }
    .four-items-gallery{
        grid-template-columns: auto;
    }
}