/* =========================================================
   Blog — listing, article, prose. Uses the site design tokens.
   ========================================================= */
.blog-hero { padding-block: 64px 28px; max-width: calc(var(--container) + 48px); }
.blog-title { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; margin-top: 18px; }
.blog-lead { margin-top: 16px; font-size: 1.15rem; color: var(--text-muted); max-width: 640px; line-height: 1.6; }
.blog-lead a, .blog-empty a { color: var(--text-strong); text-decoration: underline; text-decoration-color: rgba(255, 107, 82, 0.6); text-underline-offset: 3px; }
.blog-empty { padding: 48px 0; color: var(--text-muted); }
.blog-list-wrap { padding-bottom: 96px; }

/* cards */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease), border-color 0.25s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.post-card-media { display: block; aspect-ratio: 16 / 9; background: var(--subtle); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.03); }
.post-card-media-empty { display: grid; place-items: center; background: var(--accent-soft); }
.post-card-media-empty img { width: 72px; height: 72px; object-fit: contain; }
.post-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.post-card-meta { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.post-card-title { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.02em; }
.post-card-title a { color: var(--text-strong); }
.post-card-title a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card-desc { font-size: 15px; line-height: 1.55; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--text-strong); }
.post-card-more img { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.post-card:hover .post-card-more img { transform: translateX(4px); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; }
.pager-info { font-size: 14px; color: var(--text-muted); }

/* article */
.post { padding-bottom: 24px; }
.post-head { max-width: 820px; padding-block: 56px 28px; }
.post-title { margin-top: 20px; font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.08; letter-spacing: -0.035em; }
.post-lead { margin-top: 18px; font-size: 1.2rem; line-height: 1.55; color: var(--text-muted); }
.post-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; color: var(--text-muted); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.post-tags a { display: inline-flex; padding: 6px 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--text); transition: background 0.2s var(--ease), border-color 0.2s var(--ease); }
.post-tags a:hover { background: var(--accent-soft); border-color: rgba(255, 107, 82, 0.4); }
.post-cover { margin: 8px 0 44px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 8; background: var(--subtle); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }

