body {
    background-color: #d9d7cd;
}

.header-wrapper {
    display: flex;
    padding: 4rem 0;
}

.header-wrapper h1 {
    flex: 1 !important;
    width: 50%;
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    letter-spacing: -3px;
    font-size: 4rem;
    transform: scaleX(0.8);
    transform-origin: left;
    line-height: 0.9em;
    color: #1E1E1E;
    white-space: nowrap;
}

.header-wrapper p {
    flex: 1;
    font-family: "Newsreader", serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5em;
}

.card-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    justify-content: center;
}

.service-card {
    width: 400px;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.service-card h2 {
    width: 50%;
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 2rem;
    transform: scaleX(0.8);
    transform-origin: left;
    line-height: 0.9em;
    color: #1E1E1E;
    white-space: nowrap;
    margin-bottom: 2rem;
}

.service-card p {
    font-family: "Newsreader", serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5em;
    margin-bottom: 2rem;
}

.service-card button {
    all: unset;
    font-family: "Newsreader", serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5em;
    margin-bottom: 2rem;
    border: 1px solid #1E1E1E;
    padding: 1rem 4rem;
    border-radius: 15px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.service-card button:hover {
    background-color: #1E1E1E;
    color: #ffffff;
}

@media (max-width: 900px) {
    .header-wrapper {
        display: flex;
        flex-direction: column;
        padding: 4rem 1rem;
    }

    .card-wrapper {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        justify-items: center;
    }

    .service-card {
        max-width: 300px;
        margin: 0 auto;
    }

    .service-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        margin-bottom: 1rem;
    }

    .service-card h2 {
        width: 120%;
        font-family: 'Instrument Serif', serif;
        font-weight: 400;
        font-size: 2rem;
        transform: scaleX(0.8);
        transform-origin: left;
        line-height: 0.9em;
        color: #1E1E1E;
        white-space: normal;
        margin-bottom: 2rem;
    }

    .service-card p {
        font-family: "Newsreader", serif;
        font-weight: 400;
        font-size: 1rem;
        line-height: 1.5em;
        margin-bottom: 2rem;
    }

    .service-card button {
        all: unset;
        font-family: "Newsreader", serif;
        font-weight: 400;
        font-size: 1rem;
        line-height: 1.5em;
        margin-bottom: 2rem;
        border: 1px solid #1E1E1E;
        padding: 1rem 4rem;
        border-radius: 15px;
        cursor: pointer;
        text-align: center;
        transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    }

    .service-card button:hover {
        background-color: #1E1E1E;
        color: #ffffff;
    }
}