:root {
    --bg-top: #f4f7ff;
    --bg-mid: #ffffff;
    --bg-bottom: #f4f7ff;

    --text: #2b2b2b;
    --text-light: #4a4a4a;
    --title: #0d1b4c;

    --link: #000080;
    --accent: #000080;

    --max-width: 900px;

    --font-main: "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
}

/* Box-sizing global para evitar estouro com padding */
html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 40%, var(--bg-bottom) 100%);
    font-family: var(--font-main);
    color: var(--text);
    line-height: 1.75;
}

/* Contêiner central */
header,
main,
footer {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* HEADER */
header {
    padding: 2rem 1.8rem 0 1.8rem;
    text-align: center;
}

header h1 {
    margin: 0 0 1.8rem 0;
    font-size: 2.5rem;
    color: var(--title);
    font-weight: 800;
}

header h1 a {
    color: var(--title);
    text-decoration: none;
}

/* MAIN */
main {
    padding: 2.5rem 1.8rem;
}

/* INTRODUÇÃO — FOTO + TEXTO */
.intro-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.intro-text {
    flex: 1;
}

#rg {
    width: 210px;
    height: auto;
    border-radius: 50%;
}

/* TIPOGRAFIA */
h2, h3 {
    color: var(--title);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 2.8rem;
    margin-bottom: 1.2rem;
}

h2 { font-size: 1.9rem; }
h3 { font-size: 1.45rem; }

p, li {
    font-size: 1.18rem;
    color: var(--text-light);
}

/* LINKS */
a {
    color: var(--link);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    opacity: 0.75;
}

/* ÍNDICE */
.indice {
    background: #eef2ff;
    padding: 1.4rem;
    border-radius: 10px;
    margin: 2.5rem 0;
}

.indice ul {
    list-style: none;
    padding-left: 0;
}

.indice li {
    margin-bottom: 0.5rem;
}

/* BULLETS ESTILIZADOS */
ul li {
    list-style: none;
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.9rem;
}

ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0.15rem;
    font-size: 1.4rem;
    color: var(--accent);
    line-height: 1;
}

/* FIGURAS */
figure {
    margin: 2rem 0;
}

figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

figcaption {
    text-align: center;
    font-size: 1rem;
    color: #666;
    margin-top: 0.4rem;
}

/* RODAPÉ */
footer {
    padding: 2rem 1.8rem;
    text-align: center;
}

.topo-link {
    display: inline-block;
    margin-top: 2rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent);
}

/* RESPONSIVIDADE */
@media (max-width: 820px) {

    header,
    main,
    footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .intro-container {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }

    #rg {
        width: 60%;
        max-width: 260px;
        margin: 0 auto 1.5rem auto;
    }
}

@media (max-width: 520px) {

    header,
    main,
    footer {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    p, li {
        font-size: 1.08rem;
    }

    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.55rem; }
    h3 { font-size: 1.3rem; }

    #rg {
        width: 75%;
    }
}