@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap");

:root {
    --fundo: #ffffff;
    --texto: #1a1a1a;
    --secundario: #666666;
    --borda: #eeeeee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "EB Garamond", serif;
    background-color: var(--fundo);
    color: var(--texto);
    line-height: 1.6;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.2rem;
}

.conteiner {
    max-width: 600px;
    width: 100%;
    animation: aparecer 0.6s ease-out;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    margin-bottom: 48px;
}

.header-titulo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

h1 {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.1;
}

.icones-contato {
    display: flex;
    gap: 8px;
}

.icones-contato a {
    color: var(--secundario);
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.icones-contato a:hover {
    color: var(--texto);
}

.icones-contato svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
}

.subtitulo {
    color: var(--secundario);
    font-size: 1.1rem;
}

.link-projetos-header {
    display: inline-block;
    margin-top: 8px;
    text-decoration: underline;
    color: var(--texto);
    font-size: 1rem;
}

.link-projetos-header:hover {
    opacity: 0.6;
}

/* Listagem de Blog (Index) */
.item-blog {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    align-items: baseline;
}

.data {
    font-size: 0.95rem;
    color: var(--secundario);
    min-width: 80px;
    font-variant-numeric: tabular-nums;
}

.link-blog {
    color: var(--texto);
    text-decoration: none;
    transition: opacity 0.2s;
}

.link-blog:hover {
    opacity: 0.6;
    text-decoration: underline;
}

nav {
    margin-bottom: 48px;
}

.link-voltar {
    color: var(--secundario);
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.link-voltar:hover {
    color: var(--texto);
}

.data-post {
    font-size: 1rem;
    color: var(--secundario);
    display: flex;
    align-items: center;
    gap: 12px;
}

.etiqueta-rascunho {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    color: var(--texto);
    border: 1px solid var(--borda);
    text-transform: uppercase;
}

article h1 {
    font-size: 3rem;
    margin-bottom: 32px;
}

p {
    margin-bottom: 24px;
}

.bloco-latex {
    overflow-x: auto;
}

.janela-previa {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    padding: 40px;
    background: #fafafa;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}

.code-block {
    margin: 24px 0;
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
    border: none;
}

.code-block-header {
    background: transparent;
    color: #666;
    padding: 12px 16px 0 16px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    user-select: none;
}

.code-block pre {
    background: transparent;
    margin: 0;
    padding: 12px 16px 16px 16px;
    overflow-x: auto;
    font-size: 0.95rem;
    text-align: left;
}

.code-block code,
.code-block .hljs {
    font-family: "SF Mono", Menlo, Consolas, monospace;
    line-height: 1.6;
    text-align: left;
    display: block;
    color: #333;
    background: transparent !important;
}

code,
pre {
    text-align: left !important;
}