/* ===================================================
   ACERVO.CSS · Andrea Basílio
   Blog: /blog/ (todos.html), /blog/arquivo/ e página de espera.
   Espelha os cards (.blog-card) e o texto de post do antigo post.html.
   Tudo escopado em .acervo-page.
   =================================================== */

.acervo-page .header { background: rgba(255,255,255,.97); }
.acervo-page .nav__link[aria-current="page"] { color: var(--ink); }
.acervo-page .nav__link[aria-current="page"]::after { width: 100%; }

.acervo-main { background: var(--cream); padding-top: var(--hh); min-height: 60vh; }

/* ── Seção e intro (listagem) ─────────────────────── */
.acervo-page .section { padding-block: clamp(4rem, 8vw, 7rem); }
.acervo-page .wrapper {
  width: 100%;
  max-width: var(--w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.acervo-page .intro { text-align: center; max-width: 680px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.acervo-page .title {
  display: inline-block;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--coral-dk);
  margin-bottom: .75rem;
}
.acervo-page .intro h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.acervo-page .divider {
  width: 56px;
  height: 1px;
  background: var(--coral);
  margin: 1.5rem auto 0;
}
.acervo-page .text-grey { color: var(--ink-50); text-align: center; margin-bottom: 1.5rem; }
.acervo-page .text-grey a { color: var(--coral-dk); text-decoration: underline; }

/* ── Grade de cards (mesmo desenho do .blog-card) ── */
.acervo-page .posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
/* com um card só, centraliza em vez de ocupar 1/3 à esquerda */
.acervo-page .posts:has(> .post-33:only-child) { grid-template-columns: minmax(0, 420px); justify-content: center; }
@media (max-width: 900px) { .acervo-page .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .acervo-page .posts { grid-template-columns: 1fr; } }

.acervo-page .post-33 {
  position: relative;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease);
}
.acervo-page .post-33:hover { transform: translateY(-4px); box-shadow: 0 20px 56px rgba(0,0,0,.1); }

/* capa: o link segura um <img> (nunca background-image inline) */
.acervo-page .post-card-preview-m {
  display: block;
  padding: 0;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: linear-gradient(135deg, var(--coral-lt) 0%, var(--warm) 100%);
  flex-shrink: 0;
}
.acervo-page .post-card-preview-m img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--slow) var(--ease);
}
.acervo-page .post-33:hover .post-card-preview-m img { transform: scale(1.04); }

.acervo-page .post-card-bottom {
  order: 1;
  font-size: .73rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--coral-dk);
  padding: 1.5rem 1.5rem 0;
}
.acervo-page .post-heading {
  order: 2;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  margin: .6rem 1.5rem .65rem;
}
.acervo-page .post-heading a { color: inherit; }
.acervo-page .post-heading a::after { content: ''; position: absolute; inset: 0; }
.acervo-page .post-heading a:hover { color: var(--coral-dk); }
.acervo-page .post-card-decription {
  order: 3;
  font-size: .87rem;
  color: var(--ink-50);
  line-height: 1.75;
  margin: 0 1.5rem 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Página do artigo ─────────────────────────────── */
.acervo-page .artigo { max-width: 760px; margin-inline: auto; }
.acervo-page .artigo > .title { display: block; text-align: center; }
.acervo-page .artigo h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  text-align: center;
}
.acervo-page .artigo > .divider { margin: 1.75rem auto 2.5rem; }
.acervo-page .artigo__capa {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: var(--r-lg);
  margin-bottom: 2.5rem;
  background: var(--warm);
}
.acervo-page .artigo__corpo { font-size: 1.05rem; line-height: 1.85; color: var(--ink-80); }
.acervo-page .artigo__corpo h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  margin: 2.5rem 0 1rem;
  letter-spacing: -.01em;
}
.acervo-page .artigo__corpo h3 {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  margin: 2rem 0 .85rem;
}
.acervo-page .artigo__corpo p { margin-bottom: 1.25rem; }
.acervo-page .artigo__corpo ul,
.acervo-page .artigo__corpo ol { margin: 0 0 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.acervo-page .artigo__corpo ul { list-style: disc; }
.acervo-page .artigo__corpo ol { list-style: decimal; }
.acervo-page .artigo__corpo li { line-height: 1.75; }
.acervo-page .artigo__corpo li::marker { color: var(--coral-dk); }
.acervo-page .artigo__corpo strong { color: var(--ink); font-weight: 500; }
.acervo-page .artigo__corpo a { color: var(--coral-dk); text-decoration: underline; text-underline-offset: 3px; }
.acervo-page .artigo__corpo img { max-width: 100%; height: auto; border-radius: var(--r-md); margin: 1.75rem auto; }
.acervo-page .artigo__voltar { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.acervo-page .artigo__voltar a { font-size: .88rem; font-weight: 500; color: var(--coral-dk); }
.acervo-page .artigo__voltar a:hover { color: var(--ink); }

@media (max-width: 600px) { .acervo-page .artigo__corpo { font-size: 1rem; } }

/* ── Página de espera (contingência) ──────────────── */
.acervo-espera { padding-block: clamp(5rem, 10vw, 9rem); text-align: center; }
.acervo-espera__titulo {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  max-width: 680px;
  margin: 0 auto 1rem;
}
.acervo-espera__titulo em { font-style: italic; color: var(--coral-dk); }
.acervo-espera__texto { color: var(--ink-50); max-width: 560px; margin: 0 auto 2.5rem; line-height: 1.8; }
.acervo-espera__acoes { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
