/* ==========================================================
   Blog: lista, arquivo, busca, post, 404
   ========================================================== */
.nav--inner { background: rgba(11, 11, 18, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.kicker { display: inline-flex; align-items: center; gap: .6rem; color: var(--lilac); font-weight: 600; font-size: .92rem; letter-spacing: .02em; margin-bottom: 1rem; }
.kicker::before { content: ""; width: 1.6rem; height: 2px; background: var(--grad); border-radius: 2px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.6rem; }
.crumbs a { color: var(--muted); transition: color .3s; }
.crumbs a:hover { color: var(--text); }
.crumbs .separator { margin: 0 .4rem; opacity: .5; }
.crumbs .last { color: var(--text); }

/* cabeçalho das listas */
.blog-hero { padding-top: calc(76px + clamp(2.5rem, 6vw, 4.5rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); position: relative; }
.blog-hero::after {
  content: ""; position: absolute; right: -10%; top: -10%; width: 60vw; height: 120%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(72, 70, 226, .22), transparent 70%);
}
.blog-hero__title { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 6rem); letter-spacing: -.045em; line-height: .98; font-weight: 800; max-width: 16ch; text-wrap: balance; }
.blog-hero--sm .blog-hero__title { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4.6rem); }
.blog-hero__lede { color: var(--muted); font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); max-width: 56ch; margin-top: 1.4rem; }
.blog-hero__count { color: var(--muted); margin-top: 1rem; font-variant-numeric: tabular-nums; }
.blog-hero__tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.2rem 2rem; margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.6rem; border-top: 1px solid var(--line); }
.blog-hero__tools--search { justify-content: flex-start; }
.blog-hero--404 .hero__actions { margin-top: 2rem; }

