* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: #f6f4f1;
    background-color: #172010;
    font-family: "Inter", sans-serif;
}

.hero {
    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    padding: 7vh 5vw;

    background-image:
        linear-gradient(
            90deg,
            rgba(8, 14, 6, 0.58) 0%,
            rgba(8, 14, 6, 0.34) 30%,
            rgba(8, 14, 6, 0.10) 65%,
            rgba(8, 14, 6, 0.03) 100%
        ),
        url("images/hero2.jpg");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.content {
    width: min(44rem, 48vw);
    text-align: center;
    transform: translateY(-2vh);
}

h1 {
    margin: 0;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(3.4rem, 5.7vw, 5.8rem);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.025em;

    text-shadow: 0 2px 25px rgba(0, 0, 0, 0.25);
}

.subtitle {
    margin: 1.1rem 0 0;

    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    font-weight: 300;
    letter-spacing: 0.16em;

    color: rgba(246, 244, 241, 0.88);
}

.buttons {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 0.9rem;
    margin-top: 2.6rem;
}

.buttons a {
    position: relative;

    color: #f6f4f1;
    text-decoration: none;

    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    padding: 0.25rem 0;
    opacity: 0.9;

    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.buttons a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 1px;

    background: currentColor;

    transform: scaleX(0);
    transform-origin: right center;

    transition: transform 220ms ease;
}

.buttons a:hover,
.buttons a:focus-visible {
    opacity: 1;
    transform: translateY(-2px);
}

.buttons a:hover::after,
.buttons a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.buttons a:focus-visible {
    outline: 1px solid rgba(246, 244, 241, 0.75);
    outline-offset: 7px;
}

@media (max-width: 700px) {

    .hero {
        align-items: flex-end;
        justify-content: flex-end;

        padding: 3rem 1.5rem;

        background-image:
            linear-gradient(
                180deg,
                rgba(8, 14, 6, 0.06) 0%,
                rgba(8, 14, 6, 0.15) 45%,
                rgba(8, 14, 6, 0.82) 100%
            ),
            url("images/hero2.jpg");

        background-position: 56% center;
    }

    .content {
        width: 100%;
        text-align: center;
        transform: none;
    }

    h1 {
        font-size: clamp(3.1rem, 15vw, 4.6rem);
        line-height: 0.9;
    }

    .subtitle {
        margin-top: 0.9rem;
        font-size: 0.8rem;
        letter-spacing: 0.14em;
    }

    .buttons {
    gap: 0.85rem;
    margin-top: 2rem;
}

    .buttons a {
        font-size: 0.75rem;
    }
}

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

    .buttons a,
    .buttons a::after {
        transition: none;
    }
}
