/* Blog Jeisa Andrade — mesma IDV do site (vinho, dourado, Merriweather + Inter) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-var.woff2') format('woff2'); }
@font-face { font-family: 'Merriweather'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/merriweather-400.woff2') format('woff2'); }
@font-face { font-family: 'Merriweather'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/merriweather-700.woff2') format('woff2'); }
@font-face { font-family: 'Merriweather'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/merriweather-italic-400.woff2') format('woff2'); }

:root {
  --wine-deep: #3F0E14;
  --wine-inst: #6B191F;
  --wine-accent: #881E28;
  --gold-light: #D6C18A;
  --gold-aged: #B49956;
  --gold-btn: #C38F3A;
  --cream: #F3EDE3;
  --warm-white: #FDFAF6;
  --text-dark: #1E0A0C;
  --text-body: #3D2B2F;
  --text-muted: #7A6067;
  --border-gold: rgba(180,153,86,.28);
  --border-subtle: rgba(63,14,20,.09);
  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(.25,.46,.45,.94);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--warm-white);
  color: var(--text-body);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-serif); color: var(--wine-deep); line-height: 1.22; letter-spacing: -.015em; font-weight: 700; text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(15px, 5vw, 3rem); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold-btn); outline-offset: 3px; }

.label {
  display: inline-block;
  font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-aged); margin-bottom: .75rem;
}
a.label:hover { color: var(--wine-accent); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 2rem; font-family: var(--font-serif); font-size: .88rem; font-weight: 400; letter-spacing: .03em;
  border: none; cursor: pointer; white-space: nowrap; color: #fff;
  transition: background .22s var(--ease-out), transform .22s var(--ease-out), box-shadow .22s var(--ease-out);
}
.btn:active { transform: scale(.985) translateY(1px); }
.btn-sm { padding: .62rem 1.2rem; font-size: .8rem; }
.btn-gold { background: var(--gold-btn); }
.btn-gold:hover { background: #a97930; box-shadow: 0 10px 28px -8px rgba(195,143,58,.45); transform: translateY(-2px); }
.btn-primary { background: var(--wine-inst); }
.btn-primary:hover { background: var(--wine-deep); }

/* Espaço do menu fixo (menu.css) */
body { padding-top: 68px; }

/* Abertura do blog */
.blog-intro { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); background: var(--cream); border-bottom: 1px solid var(--border-subtle); }
.blog-intro h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 22ch; }
.blog-intro p { margin-top: 1rem; max-width: 60ch; color: var(--text-muted); font-size: 1.02rem; }
.blog-intro p a { color: var(--wine-accent); text-decoration: underline; text-underline-offset: 3px; }
.blog-intro--curta h1 { max-width: 30ch; }

.busca { display: flex; gap: .5rem; margin-top: 1.75rem; max-width: 520px; }
.busca input {
  flex: 1; min-width: 0; padding: .7rem 1rem; font: inherit; font-size: .95rem; color: var(--text-dark);
  background: #fff; border: 1px solid var(--border-gold); border-radius: 0;
}
.busca input:focus { outline: none; border-color: var(--gold-btn); box-shadow: 0 0 0 3px rgba(195,143,58,.15); }

.migalhas { font-size: .78rem; color: var(--text-muted); margin-bottom: 1rem; }
.migalhas a:hover { color: var(--wine-accent); text-decoration: underline; }

/* Lista */
.blog-lista { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }
.vazio { color: var(--text-muted); }
.vazio a { color: var(--wine-accent); text-decoration: underline; }
.grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }

.card { display: flex; flex-direction: column; }
.card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--wine-deep); }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .5s var(--ease-out); }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding-top: 1.1rem; }
.card-titulo { font-size: 1.12rem; }
.card-titulo a:hover { color: var(--wine-accent); }
.card-resumo { margin-top: .6rem; font-size: .92rem; color: var(--text-body); }
.card-meta { margin-top: .7rem; font-size: .76rem; color: var(--text-muted); }

