/* ═══════════════════════════════════════════════════════
   IVAN.BAR — Base Typography & Element Styles
   ═══════════════════════════════════════════════════════ */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-text-primary);
  background-color: var(--color-background);
}

/* ─── Headings ─── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  color: var(--color-dark);
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-size: var(--text-5xl);
  line-height: 1.1;
}

h2 {
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
}

h3 {
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
}

h4 {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
}

/* ─── Body Text ─── */
p {
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
}

p + p {
  margin-top: var(--space-4);
}

strong {
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}

small {
  font-size: var(--text-sm);
}

/* ─── Links ─── */
a {
  transition: color var(--duration-fast) var(--ease-out);
}

/* ─── Images ─── */
img {
  border-radius: var(--radius-sm);
}

/* ─── Selection ─── */
::selection {
  background-color: var(--color-coral-light);
  color: var(--color-dark);
}

/* ─── Responsive Typography ─── */
@media (max-width: 768px) {
  h1 {
    font-size: var(--text-4xl);
  }
  h2 {
    font-size: var(--text-3xl);
  }
  h3 {
    font-size: var(--text-xl);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: var(--text-3xl);
  }
  h2 {
    font-size: var(--text-2xl);
  }
}
