/* ==================================================
   ASAMOUZ LINK-IN-BIO
   ================================================== */


/* ==================================================
   BRAND COLORS
   ================================================== */

:root {

    --black: #000000;
    --white: #FFFFFF;
    --electric-blue: #00C8FF;

    --button-gray: #555555;
    --button-gray-hover: #606060;

}


/* ==================================================
   RESET
   ================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==================================================
   INTERACTION HIGHLIGHT
   ================================================== */
::selection {
    background: transparent;
    color: inherit;
}

::-moz-selection {
    background: transparent;
    color: inherit;
}


/* ==================================================
   HTML / BODY
   ================================================== */

html {
    min-height: 100%;
}

body {
    min-height: 100vh;

    margin: 0;

    background: var(--black);
    color: var(--white);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    -webkit-font-smoothing: antialiased;

    overflow-x: hidden;
    overflow-y: auto;
}


/* ==================================================
   MAIN PAGE
   ================================================== */

.page {
    width: min(
        calc(100% - 32px),
        680px
    );

    margin: 0 auto;

    padding-top: 28px;
    padding-bottom: 24px;

    text-align: center;
}


/* ==================================================
   PROFILE
   ================================================== */

.profile {
    margin-bottom: 14px;
}


/* ==================================================
   LOGO
   ================================================== */

.logo {
    display: block;

    width: 76px;
    height: 76px;

    object-fit: contain;

    /*
     * Logo bukan link dan tidak perlu dapat
     * dipilih atau di-drag oleh browser.
     */
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;

    margin: 0 auto 13px;
}


/* ==================================================
   BRAND NAME
   ================================================== */

h1 {
    margin: 0 0 5px;

    color: var(--white);

    font-size: 27px;
    font-weight: 700;

    letter-spacing: 0;
    line-height: 1.1;
}


/* ==================================================
   TAGLINE
   ================================================== */

.tagline {
    color: var(--white);

    font-size: 17px;
    font-weight: 500;

    line-height: 1.3;
}


/* ==================================================
   SOCIAL ICONS
   ================================================== */

.social-icons {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 27px;

    margin-top: 18px;
    margin-bottom: 24px;
}


/* ==================================================
   SOCIAL ICON
   ================================================== */

.social-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    color: var(--white);

    font-size: 29px;

    text-decoration: none;

    /*
     * Icon tidak perlu dapat dipilih atau di-drag.
     * Tetap dapat diklik normal.
     */
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;

    transition:
        color 0.20s ease,
        transform 0.20s ease;
}


/* ==================================================
   SOCIAL ICON HOVER
   ================================================== */

.social-icon:hover {
    color: var(--electric-blue);

    transform: translateY(-2px);
}

.social-icon:focus,
.social-icon:active {
    outline: none;
}


/* ==================================================
   LINK BUTTON CONTAINER
   ================================================== */

.link-buttons {
    display: flex;

    flex-direction: column;

    gap: 12px;
}


/* ==================================================
   LINK BUTTON
   ================================================== */

.link-button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 66px;

    padding:
        15px
        30px;

    background: var(--button-gray);

    border-radius: 999px;

    color: var(--white);

    text-decoration: none;

    /*
     * Hilangkan highlight bawaan browser saat tombol
     * diklik/ditahan, agar bentuk tombol tetap lonjong.
     */
    -webkit-tap-highlight-color: transparent;
    outline: none;

    /*
     * Mencegah browser menampilkan selection
     * saat tombol di-klik lalu di-drag.
     * Tombol tetap dapat diklik normal.
     */
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;

    transition:
        background 0.20s ease,
        transform 0.20s ease;
}


/* ==================================================
   LINK BUTTON INTERACTION
   ================================================== */
.link-button:focus,
.link-button:active {
    outline: none;
}

/* ==================================================
   LINK BUTTON TEXT
   ================================================== */

.link-text {
    color: var(--white);

    font-size: 20px;
    font-weight: 600;

    line-height: 1;

    transition:
        color 0.20s ease;
}


/* ==================================================
   LINK BUTTON HOVER
   ================================================== */

.link-button:hover {
    background: var(--button-gray-hover);

    transform: translateY(-1px);
}


/* ==================================================
   TEXT HOVER
   ================================================== */

.link-button:hover .link-text {
    color: var(--electric-blue);
}


/* ==================================================
   BUSINESS CONTACT
   ================================================== */

.business {
    margin-top: 24px;
}


/* ==================================================
   DIVIDER
   ================================================== */

.divider {
    width: 80%;
    height: 1px;

    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;

    background:
        rgba(
            255,
            255,
            255,
            0.15
        );
}


/* ==================================================
   BUSINESS TITLE
   ================================================== */

.business-title {
    margin-bottom: 6px;

    color: var(--white);

    font-size: 13px;
    font-weight: 500;

    opacity: 0.55;
}


/* ==================================================
   EMAIL
   ================================================== */

.email {
    color: var(--white);

    font-size: 14px;

    text-decoration: none;

    word-break: break-word;

    /*
     * Email tetap dapat diklik, tetapi tidak dapat
     * dipilih atau di-drag sebagai teks/link.
     */
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;

    transition:
        color 0.20s ease;
}


/* ==================================================
   EMAIL HOVER
   ================================================== */

.email:hover {
    color: var(--electric-blue);

    text-decoration: none;
}

.email:focus,
.email:active {
    outline: none;
}


