/* =====================================================================
   Blog Mimo Agenda — unidade da linha TOFY
   A linha TOFY e branca em qualquer aparelho: nao existe bloco
   @media (prefers-color-scheme: dark) aqui. So a .tofy-bar e escura.
   ===================================================================== */

:root {
  color-scheme: light;

  --tofy-ink: #111114;
  --tofy-paper: #FAFAF9;

  --ink: #111114;
  --ink-soft: #3A3A40;
  --text-2: #57534e;
  --muted: #78716c;
  --paper: #FAFAF9;
  --surface: #FFFFFF;
  --line: #E5E4E0;
  --line-soft: #EDECE8;
  --accent: #2E5BFF;
  --accent-dark: #1E44D6;
  --accent-deep: #12308F;
  --accent-soft: #F4F6FF;
  --accent-line: #E3E9FF;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 18px; } }

/* ---------- Faixa TOFY ---------- */
.tofy-bar {
  --tofy-font: var(--font);
  --tofy-mono: var(--mono);
  --tofy-surface: #FFFFFF;
  --tofy-line: #E5E4E0;
  --tofy-muted: #6E6E76;
  --tofy-accent: #2E5BFF;
  --tofy-radius: 16px;
  background: var(--tofy-ink);
  color: var(--tofy-paper);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
}
.tofy-bar .tofy-container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px 24px; flex-wrap: wrap;
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 11px 24px;
}
.tofy-bar a { color: inherit; opacity: .8; text-decoration: none; transition: opacity .2s; }
.tofy-bar a:hover { opacity: 1; }
.tofy-bar__brand { display: flex; align-items: center; gap: 9px; font-family: var(--font); font-weight: 600; letter-spacing: .26em; font-size: 12px; opacity: 1; }
.tofy-bar__brand svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .tofy-bar { font-size: 10.5px; }
  .tofy-bar .tofy-container { padding: 9px 16px; gap: 8px 12px; }
}

/* ---------- Cabecalho do blog ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--accent-line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 21px; font-weight: 700;
  letter-spacing: -.02em; color: var(--accent-deep); text-decoration: none;
}
.wordmark__mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 800; font-size: 13px;
  box-shadow: 0 4px 12px rgba(46,91,255,.28);
}
.site-header nav { display: none; gap: 24px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { color: var(--accent-dark); }
@media (min-width: 900px) { .site-header nav { display: flex; } }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; box-shadow: 0 8px 20px rgba(46,91,255,.28); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(46,91,255,.36); }
.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--accent-line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn--lg { padding: 15px 26px; font-size: 15px; }

/* ---------- Hero do indice ---------- */
.blog-hero { background: linear-gradient(180deg, #F7F9FF 0%, var(--paper) 100%); padding: 72px 0 56px; }
@media (max-width: 640px) { .blog-hero { padding: 44px 0 36px; } }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent-dark);
  margin-bottom: 14px;
}
.blog-hero h1 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(34px, 5.4vw, 54px); line-height: 1.08; margin: 0;
}
.blog-hero h1 em { font-style: italic; color: var(--accent-dark); }
.lede { font-size: 17px; line-height: 1.65; color: var(--text-2); max-width: 62ch; margin-top: 18px; }

/* ---------- Lista de artigos ---------- */
.posts { padding: 8px 0 72px; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .posts { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.post-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--accent-line);
  border-radius: 22px; padding: 26px; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(46,91,255,.12); border-color: var(--accent); }
.post-card__tag { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }
.post-card h2 { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
.post-card p { font-size: 15px; line-height: 1.6; color: var(--text-2); margin: 0; }
.post-card__meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: .04em; margin-top: 4px; }

/* ---------- Artigo ---------- */
.article { padding: 56px 0 24px; }
.article__head { max-width: 760px; }
.breadcrumb { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; margin-bottom: 20px; }
.breadcrumb a { color: var(--accent-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.article h1 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; margin: 0;
}
.article__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .05em; margin-top: 16px; }
.article__body { max-width: 720px; margin-top: 34px; font-size: 17px; color: var(--ink-soft); }
.article__body h2 {
  font-family: var(--serif); font-size: clamp(24px, 3vw, 30px); font-weight: 600;
  color: var(--ink); line-height: 1.22; letter-spacing: -.01em; margin: 44px 0 14px;
}
.article__body h3 { font-size: 19px; font-weight: 800; color: var(--ink); margin: 30px 0 10px; }
.article__body p { margin: 0 0 18px; }
.article__body ul, .article__body ol { margin: 0 0 20px; padding-left: 22px; }
.article__body li { margin-bottom: 9px; }
.article__body strong { color: var(--ink); }
.article__body a { color: var(--accent-dark); }
.callout {
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-left: 4px solid var(--accent); border-radius: 14px;
  padding: 18px 20px; margin: 26px 0; font-size: 15.5px; line-height: 1.6;
}
.callout p:last-child { margin-bottom: 0; }
.formula {
  font-family: var(--mono); font-size: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  margin: 20px 0; overflow-x: auto; white-space: pre-wrap; color: var(--ink);
}
.table-wrap { overflow-x: auto; margin: 22px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 460px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 800; }

.article-cta {
  margin: 48px 0 8px; padding: 32px; border-radius: 24px;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  border: 1px solid var(--accent-line);
}
.article-cta h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 0 0 8px; }
.article-cta p { color: var(--text-2); font-size: 15.5px; margin: 0 0 18px; }

.related { padding: 8px 0 64px; }
.related h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 0 0 20px; }
.related-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Rodape ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 56px 0 32px; margin-top: 24px; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); margin: 0 0 14px; }
.site-footer a { display: block; color: rgba(255,255,255,.8); text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: rgba(255,255,255,.55); font-size: 14px; max-width: 40ch; }
.site-footer__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px; color: rgba(255,255,255,.5);
}
.site-footer__bottom a { display: inline; color: #C7D3FF; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
