/* 
 * Global Typography System - Cefalo Design System
 * Based on Figma Design: https://www.figma.com/design/NxQd63rZaGUxuFnfMlAGeY/Cefalo-Design
 * 
 * Font Family: Geograph (Regular, Medium, Bold)
 * 
 * NOTE: To use the Geograph font family, you need to:
 * 1. Add font files to src/theme/my-theme/assets/fonts/
 * 2. Or use a web font service (e.g., Adobe Fonts, Google Fonts)
 * 3. Or update the @font-face declarations below with your font URLs
 */

/* Font Face Declarations */
/* Uncomment and update paths when font files are available */
@font-face {
  font-family: 'Geograph';
  src: url('https://3931576.fs1.hubspotusercontent-na1.net/hubfs/3931576/Fonts/geograph/geograph-web-regular.woff2') format('woff2'),
       url('https://3931576.fs1.hubspotusercontent-na1.net/hubfs/3931576/Fonts/geograph/geograph-web-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geograph';
  src: url('https://3931576.fs1.hubspotusercontent-na1.net/hubfs/3931576/Fonts/geograph/geograph-web-medium.woff2') format('woff2'),
       url('https://3931576.fs1.hubspotusercontent-na1.net/hubfs/3931576/Fonts/geograph/geograph-web-medium.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geograph Medium';
  src: url('https://3931576.fs1.hubspotusercontent-na1.net/hubfs/3931576/Fonts/geograph/geograph-web-medium.woff2') format('woff2'),
       url('https://3931576.fs1.hubspotusercontent-na1.net/hubfs/3931576/Fonts/geograph/geograph-web-medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Fallback: Using system fonts until Geograph fonts are added */
:root {
  --font-geograph: 'Geograph', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-geograph-medium: 'Geograph Medium', 'Geograph', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  /* Color Tokens */
  --color-text-primary: #001831;
  --color-text-secondary: #878787;
  --color-text-white: #f5f5f5;
}

/* Base Typography */
body {
  font-family: var(--font-geograph);
  font-size: 14px;
  line-height: 22px;
  color: var(--color-text-primary);
  letter-spacing: 0;
}

/* Heading Styles */
h1, .h1 {
  font-family: var(--font-geograph-medium);
  font-size: 56px;
  line-height: 70px;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0;
  padding: 0;
}

h2, .h2 {
  font-family: var(--font-geograph-medium);
  font-size: 36px;
  line-height: 46px;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0;
  padding: 0;
}

h3, .h3 {
  font-family: var(--font-geograph-medium);
  font-size: 30px;
  line-height: 38px;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0;
  padding: 0;
}

h4, .h4 {
  font-family: var(--font-geograph-medium);
  font-size: 26px;
  line-height: 34px;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0;
  padding: 0;
}

h5, .h5 {
  font-family: var(--font-geograph-medium);
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0;
  padding: 0;
}

/* Text Size Utility Classes */
.text-sm {
  font-size: 12px;
  line-height: 20px;
}

.text-base {
  font-size: 14px;
  line-height: 22px;
}

.text-md {
  font-size: 16px;
  line-height: 24px;
}

.text-l {
  font-size: 18px;
  line-height: 26px;
}

.text-xl {
  font-size: 20px;
  line-height: 28px;
}

.text-xxl {
  font-size: 26px;
  line-height: 34px;
}

/* Font Weight Utilities */
.font-regular {
  font-family: var(--font-geograph);
  font-weight: 400;
}

.font-medium {
  font-family: var(--font-geograph-medium);
  font-weight: 500;
}

.font-bold {
  font-family: var(--font-geograph);
  font-weight: 700;
}

/* Color Utilities */
.text-primary {
  color: var(--color-text-primary);
}

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

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

/* Responsive Typography */
@media (max-width: 768px) {
  h1, .h1 {
    font-size: 40px;
    line-height: 50px;
  }

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

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

  h4, .h4 {
    font-size: 22px;
    line-height: 30px;
  }

  h5, .h5 {
    font-size: 18px;
    line-height: 26px;
  }

  .text-xxl {
    font-size: 22px;
    line-height: 30px;
  }

  .text-xl {
    font-size: 18px;
    line-height: 26px;
  }
}