.card--destaque { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-bottom: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--border-subtle); }
.card--destaque .card-body { padding-top: 0; }
.card--destaque .card-titulo { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.card--destaque .card-resumo { font-size: 1rem; margin-top: 1rem; }

/* Capa tipográfica quando o post não tem imagem */
.capa-tipo {
  width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem;
  background: radial-gradient(120% 90% at 85% 10%, var(--wine-accent) 0%, var(--wine-deep) 60%);
}
.capa-tipo { position: relative; container-type: inline-size; }
.capa-marca { position: absolute; top: 1.4rem; left: 1.5rem; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-aged); }
.capa-regra { width: 2.75rem; height: 1px; background: linear-gradient(90deg, var(--gold-aged), var(--gold-light)); margin-bottom: .8rem; }
.capa-titulo { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1rem, 6.2cqi, 1.9rem); line-height: 1.25; color: #F5EDD8; text-wrap: balance; max-width: 26ch; }


.paginacao { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 3.5rem; font-size: .88rem; color: var(--text-muted); }
.paginacao a { color: var(--wine-accent); font-weight: 500; }
.paginacao a:hover { text-decoration: underline; }

/* Artigo */
.artigo { padding-top: clamp(2.5rem, 5vw, 4rem); }
.artigo-topo { max-width: calc(760px + 2 * clamp(15px, 5vw, 3rem)); }
.artigo-topo h1 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
.artigo-linha-fina { margin-top: 1rem; font-size: 1.12rem; color: var(--text-muted); line-height: 1.6; }
.artigo-meta { display: flex; align-items: center; gap: .9rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border-subtle); }
.artigo-autora-foto { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; flex-shrink: 0; }
.artigo-meta p { display: flex; flex-direction: column; font-size: .82rem; line-height: 1.5; }
.artigo-autora { color: var(--text-dark); }
.artigo-autora a { color: var(--wine-accent); font-weight: 500; }
.artigo-datas { color: var(--text-muted); }

.artigo-capa { margin-top: 2.25rem; max-width: calc(1040px + 2 * clamp(15px, 5vw, 3rem)); }
.artigo-capa img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 30%; }

.artigo-corpo { max-width: calc(760px + 2 * clamp(15px, 5vw, 3rem)); padding-top: 2.5rem; padding-bottom: clamp(3rem, 6vw, 5rem); }

.sumario { background: var(--cream); border-left: 2px solid var(--gold-aged); padding: 1.25rem 1.5rem; margin-bottom: 2.5rem; }
.sumario-titulo { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-aged); font-weight: 500; margin-bottom: .5rem; }
.sumario ul { list-style: none; font-size: .92rem; }
.sumario li + li { margin-top: .3rem; }
.sumario a { color: var(--wine-inst); }
.sumario a:hover { text-decoration: underline; }

.texto { font-size: 1.06rem; color: var(--text-body); }
.texto > * + * { margin-top: 1.15rem; }
.texto h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-top: 2.6rem; scroll-margin-top: 90px; }
.texto h3 { font-size: 1.15rem; margin-top: 2rem; }
.texto h2 + *, .texto h3 + * { margin-top: .75rem; }
.texto a { color: var(--wine-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.texto a:hover { color: var(--wine-deep); }
.texto strong { color: var(--text-dark); font-weight: 600; }
.texto ul, .texto ol { padding-left: 1.4rem; }
.texto li + li { margin-top: .4rem; }
.texto li::marker { color: var(--gold-aged); }
.texto blockquote { border-left: 2px solid var(--gold-aged); padding: .25rem 0 .25rem 1.25rem; font-family: var(--font-serif); font-style: italic; color: var(--wine-inst); }
.texto img { width: 100%; margin-top: 2rem; }
.texto figcaption { font-size: .8rem; color: var(--text-muted); margin-top: .5rem; }
.texto hr { border: none; height: 1px; background: var(--border-gold); margin: 2.5rem 0; }
.texto table { width: 100%; border-collapse: collapse; font-size: .92rem; display: block; overflow-x: auto; }
.texto th, .texto td { border-bottom: 1px solid var(--border-subtle); padding: .6rem .75rem; text-align: left; vertical-align: top; }
.texto th { background: var(--cream); color: var(--text-dark); font-weight: 600; }

.artigo-faq { margin-top: 3rem; }
.artigo-faq h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: 1rem; }
.artigo-faq details { border-bottom: 1px solid var(--border-subtle); }
.artigo-faq summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; position: relative; font-family: var(--font-serif); color: var(--wine-deep); font-size: 1rem; }
.artigo-faq summary::-webkit-details-marker { display: none; }
.artigo-faq summary::after { content: '+'; position: absolute; right: .25rem; top: .85rem; color: var(--gold-aged); font-size: 1.3rem; font-family: var(--font-sans); transition: transform .2s; }
.artigo-faq details[open] summary::after { transform: rotate(45deg); }
.artigo-faq details p { padding-bottom: 1.1rem; font-size: .98rem; }

