/* =============================================================
   PROJECT PHOENIX — LOVELY JAISWAL WEBSITE
   FILE: assets/css/typography.css
   PURPOSE: All typographic styles — aligned to luxury design language.
   DESIGN LANGUAGE: Cormorant light/regular for display & headings.
                    Jost light/regular for body. Gold for overlines.
                    Consistent 0.20em overline tracking throughout.
   ============================================================= */


/* -----------------------------------------------------------
   DISPLAY HEADINGS — Large editorial / hero text
   ----------------------------------------------------------- */
.display-xl {
  font-family: var(--font-primary);
  font-size: var(--text-6xl);
  font-weight: var(--weight-light);
  line-height: var(--leading-none);
  letter-spacing: -0.025em;           /* Tight at large size */
  color: var(--color-secondary);
}

.display-lg {
  font-family: var(--font-primary);
  font-size: var(--text-5xl);
  font-weight: var(--weight-light);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-secondary);
}

.display-md {
  font-family: var(--font-primary);
  font-size: var(--text-4xl);
  font-weight: var(--weight-light);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  color: var(--color-secondary);
}


/* -----------------------------------------------------------
   SECTION HEADINGS
   ----------------------------------------------------------- */
.heading-1 {
  font-family: var(--font-primary);
  font-size: var(--text-4xl);
  font-weight: var(--weight-light);
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
  color: var(--color-secondary);
}

.heading-2 {
  font-family: var(--font-primary);
  font-size: var(--text-3xl);
  font-weight: var(--weight-light);
  line-height: var(--leading-snug);
  letter-spacing: -0.005em;
  color: var(--color-secondary);
}

.heading-3 {
  font-family: var(--font-primary);
  font-size: var(--text-2xl);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  letter-spacing: 0;
  color: var(--color-secondary);
}

.heading-4 {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  letter-spacing: 0.01em;
  color: var(--color-secondary);
}


/* -----------------------------------------------------------
   SCRIPT / ACCENT TEXT — Great Vibes
   ----------------------------------------------------------- */
.text-script {
  font-family: var(--font-accent);
  font-weight: var(--weight-regular);
  font-style: normal;
  line-height: var(--leading-snug);
  color: var(--color-primary);
}

.text-script--lg {
  font-size: calc(var(--text-4xl) * 1.2);
}

.text-script--md {
  font-size: var(--text-3xl);
}

.text-script--sm {
  font-size: var(--text-2xl);
}


/* -----------------------------------------------------------
   BODY TEXT
   ----------------------------------------------------------- */
.text-lead {
  font-family: var(--font-secondary);
  font-size: var(--text-md);
  font-weight: var(--weight-light);
  line-height: 1.80;
  color: var(--color-neutral-500);
  letter-spacing: 0.01em;
}

.text-body {
  font-family: var(--font-secondary);
  font-size: var(--text-base);
  font-weight: var(--weight-light);       /* light — more editorial */
  line-height: var(--leading-relaxed);
  color: var(--color-neutral-600);
}

.text-small {
  font-family: var(--font-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
  line-height: var(--leading-normal);
  color: var(--color-neutral-500);
  letter-spacing: 0.01em;
}

.text-xs {
  font-family: var(--font-secondary);
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-neutral-400);
}


/* -----------------------------------------------------------
   LABELS, OVERLINES, TAGS — Uniform gold treatment
   ----------------------------------------------------------- */

/* Master overline — used by all sections */
.text-overline,
.overline {
  font-family: var(--font-secondary);
  font-size: 0.5625rem;              /* Unified: matches header, footer, sections */
  font-weight: var(--weight-medium);
  letter-spacing: 0.20em;           /* Unified: --tracking-widest = 0.20em       */
  text-transform: uppercase;
  color: var(--color-primary);
  line-height: 1;
}

