/* Blog · listagem de artigos (linguagem da Proposta 5). Carrega depois de proposta-5.css. */

/* Cabeçalho */
.bhead { position: relative; overflow: hidden; background: var(--cream); padding: 128px 0 clamp(2.5rem, 5vw, 3.5rem); }
.bhead__inner { position: relative; display: grid; gap: 18px; justify-items: start; }
.bhead__crumb { font-size: var(--t-small); color: var(--muted); }
.bhead__crumb a { color: var(--green); text-underline-offset: 4px; }
.bhead__crumb span { margin-inline: 6px; }
.bhead__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 1.4rem + 4vw, 5.25rem); line-height: 1.03; letter-spacing: -0.025em; font-variation-settings: "SOFT" 100, "opsz" 144; max-width: 17ch; text-wrap: balance; }
.bhead__lead { max-width: 48ch; font-size: 1.125rem; }
.bhead__pilar { font-weight: 700; }
.bhead__pilar a { color: var(--orange); text-underline-offset: 4px; }
.bhead { padding-bottom: clamp(5rem, 9vw, 7.5rem); background: var(--green); }
.bhead__inner { z-index: 1; }
.bhead__crumb { color: var(--cream-muted); }
.bhead__crumb a { color: var(--cream); }
.bhead__leaves { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; }
.blist { position: relative; z-index: 1; margin-top: -18px; padding-top: clamp(2.5rem, 5vw, 3.5rem); clip-path: var(--torn-top); }
@media (prefers-reduced-motion: no-preference) {
  .bhead__inner > * { animation: h-rise 700ms var(--ease) both; }
  .bhead__inner > :nth-child(2) { animation-delay: 60ms; }
  .bhead__inner > :nth-child(3) { animation-delay: 140ms; }
  .bhead__inner > :nth-child(4) { animation-delay: 220ms; }
  .bhead__hills { animation: none !important; }
}



/* Lista */
.blist { background: var(--cream); padding-bottom: var(--section); }
.chips { display: flex; gap: 8px; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: transparent; font-size: var(--t-small); font-weight: 700; color: var(--ink); transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease); }
.chip:hover { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--cream); }
@media (min-width: 700px) { .chips { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; } }

.post__cat { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange-deep); }
.post__meta { font-size: 0.8125rem; color: var(--muted); }

/* Destaque */
.feat { position: relative; display: grid; margin-bottom: clamp(2.5rem, 5vw, 4rem); background: var(--green); color: var(--cream); border-radius: var(--r-1); overflow: hidden; }
.feat[hidden], .post[hidden] { display: none; }
.feat__photo { order: -1; aspect-ratio: 4 / 3; overflow: hidden; clip-path: var(--torn-bottom); }
.feat__photo img { width: 100%; height: 100%; object-fit: cover; transition: scale 700ms var(--ease); }
.feat__body { display: grid; gap: 14px; align-content: center; justify-items: start; padding: clamp(1.5rem, 4vw, 3rem); }
.feat__flag { padding: 4px 12px; border-radius: var(--r-pill); background: var(--orange); color: var(--ink); font-family: var(--serif); font-style: italic; font-size: 0.9375rem; }
.feat .post__cat { color: var(--orange-soft); }
.feat__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.875rem, 1.3rem + 2.2vw, 3.25rem); line-height: 1.05; letter-spacing: -0.02em; font-variation-settings: "SOFT" 100, "opsz" 144; text-wrap: balance; }
.feat__title a { text-decoration: none; }
.feat__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.feat__exc { color: var(--cream-muted); max-width: 48ch; }
.feat .post__meta { color: var(--cream-muted); }
.feat__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-family: var(--serif); font-style: italic; font-size: 1.125rem; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.feat__more .ic { transition: transform 200ms var(--ease); }
.feat:has(a:focus-visible) { outline: 2px solid var(--orange-deep); outline-offset: 4px; }
.feat a:focus-visible { outline: none; }
@media (hover: hover) and (pointer: fine) {
  .feat:hover .feat__photo img { scale: 1.04; }
  .feat:hover .feat__more .ic { transform: translateX(4px); }
}
@media (min-width: 1000px) {
  .feat { grid-template-columns: 0.9fr 1.1fr; min-height: 480px; }
  .feat__photo { order: 0; aspect-ratio: auto; clip-path: var(--torn-left); }
  .feat__body { padding: clamp(2.5rem, 4vw, 3.5rem); }
}

/* Cards */
.posts { display: grid; gap: clamp(1.75rem, 3vw, 2.25rem) 24px; }
.post article { position: relative; display: grid; gap: 14px; height: 100%; padding: 10px 10px 20px; background: #FFFDF8; box-shadow: 0 2px 4px rgba(31,42,34,0.05), 0 18px 36px -24px rgba(31,42,34,0.45); transition: rotate 300ms var(--ease), translate 300ms var(--ease); }
.post__photo { aspect-ratio: 4 / 3; overflow: hidden; }
.post__photo img { width: 100%; height: 100%; object-fit: cover; transition: scale 600ms var(--ease); }
.post__body { display: grid; gap: 8px; align-content: start; padding-inline: 8px; }
.post__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.375rem, 1.2rem + 0.5vw, 1.625rem); line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
.post__title a { text-decoration: none; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.post__title a::after { content: ""; position: absolute; inset: 0; }
.post__exc { font-size: var(--t-small); color: var(--muted); line-height: 1.55; }
.post article:has(a:focus-visible) { outline: 2px solid var(--orange-deep); outline-offset: 4px; }
.post a:focus-visible { outline: none; }
@media (hover: hover) and (pointer: fine) {
  .post:nth-child(odd) article:hover { rotate: -1deg; translate: 0 -4px; }
  .post:nth-child(even) article:hover { rotate: 1deg; translate: 0 -4px; }
  .post article:hover .post__photo img { scale: 1.05; }
  .post article:hover .post__title a { text-decoration-line: underline; }
}
@media (min-width: 640px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .posts { grid-template-columns: repeat(3, 1fr); } }

.blist__empty { padding: 32px 0; font-family: var(--serif); font-style: italic; font-size: 1.375rem; color: var(--muted); }

/* Paginação */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin-top: clamp(2.5rem, 5vw, 4rem); }
.pager__btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-pill); border: 1.5px solid var(--line); font-weight: 700; text-decoration: none; transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.pager__btn:hover { border-color: var(--green); }
.pager__btn[aria-current="page"] { background: var(--green); border-color: var(--green); color: var(--cream); }
.pager__next { margin-left: 10px; }

/* CTA */
.bcta { position: relative; overflow: hidden; background: var(--sand); padding-block: clamp(4rem, 8vw, 6rem); clip-path: var(--torn-top); margin-top: -14px; }
.bcta__arc { width: 560px; height: 320px; left: -200px; bottom: -120px; rotate: 170deg; border-color: var(--orange) transparent transparent transparent; }
.bcta__inner { position: relative; display: grid; gap: 28px; }
.bcta__inner > div:first-child { display: grid; gap: 16px; max-width: 720px; }
.bcta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
@media (max-width: 599px) { .bcta__actions .btn { width: 100%; } }
@media (min-width: 1000px) { .bcta__inner { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 56px; } .bcta__actions { justify-content: flex-end; } }

/* Nav: links sempre visíveis sobre o creme */
.page-blog .footer { margin-top: 0; }
