:root {
    --title-color: #1d2b32;
    --accent-color: #6d00a3;
    --text-color: #333a3d;
    --muted-color: #6b7378;
    --rule-color: #d9dde0;
    --background-color: #ffffff;
    --font-family-principal: "Roboto", Calibri, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #eef0f2;
    font-family: var(--font-family-principal);
    color: var(--text-color);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* folha A4 */
.page {
    max-width: 830px;
    margin: 32px auto;
    padding: clamp(28px, 5vw, 56px);
    background-color: var(--background-color);
    box-shadow: 0 12px 40px -22px rgba(0, 0, 0, 0.45);
}

/* =================== Cabeçalho =================== */
#header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 3px solid var(--accent-color);
}

.header--identity {
    min-width: 260px;
}

#name-complete {
    margin: 0;
    font-size: clamp(2rem, 5vw, 2.7rem);
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.05;
    color: var(--title-color);
}

#my-title {
    margin: 6px 0 0;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-color);
}

.header--contact {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: right;
    font-size: 0.82rem;
    line-height: 1.75;
    color: var(--muted-color);
}

.header--contact a {
    color: var(--muted-color);
    text-decoration: none;
}

.header--contact a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* =================== Seções =================== */
section {
    margin-top: 30px;
}

.section-title {
    margin: 0 0 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--rule-color);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-color);
}

p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.62;
    color: var(--text-color);
}

/* =================== Experiência =================== */
.employer {
    margin-bottom: 22px;
    padding-left: 14px;
    border-left: 2px solid var(--rule-color);
}

.employer:last-child {
    margin-bottom: 0;
}

.employer--name {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--title-color);
}

.employer--note {
    font-weight: 400;
    color: var(--muted-color);
}

.role {
    margin-bottom: 16px;
}

.role:last-child {
    margin-bottom: 0;
}

.role--head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
}

.role--title {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--title-color);
}

.role--period {
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--muted-color);
}

.role--org {
    margin: 2px 0 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted-color);
}

.role--bullets {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.role--bullets li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 5px;
    font-size: 0.86rem;
    line-height: 1.55;
}

.role--bullets li::before {
    content: "";
    position: absolute;
    top: 0.6em;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--accent-color);
}

/* =================== Habilidades =================== */
.skills {
    margin: 0;
}

.skills--row {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 4px 16px;
    padding: 7px 0;
    border-bottom: 1px solid var(--rule-color);
}

.skills--row:last-child {
    border-bottom: 0;
}

.skills dt {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--title-color);
}

.skills dd {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* =================== Idiomas e projetos =================== */
.languages,
.projects {
    margin: 0;
    padding: 0;
    list-style: none;
}

.languages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
}

.languages li,
.projects li {
    font-size: 0.86rem;
    line-height: 1.6;
}

.projects li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 7px;
}

.projects li::before {
    content: "";
    position: absolute;
    top: 0.6em;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--accent-color);
}

.languages strong,
.projects strong {
    color: var(--title-color);
}

/* =================== Responsivo =================== */
@media screen and (max-width: 620px) {
    .page {
        margin: 0;
    }

    #header {
        align-items: flex-start;
    }

    .header--contact {
        text-align: left;
    }

    .skills--row {
        grid-template-columns: 1fr;
    }
}

/* =================== Impressão / PDF =================== */
@media print {
    body {
        background-color: #ffffff;
        font-size: 11pt;
    }

    .page {
        max-width: none;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    section,
    .employer,
    .role {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .header--contact a {
        color: var(--muted-color);
        text-decoration: none;
    }
}
