/* INTRO */

#intro .name {
    font-size: 1.17rem;
    color: var(--primary);
    margin: 0;
}

#intro .headline {
    font-weight: 600;
    font-size: 2rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.italic {
    font-style: italic;
    font-weight: 500;
}

.highlight.reveal {
    background: linear-gradient(to right, rgba(0, 0, 0, 0) 50%, var(--accent) 50%);
    background-size: 200% 100%;
    background-position: 0% 0%;
    transition: background-position 0.8s ease-out;
    transition-delay: 0.5s;
}

.underline.reveal {
    position: relative;
    display: inline-block;
}

.underline.reveal::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 4px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.8s ease-out;
}

.underline.reveal.is-visible::after {
    transition-delay: 1.5s;
    transform: scaleX(1);
}

.asterisk {
    width: 12px;
    transform: translate(-4px, -2px) rotate(-12deg);
    fill: var(--accent);
    opacity: 0;
    transition: all 0.5s ease-out;
    transition-delay: 2.2s;
}

.is-visible {
    background-position: -100% 0% !important;
    opacity: 1;
}

.line_separator {
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--black40);
    border-radius: 24px;
}

/* WORKS SECTION */

#works {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 3rem 1.5rem;
    height: 100%;
}

.book_container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book {
    border-radius: 4px 16px 16px 4px;
    /* filter: drop-shadow(2px 2px 4px rgb(0 0 0 / 16%)); */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 10%), 4px 4px 16px rgba(0, 0, 0, 10%);
}

.desc h3 {
    margin-top: 1rem;
    margin-bottom: 0;
}

.desc p {
    margin-top: 0.375rem;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
}

.main_bttn {
    margin-top: auto;
    text-decoration: none;
    display: block;
    width: fit-content;
    box-shadow: inset 0 -8px 0 0 var(--accent);
    transition: all 0.5s;
}

.main_bttn:hover {
    box-shadow: inset 0 -24px 0 0 var(--accent);
}

/* MEDIA QUERIES */

@media (min-width: 992px) {

    /* INTRO */
    #intro .name {
        font-size: 2rem;
    }

    #intro .headline {
        font-size: 3rem;
    }

    #intro .subhead {
        font-size: 1.5rem;
    }

    .asterisk {
        width: 16px;
        transform: translate(-8px, -8px) rotate(-12deg);
    }

    /* WORKS SECTION */
    #works {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-gap: 3rem;
        height: 100%;
    }

    .book {
        transition: all 0.5s;
    }

    .book:hover {
        transform: translateY(-24px) rotate(2deg) scale(1.03);
        /* filter: drop-shadow(8px 8px 8px rgb(0 0 0 / 16%)); */
        box-shadow: 2px 2px 4px rgba(0, 0, 0, 15%), 8px 8px 16px rgba(0, 0, 0, 20%);
    }

    .desc h3 {
        margin-top: 1.5rem;
    }

    .desc p {
        font-size: 1rem;
    }

    .main_bttn {
        font-size: 1.17rem;
    }
}