/* ============================================================
   ACERVO.CSS · Instituto dell'Anima
   Páginas do blog: /blog/ (todos.html), /blog/arquivo/ e a página
   de espera. Usa os tokens do styles.css — nenhuma cor nova.
   Tudo escopado em .acervo-page.
============================================================ */

.acervo-main {
  padding-top: 100px;
  background: var(--white);
  min-height: 60vh;
}

/* ── Seção e intro (listagem) ── */
.acervo-page .section { padding: clamp(48px, 7vw, 80px) 0; }
.acervo-page .wrapper {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.acervo-page .intro { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.acervo-page .title {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 10px;
}
.acervo-page .intro h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.2;
}
.acervo-page .divider {
  width: 60px;
  height: 2px;
  background: var(--brown);
  margin: 20px auto 0;
}
.acervo-page .text-grey { color: var(--text-medium); text-align: center; margin-bottom: 24px; }
.acervo-page .text-grey a { color: var(--green); text-decoration: underline; }

/* ── Grade de cards ── */
.acervo-page .posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 960px) { .acervo-page .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .acervo-page .posts { grid-template-columns: 1fr; } }

.acervo-page .post-33 {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.acervo-page .post-33:hover { transform: translateY(-4px); box-shadow: var(--shadow-medium); }

/* capa: <img> dentro do link, nunca background-image inline (a Netlify escapa
   as aspas do url() e a imagem some só no site publicado) */
.acervo-page .post-card-preview-m {
  display: block;
  padding: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--off-white-alt);
  flex-shrink: 0;
}
.acervo-page .post-card-preview-m img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.acervo-page .post-33:hover .post-card-preview-m img { transform: scale(1.04); }

.acervo-page .post-card-bottom {
  order: 1;
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 20px 24px 0;
}
.acervo-page .post-heading {
  order: 2;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.3;
  margin: 10px 24px 10px;
}
.acervo-page .post-heading a { color: inherit; text-decoration: none; }
.acervo-page .post-heading a::after { content: ''; position: absolute; inset: 0; }
.acervo-page .post-heading a:hover { color: var(--brown-dark); }
.acervo-page .post-card-decription {
  order: 3;
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin: 0 24px 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Página do artigo ── */
.acervo-page .artigo { max-width: 760px; margin: 0 auto; }
.acervo-page .artigo > .title { display: block; text-align: center; }
.acervo-page .artigo h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.22;
  text-align: center;
}
.acervo-page .artigo > .divider { margin: 24px auto 36px; }
.acervo-page .artigo__capa {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  background: var(--off-white-alt);
}
.acervo-page .artigo__corpo { font-size: 1.02rem; line-height: 1.85; color: var(--text-medium); }
.acervo-page .artigo__corpo h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.8vw, 1.8rem);
  font-weight: 700;
  color: var(--green-dark);
  margin: 42px 0 16px;
  line-height: 1.3;
}
.acervo-page .artigo__corpo h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  font-weight: 600;
  color: var(--green);
  margin: 30px 0 12px;
}
.acervo-page .artigo__corpo p { margin-bottom: 20px; }
.acervo-page .artigo__corpo ul { list-style: disc; margin: 0 0 20px 26px; }
.acervo-page .artigo__corpo ol { list-style: decimal; margin: 0 0 20px 26px; }
.acervo-page .artigo__corpo li { margin-bottom: 8px; }
.acervo-page .artigo__corpo li::marker { color: var(--brown); }
.acervo-page .artigo__corpo strong { color: var(--text-dark); font-weight: 600; }
.acervo-page .artigo__corpo blockquote {
  margin: 0 0 22px;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--brown-light);
  color: var(--text-dark);
}
.acervo-page .artigo__corpo a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.acervo-page .artigo__corpo a:hover { color: var(--brown-dark); }
.acervo-page .artigo__corpo img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 24px 0;
}
.acervo-page .artigo__voltar {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}
.acervo-page .artigo__voltar a { font-weight: 600; color: var(--green); text-decoration: none; }
.acervo-page .artigo__voltar a:hover { color: var(--brown-dark); }

/* ── Página de espera (contingência do motor central) ── */
.acervo-espera { padding: clamp(64px, 11vw, 120px) 0; text-align: center; }
.acervo-espera__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 12px;
}
.acervo-espera h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.2;
}
.acervo-espera h1 em { color: var(--brown); font-style: italic; }
.acervo-espera p { max-width: 580px; margin: 18px auto 0; color: var(--text-medium); }
.acervo-espera__acoes {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}
