/* Blog da gmstech.dev — mesmos tokens da landing (src/styles/tokens.css).
   As fontes são servidas pela landing em /fonts. */

@font-face { font-family: 'Instrument Sans'; font-weight: 400; font-display: swap; src: url('/fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 500; font-display: swap; src: url('/fonts/instrument-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 600; font-display: swap; src: url('/fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 700; font-display: swap; src: url('/fonts/instrument-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 400; font-display: swap; src: url('/fonts/geist-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 500; font-display: swap; src: url('/fonts/geist-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --accent: #6e4bff;
  --accent-soft: #eee9ff;
  --accent-faint: #d4c9ff;
  --ink: #0b0d12;
  --text-2: #3d4250;
  --muted: #4b5262;
  --subtle: #6b7280;
  --line: #e4e4e7;
  --line-2: #d4d4d8;
  --mist: #f4f4f5;
  --white: #ffffff;
  --font: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --max: 1200px;
  --texto: 740px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--white); padding: 8px 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--texto { max-width: calc(var(--texto) + 2 * var(--gutter)); }

.sq { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); margin-right: 10px; vertical-align: 1px; }
.eyebrow { margin: 0 0 18px; font-size: 13px; color: var(--accent); letter-spacing: 0.01em; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--ink); color: var(--white); text-decoration: none;
  font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.2s;
}
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn--ghost:hover { background: var(--mist); border-color: var(--ink); }

/* ── Topo e rodapé ─────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand img { height: 28px; width: auto; }
.top__nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.top__nav > a:not(.btn) { text-decoration: none; color: var(--text-2); }
.top__nav > a:not(.btn):hover, .top__nav > a[aria-current='page'] { color: var(--ink); }
@media (max-width: 760px) {
  .top__nav > a:not(.btn):not([aria-current]) { display: none; }
  .top__nav { gap: 14px; }
}
@media (max-width: 420px) {
  .top__nav > a[aria-current] { display: none; }
}

.foot { margin-top: 96px; border-top: 1px solid var(--line); background: var(--mist); }
.foot__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px 48px; padding-top: 48px; padding-bottom: 40px; }
.foot__inner img { height: 26px; width: auto; }
.foot__inner p { color: var(--muted); font-size: 15px; max-width: 420px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: start; font-size: 15px; }
.foot nav a { text-decoration: none; color: var(--text-2); }
.foot nav a:hover { color: var(--accent); }
.foot__meta { grid-column: 1 / -1; font-size: 12.5px; color: var(--subtle) !important; max-width: none !important; margin: 0; }
@media (max-width: 760px) { .foot__inner { grid-template-columns: 1fr; } }

/* ── Lista ─────────────────────────────────────────────────────────────── */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--white), var(--mist)); }
.hero h1 { margin: 0; font-size: clamp(38px, 5.2vw, 72px); line-height: 0.98; letter-spacing: -0.05em; font-weight: 600; max-width: 900px; }
.lead { margin: 22px 0 0; font-size: clamp(17px, 1.3vw, 19.5px); line-height: 1.55; color: var(--muted); max-width: 680px; }
.lead a { color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chips a { text-decoration: none; font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); color: var(--text-2); }
.chips a:hover { border-color: var(--ink); color: var(--ink); }
.chips a[aria-current='page'] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.lista { padding-top: 48px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); transition: border-color 0.2s, transform 0.4s var(--ease), box-shadow 0.4s; position: relative; }
.card:hover { border-color: var(--accent-faint); transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(110, 75, 255, 0.35); }
.card__meta { margin: 0 0 14px; font-size: 12.5px; color: var(--subtle); position: relative; z-index: 1; }
.card__meta a { color: var(--accent); text-decoration: none; }
.card__title { margin: 0; font-size: 21px; line-height: 1.18; letter-spacing: -0.025em; font-weight: 600; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ''; position: absolute; inset: 0; border-radius: 20px; }
.card__excerpt { margin: 12px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; flex: 1; }
.card__foot { margin: 18px 0 0; font-size: 12.5px; color: var(--subtle); }
.vazio { color: var(--muted); }

/* ── Artigo ────────────────────────────────────────────────────────────── */
.post__head { padding-top: clamp(40px, 6vw, 80px); padding-bottom: 8px; }
.trilha { font-size: 12.5px; color: var(--subtle); margin: 0 0 22px; }
.trilha a { text-decoration: none; }
.trilha a:hover { color: var(--accent); }
.post h1 { margin: 0; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; }
.post__meta { margin: 24px 0 0; padding-bottom: 28px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--subtle); }

.toc { margin: 32px 0 8px; padding: 20px 22px; border-radius: 16px; background: var(--mist); }
.toc p { margin: 0 0 10px; font-size: 12.5px; color: var(--subtle); }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.toc a { text-decoration: none; color: var(--text-2); }
.toc a:hover { color: var(--accent); }

.prose { font-size: 18px; line-height: 1.72; color: var(--text-2); }
.prose > :first-child { margin-top: 32px; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { margin: 2.1em 0 0.6em; font-size: clamp(25px, 2.4vw, 31px); line-height: 1.15; letter-spacing: -0.035em; font-weight: 600; color: var(--ink); scroll-margin-top: 88px; }
.prose h3 { margin: 1.7em 0 0.5em; font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; color: var(--ink); scroll-margin-top: 88px; }
.prose h4 { margin: 1.5em 0 0.4em; font-size: 18px; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin: 0.35em 0; padding-left: 0.2em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--ink); font-size: 19px; }
.prose code { font-family: var(--mono); font-size: 0.86em; background: var(--mist); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.prose pre { margin: 1.4em 0; padding: 18px 20px; background: var(--ink); color: #e6e8ee; border-radius: 14px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.table { margin: 1.6em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--mist); color: var(--ink); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }

.faq { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--line); }
.faq h2 { margin: 28px 0 14px; font-size: clamp(25px, 2.4vw, 31px); letter-spacing: -0.035em; font-weight: 600; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; font-weight: 600; font-size: 17.5px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-family: var(--mono); font-size: 22px; color: var(--accent); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); font-size: 16.5px; line-height: 1.65; }

.cta { margin-top: 56px; padding: clamp(26px, 4vw, 40px); border-radius: 24px; background: var(--ink); color: var(--white); }
.cta .eyebrow { color: #a893ff; }
.cta .sq { background: #7d5dff; }
.cta h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.04em; line-height: 1.05; font-weight: 600; }
.cta p:not(.eyebrow) { margin: 14px 0 0; color: #c9cdd6; font-size: 16.5px; line-height: 1.6; max-width: 560px; }
.cta__acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cta .btn { background: var(--accent); }
.cta .btn:hover { background: #7d5dff; }
.cta .btn--ghost { background: transparent; color: var(--white); border-color: #2e323b; }
.cta .btn--ghost:hover { background: #1a1d24; border-color: #8a919e; }

.mais { margin-top: 80px; }
.mais h2 { margin: 0 0 22px; font-size: clamp(25px, 2.4vw, 31px); letter-spacing: -0.035em; font-weight: 600; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .prose { font-size: 17px; }
  .card { padding: 22px; }
  .grid { grid-template-columns: 1fr; }
}
