@import url('https://fonts.googleapis.com/css2?family=Candara:wght@400;500;600;700&display=swap');

body {
    background-color: #f5e9c7;
    /*font-family: 'Arial', sans-serif;     /* Fonte principal de todo o site */
    font-family: 'Recoleta', sans-serif;     /* Fonte principal de todo o site */
    color: #3c2f1e;
    margin: 0;
    padding: 0;
}

/* Fundo sutil de página de livro */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(#e8d9b0 1px, transparent 1px),
        linear-gradient(90deg, #e8d9b0 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

/* ==================== TABELAS E GRÁFICOS - CANDARA ==================== */
table, th, td, canvas {
    font-family: 'Candara', 'Arial', sans-serif;
}

th, td {
    font-weight: 400;
}

/* Header */
.header {
    background-color: #d4b88a;
    border-bottom: 5px solid #3c2f1e;
    position: sticky;
    top: 0;
    z-index: 50;
}

.logo {
    transition: transform 0.4s ease;
}

.logo:hover {
    transform: scale(1.08);
}

.nav-link {
    color: #3c2f1e;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-link:hover, 
.nav-link.active {
    background-color: #3c2f1e;
    color: #f5e9c7;
}

.content {
    background-color: #fff9e8;
    box-shadow: 0 10px 40px rgba(60, 47, 30, 0.15);
    border: 2px solid #d4b88a;
    border-radius: 12px;
    margin: 30px auto;
    max-width: 1100px;
    padding: 50px;
}

/* ==================== ESTILO DE TEXTO PARA ARTIGOS ==================== */
.prose, 
.content p, 
.article-card p {
    text-align: justify;
    line-height: 1.75;
    font-size: 1.12rem;
    hyphens: auto;
    margin-bottom: 0.9em;
    text-indent: 1.8em;
}

/* Remove indentação após títulos */
.prose h1 + p,
.prose h2 + p,
.prose h3 + p {
    text-indent: 0;
}

/* Títulos */
.prose h1, .prose h2, .prose h3 {
    color: #3c2f1e;
    font-weight: 700;
    text-align: left;
    margin-bottom: 1.2em;
}

.prose h1 { font-size: 2.5rem; }
.prose h2 { font-size: 1.85rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.45rem; }

/* Cards dos artigos */
.article-card {
    background-color: #fff9e8;
    border: 1px solid #d4b88a;
}

/* Footer */
footer {
    color: #5c4630;
    padding: 40px 0;
    font-size: 0.95rem;
}

/* Ajustes para celular */
@media (max-width: 768px) {
    .content {
        margin: 15px 10px;
        padding: 30px 20px;
    }
    .prose, .content p {
        font-size: 1.05rem;
        text-indent: 1.4em;
    }
}