.post-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.post-layout.no-toc { grid-template-columns: minmax(0, 760px); }
.post-toc { position: sticky; top: 92px; max-height: calc(100vh - 120px); overflow-y: auto; padding: 4px 0; scrollbar-width: thin; }
.post-toc-title { font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.post-toc ol { margin: 0; padding: 0; border-left: 1px solid var(--line); }
.post-toc a { display: block; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 13.5px; line-height: 1.35; color: var(--text-muted); transition: color 0.2s var(--ease), border-color 0.25s var(--ease), padding-left 0.3s var(--ease); }
.post-toc a:hover { color: var(--text-strong); }
.post-toc a.is-active { color: var(--text-strong); font-weight: 600; border-left-color: var(--accent); padding-left: 17px; }

/* prose (article body + admin preview) */
.prose { min-width: 0; max-width: 760px; font-size: 17.5px; line-height: 1.75; color: var(--text); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 1.65rem; line-height: 1.25; letter-spacing: -0.025em; margin-top: 2.1em; scroll-margin-top: 96px; }
.prose h3 { font-size: 1.28rem; line-height: 1.3; margin-top: 1.8em; scroll-margin-top: 96px; }
.prose h4 { font-size: 1.08rem; margin-top: 1.5em; scroll-margin-top: 96px; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose strong { color: var(--text-strong); font-weight: 650; }
.prose a { color: var(--text-strong); text-decoration: underline; text-decoration-color: rgba(255, 107, 82, 0.55); text-underline-offset: 3px; transition: text-decoration-color 0.2s var(--ease); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.4em; display: flex; flex-direction: column; gap: 0.45em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin-inline: 0; padding: 14px 20px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-strong); }
.prose code { font-size: 0.88em; background: var(--card); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: #171717; color: #f4f1ec; padding: 18px 20px; border-radius: var(--radius); overflow-x: auto; font-size: 14.5px; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px dashed var(--line-strong); margin-block: 2.2em; }
.prose figure { margin-inline: 0; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); height: auto; }
.prose figcaption { margin-top: 8px; font-size: 13.5px; color: var(--text-muted); text-align: center; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { background: var(--card); color: var(--text-strong); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }

.prose .ta-c { text-align: center; } .prose .ta-r { text-align: right; }
.prose td, .prose th { vertical-align: top; }
.prose li.task { list-style: none; margin-left: -1.4em; }
.prose li.task input { margin-right: 8px; accent-color: var(--accent); }
.prose li > ul, .prose li > ol { margin-top: 0.45em; }
.prose del { color: var(--text-muted); }
.prose mark { background: #fff1c2; padding: 0 3px; border-radius: 3px; }
.prose kbd { font: 0.85em ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: #fff; }
.prose details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; background: var(--card); }
.prose summary { cursor: pointer; font-weight: 600; color: var(--text-strong); }
.prose details[open] summary { margin-bottom: 8px; }
.prose dt { font-weight: 650; color: var(--text-strong); } .prose dd { margin: 0 0 0.6em 1.2em; }
.prose p > img { display: inline-block; }

.post-cta-links { font-size: 14px; color: var(--text-muted); margin-top: 6px; }
.post-cta-links a { color: var(--text-strong); text-decoration: underline; text-decoration-color: rgba(255, 107, 82, 0.55); text-underline-offset: 3px; }

/* landing pages */
.lp-hero > * { max-width: 820px; }
.lp-hero .eyebrow { margin-top: 18px; }
.lp-hero .blog-title { margin-top: 10px; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lp-layout { padding-bottom: 24px; }
.lp-section-title { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.025em; margin-bottom: 24px; }
.lp-faq { padding-top: 64px; }
.lp-faq .lp-section-title { text-align: center; }
.lp-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.lp-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease), border-color 0.25s var(--ease); }
.lp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.lp-card-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.lp-card-title { font-size: 1.05rem; font-weight: 650; line-height: 1.35; color: var(--text-strong); letter-spacing: -0.015em; }
.lp-card-more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-strong); }
.lp-card-more img { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.lp-card:hover .lp-card-more img { transform: translateX(4px); }
.lp-group { padding-bottom: 48px; }
.lp-hub-cta { padding-bottom: 96px; }
.link-list { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.link-list a { display: inline-flex; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line-strong); background: #fff; font-size: 14.5px; font-weight: 500; color: var(--text-strong); }
.link-list a:hover { background: var(--subtle); }

/* cta + related */
.post-cta { margin: 72px auto 0; max-width: 760px; padding: 36px 34px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.post-layout.no-toc ~ .post-cta { margin-left: 0; }
.post-cta h2 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.025em; }
.post-cta p { color: var(--text-muted); max-width: 48ch; margin-bottom: 8px; }
.related { padding-block: 72px 96px; }
.related > h2 { font-size: 1.6rem; margin-bottom: 24px; }

@media (max-width: 960px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .post-toc { position: static; max-height: none; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-hero { padding-block: 40px 20px; }
  .post-head { padding-block: 36px 20px; }
  .prose { font-size: 16.5px; }
  .post-cta { padding: 28px 22px; }
  .crumbs [aria-current="page"] { max-width: 28ch; }
}

/* ---------- O nas ---------- */
.about-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: 56px 36px; max-width: calc(var(--container) + 48px); }
.about-hero-text .blog-title { max-width: 14ch; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -0.04em; }
.about-hero-text .blog-lead { margin-top: 20px; max-width: 34ch; color: var(--text-strong); font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5; }
.about-lead2 { margin-top: 16px; font-size: 1.15rem; color: var(--text); }
.about-lead2 strong { color: var(--accent); }
.about-photo { position: relative; margin: 0; justify-self: end; width: min(100%, 420px); }
.about-photo::before { content: ""; position: absolute; inset: 8% -8% -8% 10%; border-radius: 34px; background: linear-gradient(145deg, #ffd9cf, #ffe9d6 55%, #dfe6ff); transform: rotate(3deg); z-index: 0; }
.about-photo img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 42%; border-radius: 30px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: aboutFloat 7s ease-in-out infinite; }
.about-photo figcaption { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.35); }
.about-photo figcaption strong { font-size: 15px; color: var(--text-strong); }
.about-photo figcaption span { font-size: 13px; color: var(--text-muted); }
@keyframes aboutFloat { 50% { transform: translateY(-6px); } }
.about-body { padding-block: 24px 40px; }
.about-body.prose { max-width: 720px; margin-inline: auto; font-size: 18px; }
.about-body.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.03em; margin-top: 2.2em; }
.about-body.prose blockquote { font-size: 1.12rem; padding: 18px 24px; border-radius: 0 18px 18px 0; }
.about-cta { padding-block: 24px 80px; }
.about-cta-card { position: relative; overflow: hidden; max-width: 860px; margin-inline: auto; padding: clamp(28px, 5vw, 52px); border-radius: 32px; background: var(--cta); color: #e9e5df; text-align: center; box-shadow: var(--shadow-lg); }
.about-cta-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 80% at 100% 0%, rgba(255, 107, 82, 0.35), transparent 70%), radial-gradient(50% 70% at 0% 100%, rgba(124, 156, 255, 0.22), transparent 70%); }
.about-cta-card > * { position: relative; }
.about-cta-card h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: -0.035em; line-height: 1.12; margin-bottom: 16px; }
.about-cta-card p { max-width: 560px; margin: 0 auto 12px; font-size: 17px; line-height: 1.6; }
.about-cta-card strong { color: #fff; }
.about-cta-card .btn { margin-top: 18px; background: #fff; color: var(--cta); gap: 10px; }
.about-cta-card .btn img { transition: transform 0.25s var(--ease); }
.about-cta-card .btn:hover { background: var(--accent-soft); }
.about-cta-card .btn:hover img { transform: translateX(4px); }
@media (max-width: 860px) {
  .about-hero { grid-template-columns: 1fr; padding-top: 36px; }
  .about-photo { justify-self: center; width: min(86%, 380px); order: -1; margin-bottom: 8px; }
  .about-hero-text .blog-title { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .about-photo img { animation: none; } }
