/* ============================================================
   blog.css — listagem + artigo · Sol-Poente (Luís Morais)
   depende de hero-common.css (tokens, nav, .cta, etc.)
   ============================================================ */

.page { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ---------- cabeçalho de página ---------- */
.page-head { padding: 54px 0 30px; }
.page-head .cap { display: block; margin-bottom: 12px; }
.page-head h1 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02; letter-spacing: -.02em; margin: 0; max-width: 16ch;
}
.page-head h1 em { font-style: normal; color: var(--ember); }
.page-head p { font-size: 19px; line-height: 1.5; color: var(--ink-2); margin: 16px 0 0; max-width: 52ch; }
.page-head p b { color: var(--ink); font-weight: 600; }

/* ---------- post em destaque ---------- */
.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: stretch;
  background: rgba(253,248,241,.62); border: 1px solid rgba(255,255,255,.65);
  border-radius: 26px; overflow: hidden; box-shadow: 0 10px 30px rgba(70,40,20,.12);
  margin-bottom: 40px; text-decoration: none; color: var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 20px 46px rgba(70,40,20,.18); }
.feature image-slot { display: block; width: 100%; height: 100%; min-height: 320px; }
/* capa do post em destaque: caneca de café + brand "Luís Morais · Blog" */
.feat-cover {
  margin-left: 20px;
  margin-bottom: 20px;
  margin-top: 20px;
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  min-height: 320px;
  max-height: 360px;

  overflow: hidden;
  background-image: url("https://upload.wikimedia.org/wikipedia/commons/5/56/Rel%C3%B3gio-de-Sol-Areia-Preta-Natal.jpg");
    
    /* 1. Faz a imagem inteira caber dentro da div sem distorcer */
    background-size: contain;
    
    /* 2. Centraliza a imagem na div */
    background-position: center;
    
    /* 3. Evita que a imagem fique se repetindo como um mosaico */
    background-repeat: no-repeat;
}



.feat-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.feat-mug { width: 96px; height: 96px; position: relative; z-index: 1;
  filter: drop-shadow(0 8px 16px rgba(232,80,31,.22)); }
.feat-brand { position: relative; z-index: 1;
  font-family: var(--serif); font-weight: 700; font-size: 22px;
  color: var(--ink); letter-spacing: -.012em;
}
.feat-brand span { color: var(--ember); margin: 0 4px; }

/* card "Em breve" no posts-grid */
.post-card.post-soon { cursor: default; opacity: .92; }
.post-card.post-soon:hover { transform: none; box-shadow: 0 8px 24px rgba(70,40,20,.1); border-color: rgba(255,255,255,.65); }
.soon-cover {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 188px;
  background-image: url('images/swagger.jpg');
  background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  border-bottom: 1px dashed var(--line);
}
.soon-icon {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px dashed rgba(36,29,24,.32);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
}
.soon-icon svg { width: 24px; height: 24px; }
.soon-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ember);
  background: color-mix(in srgb, var(--sun) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--ember) 35%, transparent);
  padding: 4px 10px; border-radius: 999px;
}
.soon-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); opacity: .7; }
.feature .fbody { padding: 34px 34px 32px; display: flex; flex-direction: column; justify-content: center; }
.feature .pill { align-self: flex-start; font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: #fff; background: var(--ember); border-radius: 999px;
  padding: 5px 12px; margin-bottom: 16px; white-space: nowrap; }
.feature h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.08; letter-spacing: -.02em; margin: 0 0 12px; }
.feature .excerpt { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); margin: 0 0 20px; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.post-meta .dotsep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-2); opacity: .5; }

