/* Blog DATAVIZPRO: mesmas cores e fontes do site (src/styles.css do site), sem JavaScript. */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-sans: 'Inter Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans Variable', 'Inter Variable', ui-sans-serif, system-ui, sans-serif;
  --brand-50: #f5f3ff;
  --brand-100: #ede9fe;
  --brand-200: #ddd6fe;
  --brand-400: #a78bfa;
  --brand-600: #7c3aed;
  --brand-700: #6d28d9;
  --ink: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --radius: 16px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--slate-600);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--brand-200);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 60;
  transform: translateY(calc(-100% - 40px));
  padding: 8px 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 4px 16px rgb(15 23 42 / 0.12);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow {
  max-width: 46rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* ---------------------------------------------------------------- cabeçalho */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--slate-200);
  background: rgb(255 255 255 / 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo svg {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}

.logo-word {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.logo-word span {
  color: var(--brand-700);
}

.brand-divider {
  width: 1px;
  height: 1.25rem;
  background: var(--slate-300);
}

.brand-section {
  color: var(--slate-600);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.brand-section:hover {
  color: var(--ink);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--slate-600);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background-color 0.15s;
}

.header-nav a:hover {
  color: var(--ink);
  background: var(--slate-100);
}

.header-nav .nav-login {
  color: var(--ink);
  font-weight: 600;
}

.header-nav .btn {
  margin-left: 0.25rem;
}

.header-nav .btn:hover {
  background: var(--brand-700);
  color: #fff;
}

.nav-wide,
.nav-login {
  display: none;
}

@media (min-width: 640px) {
  .nav-login {
    display: inline-flex;
  }
}

@media (min-width: 900px) {
  .nav-wide {
    display: inline-flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--brand-600);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(76 29 149 / 0.2);
  transition: background-color 0.15s;
}

/* ---------------------------------------------------------------- textos comuns */

.eyebrow {
  color: var(--brand-700);
  font-size: 0.875rem;
  font-weight: 600;
}

.eyebrow time {
  color: var(--slate-500);
  font-weight: 500;
}

.muted {
  color: var(--slate-500);
}

.lead {
  color: var(--slate-600);
  font-size: 1.125rem;
  line-height: 1.65;
}

.text-link {
  color: var(--brand-700);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- índice */

.page-hero {
  padding-block: 3.5rem 2rem;
}

.page-hero h1 {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
}

.page-hero .lead {
  max-width: 42rem;
  margin-top: 1rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--slate-600);
  font-weight: 500;
  text-decoration: none;
}

.hero-links a:hover {
  color: var(--ink);
}

.hero-links svg {
  width: 1rem;
  height: 1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--slate-200);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: #fff;
  color: var(--slate-600);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.chip:hover {
  border-color: var(--brand-200);
  background: var(--brand-50);
  color: var(--brand-700);
}

.chip[aria-current='page'] {
  border-color: var(--brand-600);
  background: var(--brand-600);
  color: #fff;
}

.post-list {
  display: grid;
  gap: 0;
  padding-block: 1rem 3rem;
}

.post-row {
  display: grid;
  gap: 0.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--slate-200);
}

@media (min-width: 768px) {
  .post-row {
    grid-template-columns: 11rem 1fr;
    gap: 2rem;
  }
}

.post-row time {
  color: var(--slate-500);
  font-size: 0.875rem;
  font-weight: 500;
  padding-top: 0.25rem;
}

.post-row h2 {
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.3;
}

.post-row h2 a {
  text-decoration: none;
}

.post-row h2 a:hover {
  color: var(--brand-700);
}

.post-row p {
  margin-top: 0.5rem;
}

.post-row .headlines {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.875rem;
  list-style: none;
  font-size: 0.9375rem;
}

.post-row .headlines li {
  position: relative;
  padding-left: 1rem;
}

.post-row .headlines li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--brand-400);
}

.post-row .headlines a {
  color: var(--slate-700);
  text-decoration: none;
}

.post-row .headlines a:hover {
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-row.is-latest {
  padding-top: 2rem;
}

.post-row.is-latest h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.2;
}

.badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.125rem 0.5rem;
  border-radius: 6px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 0.75rem;
  font-weight: 600;
}

