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

.hidden {
    display: none;
    visibility: hidden;
}

@font-face {
    font-family: Yipes;
    src: url(../fonts/Yipes.otf) format("opentype");
}

html {
    overflow: hidden;
}

body {
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    background-color: #EDD8B6;
    background-image: linear-gradient(to bottom left, #f18b9d, #edd8b6, #a1d0e7);
    background-size: 180% 180%;
    color: #101923;
    position: relative;
    font-family: "Inter", sans-serif;
    line-height: 1.5;
    transition: all .4s ease-in-out;
    overflow: hidden;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.container--title {
    width: 100%;
    height: 100%;
}

.title {
    font-family: Yipes, serif;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.title--big {
    font-family: Yipes, sans-serif;
    opacity: 0;
    animation: appear 4s ease .5s forwards;

}

.title--small {
    font-family: "EB+Garamond", serif;
    font-style: italic;
    font-size: 2rem;
    margin-bottom: .5rem;
    display: inline-block;
}

@keyframes appear {

    to {
        opacity: 1;
    }
}

.content {
    position: absolute;
    top: 0;
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    padding-top: 6rem;
    opacity: 0;
    pointer-events: none;
    overflow: auto;
    scrollbar-width: none;
}

.content--about {
    transform: translateX(10px) translateY(-10px);
    transition: all .4s ease;
    right: 0;
}

.content--work {
    transform: translateX(-10px) translateY(10px);
    transition: all .4s ease;
    left: 0;
    height: 100%;
    scrollbar-width: none;
}

.content--open {
    opacity: 1;
    transform: translate(0);
    transition: all .8s ease .2s;
    pointer-events: all;
}

.about__text {
    margin-bottom: 1rem;
}

.work__section {
    margin-bottom: 2.5rem;
}

.work__section:last-of-type {
    margin-bottom: 0;
}

.work__link {
    background: none;
    border: none;
    color: #101923;
    font-weight: 600;
    text-underline-offset: 0;
    text-decoration: none;
    cursor: pointer;
    text-transform: uppercase;
    padding: .5rem;
    padding-left: 0;
    position: relative;
    display: inline-block;
}

.work__link::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 1rem;
    height: 1rem;
    background: url('../images/star.svg') no-repeat center / contain;
    transform: translateY(-50%) rotate(5turn);
    opacity: 0;
}

.work__link:hover::after,
.work__link:focus-visible::after {
    opacity: 1;
    left: 102%;
    transition: all .2s ease-out;
    transform: translateY(-50%) rotate(0deg);
}

.work__link::before {
    content: "";
    position: absolute;
    border-radius: 999px;
    left: 0;
    top: 50%;
    height: 80%;
    width: 0;
    transform: translateY(-50%);
    background: linear-gradient(to left, rgba(241, 139, 157, 0.6), #edd8b6, #edd8b6, transparent 80%);
    -webkit-mask-image:
        linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%),
        linear-gradient(to right, #000 90%, transparent 100%);
    -webkit-mask-composite: destination-in;
    /* combine vertical & horizontal */
    mask-image:
        linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%),
        linear-gradient(to right, #000 90%, transparent 100%);
    mask-composite: intersect;
    opacity: 0;
    transition: all .2s ease-out;
    pointer-events: none;
    z-index: -1;
}

.work__link:hover::before,
.work__link:focus-visible::before {
    opacity: 1;
    width: calc(100% + 1.5rem);
}

.navbar {
    position: absolute;
    width: 100%;
    bottom: 2rem;
    opacity: 0;
    transform: translateY(100%);
    animation: move-up .8s ease 2s forwards;
}

@keyframes move-up {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar__list {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style-type: none;
    gap: 1.5rem;
}


.navbar__btn {
    background: none;
    border: none;
    color: #101923;
    font-weight: 600;
    text-underline-offset: 0;
    text-decoration: none;
    cursor: pointer;
    text-transform: uppercase;
    padding: .5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar__btn--active {
    text-underline-offset: .2rem;
    text-decoration: underline;
    transition: all .1s;
}

.navbar__btn::after {
    display: block;
    position: absolute;
    content: "";
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: none;
    opacity: 0;
    z-index: -1;
}

.navbar__btn:hover::after,
.navbar__btn:focus-visible::after {
    background: radial-gradient(circle at center, rgba(241, 139, 157, 0.3), rgba(241, 139, 157, 0.3), transparent, rgba(241, 139, 157, 0.0), transparent);
    opacity: 1;
    transition: .2s;
}

.closeBtn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    background-color: transparent;
    background-image: url("../images/cross.svg");
    opacity: 0;
    transform: rotate(-90deg);
    cursor: pointer;
    transition: all .2s ease;
    pointer-events: none;
}

.closeBtn--open {
    opacity: 1;
    transform: rotate(0);
    transition: all .8s ease .4s;
    pointer-events: all;
}

.closeBtn--open:hover,
.closeBtn--open:focus-visible {
    transform: rotate(180deg);
    scale: 1.2;
    transition: all .2s ease-out;
}

.rose {
    background-position: 100% 0%;
    transition: all .5s ease-in-out;
}

.bleu {
    background-position: 0% 100%;
    transition: all .5s ease-in-out;
}

@media screen and (min-width:600px) {

    :root {
        font-size: 20px;
    }

    .content {
        max-width: 600px;
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .work__text {
        padding-bottom: 1rem;
    }

    .navbar__btn {
        font-size: 1rem;
    }
}


@media screen and (min-width:1200px) {
    :root {
        font-size: 24px;
    }

    .content {
        padding-left: 5rem;
        padding-right: 5rem;
        max-width: 60ch;
        height: calc(100% - 5rem)
    }
}