*{
    margin: 0;
    padding: 0;
    line-height: 1.4em;
    font-family: sans-serif;
}

@keyframes miniMe{
    0%{
        rotate: 0turn;
        scale: 1;
    }

    100%{
        rotate: 4turn;
        scale: 0;
        filter: blur(2em);
    }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes blinking{
    0%{border-color: transparent;}
    50%{border-color: black;}
    100%{border-color: transparent;}
}
@keyframes typing{
    0%{width: 0;}
    100%{width: 326.87px;}
}

body{
    background-color: #fafafa;
    background-image: 
        linear-gradient(#ddd 1px, transparent 1px),
        linear-gradient(90deg, #ddd 1px, transparent 1px);
    background-size: 20px 20px;
    height: 100%;
}

    h1{
        position: absolute;
        font-size: 2rem;
        font-weight: lighter;
        top: 50%;
        left: 60%;

        border-right: 2px solid black;
        animation: 
            blinking 1s steps(1, end) infinite,
            typing 2s steps(50, end);
        overflow: hidden;
        white-space: nowrap;

        @media(max-width:1440px){
            display: none;
        }
    }

    img{
        height: 100vh;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }


nav{
    display: flex;
    border-block: solid black 2px;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.414);

    a{
        text-decoration: none;
        color: black;
        padding: .5rem;
        scroll-behavior: smooth;

        &:hover{
            text-decoration: underline dotted;
        }
        
    }
}

main{
    padding-inline: 3%;

    section{
        border: orangered solid 2px;
        height: 100vh;
        height: 100dvh;
        height: clamp(100dvh, 100%, 500dvh);
    }

    .atelier{
        display: flex;
        flex-direction: column;
        margin-bottom: 1rem;
        width: 100%;

        h2{
            text-align: center;
        }

        div{
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
            grid-template-rows: repeat(auto);
            

            a{
                &:hover{
                    opacity: 80%;
                    transition: .3s ease;
                }

                img{
                    width: 100%;
                    height: auto;
                    object-fit: cover;
                }
            }
        }
    }

    .journal{
        width: 100%;

        details{
            padding-inline: 2%;
            cursor: pointer;
            border-bottom: 2px dashed black;
            border-width: 90%;

            &:hover{
                border-bottom: 2px solid black;
            }
            summary{
                position: relative;
                anchor-name: --summary;

                &::marker{
                    content: '';
                }

                &::before, &::after{
                    content: '';
                    border-block-start: 3px solid orangered;
                    height: 0;
                    width: 1rem;

                    inset-block-start: 50%;
                    inset-inline-end: 0;

                    position: absolute;
                    position-anchor: --summary;
                    position-area: top end;
                }

                &::after{
                    transform: rotate(90deg);
                    transform-origin: 50%;
                    transition: .2s ease-out;
                }
            }  
            
            ul{
                padding-inline: 2%;
                li:first-of-type{
                    list-style: none;
                    text-align: end;
                }

                a{
                    color: black;
                    
                    &:hover{
                        color: blue;
                    }
                }
            }
        }
        details[open] summary::after{
            transform: rotate(0deg);
        }
    }
}