/* =========================================================
   COMC · Blog (usa a base do styles.css do site)
   ========================================================= */

/* ---------- Topo das páginas do blog ---------- */
.bhead { position: relative; padding: clamp(130px, 16vw, 190px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.bhead::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -420px; background: radial-gradient(circle, rgba(255, 200, 30, .16), transparent 62%); pointer-events: none; }
.bhead .wrap { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.crumbs a:hover { color: var(--yellow); }
.crumbs span[aria-hidden] { opacity: .5; }
.bhead .h1 { max-width: 18ch; }
.bhead--post .h1 { font-size: clamp(36px, 5.4vw, 72px); max-width: 20ch; line-height: 1; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 28px; font-size: 14px; color: var(--ink-2); }
.meta .pill { font-size: 11px; }

/* ---------- Lista de artigos ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-bottom: clamp(88px, 12vw, 140px); }
.card { position: relative; display: flex; flex-direction: column; padding: 28px; min-height: 320px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); transition: transform .6s var(--ease-out), border-color .4s; }
.card:hover { transform: translateY(-4px); border-color: rgba(255, 200, 30, .5); }
.card__cat { align-self: flex-start; font: 700 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); padding: 7px 10px; border: 1px solid rgba(255, 200, 30, .35); border-radius: 99px; }
.card h2 { font: 800 24px/1.12 var(--display); font-stretch: 108%; letter-spacing: -.02em; margin: 22px 0 12px; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.card__foot { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.card__go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); color: var(--ink); transition: background .3s, color .3s, transform .5s var(--ease-out); }
.card:hover .card__go { background: var(--yellow); color: #000; transform: rotate(-45deg); }

/* ---------- Artigo ---------- */
.post { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: clamp(72px, 9vw, 120px); }
.prose { font-size: clamp(17px, 1.2vw, 18.5px); line-height: 1.75; color: #ddd8cc; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font: 800 clamp(26px, 2.6vw, 34px)/1.12 var(--display); font-stretch: 108%; letter-spacing: -.02em; color: var(--ink); margin-top: 2.2em; scroll-margin-top: 100px; }
.prose h3 { font: 800 21px/1.25 var(--display); color: var(--ink); margin-top: 1.8em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 0; display: grid; gap: .55em; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 40px; counter-increment: n; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: .15em; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line); color: var(--yellow); font: 700 13px/1 var(--body); }
.prose .lead { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.6; color: var(--ink); max-width: none; margin-top: 0; }
.dica { padding: 22px 24px; border-radius: 18px; background: rgba(255, 200, 30, .08); border: 1px solid rgba(255, 200, 30, .28); }
.dica b:first-child { display: block; font: 700 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin-bottom: 10px; }
.exemplo { padding: 20px 22px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); font-size: 16px; line-height: 1.6; white-space: pre-line; color: var(--ink); }

.side { position: sticky; top: 110px; display: grid; gap: 18px; }
.toc { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.toc p { font: 700 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc ol { display: grid; gap: 10px; counter-reset: t; }
.toc a { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); transition: color .3s; }
.toc a::before { counter-increment: t; content: counter(t, decimal-leading-zero); color: var(--muted); font-size: 12px; padding-top: 2px; }
.toc a:hover, .toc a.is-on { color: var(--yellow); }
.side__cta { padding: 26px 24px; border-radius: var(--radius); background: var(--yellow); color: #0a0a0a; }
.side__cta b { display: block; font: 800 22px/1.1 var(--display); font-stretch: 108%; margin-bottom: 10px; }
.side__cta p { font-size: 14.5px; margin-bottom: 18px; color: rgba(0, 0, 0, .75); }
.side__cta .btn { background: #0a0a0a; color: var(--yellow); width: 100%; }

.endcta { margin-top: 3em; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); background: var(--yellow); color: #0a0a0a; }
.endcta h2 { color: #0a0a0a; margin: 0 0 12px; }
.endcta p { color: rgba(0, 0, 0, .78); margin-bottom: 22px; }
.endcta .btn { background: #0a0a0a; color: var(--yellow); text-decoration: none; }

.related { border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 110px) 0; }
.related .eyebrow { margin-bottom: 26px; }
.related .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 0; }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .post { grid-template-columns: 1fr; }
  .side { position: static; order: -1; }
  .toc, .side__cta { display: none; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .posts, .related .posts { grid-template-columns: 1fr; }
  .card { min-height: 0; padding: 24px; }
  .card h2 { font-size: 22px; }
}

/* ---------- Ferramentas (ex.: gerador de bio) ---------- */
.card--tool { background: linear-gradient(160deg, rgba(255, 200, 30, .16), var(--bg-2) 60%); border-color: rgba(255, 200, 30, .4); }
.card--tool .card__cat { background: var(--yellow); color: #000; border-color: var(--yellow); }
.bhead--tool .h1 { font-size: clamp(38px, 6vw, 84px); max-width: 16ch; }
.tool-page { padding-bottom: clamp(72px, 9vw, 120px); }
.tool { display: grid; gap: 28px; }
.tool__form { display: grid; gap: 18px; padding: clamp(22px, 3.4vw, 40px); border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.tool__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tf { display: grid; gap: 8px; }
.tf > span { font-size: 14px; font-weight: 600; color: var(--ink); }
.tf > span i { font-style: normal; font-weight: 500; color: var(--muted); }
.tf small { font-size: 12.5px; color: var(--muted); }
.tf input, .tf select { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(243, 239, 230, .18); background: var(--bg); color: var(--ink); font: 500 16px/1.2 var(--body); transition: border-color .3s; }
.tf select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(-45deg, transparent 50%, var(--ink-2) 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.tf input::placeholder { color: #5f5b52; }
.tf input:focus, .tf select:focus { outline: none; border-color: var(--yellow); }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--yellow); }
.tool__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.tool__out { display: grid; gap: 22px; scroll-margin-top: 100px; }
.tool__out.is-in .bio { animation: bioIn .7s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes bioIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.nomes__t { font-size: 14.5px; color: var(--ink-2); margin-bottom: 12px; }
.nomes__t span { color: var(--muted); }
.nomes__list { display: flex; flex-wrap: wrap; gap: 8px; }
.nome-chip { padding: 10px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font: 600 14px/1 var(--body); cursor: pointer; transition: border-color .3s, background .3s, color .3s; }
.nome-chip:hover { border-color: var(--yellow); }
.nome-chip.is-copied { background: var(--yellow); color: #000; }
.nome-chip.is-long { border-color: rgba(255, 45, 85, .6); }
.bios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bio { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.bio__head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.bio__head b { font: 700 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.bio__count { color: var(--muted); font-variant-numeric: tabular-nums; }
.bio__count.is-over { color: var(--live); font-weight: 700; }
.bio__txt { flex: 1; white-space: pre-line; font-size: 16px; line-height: 1.55; color: var(--ink); padding: 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.bio__copy { align-self: flex-start; padding: 11px 18px; border-radius: 99px; border: 0; background: var(--yellow); color: #000; font: 700 14px/1 var(--body); cursor: pointer; }
.bio__copy.is-copied { background: #25d366; }
.bio__warn { color: var(--live); font-size: 13px; }
.tool__cta { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); background: var(--yellow); color: #0a0a0a; }
.tool__cta b { display: block; font: 800 22px/1.15 var(--display); font-stretch: 108%; margin-bottom: 6px; }
.tool__cta p { color: rgba(0, 0, 0, .75); font-size: 15px; max-width: 52ch; }
.tool__cta .btn { flex: none; background: #0a0a0a; color: var(--yellow); }
.tool__dicas { max-width: 760px; margin-top: clamp(48px, 6vw, 80px); }
.tool__dicas h2 { margin-top: 0; }

@media (max-width: 760px) {
  .tool__row, .bios { grid-template-columns: 1fr; }
  .tool__actions .btn { flex: 1 1 100%; }
  .tool__cta { flex-direction: column; align-items: stretch; }
  .tool__cta .btn { white-space: normal; text-align: center; min-height: 56px; height: auto; padding-block: 14px; line-height: 1.3; }
}
.tool__actions .btn--ghost { background: transparent; }

/* =========================================================
   Tema claro do blog: o site principal continua escuro.
   As cores de base do styles.css são redefinidas no <body class="blog">.
   ========================================================= */
.blog {
  --bg: #f7f5f0;
  --bg-2: #ffffff;
  --bg-3: #efebe2;
  --ink: #16140f;
  --ink-2: #4b473e;
  --muted: #8a8478;
  --line: rgba(22, 20, 15, .1);
  --acc: #9a6b00;            /* amarelo escurecido: legível em fundo claro */
  --shadow: 0 1px 2px rgba(22, 20, 15, .04), 0 12px 32px -18px rgba(22, 20, 15, .18);
}
.blog::before { opacity: .025; }
.blog ::selection { color: #000; }
.blog :focus-visible { outline-color: var(--acc); }

/* nav e menu */
.blog .nav.is-scrolled { background: rgba(247, 245, 240, .86); }
.blog .nav__logo img { filter: brightness(0); }
.blog .nav__burger { background: #fff; border-color: var(--line); }
.blog .menu__links a:hover, .blog .crumbs a:hover { color: var(--acc); }

/* tipografia */
.blog .serif { color: var(--acc); }
.blog .bhead::before { background: radial-gradient(circle, rgba(255, 200, 30, .22), transparent 62%); }
.blog .bhead { border-bottom: 1px solid var(--line); margin-bottom: clamp(40px, 5vw, 64px); }
.blog .prose { color: var(--ink-2); }
.blog .prose a, .blog .prose ol li::before, .blog .dica b:first-child,
.blog .toc a:hover, .blog .toc a.is-on, .blog .card__cat, .blog .bio__head b { color: var(--acc); }
.blog .prose ol li::before { background: #fff; }
.blog .dica { background: #fff8e1; border-color: rgba(255, 200, 30, .55); }
.blog .exemplo { box-shadow: var(--shadow); }

/* cartões */
.blog .card, .blog .toc, .blog .bio, .blog .tool__form { border-color: var(--line); box-shadow: var(--shadow); }
.blog .card:hover { border-color: rgba(154, 107, 0, .35); box-shadow: 0 24px 50px -28px rgba(22, 20, 15, .3); }
.blog .card__cat { border-color: rgba(154, 107, 0, .3); }
.blog .card--tool { background: linear-gradient(160deg, #fff3c4, #fff 62%); border-color: rgba(255, 200, 30, .7); }
.blog .card--tool .card__cat { color: #000; }
.blog .related { border-color: var(--line); }

/* gerador de bio */
.blog .tf input, .blog .tf select { background: #fff; border-color: rgba(22, 20, 15, .16); }
.blog .tf input::placeholder { color: #a8a295; }
.blog .tf input:focus, .blog .tf select:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(255, 200, 30, .25); }
.blog .check input { accent-color: var(--acc); }
.blog .tool__actions .btn--ghost { border-color: rgba(22, 20, 15, .2); }
.blog .bio__txt { background: var(--bg); }
.blog .nome-chip { background: #fff; }
.blog .nome-chip:hover { border-color: var(--acc); }
