/* ==========================================================================
   DESA55 Typography System
   ========================================================================== */

/* Google Fonts: Inter, Manrope, Space Grotesk */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Manrope:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── Base Typography ─────────────────────────────────────────────────────── */

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--color-text-primary);
}

/* ── Heading Scale ───────────────────────────────────────────────────────── */

h1 {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

h2 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

h3 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
}

h4 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
}

h5 {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-normal);
}

h6 {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-normal);
}

/* ── Text Utilities ──────────────────────────────────────────────────────── */

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
  background: linear-gradient(135deg, #84CC16 0%, #22C55E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-primary   { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-tertiary  { color: var(--color-text-tertiary); }
.text-brand     { color: var(--color-primary); }
.text-accent    { color: var(--color-accent); }
.text-white     { color: var(--color-white); }

.text-xs    { font-size: var(--text-xs); }
.text-sm    { font-size: var(--text-sm); }
.text-base  { font-size: var(--text-base); }
.text-md    { font-size: var(--text-md); }
.text-lg    { font-size: var(--text-lg); }
.text-xl    { font-size: var(--text-xl); }
.text-2xl   { font-size: var(--text-2xl); }
.text-3xl   { font-size: var(--text-3xl); }
.text-4xl   { font-size: var(--text-4xl); }

.fw-light    { font-weight: var(--fw-light); }
.fw-regular  { font-weight: var(--fw-regular); }
.fw-medium   { font-weight: var(--fw-medium); }
.fw-semibold { font-weight: var(--fw-semibold); }
.fw-bold     { font-weight: var(--fw-bold); }
.fw-black    { font-weight: var(--fw-black); }

.font-display { font-family: var(--font-display); }
.font-mono    { font-family: var(--font-mono); }

.lh-tight    { line-height: var(--lh-tight); }
.lh-normal   { line-height: var(--lh-normal); }
.lh-relaxed  { line-height: var(--lh-relaxed); }

.ls-tight   { letter-spacing: var(--ls-tight); }
.ls-wide    { letter-spacing: var(--ls-wide); }
.ls-widest  { letter-spacing: var(--ls-widest); }

.uppercase  { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }

/* ── Prose ───────────────────────────────────────────────────────────────── */

.prose {
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 70ch;
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--color-text-primary);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

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

.prose ul,
.prose ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
}

.prose li {
  margin-bottom: var(--space-2);
}

.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.prose a:hover {
  color: var(--color-accent);
}

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

.prose blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-5);
  margin-left: 0;
  color: var(--color-text-secondary);
  font-style: italic;
}

.prose code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background: var(--bg-glass-light);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--color-accent);
}

/* ── Label / Badge Text ──────────────────────────────────────────────────── */

.label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-primary);
}

.overline {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

/* ── Section Header Pattern ──────────────────────────────────────────────── */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-5);
}

.section-desc {
  font-size: var(--text-lg);
  line-height: var(--lh-relaxed);
  color: var(--color-text-secondary);
  max-width: 600px;
}
