/* ===== Reset simples ===== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Base ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #2b2b2b;
    background: #faf8f5;
    line-height: 1.6;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Cabeçalho ===== */
.site-header {
    background: #c0392b;
    color: #fff;
    padding: 22px 0;
}
.site-header .wrap {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}
.site-logo {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}
.site-tagline {
    margin: 0;
    font-size: 14px;
    opacity: .85;
}

/* ===== Campo de busca ===== */
.search-form {
    display: flex;
    gap: 6px;
    margin-left: auto;
    align-items: center;
}
.search-form input[type="search"] {
    padding: 9px 12px;
    border-radius: 6px;
    border: none;
    min-width: 200px;
    font-size: 14px;
}
.search-form button {
    padding: 9px 16px;
    border-radius: 6px;
    border: none;
    background: #2b2b2b;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}
.search-form button:hover { background: #1a1a1a; }
@media (max-width: 560px) {
    .search-form { width: 100%; margin-left: 0; }
    .search-form input[type="search"] { flex: 1; min-width: 0; }
}

/* ===== Espaços de anúncio ===== */
.ad-slot {
    max-width: 1100px;
    margin: 18px auto;
    padding: 10px;
    text-align: center;
    background: #f0ede8;
    border: 1px dashed #c9c2b6;
    border-radius: 6px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-slot__label {
    position: absolute;
    margin-top: -34px;
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #999;
}
.ad-slot--top,
.ad-slot--footer { min-height: 90px; }
.ad-slot--sidebar { min-height: 250px; margin: 0 0 20px; }
.ad-slot--in-content { min-height: 100px; margin: 30px auto; }

/* ===== Grade de posts (início) ===== */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin: 30px 0;
}
@media (max-width: 860px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .post-grid { grid-template-columns: 1fr; }
}

.post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
}
.post-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #eee;
}
.post-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.post-card__title {
    font-size: 18px;
    margin: 0;
    line-height: 1.3;
}
.post-card__excerpt {
    font-size: 14px;
    color: #555;
    margin: 0;
    flex: 1;
}
.post-card__date {
    font-size: 12px;
    color: #999;
}

/* ===== Paginação ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0 50px;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2ddd3;
    font-size: 14px;
}
.pagination a:hover { background: #f0ede8; }
.pagination .is-current {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

/* ===== Página do post ===== */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 36px;
    align-items: start;
    margin: 30px 0 50px;
}
@media (max-width: 780px) {
    .post-layout { grid-template-columns: 1fr; }
}

.post-full__title {
    font-size: 32px;
    line-height: 1.25;
    margin: 0 0 10px;
}
.post-full__date {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}
.post-full__image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 24px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #eee;
}
.post-full__content {
    font-size: 17px;
}
.post-full__content p { margin: 0 0 1.2em; }
.post-full__content img { border-radius: 8px; margin: 1em 0; }

.sidebar {
    position: sticky;
    top: 20px;
}

/* ===== Rodapé ===== */
.site-footer {
    background: #2b2b2b;
    color: #ccc;
    padding: 24px 0;
    margin-top: 40px;
    font-size: 13px;
    text-align: center;
}
