/*
|--------------------------------------------------------------------------
| BASE
|--------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    min-height: 100dvh;

    font-family: "Inter", sans-serif;

    background: #f8f8f7;
    color: #3f3f3f;
}

a {
    color: inherit;
}


/*
|--------------------------------------------------------------------------
| LANDING
|--------------------------------------------------------------------------
*/

.landing {
    width: min(90%, 940px);

    /*
    | 100vh = fallback
    | 100dvh = viewport real en celulares
    */
    height: 100vh;
    height: 100dvh;

    min-height: 580px;

    margin: 0 auto;

    padding:
        clamp(28px, 4dvh, 48px)
        0
        clamp(22px, 3dvh, 34px);

    display: flex;
    flex-direction: column;

    /*
    | Distribuye header / intro / proyectos / footer
    | usando todo el alto disponible.
    */
    justify-content: space-between;
}


/*
|--------------------------------------------------------------------------
| LOGO
|--------------------------------------------------------------------------
*/

.landing-header {
    margin: 0;
}

.logo {
    display: block;

    width: min(100%, 280px);
    height: auto;

    object-position: -12px 0;
}


/*
|--------------------------------------------------------------------------
| INTRO
|--------------------------------------------------------------------------
*/

.intro {
    max-width: 760px;
    margin: 0;
}

.intro h1 {
    margin: 0 0 clamp(16px, 2.5dvh, 30px);

    font-size: clamp(
        2.8rem,
        7vw,
        5.4rem
    );

    line-height: .95;

    letter-spacing: -0.045em;
    font-weight: 500;

    color: #3f3f3f;
}

.intro p {
    max-width: 620px;

    margin: 0;

    font-size: clamp(
        1rem,
        2vw,
        1.3rem
    );

    line-height: 1.55;

    color: #777;
}


/*
|--------------------------------------------------------------------------
| PROYECTOS
|--------------------------------------------------------------------------
*/

.proyectos {
    margin: 0;
}

.proyectos-header {
    padding-bottom: 14px;

    border-bottom: 1px solid #d8d8d8;
}

.proyectos-header span {
    font-size: .72rem;

    letter-spacing: .2em;
    text-transform: uppercase;

    color: #999;
}


/*
|--------------------------------------------------------------------------
| PROYECTO
|--------------------------------------------------------------------------
*/

.proyecto {
    min-height: 105px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 22px 0;

    border-bottom: 1px solid #d8d8d8;

    text-decoration: none;

    transition:
        padding .25s ease,
        color .25s ease;
}

.proyecto-info {
    display: flex;
    align-items: baseline;

    gap: 30px;
}

.proyecto-info strong {
    min-width: 100px;

    font-size: clamp(
        1.5rem,
        3vw,
        2rem
    );

    font-weight: 600;

    letter-spacing: -.025em;
}

.proyecto-info span {
    font-size: 1rem;

    color: #888;

    transition: color .25s ease;
}


/*
|--------------------------------------------------------------------------
| FLECHA
|--------------------------------------------------------------------------
*/

.proyecto-arrow {
    font-size: 1.7rem;

    font-weight: 300;

    color: #aaa;

    transition:
        transform .25s ease,
        color .25s ease;
}


/*
|--------------------------------------------------------------------------
| HOVER
|--------------------------------------------------------------------------
*/

.proyecto:hover {
    padding-left: 12px;

    color: #f5a02f;
}

.proyecto:hover .proyecto-info span {
    color: #555;
}

.proyecto:hover .proyecto-arrow {
    color: #f5a02f;

    transform: translate(
        3px,
        -3px
    );
}


/*
|--------------------------------------------------------------------------
| FOOTER
|--------------------------------------------------------------------------
*/

.landing-footer {
    margin: 0;

    display: flex;

    gap: 5px;

    flex-shrink: 0;

    font-size: .85rem;

    color: #999;
}

.landing-footer a {
    text-decoration: none;

    color: #555;
}

.landing-footer strong {
    font-weight: 700;
}

.landing-footer a:hover {
    color: #f5a02f;
}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    .landing {
        width: 88%;

        padding-top: clamp(24px, 4dvh, 40px);

        padding-bottom:
            calc(
                clamp(18px, 3dvh, 28px)
                + env(safe-area-inset-bottom)
            );
    }


    .logo {
        width: min(100%, 220px);

        object-position: -10px 0;
    }


    .intro h1 {
        /*
        | También toma en cuenta el ALTO.
        |
        | En pantallas bajas, 7.5dvh limita
        | el tamaño antes que 13vw.
        */
        font-size: clamp(
            2.15rem,
            min(13vw, 7.5dvh),
            4rem
        );

        margin-bottom: clamp(
            12px,
            2.3dvh,
            24px
        );
    }


    .intro p {
        font-size: clamp(
            .95rem,
            2.1dvh,
            1.05rem
        );

        line-height: 1.5;
    }


    .proyecto {
        min-height: clamp(
            75px,
            11dvh,
            95px
        );

        padding:
            clamp(12px, 2dvh, 20px)
            0;
    }


    .proyecto-info {
        flex-direction: column;
        align-items: flex-start;

        gap: 5px;
    }


    .proyecto-info strong {
        min-width: auto;
    }

}

/*
|--------------------------------------------------------------------------
| PANTALLAS BAJAS
|--------------------------------------------------------------------------
*/

@media (max-height: 700px) {

    .landing {
        padding-top: 22px;
        padding-bottom:
            calc(
                18px
                + env(safe-area-inset-bottom)
            );
    }


    .logo {
        width: 200px;
    }


    .intro h1 {
        font-size: clamp(
            2.15rem,
            7dvh,
            3.4rem
        );

        margin-bottom: 12px;
    }


    .intro p {
        font-size: .95rem;
        line-height: 1.4;
    }


    .proyectos-header {
        padding-bottom: 9px;
    }


    .proyecto {
        min-height: 72px;
        padding: 10px 0;
    }


    .proyecto-info strong {
        font-size: 1.4rem;
    }


    .proyecto-info span {
        font-size: .9rem;
    }


    .proyecto-arrow {
        font-size: 1.45rem;
    }

}