@font-face {
    font-family: 'Maharlika';
    src: url('/fonts/Maharlika-Regular.woff2') format('woff2'),
        url('/fonts/Maharlika-Regular.ttf') format('truetype');
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Maharlika', serif;
}

/* rodapé sempre no fim, mesmo em página curta */
body {
    color: #2c3e50;
    background-color: #ece6da;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #3f5a47;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px 15px 0;
}

header img {
    width: 240px;
    max-width: 70vw;
    height: auto;
}

header nav {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 12px;
    border-top: 1px solid rgba(44, 62, 80, 0.25);
    border-bottom: 1px solid rgba(44, 62, 80, 0.25);
}

header nav a {
    color: #2c3e50;
    text-decoration: none;
}

header nav a:hover,
header nav a[aria-current] {
    color: #3f5a47;
}

main {
    flex: 1;
    width: 100%;
    max-width: 760px;
    /* palavra ou link enorme sem espaço quebra a linha em vez de alargar a página */
    overflow-wrap: anywhere;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

h1 {
    font-weight: normal;
    font-size: 2.4em;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 14px;
}

.intro,
.vazio {
    text-align: center;
    margin-bottom: 24px;
}

.vazio {
    grid-column: 1 / -1;
}

.migalhas {
    font-size: 0.9em;
    text-align: center;
    margin-bottom: 18px;
}

.meta {
    font-size: 0.9em;
    color: rgba(44, 62, 80, 0.8);
    text-align: center;
    margin-bottom: 26px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 30px;
}

.tags a {
    background: rgba(139, 170, 145, 0.25);
    color: #2c3e50;
    padding: 4px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9em;
}

.tags a:hover {
    background: #8baa91;
    color: #fff;
}

/* --- post --- */
.capa {
    width: 100%;
    height: auto;
    border-radius: 58% 42% 38% 62% / 55% 40% 60% 45%;
    margin-bottom: 30px;
}

.sumario {
    background: rgba(44, 62, 80, 0.05);
    border-left: 3px solid #8baa91;
    padding: 16px 20px;
    margin-bottom: 30px;
    border-radius: 0 10px 10px 0;
}

.sumario p {
    font-weight: bold;
    margin-bottom: 8px;
}

.sumario ul {
    list-style: none;
    line-height: 1.8;
}

.sumario .n3 {
    margin-left: 18px;
    font-size: 0.95em;
}

.conteudo {
    font-size: 1.1em;
    line-height: 1.8;
}

.conteudo > * + * {
    margin-top: 1em;
}

.conteudo h2,
.conteudo h3 {
    font-weight: normal;
    line-height: 1.3;
    margin-top: 1.6em;
    scroll-margin-top: 20px;
}

.conteudo h2 {
    font-size: 1.6em;
}

.conteudo h3 {
    font-size: 1.3em;
}

.conteudo ul,
.conteudo ol {
    padding-left: 24px;
}

.conteudo img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

/* a Maharlika só tem peso regular: o negrito se destaca pela cor */
.conteudo strong {
    color: #3f5a47;
    font-synthesis: weight;
}

.conteudo blockquote {
    border-left: 3px solid #8baa91;
    padding-left: 16px;
    font-style: italic;
}

.post .tags {
    margin-top: 36px;
}

.cta {
    text-align: center;
    margin: 30px 0 10px;
    padding: 26px 20px;
    border-top: 1px solid rgba(44, 62, 80, 0.15);
}

.cta p {
    font-size: 1.2em;
    margin-bottom: 14px;
}

.botao {
    display: inline-block;
    background: #2c3e50;
    color: #fff;
    padding: 12px 30px;
    border-radius: 58% 42% 55% 45% / 60% 45% 55% 40%;
    text-decoration: none;
}

.botao:hover {
    background: #3f5a47;
}

/* --- listas de posts --- */
.lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.cartao {
    min-width: 0;
}

.cartao img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 40% 60% 55% 45% / 45% 60% 40% 55%;
    margin-bottom: 12px;
}

.cartao h2 {
    font-weight: normal;
    font-size: 1.3em;
    line-height: 1.3;
    margin-bottom: 6px;
}

.cartao h2 a {
    color: #2c3e50;
    text-decoration: none;
}

.cartao .meta {
    text-align: left;
    margin-bottom: 8px;
}

.ler {
    display: inline-block;
    margin-top: 12px;
    background: #2c3e50;
    color: #fff;
    padding: 8px 22px;
    border-radius: 58% 42% 55% 45% / 60% 45% 55% 40%;
    text-decoration: none;
    font-size: 0.95em;
    transition: background 0.3s;
}

.ler:hover {
    background: #3f5a47;
}

.relacionados {
    margin-top: 50px;
}

.relacionados > h2 {
    font-weight: normal;
    text-align: center;
    margin-bottom: 24px;
}

footer {
    background: #2c3e50;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 34px 20px;
    border-radius: 24px 24px 0 0;
    line-height: 1.8;
}

footer a {
    color: #c8dccb;
}
