
/* =========================================
   HOME PAGE
========================================= */

.home-page {
    width: 100%;
}


/* =========================================
   INFO CARD
========================================= */

.home-card {
    position: relative;

    width: min(700px, 100%);
    margin: 20px auto 100px;
    margin-top: 200px;

    animation:
        paperDrop
        0.35s
        ease;
}


/* =========================================
   CARD DROP ANIMATION
========================================= */

@keyframes paperDrop {

    0% {
        opacity: 0;

        transform:
            translateY(-25px)
            rotate(-2deg);
    }

    70% {
        transform:
            translateY(5px)
            rotate(0.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, 0.18),
            rgba(30, 17, 11, 0.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: 0.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, 0.25),

        1px 2px 3px
        rgba(0, 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;

    border:
        1px solid
        #dac5b5;
}


/* =========================================
   PAPER TEXTURE
========================================= */

.home-card-paper::before {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    opacity: 0.3;

    background:
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 7px,
            rgba(93, 53, 22, 0.025) 8px
        );

    border-radius:
        inherit;
}


/* =========================================
   CONTENT
========================================= */

.home-card-content {
    position: relative;
    z-index: 1;

    max-width: 680px;

    margin: 0 auto;
}


/* =========================================
   WELCOME TEXT
========================================= */

.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: 0.85rem;

    line-height: 1.75;
}


/* =========================================
   DIVIDER
========================================= */

.info-divider {
    margin: 28px 0;

    color: var(--orange-dark);

    font-size: 0.9rem;

    text-align: center;

    letter-spacing: 0.35em;
}


/* =========================================
   INFO SECTIONS
========================================= */

.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: 0.92rem;

    line-height: 1.75;
}

.info-section p:last-child {
    margin-bottom: 0;
}


/* =========================================
   GREETING
========================================= */

.info-greeting {
    position: relative;
    z-index: 0;

    width: 900px;
    min-height: 180px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 25px 0 30px;

    left: -150px;
}


/* =========================================
   PAGEDOLL
========================================= */

.info-pagedoll {
    position: absolute;
    width: 220px;
    right: 500px;
    top: -204px;
    z-index: 10;
    pointer-events: none;
}


/* =========================================
   SPEECH BUBBLE
========================================= */

.thank-you {
    position: relative;
    z-index: 30;

    width: min(600px, 80%);

    margin: 0;
    padding: 18px 22px;

    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, 0.15);
}


/* Speech bubble tail */

.thank-you::after {
    content: "";

    position: absolute;

    right: -13px;
    bottom: 20px;

    width: 24px;
    height: 24px;

    background: #392217;

    transform: rotate(-45deg);

    z-index: -1;
}


/* =========================================
   IDENTITY
========================================= */

.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;
}

.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: 0.72rem;
}


/* =========================================
   CONTACT CARD
========================================= */

.contact-card {
    width: min(700px, 100%);

    display: grid;

    grid-template-columns:
        0.4fr 1fr;

    overflow: hidden;

    margin-top: 50px;

    background: #fff8e6;

    border:
        1px solid
        #dac5b5;

    border-radius: 18px;
}


/* =========================================
   CONTACT INFO
========================================= */

.contact-info {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 15px 25px;

    background: #5d3516;
}

.contact-info h2 {
    margin: 0;

    color: #fff8e6;

    font-family: var(--heading-font);

    font-size: 1.4rem;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* =========================================
   SOCIAL SECTION
========================================= */

.social-section {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 52px;

    padding: 12px;
}

.social-section a {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    cursor: pointer;

    transition:
        transform 0.2s ease;
}

.social-section a:hover {
    transform: translateY(-3px);
}

.social-section img {
    width: 24px;
    height: 24px;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    filter:
        brightness(0)
        saturate(100%)
        invert(23%)
        sepia(35%)
        saturate(900%)
        hue-rotate(350deg)
        brightness(95%)
        contrast(90%);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .home-card {
        margin-top: 60px;
    }

    .home-card-paper {
        padding: 28px 22px;
    }

    .header-title h1 {
        font-size: 1.05rem;
    }

    .header-nail {
        width: 12px;
        height: 12px;
    }

    .header-nail.left {
        left: 14px;
    }

    .header-nail.right {
        right: 14px;
    }

    .info-greeting {
        width: 100%;
        left: 0;

        min-height: 150px;
    }

    .info-pagedoll {
        width: 160px;
        right: -5px;
    }

    .thank-you {
        width: 75%;
        margin-right: auto;
    }

    .identity-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-card {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: 18px;
    }

    .social-section {
        gap: 30px;
        padding: 18px;
    }

}


@media (max-width: 450px) {

    .home-card {
        margin-top: 40px;
    }

    .home-card-header {
        min-height: 75px;
        padding: 15px 45px;
    }

    .home-card-paper {
        padding: 25px 18px;
    }

    .info-pagedoll {
        width: 135px;
    }

    .thank-you {
        width: 78%;

        padding:
            15px 17px;

        font-size: 0.9rem;
    }

    .social-section {
        gap: 20px;
    }

}

