/* ===========================
   INFO CARD
=========================== */

.home-card {

    width: min(700px, 100%);

    margin: 20px auto 100px;

    position: relative;

    animation:
        paperDrop .35s ease;

}


/* ===========================
   CARD DROP ANIMATION
=========================== */

@keyframes paperDrop {

    0% {

        opacity: 1;

        transform:
            translateY(-25px)
            rotate(-2deg);

    }

    70% {

        transform:
            translateY(5px)
            rotate(.5deg);

    }

    100% {

        opacity: 1;

        transform:
            translateY(0)
            rotate(0);

    }

}



/* ===========================
   WOOD HEADER
=========================== */

.home-card-header {

    position: relative;

    z-index: 2;

    min-height: 90px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 18px 55px;

    color: var(--cream);

    font-family: var(--heading-font);

    text-align: center;

    background:

        linear-gradient(
            rgba(30, 17, 11, .18),
            rgba(30, 17, 11, .18)
        ),

        url("https://i.pinimg.com/736x/33/4a/7c/334a7ce2bb7f6c2e93d2d2d5d7614004.jpg");

    background-size: cover;

    background-position: center;

    border:
        2px solid
        #392217;

    border-radius:
        14px 14px 0 0;



}


/* ===========================
   HEADER TITLE
=========================== */

.header-title {

    position: relative;

    z-index: 1;

}


.header-title h1 {

    margin: 0;

    color: #d4c0a3;

    font-size: 1.25rem;

    font-weight: 700;

    letter-spacing: .1em;

}


/* ===========================
   HAMMERED NAILS
=========================== */

.header-nail {

    position: absolute;

    top: 50%;

    width: 14px;

    height: 14px;

    border-radius: 50%;

    background:

        radial-gradient(
            circle at 35% 30%,
            #d4c0a3 35%,
            #9b8468 100%,
            #3b2d21 100%
        );

    border:
        1px solid
        #30241b;

    box-shadow:

        inset 1px 1px 2px
        rgba(255,255,255,.25),

        1px 2px 3px
        rgba(0,0,0,.4);

    transform:
        translateY(-50%);

}


/* Slightly imperfect placement */

.header-nail.left {

    left: 22px;

}


.header-nail.right {

    right: 22px;

}


/* ===========================
   PAPER
=========================== */

.home-card-paper {

    position: relative;

    width: 100%;

    padding: 40px;

    box-sizing: border-box;

    background:
        var(--cream);

    border-radius:
        0 0 18px 18px;


}


/* ===========================
   PAPER TEXTURE
=========================== */

.home-card-paper::before {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    opacity: .3;

    background:

        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 7px,
            rgba(93,53,22,.025) 8px
        );

    border-radius:
        inherit;

}


/* ===========================
   CONTENT
=========================== */

.home-card-content {

    position: relative;

    z-index: 1;

    max-width: 680px;

    margin: 0 auto;

}


.welcome-text {

    text-align: center;

    margin-bottom: 28px;

}


.welcome-text h2 {

    margin: 0 0 10px;

    color: var(--brown-dark);

    font-family: var(--heading-font);

    font-size: 1.25rem;

    font-weight: 600;

    line-height: 1.4;

}


.welcome-text p {

    margin: 0;

    color: var(--brown);

    font-size: .85rem;

    line-height: 1.75;

}


.info-divider {

    margin: 28px 0;

    color: var(--orange-dark);

    font-size: .9rem;

    text-align: center;

    letter-spacing: .35em;

}


.info-section {

    text-align: center;

}


.info-section h2 {

    margin: 0 0 10px;

    color: var(--brown-dark);

    font-family: var(--heading-font);

    font-size: 1.3rem;

    font-weight: 600;

}


.info-section p {

    margin: 0 0 10px;

    color: var(--brown);

    font-size: .92rem;

    line-height: 1.75;

}


.info-section p:last-child {

    margin-bottom: 0;

}

.info-pagedoll {
    position: absolute;

    width: 220px;
    height: auto;

    right: -130px;
    bottom: -150px;

    z-index: 20;

    pointer-events: none;
}

.thank-you {

    position: absolute;

    /* adjust these to position the bubble */
    right: -40px;
    bottom: -130px;

    width: 700px;

    padding: 18px 22px;

    margin: 0;

    background: #392217;

    border: 2px solid #392217;

    border-radius: 22px;

    color: #d4c0a3;

    font-family: var(--heading-font);
    font-size: 1rem;
    line-height: 1.6;

    text-align: center;

    box-shadow:
        4px 5px 0 rgba(93, 53, 22, .15);

    z-index: 30;
}

.thank-you::after {

    content: "";

    position: absolute;

    right: -18px;
    bottom: 18px;

    width: 25px;
    height: 25px;

    background: #392217;

    border-right: 2px solid #392217;
    border-bottom: 2px solid #392217;

    transform: rotate(-45deg);

}

/* ===========================
   MOBILE
=========================== */

@media (max-width: 650px) {

    .home-card {

        margin-top:
            60px;

    }


    .home-card-paper {

        padding:
            28px 22px;

    }


    .info-sections {

        grid-template-columns:
            1fr;

    }


    .header-title h1 {

        font-size:
            1.05rem;

    }


    .header-nail {

        width:
            12px;

        height:
            12px;

    }


    .header-nail.left {

        left:
            14px;

    }


    .header-nail.right {

        right:
            14px;

    }

}


.identity-section {
    text-align: center;
}

.identity-section > h2 {
    margin-bottom: 8px;
}

.identity-section > p {
    margin-bottom: 24px;
}

.identity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;

    max-width: 520px;
    margin: 0 auto;
}

.identity-item {
    text-align: center;
}

.identity-item img {
    width: min(180px, 100%);
    aspect-ratio: 1;
    object-fit: cover;
    margin: 0 auto 0px;
}

.identity-item h3 {
    margin: 0;

    color: var(--brown-dark);

    font-family: var(--heading-font);
    font-size: 1rem;
}

.identity-item span {
    display: block;

    margin-top: 3px;

    color: var(--brown);

    font-size: .72rem;
}