.topics { display: flex; flex-wrap: wrap; gap: .5rem; }
.topic { padding: .55rem 1rem; border-radius: 100px; font-size: .92rem; font-weight: 500; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s, color .3s; }
.topic sup { font-size: .72em; opacity: .7; margin-left: .1em; }
.topic:hover { color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
.topic.is-on { background: var(--grad); color: #fff; box-shadow: none; }

.sform { position: relative; display: flex; align-items: center; width: min(100%, 420px); }
.search__icon { position: absolute; left: 1rem; width: 1.1rem; height: 1.1rem; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.sform input[type="search"] {
  width: 100%; padding: .9rem 6.5rem .9rem 2.8rem; border-radius: 100px; background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text); font: inherit; transition: border-color .3s, box-shadow .3s;
}
.sform input[type="search"]::placeholder { color: #8a8a94; }
.sform input[type="search"]:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(142, 84, 233, .25); }
.sform input[type="search"]::-webkit-search-cancel-button { filter: invert(1); }
.search__btn { position: absolute; right: .35rem; padding: .62rem 1.1rem; border-radius: 100px; background: var(--text); color: var(--bg); font-weight: 600; font-size: .9rem; transition: background .3s, color .3s; }
.search__btn:hover { background: var(--grad); color: #fff; }

/* cards */
.feature { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 3vw, 3rem) var(--gap); }
.card { display: flex; flex-direction: column; gap: 1.1rem; }
.card__media { display: block; border-radius: var(--r); overflow: hidden; background: var(--bg-2); aspect-ratio: 16 / 10; position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(72, 70, 226, .4)); opacity: 0; transition: opacity .5s; }
.card:hover .card__media img { transform: scale(1.05); }
.card:hover .card__media::after { opacity: 1; }
.card__ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1.4rem; font: 800 clamp(1.6rem, 1.2rem + 1.4vw, 2.6rem)/.95 var(--display); letter-spacing: -.04em; color: #c9c3ff; background: linear-gradient(135deg, #1e1c46, #2b1838); }
.card__body { display: grid; gap: .7rem; justify-items: start; }
.chip { display: inline-block; padding: .32rem .75rem; border-radius: 100px; background: rgba(142, 84, 233, .16); color: #e6dcff; font-size: .8rem; font-weight: 600; transition: background .3s; }
.chip:hover { background: rgba(142, 84, 233, .32); }
.chip--lg { font-size: .9rem; padding: .45rem .95rem; margin-bottom: 1.4rem; }
.card__title { font-size: clamp(1.25rem, 1.05rem + .6vw, 1.6rem); letter-spacing: -.025em; line-height: 1.15; text-wrap: balance; }
.card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.card:hover .card__title a { background-size: 100% 1px; }
.card__excerpt { color: var(--muted); font-size: .98rem; }
.card__meta { display: flex; gap: .5rem; color: #8c8c99; font-size: .85rem; font-variant-numeric: tabular-nums; }
.card--lg { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 4vw, 4rem); align-items: center; }
.card--lg .card__media { aspect-ratio: 16 / 9.5; }
.card--lg .card__title { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); letter-spacing: -.035em; }
.card--lg .card__excerpt { font-size: 1.08rem; }

.pager { display: flex; justify-content: center; gap: .5rem; margin-top: clamp(3rem, 6vw, 5rem); }
.pager .page-numbers { min-width: 2.9rem; height: 2.9rem; padding: 0 .8rem; border-radius: 100px; display: inline-grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); font-weight: 600; transition: background .3s, color .3s; }
.pager .page-numbers svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pager a.page-numbers:hover { background: var(--text); color: var(--bg); }
.pager .current { background: var(--grad); color: #fff; box-shadow: none; }

.empty { padding: clamp(3rem, 8vw, 6rem) 0; display: grid; gap: 1.2rem; justify-items: start; }
.empty p { color: var(--muted); max-width: 52ch; }
.more-posts { padding: clamp(4rem, 8vw, 7rem) 0 0; }
.more-posts .h2 { margin-bottom: 2.2rem; }
main.blog { padding-bottom: var(--sec); }

/* post */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 90; pointer-events: none; }
.admin-bar .progress { top: 32px; }
.progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.post-hero { padding-top: calc(76px + clamp(2.5rem, 6vw, 4.5rem)); padding-bottom: clamp(2rem, 4vw, 3rem); max-width: calc(1100px + 2 * var(--inset)); }
.post-hero__title { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.8rem); letter-spacing: -.045em; line-height: 1.02; font-weight: 800; text-wrap: balance; }
.post-hero__lede { color: var(--muted); font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); max-width: 62ch; margin-top: 1.4rem; }
.post-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; margin-top: 2rem; font-size: .92rem; }
.post-hero__meta > span { display: grid; line-height: 1.35; }
.post-hero__meta strong { font-weight: 600; }
.post-hero__meta span span { color: var(--muted); }
.post-hero__sep { width: 1px; height: 2.2rem; background: var(--line-2); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-3); padding: 6px; }
.avatar--lg { width: 64px; height: 64px; padding: 10px; flex: none; }
.post-cover { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.post-cover img { width: 100%; max-height: 72vh; object-fit: cover; border-radius: var(--r); }

.post-body { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 740px); justify-content: start; gap: 3rem clamp(2.5rem, 7vw, 8rem); align-items: start; }
.post-body--single { grid-template-columns: minmax(0, 760px); justify-content: start; }
.post-aside { position: sticky; top: 110px; display: grid; gap: 2.2rem; }
.toc__title { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.toc__list { list-style: none; counter-reset: toc; display: grid; gap: .15rem; border-left: 1px solid var(--line-2); }
.toc__list a { display: block; padding: .4rem 0 .4rem 1rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: .92rem; line-height: 1.35; transition: color .3s, border-color .3s; }
.toc__list a:hover { color: var(--text); }
.toc__list a.is-on { color: var(--text); border-left-color: var(--magenta); }
.share__row { display: flex; gap: .5rem; }
.share .round svg { width: 1.15rem; height: 1.15rem; }
.share__ok { color: #86efac; font-size: .85rem; min-height: 1.2em; margin-top: .5rem; }

.entry { font-size: clamp(1.05rem, 1rem + .2vw, 1.15rem); line-height: 1.75; color: #d9d9e0; }
.entry > * + * { margin-top: 1.25em; }
.entry h2 { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.25rem); letter-spacing: -.03em; line-height: 1.15; color: #fff; margin-top: 2.2em; scroll-margin-top: 110px; }
.entry h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); letter-spacing: -.02em; line-height: 1.25; color: #fff; margin-top: 1.8em; scroll-margin-top: 110px; }
.entry h2 + *, .entry h3 + * { margin-top: .8em; }
.entry > :first-child { margin-top: 0; }
.entry strong { color: #fff; font-weight: 600; }
.entry a { color: #fff; text-decoration: underline; text-decoration-color: var(--violet); text-underline-offset: .22em; text-decoration-thickness: 2px; }
.entry a:hover { text-decoration-color: var(--magenta); }
.entry ul, .entry ol { padding-left: 1.3em; display: grid; gap: .55em; }
.entry ul { list-style: none; padding-left: 0; }
.entry ul li { position: relative; padding-left: 1.6em; }
.entry ul li::before { content: ""; position: absolute; left: .2em; top: .72em; width: .5em; height: .5em; border-radius: 2px; background: var(--grad); rotate: 45deg; }
.entry ol { list-style: decimal; }
.entry ol li::marker { color: var(--lilac); font-weight: 700; }
.entry blockquote { border-left: 3px solid var(--magenta); padding: .2em 0 .2em 1.3em; font: 500 1.25em/1.45 var(--display); color: #fff; }
.entry img, .entry figure { border-radius: var(--r); }
.entry figure figcaption { color: var(--muted); font-size: .88rem; margin-top: .6rem; }
.entry code { background: var(--bg-3); padding: .15em .4em; border-radius: 4px; font-size: .9em; }
.entry pre { background: var(--bg-2); padding: 1.2rem; border-radius: var(--r); overflow: auto; font-size: .9rem; }
.entry hr { border: 0; height: 1px; background: var(--line-2); margin: 2.5em 0; }
.entry table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry th, .entry td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.entry th { color: #fff; }

.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 3rem !important; padding-top: 2rem; border-top: 1px solid var(--line); }
.ptag { padding: .4rem .85rem; border-radius: 100px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); font-size: .88rem; text-decoration: none !important; transition: color .3s, background .3s; }
.ptag:hover { color: var(--text); background: var(--bg-3); }
.author-box { display: flex; gap: 1.3rem; align-items: flex-start; margin-top: 2.5rem !important; padding: 1.6rem; border-radius: var(--r); background: var(--bg-2); font-size: .98rem; line-height: 1.6; }
.author-box p { color: var(--muted); margin-bottom: .6rem; }
.author__name { color: #fff !important; font: 700 1.1rem var(--display); margin-bottom: .3rem !important; }
.author-box .link { text-decoration: none; color: var(--text); }

.postnav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: clamp(4rem, 7vw, 6rem); }
.postnav__item { display: grid; gap: .4rem; padding: 1.4rem 1.5rem; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); transition: background .4s, box-shadow .4s; }
.postnav__item span { color: var(--muted); font-size: .85rem; }
.postnav__item strong { font: 600 1.1rem/1.3 var(--display); }
.postnav__item:hover { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.postnav__item--next { text-align: right; }

/* faixa de chamada antes do rodapé */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--grad); color: #fff; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 90% 10%, rgba(255,255,255,.2), transparent 60%); }
.cta-band__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem; }
.cta-band__kicker { font-weight: 600; opacity: .85; margin-bottom: .6rem; }
.cta-band__title { font-size: clamp(2rem, 1.2rem + 3vw, 4rem); letter-spacing: -.04em; font-weight: 800; max-width: 16ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.cta-band .btn--ghost { box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); color: #fff; }
.cta-band .btn--ghost::before { background: #fff; }
.cta-band .btn--ghost:hover { color: var(--bg); }
.foot__links { display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* blog na home */
.home-blog { padding: 0 0 var(--sec); }
.home-blog .head p a { color: var(--text); }

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--lg { grid-template-columns: 1fr; }
  .post-body { grid-template-columns: 1fr; }
  .post-aside { position: static; order: 2; }
  .toc { display: none; }
}
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .blog-hero__tools { flex-direction: column; align-items: stretch; }
  .topics { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--inset) * -1); padding: 0 var(--inset) .3rem; scrollbar-width: none; }
  .topic { flex: none; }
  .sform { width: 100%; }
  .post-hero__sep { display: none; }
  .postnav { grid-template-columns: 1fr; }
  .postnav__item--next { text-align: left; }
  .author-box { flex-direction: column; }
  .admin-bar .progress { top: 46px; }
  .cta-band__in { align-items: flex-start; }
}
