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

body {
    background-color: #EBE7E0;
    color: #444444;
    font-family: 'Kalam', cursive;
    font-size: 15px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.page-wrapper {
    width: 100%;
    max-width: 420px;
    min-height: 100vh;
    padding: 2rem 1.2rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ── HEADER ── */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #000;
    text-align: center;
}

header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.5px;
    text-decoration: none;
}

header h1 a {
    text-decoration: none;
    color: inherit;
}

header .subtitle {
    font-size: 12px;
    color: #888;
}

/* ── NAV ── */
nav {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 0.6rem;
}

nav a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #444;
    font-family: 'Kalam', cursive;
    font-size: 13px;
    border: 1px solid #000;
    padding: 10px 6px;
    background: transparent;
    transition: background 0.15s, color 0.15s;
}

nav a:hover,
nav a.active {
    background: #000;
    color: #EBE7E0;
}

/* ── MAIN ── */
main {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

/* ── TIPOGRAFIA ── */
.post-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 0.4rem;
}

.post-title {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.8rem;
}

.post-body {
    line-height: 1.85;
    color: #444;
    font-size: 14px;
}

.post-body p {
    margin-bottom: 0.9rem;
}

.post-body a {
    color: #444;
    text-underline-offset: 3px;
}

.post-body a:hover {
    color: #000;
}

/* ── DIVISÓRIA ── */
hr.divider {
    border: none;
    border-top: 0.5px solid #ccc;
    width: 100%;
}

/* ── LISTA DE TEXTOS ── */
.post-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.post-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 0.5px solid #ddd;
    padding: 10px 0;
    gap: 1rem;
}

.post-list li:first-child {
    border-top: 0.5px solid #ddd;
}

.post-list a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.post-list a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-date {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── RODAPÉ ── */
footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 0.5px solid #ccc;
    text-align: center;
    font-size: 11px;
    color: #aaa;
}

/* Estilo para imagens nos posts */
.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1.5px solid #000;
    margin: 0.5rem 0;
}

/* Estilo para o botão 'início' na navegação */
nav a.nav-home {
    background-color: #F7F4EE; /* Um tom um pouco mais claro que o fundo */
}

/* Estilo para o botão 'voltar' no rodapé dos textos */
footer .back-button {
    text-decoration: none;
    color: #444;
    border: 1px solid #000;
    padding: 8px 12px;
    background: transparent;
    transition: background 0.15s, color 0.15s;
    font-size: 13px;
    display: inline-block;
}

footer .back-button:hover {
    background: #000;
    color: #EBE7E0;
}
