/* Reset e Base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0 20px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: #000;
}

/* Container */
.container {
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Navegação (topo) */
nav {
    display: block;
    margin-bottom: 40px;
}

nav a {
    font-size: 1rem;
    color: #555;
}

/* Header do Artigo */
article header {
    margin-bottom: 1.2rem;
}

h1 {
    margin: 0 0 5px 0; 
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.5;
    color: #000;
    text-wrap: balance;
    hyphens: none;
    word-break: normal;
}

header p {
    margin-top: 0;
    font-size: 1rem;
}

time {
    color: #333;
    font-size: 0.9rem;
}

/* Títulos de seção */
h2 {
    margin-bottom: 1.5em;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-wrap: balance;
    hyphens: none;
    word-break: normal;
}

/* Conteúdo principal */
p {
    margin-bottom: 1.5em;
    font-size: 1rem;
    line-height: 1.5;
}

pre,
code {
    font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

code {
    background-color: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 0;
    font-size: 0.75rem;
}

pre {
    margin-bottom: 1.8em;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 0;
    overflow-x: auto;
    font-size: 0.75rem;
    line-height: 1.6;
}

pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}

blockquote {
    border-left: 2px solid #000;
    margin: 30px 0;
    padding-left: 15px;
    font-style: italic;
    color: #333;
    font-size: 1rem;
}

/* Listas */
ul.post-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
}

li {
    margin-bottom: 1.5em;
}

/* Links */
a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
    font-size: inherit;
    line-height: 1.2;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    max-width: 90%;
    display: inline-block;
    word-break: break-word;
}

a:hover {
    border-bottom-color: #000;
}

a:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.post-list a {
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    border-bottom: none;
    font-weight: 600;
    text-wrap: balance;
    word-break: keep-all;
    display: block;
    max-width: 100%;
}

/* Referências */
#references p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.8em;
}

sup {
    font-size: 0.8rem;
}

footer a, sup a {
    font-size: 0.8rem;
    color: #555;
}

/* Elementos específicos */
span.date {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 5px; 
}

.signature {
    margin-top: 2em;
    text-align: right;
}

hr {
    border: none;
    border-top: 1px solid #000;
    margin: 2em 0;
}

/* Footer */
footer p {
    font-size: 0.9rem;
    color: #555;
}

footer a {
    color: #1a0dab;
    border-bottom: 1px solid #ccc;
}

footer a:hover {
    color: #000;
    border-bottom-color: #000;
}

/* Media Queries - Tablet */
@media (max-width: 1024px) {
    body {
        padding: 0 10px;
    }

    .container {
        margin: 0 auto;
        padding: 50px 15px;
        width: 100%;
    }

    nav {
        margin-bottom: 30px;
    }

    h1 {
        font-size: 1.35rem;
        line-height: 1.5;
    }

    header p {
        font-size: 1rem;
    }

    a {
        font-size: 1.1rem;
        padding: 5px 0;
        display: inline-block;
    }

    li {
        margin-bottom: 2em;
    }

    p, blockquote {
        line-height: 1.5;
    }
}

/* Media Queries - Mobile */
@media (max-width: 480px) {
    .container {
        padding: 50px 15px;
    }

    h1 {
        font-size: 1.4rem;
        line-height: 1.2;
    }

    p, li {
        font-size: 1rem;
    }
}