/* ---------- grid de posts ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 30px; }
.post-card { display: flex; flex-direction: column; background: rgba(253,248,241,.6);
  border: 1px solid rgba(255,255,255,.65); border-radius: 20px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(70,40,20,.1); text-decoration: none; color: var(--ink);
  transition: transform .2s, box-shadow .2s, border-color .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(70,40,20,.16);
  border-color: color-mix(in srgb, var(--sun) 50%, #fff); }
.post-card image-slot { display: block; width: 100%; height: 188px; }
.post-card .pbody { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card .ptag { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--ember);
  text-transform: uppercase; margin-bottom: 9px; }
.post-card h3 { font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.12;
  letter-spacing: -.01em; margin: 0 0 8px; }
.post-card .excerpt { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin: 0 0 16px; }
.post-card .post-meta { margin-top: auto; font-size: 13px; }

/* paginação simples / newsletter */
.blog-cta { margin: 14px 0 56px; background: var(--ink); color: var(--card); border-radius: 24px;
  padding: 34px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.blog-cta h3 { font-family: var(--serif); font-weight: 700; font-size: 24px; margin: 0; line-height: 1.1; }
.blog-cta h3 span { color: var(--warm); }
.blog-cta p { margin: 6px 0 0; color: rgba(253,248,241,.65); font-size: 15px; }
.blog-cta form { display: flex; gap: 10px; flex: 0 0 auto; }
.blog-cta input { font-family: var(--sans); font-size: 15px; border: none; border-radius: 12px;
  padding: 14px 16px; width: 240px; max-width: 60vw; outline: none; }
.blog-cta .cta { background: var(--ember); }

/* ============================================================
   ARTIGO (Blog Post.html)
   ============================================================ */
.article { position: relative; z-index: 2; }
.article .narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  color: var(--ink-2); text-decoration: none; padding: 30px 0 0; transition: gap .16s, color .16s; }
.back-link:hover { gap: 12px; color: var(--ember); }

.art-head { padding: 22px 0 26px; }
.art-head .ptag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ember); }
.art-head h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.04; letter-spacing: -.02em; margin: 12px 0 18px; }
.art-byline { display: flex; align-items: center; gap: 12px; }
.art-byline .avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.7); box-shadow: 0 0 0 3px rgba(253,248,241,.6); }
.art-byline .avatar img { width: 100%; height: 100%; object-fit: cover; }
.art-byline .bmeta b { font-family: var(--serif); font-size: 15px; display: block; }
.art-byline .bmeta span { font-size: 13px; color: var(--ink-2); }

.art-hero { max-width: 1000px; margin: 8px auto 8px; padding: 0 28px; }
.art-hero image-slot { display: block; width: 100%; height: 440px; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.6); box-shadow: 0 24px 60px rgba(50,25,10,.28); }

/* prosa */
.prose { padding: 34px 0 10px; }
.prose > * { max-width: 100%; }
.prose p { font-size: 18.5px; line-height: 1.7; color: #312a23; margin: 0 0 22px; }
.prose h2 { font-family: var(--serif); font-weight: 700; font-size: 28px; letter-spacing: -.01em;
  margin: 40px 0 14px; }
.prose h3 { font-family: var(--serif); font-weight: 700; font-size: 21px; margin: 30px 0 10px; }
.prose a { color: var(--ember); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 4px; list-style: none; }
.prose li { position: relative; font-size: 18px; line-height: 1.6; color: #312a23; padding-left: 26px; margin-bottom: 10px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 7px; height: 7px;
  border-radius: 50%; background: linear-gradient(180deg, var(--sun), var(--ember)); }
.prose ol { counter-reset: li; }
.prose ol li::before { counter-increment: li; content: counter(li); position: absolute; left: 0; top: 1px;
  font-family: var(--serif); font-weight: 700; font-size: 14px; color: var(--ember); }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--ember);
  font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.4; color: var(--ink); font-style: italic; }
.prose figure { margin: 28px 0; }
.prose figure image-slot { display: block; width: 100%; height: 320px; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.6); box-shadow: 0 14px 34px rgba(50,25,10,.2); }
.prose figcaption { font-size: 13.5px; color: var(--ink-2); text-align: center; margin-top: 10px; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }

.art-tags { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 0 0; }
.art-tags .t { font-size: 13px; font-weight: 500; color: var(--ink-2); background: rgba(36,29,24,.06);
  border-radius: 999px; padding: 6px 13px; }

.art-share { display: flex; align-items: center; gap: 12px; padding: 28px 0; margin-top: 18px;
  border-top: 1px solid var(--line); }
