/* ==========================================================================
   ClearPath Design System v2.0 - Typography
   Simplified 3-font stack: Almarai (headings), Space Grotesk (body), Arcade Gamer (buttons)
   ========================================================================== */

/* ==========================================================================
   Font Imports
   ========================================================================== */

/* Almarai - Headings (Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@400;700;800&display=swap');

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

/* Custom Fonts - Local */
@font-face {
  font-family: 'Arcade Gamer';
  src: url('../fonts/ArcadeGamer-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Font Stacks
   ========================================================================== */

:root {
  --font-heading: 'Almarai', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-button: 'Arcade Gamer', monospace;
}

/* ==========================================================================
   Base Typography
   ========================================================================== */

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Headings - Almarai Bold
   ========================================================================== */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 var(--space-md) 0;
}

h1, .h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-size: 24px;
  line-height: 1.25;
}

h4, .h4 {
  font-size: 18px;
  line-height: 1.3;
}

h5, .h5 {
  font-size: 16px;
  line-height: 1.4;
}

h6, .h6 {
  font-size: 14px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Body Text Variants
   ========================================================================== */

.text-lg {
  font-size: 18px;
  line-height: 1.65;
}

.text-base {
  font-size: 16px;
  line-height: 1.6;
}

.text-sm {
  font-size: 14px;
  line-height: 1.5;
}

.text-xs {
  font-size: 12px;
  line-height: 1.4;
}

/* ==========================================================================
   Paragraph Styles
   ========================================================================== */

p {
  margin: 0 0 var(--space-md) 0;
  max-width: var(--max-width-content);
}

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

.lead {
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ==========================================================================
   Links
   ========================================================================== */

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Text Colors
   ========================================================================== */

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

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

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

.text-cyan {
  color: var(--accent-cyan);
}

.text-green {
  color: var(--accent-green);
}

/* ==========================================================================
   Text Utilities
   ========================================================================== */

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

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

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

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

/* ==========================================================================
   Special Typography Elements
   ========================================================================== */

/* Gradient text - cyan to green */
.text-gradient {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Arcade Gamer styled text (for labels, badges) */
.arcade-text {
  font-family: var(--font-button);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Code/monospace - using system monospace since landing page doesn't need code styling */

/* ==========================================================================
   Lists
   ========================================================================== */

ul, ol {
  margin: 0 0 var(--space-md) 0;
  padding-left: var(--space-lg);
}

li {
  margin-bottom: var(--space-xs);
}

/* ==========================================================================
   Responsive Typography
   ========================================================================== */

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  h1, .h1 {
    font-size: 36px;
  }

  h2, .h2 {
    font-size: 28px;
  }

  h3, .h3 {
    font-size: 22px;
  }

  h4, .h4 {
    font-size: 17px;
  }

  .lead {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  h1, .h1 {
    font-size: 32px;
  }

  h2, .h2 {
    font-size: 24px;
  }

  h3, .h3 {
    font-size: 20px;
  }
}
