/* ============ BLOG — complementa site.css ============ */

/* Topo das páginas do blog */
.page-top { background: var(--bg-soft); padding: 160px 0 72px; }
.page-top .wrap { display: grid; gap: 20px; justify-items: start; }
.page-top h1 { font: 400 clamp(38px, 4.6vw, 60px)/1.08 var(--serif); color: var(--plum); letter-spacing: -.015em; max-width: 820px; }
.page-top h1 em { font-style: italic; color: var(--plum-2); }
.page-top .lead { font-size: 17px; max-width: 620px; }
.nav ul a.is-current { color: var(--plum); font-weight: 600; }

/* Topo vinho da listagem */
.dark-top .page-top { background: var(--plum); }
.dark-top .page-top h1 { color: #fff; }
.dark-top .page-top h1 em { color: var(--peach); }
.dark-top .page-top .lead { color: rgba(255,255,255,.75); }
.dark-top .filters button { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.dark-top .filters button:hover { border-color: #fff; color: #fff; }
.dark-top .filters button.is-active { background: var(--peach); border-color: var(--peach); color: var(--plum); }
.dark-top .header:not(.scrolled) .nav:not(.open) .logo img { filter: brightness(0) invert(1); }
.dark-top .header:not(.scrolled) .nav:not(.open) ul a { color: rgba(255,255,255,.82); }
.dark-top .header:not(.scrolled) .nav:not(.open) ul a:hover { color: #fff; }
.dark-top .header:not(.scrolled) .nav:not(.open) ul a.is-current { color: var(--peach); }
.dark-top .header:not(.scrolled) .nav:not(.open) .menu-btn { color: #fff; }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.filters button { font: 600 13px/1 var(--sans); color: #5a4a4c; background: #fff; border: 1px solid var(--line); padding: 11px 16px; border-radius: 100px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filters button:hover { border-color: var(--plum); color: var(--plum); }
.filters button.is-active { background: var(--plum); border-color: var(--plum); color: #fff; }

/* Capas tipográficas */
.cover { position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 16 / 10; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; }
.cover .cv-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.cover .cv-ic svg { width: 20px; height: 20px; }
.cover .cv-word { font: italic 400 clamp(28px, 3vw, 40px)/1 var(--serif); }
.cover--plum { background: var(--plum); color: var(--rose); }
.cover--wine { background: var(--plum-2); color: #fff; }
.cover--rose { background: var(--bg-rose); color: var(--plum); }
.cover--rose .cv-ic { background: #fff; }
.cover--peach { background: var(--peach); color: var(--plum); }
.cover--peach .cv-ic { background: rgba(255,255,255,.45); }
.cover--photo { padding: 0; background: #ddd5d4; }
.cover--photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

/* Destaque */
.blog-list { padding: 72px 0 120px; }
.featured { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-bottom: 72px; margin-bottom: 72px; border-bottom: 1px solid var(--line); }
.featured .cover { aspect-ratio: 4 / 3; border-radius: 22px; }
.featured-body { display: grid; gap: 18px; justify-items: start; }
.featured-body h2 { font: 400 clamp(30px, 3.2vw, 42px)/1.12 var(--serif); color: var(--ink); }
.featured-body h2 a:hover { color: var(--plum); }
.featured-body p { color: var(--muted); font-size: 16px; }
.tag { font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--plum-2); }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 14px; height: 14px; }

/* Grade de posts */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 28px; }
.post-card { display: flex; flex-direction: column; gap: 16px; }
.post-card .cover { transition: transform .35s ease; }
.post-card:hover .cover { transform: translateY(-4px); }
.post-card h3 { font: 500 22px/1.25 var(--serif); color: var(--ink); transition: color .2s; }
.post-card:hover h3 { color: var(--plum); }
.post-card p { color: var(--muted); font-size: 15px; }
.post-card .read { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--sans); color: var(--plum); margin-top: auto; }
.post-card .read svg { width: 14px; height: 14px; transition: transform .2s; }
.post-card:hover .read svg { transform: translate(2px, -2px); }
.is-hidden { display: none !important; }
.empty { display: none; text-align: center; color: var(--muted); padding: 40px 0; }

/* Artigo */
.article-top { background: var(--bg-soft); padding: 150px 0 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--plum); }
.article-top h1 { font: 400 clamp(34px, 4.4vw, 56px)/1.1 var(--serif); color: var(--plum); max-width: 900px; letter-spacing: -.015em; }
.article-top .lead { font-size: 18px; max-width: 760px; }
.author-line { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.author-line img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.author-line strong { display: block; color: var(--ink); font-weight: 600; }
.article-top .wrap { display: grid; gap: 22px; justify-items: start; }
.article-cover { margin-top: 28px; width: 100%; transform: translateY(56px); margin-bottom: -56px; }
.article-cover .cover { aspect-ratio: 21 / 8; border-radius: 22px; padding: 36px; }
.article-cover .cover .cv-word { font-size: clamp(40px, 6vw, 84px); }

.article-body { padding: 120px 0 100px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 72px; justify-content: space-between; align-items: start; }
.aside { position: sticky; top: 110px; display: grid; gap: 16px; }
.toc { border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.toc h4 { font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #a99ea2; margin-bottom: 14px; }
.toc ol { list-style: none; display: grid; gap: 2px; counter-reset: t; }
.toc a { display: flex; gap: 10px; font-size: 14px; line-height: 1.4; color: #5a4a4c; padding: 8px 10px; border-radius: 8px; transition: background .2s, color .2s; }
.toc a::before { counter-increment: t; content: counter(t, decimal-leading-zero); font-weight: 600; color: #b9aeb1; font-size: 12px; padding-top: 1px; }
.toc a:hover, .toc a.is-active { background: var(--bg-rose); color: var(--plum); }
.aside-cta { background: var(--plum); color: #fff; border-radius: 16px; padding: 24px; display: grid; gap: 12px; }
.aside-cta h4 { font: 400 22px/1.2 var(--serif); }
.aside-cta p { font-size: 14px; color: rgba(255,255,255,.75); }
.aside-cta .btn { justify-content: space-between; }

.prose { font-size: 17px; line-height: 1.8; color: #3d3537; }
.prose > * + * { margin-top: 22px; }
.prose h2 { font: 400 30px/1.2 var(--serif); color: var(--plum); margin-top: 52px; scroll-margin-top: 110px; }
.prose h3 { font: 600 18px/1.4 var(--sans); color: var(--ink); margin-top: 32px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--plum-2); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--peach); }
.prose ol { counter-reset: o; }
.prose ol li { position: relative; padding-left: 40px; counter-increment: o; }
.prose ol li::before { content: counter(o); position: absolute; left: 0; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-rose); color: var(--plum); font: 700 12px/26px var(--sans); text-align: center; }
.callout { background: var(--bg-rose); border-radius: 14px; padding: 22px 24px; display: flex; gap: 14px; font-size: 16px; line-height: 1.65; }
.callout svg { width: 22px; height: 22px; color: var(--plum-2); flex: none; margin-top: 2px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; border-radius: 14px; overflow: hidden; }
.prose th { background: var(--plum); color: #fff; text-align: left; font-weight: 600; padding: 14px 16px; }
.prose td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:nth-child(even) td { background: var(--bg-soft); }
.disclaimer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.6; }

.author-box { margin-top: 40px; display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center; background: var(--bg-soft); border-radius: 18px; padding: 24px; }
.author-box img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; object-position: 50% 18%; }
.author-box strong { display: block; font: 500 20px/1.2 var(--serif); color: var(--plum); margin-bottom: 6px; }
.author-box p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.related { background: var(--bg-soft); padding: 100px 0; }
.related-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; }
.related-head > div { display: grid; gap: 16px; justify-items: start; }

/* Responsivo */
@media (max-width: 1080px) {
  .featured { grid-template-columns: 1fr; gap: 28px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .aside { position: static; order: -1; }
  .aside-cta { display: none; }
}
@media (max-width: 640px) {
  .page-top { padding: 120px 0 48px; }
  .blog-list { padding: 48px 0 80px; }
  .featured { padding-bottom: 48px; margin-bottom: 48px; }
  .post-grid { grid-template-columns: 1fr; gap: 40px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; padding-bottom: 2px; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { white-space: nowrap; }
  .article-top { padding-top: 120px; }
  .article-cover { transform: translateY(32px); margin-bottom: -32px; }
  .article-cover .cover { aspect-ratio: 16 / 9; padding: 22px; border-radius: 16px; }
  .article-body { padding: 72px 0 72px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 25px; margin-top: 40px; }
  .prose table { font-size: 13px; }
  .prose th, .prose td { padding: 10px; }
  .author-box { grid-template-columns: 1fr; }
  .related { padding: 72px 0; }
  .related-head { flex-direction: column; align-items: flex-start; }
}

/* capa com foto em <picture> (WebP) */
.cover--photo picture { display: contents; }
