:root {
      --background: #282C34;
      --blue: #61AFEF;
      --cyan: #56B6C2;
      --green: #98C379;
      --purple: #C678DD;
      --red: #E06C75;
      --white: #DCDFE4;
      --yellow: #E5C07B;

      --container-width: 900px;
    }

body {
    background-color: var(--background);
    color: var(--white);
    font-family: Consolas, monospace;
    font-size: 1.2em;
    justify-content: center;
    text-align: center;
    width: var(--container-width);
    margin: 0 auto;
    min-height: 100vh;
}

header,
footer {
    cursor: default;
    justify-content: center;
    text-align: center;
    padding: 10px 0;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover{
    background: var(--blue);
    color: var(--background);
}

a::selection{
    background: var(--blue);
    color: var(--background);
}

nav {
    text-align: center;
    font-size: 1.2em;
    margin-left: 10px;
    margin-right: 10px;

}

nav a{
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 2px;
    padding-bottom: 2px;
}

p {
    text-align: justify;
}

h2 {
    color: var(--purple);
}

h2::selection {
    background: var(--purple);
    color: var(--background);
}

.title {
    color: var(--white);
    font-size: clamp(0.8em, 1vw + 0.4em, 1.2em);
    margin-bottom: 20px;
    margin-top: 0px;
    line-height: 1; /* reduz ao mínimo necessário */
    font-family: monospace; /* garante alinhamento da arte */
    white-space: pre; /* preserva formatação */
}

.left {
    text-align: left;
}

.artigo {
    padding-left: 10px;
}

.autores {
    font-style: italic;
    font-size: 0.9em;
}

.periodico, .evento, .ano {
    font-size: 0.9em;
    font-weight: bold;
}

::selection {
    background: var(--white);
    color: var(--background);
}

nav a.active {
    font-weight: bold;
    background: var(--blue);
    color: var(--background);
}

.profile-wrapper {
    overflow: auto; /* clearfix para o float */
    text-align: left;
    align-items: flex-start;
    margin-top: 10px;
}

.profile-img {
    float: left;
    width: 150px; /* ajustar conforme preferir */
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ccc;
    margin: 0 20px 10px 0;
}

.profile-content {
    overflow: hidden;
}

.inline-img {
    float: left;
    width: 200px; 
    max-width: 40%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    border: 0px solid #ccc;
    margin: 0 20px 10px 0;
}

@media (max-width: 600px) {
    .profile-img,
    .inline-img {
        float: none;
        display: block;
        margin: 0 auto 15px;
        width: 40%;
        max-width: 60%;
    }
    .profile-wrapper {
        text-align: center;
    }
    .profile-content, .left {
        text-align: center;
    }
}

@media (max-width: 1000px) {
    body {
        width: 90%;
    }
}