/* ============================================
   Prime DB Solutions - Typography
   Domain: prime.techfernandes.com.br
   Font families: Bai Jamjuree (headings) + Inter (body)
   ============================================ */

/* ===== FONT FACES ===== */
@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== BASE ===== */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== HEADINGS ===== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Bai Jamjuree', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1, .h1 {
  font-size: var(--text-4xl);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

h2, .h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
}

h3, .h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

h4, .h4 { font-size: var(--text-xl); }
h5, .h5 { font-size: var(--text-lg); font-weight: 600; }
h6, .h6 { font-size: var(--text-base); font-weight: 600; }

/* ===== PARÁGRAFOS ===== */
p {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}
p:last-child { margin-bottom: 0; }

/* ===== LEAD / DISPLAY ===== */
.lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 65ch;
}

.display {
  font-family: 'Bai Jamjuree', system-ui, sans-serif;
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* ===== TEXT UTILITIES ===== */
.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-brand     { color: var(--brand-blue); }
.text-cyan      { color: var(--brand-cyan); }
.text-center    { text-align: center; }
.text-right     { text-align: right; }
.text-balance   { text-wrap: balance; }
.text-pretty    { text-wrap: pretty; }

/* ===== FONT WEIGHTS ===== */
.font-normal    { font-weight: 400; }
.font-medium    { font-weight: 500; }
.font-semibold  { font-weight: 600; }
.font-bold      { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* ===== FONT FAMILIES ===== */
.font-heading { font-family: 'Bai Jamjuree', system-ui, sans-serif; }
.font-body    { font-family: 'Inter', system-ui, sans-serif; }

/* ===== TEXT STYLES ===== */
.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-overline {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.text-caption {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ===== LINKS ===== */
a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover {
  color: var(--brand-blue-700);
}

/* ===== LISTS ===== */
ul, ol {
  padding-left: 1.5em;
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}
li { margin-bottom: var(--space-xs); }

/* ===== BLOCKQUOTE ===== */
blockquote {
  border-left: 3px solid var(--brand-blue);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* ===== CODE ===== */
code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

pre {
  background: var(--neutral-900);
  color: var(--neutral-100);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: var(--space-md);
}
pre code { background: none; border: none; padding: 0; color: inherit; }

/* ===== HORIZONTAL RULE ===== */
hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: var(--space-lg) 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  h1, .h1 { font-size: var(--text-3xl); }
  h2, .h2 { font-size: var(--text-2xl); }
  .display { font-size: var(--text-4xl); }
  .lead { font-size: var(--text-base); }
}
