/* ============ FONT LOADING ============ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Manrope:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

/* ============ ROOT VARIABLES ============ */
:root {
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 20px;
  --font-size-xl: 28px;
  --font-size-2xl: 40px;
  --font-size-3xl: 56px;
  --font-size-4xl: 72px;
  --font-size-5xl: 96px;
  
  --line-height-tight: 1.1;
  --line-height-normal: 1.6;
  --line-height-loose: 1.8;
  
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.05em;
  --letter-spacing-wider: 0.1em;
  --letter-spacing-widest: 0.2em;
  
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;
}

/* ============ BASE TYPOGRAPHY ============ */
body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-normal);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--text-primary);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-3xl); }
h3 {
  font-size: var(--font-size-xl);
  font-family: var(--font-body);
  font-weight: 600;
}
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-base); }
h6 { font-size: var(--font-size-sm); }

/* ============ EMOTIONAL ELEMENTS ============ */
em {
  font-style: italic;
  font-family: var(--font-display);
}

/* ============ TEXT WEIGHTS ============ */
.text-light { font-weight: 300; }
.text-medium { font-weight: 500; }
.text-bold { font-weight: 700; }
.text-black { font-weight: 800; }

/* ============ TEXT TRANSFORM ============ */
.text-uppercase { text-transform: uppercase; }
.text-caps { text-transform: capitalize; }

/* ============ TEXT COLORS ============ */
.text-amber { color: var(--accent-amber); }
.text-coral { color: var(--accent-coral); }
.text-lime { color: var(--accent-lime); }
.text-muted { color: var(--text-secondary); }
.text-primary { color: var(--text-primary); }
.text-dark { color: var(--text-dark); }

/* ============ ALIGNMENTS ============ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* ============ FONT FAMILIES ============ */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.font-mono { font-family: var(--font-mono); }

/* ============ SPACING UTILITIES ============ */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }
.mt-6 { margin-top: var(--space-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }
.mb-6 { margin-bottom: var(--space-2xl); }

/* ============ TEXT SHADOWS ============ */
.text-shadow-sm { text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.text-shadow-md { text-shadow: 0 4px 8px rgba(0,0,0,0.2); }
.text-shadow-lg { text-shadow: 0 8px 16px rgba(0,0,0,0.3); }

/* ============ GRADIENT TEXT ============ */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-coral));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ RESPONSIVE TYPOGRAPHY ============ */
@media (max-width: 768px) {
  :root {
    --font-size-5xl: 48px;
    --font-size-4xl: 40px;
    --font-size-3xl: 32px;
    --font-size-2xl: 24px;
    --font-size-xl: 20px;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-5xl: 36px;
    --font-size-4xl: 32px;
    --font-size-3xl: 28px;
    --font-size-2xl: 22px;
  }
}