/* ==================================================
   FOOTER
   ================================================== */

footer {
    margin-top: 18px;

    color: var(--white);

    font-size: 11px;

    letter-spacing: 1px;

    opacity: 0.30;
}


/* ==================================================
   DESKTOP BUTTON WIDTH
   ================================================== */

@media (min-width: 701px) {

    .link-buttons {
        /*
         * Tombol desktop dibuat sedikit lebih pendek
         * tanpa mengubah ukuran atau spacing mobile.
         */
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

}


/* ==================================================
   TABLET
   ================================================== */

@media (max-width: 700px) {

    .page {
        width: calc(100% - 28px);

        padding-top: 28px;
        padding-bottom: 24px;
    }


    .social-icons {
        gap: 24px;

        margin-top: 18px;
        margin-bottom: 24px;
    }


    .link-button {
        min-height: 68px;
    }

}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 520px) {

    .page {
        /*
         * Responsive width:
         * tetap memiliki ruang kiri-kanan
         * pada berbagai ukuran HP.
         */
        width: calc(100% - 20px);

        /*
         * Tidak mengunci tinggi halaman.
         * Jika konten lebih tinggi dari viewport,
         * halaman tetap dapat di-scroll.
         */
        min-height: 100vh;

        padding-top:
            max(
                20px,
                env(safe-area-inset-top)
            );

        padding-bottom:
            max(
                20px,
                env(safe-area-inset-bottom)
            );
    }


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

    .logo {
        width: clamp(
            68px,
            18vw,
            82px
        );

        height: clamp(
            68px,
            18vw,
            82px
        );

        margin-bottom: 13px;
    }


    /* ------------------------------
       BRAND NAME
       ------------------------------ */

    h1 {
        font-size: clamp(
            23px,
            5.8vw,
            27px
        );

        margin-bottom: 4px;
    }


    /* ------------------------------
       TAGLINE
       ------------------------------ */

    .tagline {
        font-size: clamp(
            15px,
            3.8vw,
            17px
        );
    }


    /* ------------------------------
       SOCIAL ICONS
       ------------------------------ */

    .social-icons {
        gap: clamp(
            17px,
            4.8vw,
            22px
        );

        margin-top: 17px;

        /*
         * Dikurangi dari 38px.
         * Ini salah satu penyebab utama
         * halaman mobile terlalu tinggi.
         */
        margin-bottom: 22px;
    }


    .social-icon {
        width: clamp(
            26px,
            6.5vw,
            30px
        );

        height: clamp(
            26px,
            6.5vw,
            30px
        );

        font-size: clamp(
            24px,
            6.2vw,
            29px
        );
    }


    /* ------------------------------
       LINK BUTTONS
       ------------------------------ */

    .link-buttons {
        /*
         * Lebih rapat daripada versi lama.
         */
        gap: clamp(
            10px,
            2.8vw,
            14px
        );
    }


    .link-button {
        /*
         * Responsive terhadap lebar layar.
         *
         * 440px  -> sekitar 66px
         * 390px  -> sekitar 64px
         * 360px  -> sekitar 63px
         * 320px  -> sekitar 62px
         */
        min-height: clamp(
            62px,
            15vw,
            66px
        );

        padding:
            14px
            20px;
    }


    .link-text {
        font-size: clamp(
            17px,
            4.5vw,
            20px
        );
    }


    /* ------------------------------
       BUSINESS CONTACT
       ------------------------------ */

    .business {
        /*
         * Dikurangi agar footer tidak
         * terdorong terlalu jauh.
         */
        margin-top: 24px;
    }


    .divider {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 13px;
    }


    .business-title {
        margin-bottom: 5px;

        font-size: 12px;
    }


    .email {
        font-size: 14px;
    }


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

    footer {
        margin-top: 14px;

        font-size: 10px;
    }

}


/* ==================================================
   SMALL MOBILE
   ================================================== */

@media (max-width: 380px) {

    .page {
        width: calc(100% - 16px);

        padding-top:
            max(
                18px,
                env(safe-area-inset-top)
            );

        padding-bottom:
            max(
                18px,
                env(safe-area-inset-bottom)
            );
    }


    .social-icons {
        gap: 16px;

        margin-top: 15px;
        margin-bottom: 19px;
    }


    .social-icon {
        width: 25px;
        height: 25px;

        font-size: 23px;
    }


    .link-buttons {
        gap: 9px;
    }


    .link-button {
        min-height: 60px;

        padding:
            13px
            16px;
    }


    .link-text {
        font-size: 17px;
    }


    .business {
        margin-top: 21px;
    }


    footer {
        margin-top: 12px;
    }

}


/* ==================================================
   VERY SHORT MOBILE SCREENS
   ================================================== */

@media (max-width: 520px) and (max-height: 750px) {

    .page {
        padding-top:
            max(
                14px,
                env(safe-area-inset-top)
            );

        padding-bottom:
            max(
                14px,
                env(safe-area-inset-bottom)
            );
    }


    .logo {
        width: 68px;
        height: 68px;

        margin-bottom: 10px;
    }


    h1 {
        font-size: 23px;
    }


    .tagline {
        font-size: 15px;
    }


    .social-icons {
        margin-top: 13px;
        margin-bottom: 17px;
    }


    .link-buttons {
        gap: 8px;
    }


    .link-button {
        min-height: 58px;
    }


    .business {
        margin-top: 18px;
    }


    footer {
        margin-top: 10px;
    }

}