/* ==========================================================
   TYPOGRAPHY
   ========================================================== */

/* Font rendering optimization */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Responsive font scale (fluid typography) */
:root {
  --font-size-xs: clamp(0.65rem, 0.6rem + 0.25vw, 0.75rem);
  --font-size-sm: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --font-size-base: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
  --font-size-lg: clamp(1rem, 0.9rem + 0.5vw, 1.4rem);
  --font-size-xl: clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-nexus);
}

/* Code/Pre blocks */
code, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* Strong/Bold */
strong, b {
  font-weight: 700;
}

/* Emphasis */
em, i {
  font-style: italic;
}