.text-label {
  font-family: var(--font-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  color: var(--color-neutral-700);
}

.text-caption {
  font-family: var(--font-secondary);
  font-size: var(--text-xs);
  font-weight: var(--weight-light);
  font-style: italic;
  color: var(--color-neutral-400);
  line-height: var(--leading-normal);
}


/* -----------------------------------------------------------
   COLOR MODIFIERS
   ----------------------------------------------------------- */
.text-gold    { color: var(--color-primary); }
.text-gold-light { color: var(--color-primary-light); }
.text-dark    { color: var(--color-secondary); }
.text-muted   { color: var(--color-neutral-500); }
.text-light   { color: var(--color-neutral-400); }
.text-white   { color: var(--color-white); }
.text-success { color: var(--color-success); }
.text-error   { color: var(--color-error); }


/* -----------------------------------------------------------
   ALIGNMENT MODIFIERS
   ----------------------------------------------------------- */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }


/* -----------------------------------------------------------
   WEIGHT MODIFIERS
   ----------------------------------------------------------- */
.text-light-weight { font-weight: var(--weight-light);    }
.text-regular      { font-weight: var(--weight-regular);  }
.text-medium       { font-weight: var(--weight-medium);   }
.text-semibold     { font-weight: var(--weight-semibold); }
.text-bold         { font-weight: var(--weight-bold);     }


/* -----------------------------------------------------------
   PROSE BLOCK — Long-form article / blog content
   ----------------------------------------------------------- */
.prose {
  font-family: var(--font-secondary);
  font-size: var(--text-base);
  font-weight: var(--weight-light);
  line-height: 1.85;
  color: var(--color-neutral-600);
  max-width: 68ch;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: var(--font-primary);
  font-weight: var(--weight-light);
  letter-spacing: -0.01em;
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  color: var(--color-secondary);
}

.prose p {
  margin-bottom: var(--space-5);
}

.prose a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(176, 141, 87, 0.35);
  transition:
    color        var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard);
}

.prose a:hover {
  color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.prose img {
  border-radius: 0;                   /* Sharp — consistent */
  margin: var(--space-8) 0;
}

.prose blockquote {
  font-family: var(--font-primary);
  font-size: var(--text-md);
  font-weight: var(--weight-light);
  font-style: italic;
  letter-spacing: 0.01em;
  border-left: 1px solid var(--color-primary);
  padding-left: var(--space-6);
  color: var(--color-neutral-600);
}

.prose ul li::before {
  content: '—';
  color: var(--color-primary);
  opacity: 0.6;
  margin-right: var(--space-2);
}


/* -----------------------------------------------------------
   SECTION TITLE PATTERN — Overline + Heading combo
   ----------------------------------------------------------- */
.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);               /* Slightly more air between overline/title */
  text-align: center;
  margin-bottom: var(--space-14);
}

.section-title .overline {
  font-family: var(--font-secondary);
  font-size: 0.5625rem;              /* Unified overline scale */
  font-weight: var(--weight-medium);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

/* Flanking dashes — all section overlines */
.section-title .overline::before,
.section-title .overline::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background-color: var(--color-primary);
  opacity: 0.50;
  flex-shrink: 0;
}

.section-title .title {
  font-family: var(--font-primary);
  font-size: var(--text-4xl);
  font-weight: var(--weight-light);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  color: var(--color-secondary);
}

.section-title .subtitle {
  font-family: var(--font-secondary);
  font-size: var(--text-base);
  font-weight: var(--weight-light);
  line-height: 1.80;
  color: var(--color-neutral-400);
  max-width: 52ch;
  letter-spacing: 0.01em;
}

.section-title--left {
  align-items: flex-start;
  text-align: left;
}

.section-title--left .overline::before {
  display: none;               /* Left-aligned: no left dash */
}


/* -----------------------------------------------------------
   DIVIDER LINE AFTER HEADING
   ----------------------------------------------------------- */
.section-title .title-divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-primary) 50%,
    transparent 100%
  );
  margin: 0 auto;
}