.autora-box { display: flex; gap: 1.5rem; align-items: flex-start; margin-top: 3.5rem; padding: 1.75rem; background: var(--wine-deep); color: rgba(250,248,245,.78); }
.autora-box img { width: 96px; height: 96px; object-fit: cover; object-position: 50% 12%; flex-shrink: 0; }
.autora-nome { font-family: var(--font-serif); color: #F5EDD8; font-size: 1.15rem; }
.autora-oab { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-aged); margin: .1rem 0 .7rem; }
.autora-box p:not([class]) { font-size: .92rem; margin-bottom: 1.1rem; }

.aviso { margin-top: 1.5rem; font-size: .8rem; color: var(--text-muted); }

.relacionados { background: var(--cream); padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--border-subtle); }
.relacionados h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: 2rem; }

/* Rodapé (igual ao site) */
#rodape { background: var(--wine-deep); border-top: 1px solid rgba(214,193,138,.12); }
.rodape-inner { padding-top: 4rem; padding-bottom: 3.5rem; }
.rodape-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 4rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(214,193,138,.1); margin-bottom: 2rem; }
.rodape-logo { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: #F5EDD8; display: block; margin-bottom: .25rem; }
.rodape-sub { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-aged); display: block; margin-bottom: 1.5rem; }
.rodape-disclaimer { font-size: .78rem; color: rgba(250,248,245,.5); max-width: 40ch; }
.rodape-col h2 { font-family: var(--font-sans); font-size: .64rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-aged); margin-bottom: 1.25rem; }
.rodape-col ul { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.rodape-col li { font-size: .82rem; color: rgba(250,248,245,.55); }
.rodape-col a { transition: color .2s; }
.rodape-col a:hover { color: var(--gold-light); }
.rodape-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.rodape-copy { font-size: .74rem; color: rgba(250,248,245,.4); }
.rodape-credito { margin-left: .6rem; padding-left: .6rem; border-left: 1px solid rgba(250,248,245,.2); }
.rodape-credito a:hover, .rodape-links a:hover { color: var(--gold-aged); }
.rodape-links { display: flex; gap: 1.5rem; }
.rodape-links a { font-size: .74rem; color: rgba(250,248,245,.4); }

.wfab { position: fixed; bottom: 1.875rem; right: 1.875rem; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 30px -4px rgba(37,211,102,.45); transition: transform .25s var(--ease-out); }
.wfab:hover { transform: scale(1.09) translateY(-2px); }
.wfab svg { width: 28px; height: 28px; fill: #fff; }

@media (max-width: 1024px) {
  .grade { grid-template-columns: repeat(2, 1fr); }
  .rodape-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .rodape-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  html { font-size: 16px; }
  body { padding-top: 60px; }
  .grade { grid-template-columns: 1fr; gap: 2.25rem; }
  .card--destaque { grid-template-columns: 1fr; gap: 1.1rem; }
  .autora-box { flex-direction: column; padding: 1.5rem; }
  .rodape-top { grid-template-columns: 1fr; gap: 2rem; }
  .rodape-top > :first-child { grid-column: auto; }
  .rodape-bottom { flex-direction: column; text-align: center; }
  .rodape-credito { display: block; margin: .3rem 0 0; padding: 0; border: 0; }
  .wfab { bottom: 1.1rem; right: 1.1rem; width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