.art-share span { font-size: 14px; color: var(--ink-2); }
.art-share a { width: 40px; height: 40px; border-radius: 11px; background: rgba(253,248,241,.6);
  border: 1px solid rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center;
  color: var(--ink); transition: transform .16s, background .16s; }
.art-share a:hover { transform: translateY(-2px); background: var(--ember); color: #fff; }
.art-share a svg { width: 18px; height: 18px; }

/* comentários (Giscus) */
.comments { max-width: 760px; margin: 0 auto; padding: 40px 28px 20px; }
.cmt-head { padding-top: 30px; border-top: 1px solid var(--line); margin-bottom: 18px; }
.cmt-head h3 { font-family: var(--serif); font-weight: 700; font-size: 24px; margin: 0 0 6px; letter-spacing: -.01em; }
.cmt-head p { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.giscus-wrap { background: rgba(253,248,241,.55); border: 1px solid rgba(255,255,255,.6);
  border-radius: 18px; padding: 18px 18px 8px; box-shadow: 0 8px 24px rgba(70,40,20,.08); }
.giscus, .giscus-frame { width: 100% !important; }
.giscus-frame { border: none; }

/* mais posts */
.more { padding: 8px 0 56px; }
.more .mhead { display: flex; align-items: baseline; justify-content: space-between; padding: 30px 0 18px;
  border-top: 1px solid var(--line); }
.more .mhead h3 { font-family: var(--serif); font-weight: 700; font-size: 24px; margin: 0; }
.more .mhead a { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 1.5px solid color-mix(in srgb, var(--ember) 55%, transparent); padding-bottom: 2px; }

@media (max-width: 880px) {
  .feature { grid-template-columns: 1fr; }
  .feature image-slot { min-height: 220px; height: 220px; }
  .feature .fbody { padding: 24px; }
  .posts-grid { grid-template-columns: 1fr; }
  .blog-cta { flex-direction: column; align-items: flex-start; }
  .blog-cta input { width: 100%; }
  .art-hero image-slot { height: 260px; }
  .prose p, .prose li { font-size: 17px; }
}
/* ==========================================================================
   CORREÇÃO DO RODAPÉ (SITE-FOOT)
   ========================================================================== */
footer.site-foot { 
  position: relative; 
  z-index: 2; 
  background: #241d18; /* Cor escura padrão var(--ink) */
  color: #fdf8f1;      /* Cor clara padrão var(--card) */
  margin-top: 60px; 
  width: 100%;
  box-sizing: border-box;
}
.foot-inner { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 44px 40px 30px; 
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr; 
  gap: 30px; 
}
.foot-brand .fb { 
  font-family: 'Bricolage Grotesque', Georgia, serif; 
  font-weight: 700; 
  font-size: 22px; 
  color: #fdf8f1;
}
.foot-brand .fb span { 
  color: #ff7a36; /* Cor laranja var(--warm) / var(--ember) */
}
.foot-brand p { 
  color: rgba(253,248,241,.6); 
  font-size: 14px; 
  max-width: 34ch; 
  margin: 10px 0 0; 
  line-height: 1.5; 
}
.foot-col h4 { 
  font-size: 12px; 
  letter-spacing: .12em; 
  text-transform: uppercase; 
  color: rgba(253,248,241,.5); 
  margin: 0 0 10px; 
}
.foot-col a { 
  display: block; 
  color: rgba(253,248,241,.85); 
  text-decoration: none; 
  font-size: 14.5px; 
  padding: 5px 0; 
  transition: color .15s; 
}
.foot-col a:hover { 
  color: #fff; 
}
.foot-bot { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 16px 40px 28px; 
  border-top: 1px solid rgba(253,248,241,.14);
  display: flex; 
  justify-content: space-between; 
  gap: 14px; 
  font-size: 13px; 
  color: rgba(253,248,241,.5); 
  flex-wrap: wrap; 
}
.foot-bot a { 
  color: rgba(253,248,241,.7); 
  text-decoration: none; 
}

/* Responsividade do Footer no Blog */
@media (max-width: 880px) {
  .foot-inner { 
    grid-template-columns: 1fr; 
    gap: 24px; 
    padding: 36px 28px 24px; 
  }
  .foot-bot { 
    padding: 16px 28px 24px; 
  }
}