
/* =========================================
   LOVELAND FROGMAN RESEARCH NOTES
========================================= */

.loveland-research-notes {
    width: 100%;
    max-width: 1150px;
    margin: 90px auto;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
}

.loveland-research-notes > h2 {
    font-family: "Carter One", Georgia, serif;
    color: #d5b681;
    font-size: clamp(26px, 3vw, 42px);
    margin-bottom: 12px;
}

.loveland-research-notes > p {
    font-family: Georgia, serif;
    color: #e8d8b8;
    font-size: 17px;
    margin-bottom: 25px;
}

/* STACK OF THREE PARCHMENT SHEETS */

.research-paper-stack {
    position: relative;
    width: min(100%, 950px);
    aspect-ratio: 1.75 / 1;
    margin: 65px auto 45px;
    isolation: isolate;
    container-type: inline-size;
}

.research-paper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;

    background-image: url("../Images/Parchment-Sheet.png");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;

    color: #392818;
    text-align: left;
    cursor: pointer;

    filter: drop-shadow(
        8px 14px 9px rgba(0,0,0,.45)
    );

    transition:
        transform .45s ease,
        filter .45s ease;

    overflow: hidden;
}

/* LOOSE SHEET POSITIONS */

.research-paper:nth-child(1) {
    transform: translate(-2%, -4%) rotate(-5deg);
}

.research-paper:nth-child(2) {
    transform: translate(3%, 2%) rotate(5deg);
}

.research-paper:nth-child(3) {
    transform: translate(-1%, 5%) rotate(-1deg);
}

/* ACTIVE SHEET */

.research-paper.is-active {
    transform: translate(0, -5%) rotate(0deg) scale(1.015);
    filter: drop-shadow(
        12px 20px 14px rgba(0,0,0,.55)
    );
}

/* HANDWRITING */

.research-paper-content {
    position: absolute;
    top: 12%;
    left: 12%;
    width: 76%;
    height: 74%;
    box-sizing: border-box;
    overflow: hidden;
}

.research-paper-content h3 {
    font-family: "Snake", Georgia, serif;
    font-size: clamp(33px, 5cqw, 58px);
    font-weight: normal;
    line-height: .95;
    text-align: center;
    color: #392818;
    margin: 0 0 8px;
}

.research-paper-content p {
    font-family: "Snake", Georgia, serif;
    font-size: clamp(26px, 4.2cqw, 50px);
    font-weight: normal;
    line-height: .9;
    color: #392818;
    margin: 0 0 5px;
}

/* CONTROLS */

.research-page-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px auto 0;
}

.research-page-controls button {
    font-family: Georgia, serif;
    font-size: 15px;
    color: #f3dfb5;
    background: #3a281b;
    border: 1px solid #a88b5d;
    border-radius: 5px;
    padding: 11px 20px;
    cursor: pointer;
    transition: background .2s ease;
}

.research-page-controls button:hover,
.research-page-controls button.is-active {
    background: #74512c;
}

/* MOBILE */

@media (max-width: 700px) {

    .research-paper-stack {
        aspect-ratio: .8 / 1;
        margin: 40px auto 25px;
    }

    .research-paper-content {
        top: 12%;
        left: 13%;
        width: 74%;
        height: 74%;
    }

    .research-paper-content h3 {
        font-size: clamp(25px, 5cqw, 40px);
    }

    .research-paper-content p {
        font-size: clamp(20px, 4.2cqw, 32px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .research-paper {
        transition: none;
    }
}