.empty {
  padding-block: 3rem 5rem;
}

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0 4rem;
  font-size: 0.9375rem;
}

/* ---------------------------------------------------------------- post */

.post-header {
  padding-block: 3rem 2rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
  color: var(--slate-500);
  font-size: 0.875rem;
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
}

.post-header h1 {
  margin-top: 0.5rem;
  font-size: clamp(1.875rem, 4.2vw, 2.625rem);
  font-weight: 800;
  line-height: 1.15;
}

.post-header .lead {
  margin-top: 1rem;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin-top: 1.25rem;
  color: var(--slate-500);
  font-size: 0.875rem;
}

.toc {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--slate-50);
}

.toc-title {
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
}

.toc li::marker {
  color: var(--slate-400);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.toc a {
  color: var(--slate-700);
  text-decoration: none;
}

.toc a:hover {
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.story {
  padding: 2rem 0;
  border-top: 1px solid var(--slate-200);
}

.story:first-child {
  border-top: 0;
  padding-top: 0;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.story-meta a {
  color: var(--brand-700);
  text-decoration: none;
}

.story-meta a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.story-meta .for {
  color: var(--slate-500);
  font-weight: 500;
}

.story h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
}

.story h2 a {
  text-decoration: none;
}

.story-body {
  margin-top: 0.875rem;
  color: var(--slate-700);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.story-body p + p {
  margin-top: 0.875rem;
}

.why {
  margin-top: 1.25rem;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--brand-400);
}

.why-label {
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.why p:last-child {
  margin-top: 0.25rem;
  color: var(--slate-700);
  line-height: 1.7;
}

.source {
  margin-top: 1.25rem;
  color: var(--slate-500);
  font-size: 0.875rem;
  line-height: 1.5;
}

.source a {
  color: var(--slate-700);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--slate-300);
  text-underline-offset: 3px;
}

.source a:hover {
  color: var(--brand-700);
  text-decoration-color: currentColor;
}

.official {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0 0.375rem;
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  color: var(--slate-500);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: 1px;
}

/* Convite discreto no fim do post. */
.cta {
  margin: 1rem 0 0;
  padding: 1.5rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--slate-50);
}

.cta-kicker {
  color: var(--slate-500);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cta-title {
  margin-top: 0.5rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

.cta-text {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.cta-offer {
  margin-top: 0.625rem;
  color: var(--slate-500);
  font-size: 0.8125rem;
}

.cta .text-link {
  display: inline-block;
  margin-top: 0.875rem;
  font-size: 0.9375rem;
}

.method {
  margin-top: 2rem;
  color: var(--slate-500);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.method a {
  color: var(--slate-600);
}

.prevnext {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--slate-200);
}

@media (min-width: 640px) {
  .prevnext {
    grid-template-columns: 1fr 1fr;
  }
}

.prevnext a {
  display: block;
  text-decoration: none;
}

.prevnext .label {
  color: var(--slate-500);
  font-size: 0.8125rem;
}

.prevnext .title {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}

.prevnext a:hover .title {
  color: var(--brand-700);
}

.prevnext .next {
  text-align: right;
}

.post-end {
  padding-bottom: 4rem;
}

/* ---------------------------------------------------------------- página de texto (sobre) */

.prose {
  padding-block: 3rem 4rem;
  color: var(--slate-700);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.prose h1 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.375rem;
  font-weight: 700;
}

.prose p,
.prose ul {
  margin-top: 1rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.375rem;
}

.prose a {
  color: var(--brand-700);
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- rodapé */

.site-footer {
  border-top: 1px solid var(--slate-200);
  background: #fff;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}

.footer-about {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .footer-about {
    grid-column: auto;
  }
}

.footer-about p {
  max-width: 22rem;
  margin-top: 1rem;
  color: var(--slate-500);
  line-height: 1.6;
}

.footer-col p {
  color: var(--ink);
  font-weight: 600;
}

.footer-col ul {
  display: grid;
  gap: 0.625rem;
  margin-top: 1rem;
  list-style: none;
}

.footer-col a {
  color: var(--slate-500);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--slate-200);
  color: var(--slate-500);
  font-size: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cta,
  .toc,
  .prevnext {
    display: none;
  }
}
