/**
 * Typography Styles
 * Electrique Baroque Theme
 *
 * @package Yusuf_Theme
 */

/* ========================================
   HERO HEADING
   ======================================== */

.heading-hero {
  font-size: clamp(48px, 10vw, var(--font-size-hero));
  font-weight: var(--font-weight-bold);
  font-style: italic;
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-accent);
  text-transform: uppercase;
}

/* ========================================
   SECTION HEADLINE
   ======================================== */

.section-headline {
  font-size: clamp(36px, 6vw, var(--font-size-6xl));
  font-weight: var(--font-weight-bold);
  font-style: italic;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--line-height-tight);
}

/* ========================================
   STANDARD HEADINGS
   ======================================== */

.heading-1,
.h1 {
  font-size: clamp(32px, 5vw, var(--font-size-6xl));
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}

.heading-2,
.h2 {
  font-size: clamp(28px, 4vw, var(--font-size-5xl));
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}

.heading-3,
.h3 {
  font-size: clamp(24px, 3vw, var(--font-size-4xl));
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
}

.heading-4,
.h4 {
  font-size: clamp(20px, 2.5vw, var(--font-size-3xl));
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
}

.heading-5,
.h5 {
  font-size: clamp(18px, 2vw, var(--font-size-2xl));
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
}

.heading-6,
.h6 {
  font-size: clamp(16px, 1.5vw, var(--font-size-xl));
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
}

/* ========================================
   BODY TEXT
   ======================================== */

.text-body {
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
}

.text-body--large,
.text-lg {
  font-size: var(--font-size-lg);
}

.text-body--small,
.text-sm {
  font-size: var(--font-size-sm);
}

.text-body--xs,
.text-xs {
  font-size: var(--font-size-xs);
}

/* Lead Paragraph */
.text-lead {
  font-size: clamp(var(--font-size-lg), 2vw, var(--font-size-xl));
  line-height: var(--line-height-relaxed);
  color: var(--color-text-medium);
}

/* ========================================
   SPECIAL TEXT STYLES
   ======================================== */

/* Label Text */
.text-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
}

/* Overline (small text above headings) */
.text-overline {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  color: var(--color-accent);
  margin-bottom: var(--spacing-2);
  display: block;
}

/* Caption Text */
.text-caption {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: var(--line-height-normal);
}

/* ========================================
   TEXT COLORS
   ======================================== */

.text-primary {
  color: var(--color-primary);
}

.text-accent {
  color: var(--color-accent);
}

.text-light {
  color: var(--color-text-light);
}

.text-dark {
  color: var(--color-text-dark);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-medium {
  color: var(--color-text-medium);
}

/* ========================================
   TEXT ALIGNMENT
   ======================================== */

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* Responsive alignment */
@media (min-width: 768px) {
  .md\:text-left {
    text-align: left;
  }
  .md\:text-center {
    text-align: center;
  }
  .md\:text-right {
    text-align: right;
  }
}

/* ========================================
   TEXT DECORATION
   ======================================== */

.text-uppercase {
  text-transform: uppercase;
}

.text-lowercase {
  text-transform: lowercase;
}

.text-capitalize {
  text-transform: capitalize;
}

.text-italic {
  font-style: italic;
}

.text-underline {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-line-through {
  text-decoration: line-through;
}

/* ========================================
   FONT WEIGHTS
   ======================================== */

.font-regular {
  font-weight: var(--font-weight-regular);
}

.font-medium {
  font-weight: var(--font-weight-medium);
}

.font-semibold {
  font-weight: var(--font-weight-semibold);
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

/* ========================================
   LINE HEIGHTS
   ======================================== */

.leading-tight {
  line-height: var(--line-height-tight);
}

.leading-snug {
  line-height: var(--line-height-snug);
}

.leading-normal {
  line-height: var(--line-height-normal);
}

.leading-relaxed {
  line-height: var(--line-height-relaxed);
}

/* ========================================
   LETTER SPACING
   ======================================== */

.tracking-tight {
  letter-spacing: var(--letter-spacing-tight);
}

.tracking-normal {
  letter-spacing: var(--letter-spacing-normal);
}

.tracking-wide {
  letter-spacing: var(--letter-spacing-wide);
}

.tracking-wider {
  letter-spacing: var(--letter-spacing-wider);
}

/* ========================================
   TRUNCATION
   ======================================== */

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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;
}
