/* ============================================
   Lords of Lending - Typography Styles
   ============================================ */

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.4;
}

h4 {
  font-size: 1.125rem;
  line-height: 1.4;
}

h5 {
  font-size: 1rem;
  line-height: 1.5;
}

h6 {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Paragraph */
p {
  margin-bottom: var(--spacing-md);
}

p:last-child {
  margin-bottom: 0;
}

/* Small text */
small, .text-small {
  font-size: 0.75rem;
}

/* Muted text */
.text-muted {
  color: var(--color-text-muted);
}

.text-secondary {
  color: var(--color-text-secondary);
}

/* Text alignment utilities */
.text-center {
  text-align: center;
}

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

.text-left {
  text-align: left;
}

/* Font weight utilities */
.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* Code/monospace */
code, pre, .font-mono {
  font-family: var(--font-mono);
}

code {
  background: var(--color-surface-hover);
  padding: 0.125em 0.375em;
  border-radius: var(--radius-sm);
  font-size: 0.875em;
}

pre {
  background: var(--color-surface);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

/* Links */
.link {
  color: var(--color-accent);
  cursor: pointer;
}

.link:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

/* Truncate text */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
