/* CSS */

:root {
    --main-color:#f65058;
    --second-color:#F79B9F;
 

}

[lang="en"]{
    display:none;
}

body {
    scroll-behavior: smooth;
}

@media screen and (max-width: 640px) {
    * {
        font-size: 16px;
    }

    section h1, section h1 span {
        font-size: 1rem;
    }

    header p span {
        font-size: 1rem;
    }

    #presentation p, #presentation em, header h1, header h1 small, header p {
        font-size: 1rem;
        font-weight: normal;
    }

    #research ul {
        margin: -1rem 0rem 1rem 1.5rem;
    }

    footer li, footer li a {
        font-size: 1rem;
    }

    body {
        padding: 0 0.8rem;
    }
    
}

@media screen and (min-width: 640px) {
    * {
        font-size: 22px;
    }

    section h1, section h1 span {
        font-size: 1.35rem;
    }


    header p span {
        font-size: 1.35rem;
    }

    #presentation p, #presentation em, header h1, header h1 small, header p {
        font-size: 1.35rem;
        font-weight: normal;
    }

    #research ul {
        margin: -1rem 0rem 1rem 3rem;
    }

    footer li, footer li a {
        font-size: 0.7rem;
    }

    body {
        padding: 0 2rem;
    }
    
}

* {
    font-family: 'work-avec';
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-font-smoothing: antialiased;
    font-smoothing: antialiased;
    font-smooth: never;
    -moz-font-smooth: never;
}



body {
    max-width: 50rem;
    margin: 0 auto;
    padding-bottom: 5rem;
}

header{
    padding-top: 2rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}


header p, header h1 { 
   align-self: flex-start;
   vertical-align: top;
}

header p {
    cursor: pointer;
}

header p:hover{
    opacity: 0.4;
}

section {
    margin-top: 2rem;
}

section:first-of-type {
    margin-top: 0rem;
}

section h1 {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px var(--main-color) solid;
    margin-bottom: 1rem;
    color: var(--main-color);
    font-weight: normal;
    padding-top:1rem;
}





section h1 a {
    color: currentColor;
    text-decoration: none;
    padding-right: 0.5rem;
}



header h1{
    color: var(--main-color)
}

header h1 small {
    display:block;
}

header h1 a, header h1 a:visited {
    text-decoration: none;
    color: currentColor;
}

header h1 a:hover {
    colore: var(--second-color)
}


/* presentation */

#presentation aside p {
    font-size: 1rem;
    margin-left: 2rem;
}



#presentation sup{
    font-family: 1rem;
    color: var(--main-color);
    font-weight: bold;
    padding-left: 0.3rem;
    line-height: 0;
}

#presentation a {
    color: currentColor;
    text-decoration: none;
}

#presentation a:hover {
    color: var(--second-color);
}








/* WORKS */

#works figure img {
    width:100%;
}


@supports (display: grid) {
    #content-works {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
      grid-gap: 1rem;
    }
}

#works a {
    color: currentColor;
    text-decoration: none;
}

#works figcaption:before {
    content: "⟡";
    padding-right: 1rem;
    font-weight: bold;
}

#works a:hover{
    color:var(--main-color)
}

#works figure img:hover {
    -webkit-filter: brightness(50%);
    color:var(--main-color);
}



/* Research */

#research p {
    margin-bottom: 1rem;
}
 
#research ul {
    list-style-position: inside;
    list-style-type: none;
    counter-reset: liresearch;
    

}



#research p, #research ul{
    max-width: 42rem;
    /* hyphens: auto; */
}


#research ul li {
    counter-increment: liresearch;
    margin-left: 0.3rem;
}

#research ul li::before {
    content: counter(liresearch) ")";
    display:block;
    /* padding-left: 0.3rem; */
    position:relative;
    top: 1.3rem;
    left: -2rem;
    width: 40px;
}


/* research activity */



#research-activity h2 {
    font-size: 0.8rem;
    text-transform: uppercase;
    padding-bottom: 0.8rem;
    margin-top: 1.5rem;
}




#research-activity ul {
    list-style-position: inside;
    list-style-type: none;
    margin: -1rem 0rem 3rem 2rem;
    max-width: 42rem;
}

#research-activity ul li{
    /* margin-bottom: 0.5rem; */
}

#research-activity ul li:before {
    content: "⟡";
    display:block;
    position:relative;
    font-weight: bold;
    top: 1.3rem;
    left: -2rem;
    /* line-height: 0; */
    width: 40px;
}

 
#research-activity a, 
#research-activity a:visited{
    color: currentColor;
    text-decoration-color: var(--main-color);
    text-decoration-skip-ink: auto;

}

#research-activity a:hover {
    color: var(--second-color);
    text-decoration-color: var(--second-color);
}





/* footer */

footer {
    margin-top: 3rem;
    
}

footer::before {
    content: "———";
    display: block;
    font-size: 0.7rem;
    margin-bottom: 0.7rem;

}

footer ul {
    margin-bottom: 0.7rem;
    list-style-position: inside;
    list-style-type: none;
}


footer a, 
footer a:visited{
    color: currentColor;
    text-decoration-color: var(--main-color);
    text-decoration-skip-ink: auto;

}

footer a:hover {
    color: var(--second-color);
    text-decoration-color: var(--second-color);
}