/* =========================================
   HOME — SPACES
========================================= */

.home-spaces {
    width: 100%;
    background: #f3f0e9;
    color: #1f2925;

    padding: clamp(70px, 6vw, 110px) 0;
}

.home-spaces__container {
    width: 100%;
    max-width: 1920px;

    padding: 5px 100px;
    margin-inline: auto;
}

/* =========================================
   HEADING
========================================= */

.home-spaces__heading {
    display: flex;
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
    gap: 60px;

    margin-bottom: 64px;
}

.home-spaces__heading-left {
    min-width: 0;
}

.home-spaces__eyebrow,
.home-spaces__label {
    display: block;

    color: #a97b42;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding-bottom: 50px;
}
.home-spaces__label {
    padding-bottom: 0px;
}

.home-spaces__title {
    margin: 0;
    font-size: 45px;
    font-weight: 100;
    line-height: 1.2;
    letter-spacing: -0.03em;
    font-family: "Cormorant Garamond", Georgia, serif;
}

.home-spaces__intro {
    max-width: 540px;
    margin: 0 0 10px;

    color: #56615a;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
}

/* =========================================
   CARDS GRID
========================================= */

.home-spaces__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
}

.home-spaces__card {
    min-width: 0;
}

/* IMAGE */

.home-spaces__image-link {
    display: block;
    width: 100%;
    aspect-ratio: 2.15 / 1;

    overflow: hidden;
    background: #e6e3dd;
}

.home-spaces__image {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.home-spaces__image-link:hover .home-spaces__image {
    transform: scale(1.035);
}

/* CARD META */

.home-spaces__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-top: 28px;
}

.home-spaces__caption {
    color: #65716a;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 400;
    text-align: right;
}

/* CARD TEXT */

.home-spaces__card-title {
    margin: 22px 0 10px;

    color: #1f2925;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.015em;
}

.home-spaces__card-description {
    max-width: 650px;
    margin: 0;

    color: #56615a;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
}

/* CARD LINK */

.home-spaces__link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    min-height: 42px;
    margin-top: 20px;
    border-bottom: 1px solid currentColor;

    color: #1f2925;
    font-family: "Inter", sans-serif;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;

    transition: color 0.25s ease;
}

.home-spaces__link svg {
    width: 25px;
    height: 18px;

    transition: transform 0.25s ease;
}

.home-spaces__link:hover {
    color: #a97b42;
}

.home-spaces__link:hover svg {
    transform: translateX(5px);
}

/* =========================================
   TABLET — max 1024px
========================================= */

@media (max-width: 1220px) {
    .home-spaces__container {
        padding: 5px 50px;
    }
    .home-spaces__intro{
        max-width: 340px;
    }
}

@media (max-width: 1024px) {

    .home-spaces__heading {
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: center;
        gap: 24px;
        margin-bottom: 36px;
    }

    .home-spaces__title {
        max-width: 700px;
        font-size: 42px;
    }

    .home-spaces__intro {
        max-width: 650px;
        margin: 0;
    }

    .home-spaces__grid {
        gap: 24px;
    }

    .home-spaces__card-title {
        font-size: 27px;
    }

    .home-spaces__card-description {
        font-size: 16px;
    }
}

/* =========================================
   MOBILE — max 740px
========================================= */

@media (max-width: 840px) {

    .home-spaces {
        padding: 64px 0;
    }

    .home-spaces__container {
        padding: 5px 24px;
    }

    .home-spaces__heading {
        gap: 24px;
        margin-bottom: 36px;
    }

    .home-spaces__eyebrow,
    .home-spaces__label {
        font-size: 11px;
        letter-spacing: 0.15em;
    }

    .home-spaces__title {
        margin-top: 24px;
        font-size: clamp(46px, 10vw, 62px);
        line-height: 1;
    }

    .home-spaces__intro {
        font-size: 17px;
        line-height: 1.6;
    }

    .home-spaces__grid {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .home-spaces__image-link {
        aspect-ratio: 1.6 / 1;
    }

    .home-spaces__meta {
        margin-top: 20px;
        gap: 12px;
    }

    .home-spaces__caption {
        font-size: 11px;
    }

    .home-spaces__card-title {
        margin-top: 16px;
        font-size: clamp(36px, 8vw, 44px);
    }

    .home-spaces__card-description {
        font-size: 16px;
    }

    .home-spaces__link {
        margin-top: 16px;
        font-size: 15px;
    }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .home-spaces__image,
    .home-spaces__link,
    .home-spaces__link svg {
        transition: none;
    }
}