/* ================================
   RESET
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}


/* ================================
   CORES
================================ */

:root {
    --background: #f5f0e8;
    --brown: #64311e;
    --brown-light: #8a604f;
    --white: #ffffff;
}


/* ================================
   BODY
================================ */

body {
    background-color: var(--background);
    color: var(--brown);

    font-family: "DM Sans", sans-serif;

    display: flex;
    justify-content: center;
}


/* ================================
   CONTAINER PRINCIPAL
================================ */

.page {
    width: 100%;
    max-width: 430px;

    min-height: 100vh;

    padding: 42px 24px 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ================================
   CABEÇALHO
================================ */

.profile {
    text-align: center;
    margin-bottom: 26px;
}

.profile h1 {
    color: var(--brown);

    font-family: "Playfair Display", serif;
    font-size: 32px;
    font-style: italic;
    font-weight: 600;

    line-height: 1.1;

    margin-bottom: 10px;
}

.profession {
    font-size: 12px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 4px;

    margin-bottom: 6px;
}

.crp {
    font-size: 10px;
    letter-spacing: 2px;
}


/* ================================
   FOTO
================================ */

.photo-wrapper {
    width: 100%;

    display: flex;
    justify-content: center;
}

.profile-photo {
    width: 100%;
    max-width: 310px;
    height: 360px;

    object-fit: cover;
    object-position: center;

    /*
       Formato arredondado parecido
       com a referência enviada.
    */
    border-radius: 30px 30px 30px 30px;

    display: block;
}


/* ================================
   BOAS-VINDAS
================================ */

.welcome {
    width: 100%;

    text-align: center;

    padding: 24px 0 28px;
}

.welcome h2 {
    color: var(--brown);

    font-family: "Playfair Display", serif;

    font-size: 25px;
    font-weight: 600;
    font-style: italic;

    line-height: 1.35;
}


/* ================================
   LINKS
================================ */

.links {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 15px;
}

.link-button {
    position: relative;

    width: 100%;
    min-height: 58px;

    border: 1.5px solid var(--brown);
    border-radius: 30px;

    color: var(--brown);
    background-color: transparent;

    text-decoration: none;

    font-size: 16px;
    font-weight: 500;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px 55px;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.2s ease;
}


/* Ícone à esquerda */

.link-button .icon {
    position: absolute;
    left: 22px;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 21px;
}


/* Hover para computador */

.link-button:hover {
    background-color: var(--brown);
    color: var(--white);

    transform: translateY(-2px);
}


/* ================================
   RODAPÉ
================================ */

footer {
    margin-top: auto;
    padding-top: 45px;

    text-align: center;
}

footer p {
    color: var(--brown-light);

    font-size: 10px;
    letter-spacing: 1px;
}


/* ================================
   CELULARES PEQUENOS
================================ */

@media (max-width: 380px) {

    .page {
        padding-left: 18px;
        padding-right: 18px;
    }

    .profile h1 {
        font-size: 28px;
    }

    .profile-photo {
        height: 330px;
    }

    .welcome h2 {
        font-size: 23px;
    }

    .link-button {
        min-height: 55px;
        font-size: 15px;
    }
}

/* Impede o Safari/iPhone de alterar a cor de textos detectados */
a[href^="tel"],
a[href^="sms"],
a[href^="mailto"],
a[x-apple-data-detectors],
[x-apple-data-detectors],
[x-apple-data-detectors-type] {
    color: #64311e !important;
    text-decoration: none !important;
    font: inherit !important;
}