/**
 * ComeMassageMe — Authoritative Typography Design Tokens
 * Version: 4.2
 *
 * All typography is rem-based (16px base font size).
 * Responsive scaling is managed via CSS Custom Properties.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --font-family-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

  /* Desktop Font Sizes (>= 1024px) */
  --text-hero: 3rem;           /* 48px */
  --text-h1: 2.25rem;          /* 36px */
  --text-h2: 1.875rem;         /* 30px */
  --text-h3: 1.5rem;           /* 24px */
  --text-h4: 1.125rem;         /* 18px */

  --text-body: 1rem;           /* 16px */
  --text-secondary: 0.875rem;  /* 14px */
  --text-nav: 0.875rem;        /* 14px */
  --text-button: 0.9375rem;    /* 15px */
  --text-label: 0.875rem;      /* 14px */
  --text-input: 1rem;          /* 16px - Standardized to prevent iOS mobile zoom */
  --text-table: 0.875rem;      /* 14px */
  --text-badge: 0.8125rem;     /* 13px */
  --text-helper: 0.8125rem;    /* 13px */
  --text-caption: 0.8125rem;   /* 13px */
  --text-footer: 0.875rem;     /* 14px */

  /* Line Heights */
  --leading-hero: 1.15;
  --leading-h1: 1.25;
  --leading-h2: 1.25;
  --leading-h3: 1.35;
  --leading-h4: 1.35;
  --leading-body: 1.6;
  --leading-secondary: 1.5;
  --leading-button: 1.35;
  --leading-input: 1.45;
  --leading-badge: 1.3;
  --leading-helper: 1.4;
}

/* Tablet Breakpoint (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --text-hero: 2.5rem;       /* 40px */
    --text-h1: 2rem;           /* 32px */
    --text-h2: 1.75rem;        /* 28px */
    --text-h3: 1.375rem;       /* 22px */
    --text-h4: 1.125rem;       /* 18px */
    --text-nav: 0.875rem;      /* 14px */
    --text-button: 0.9375rem;  /* 15px */
    --text-input: 1rem;        /* 16px */
  }
}

/* Mobile Breakpoint (< 768px) */
@media (max-width: 767px) {
  :root {
    --text-hero: 2rem;         /* 32px */
    --text-h1: 1.75rem;        /* 28px */
    --text-h2: 1.5rem;         /* 24px */
    --text-h3: 1.25rem;        /* 20px */
    --text-h4: 1.0625rem;      /* 17px */
    --text-nav: 0.9375rem;     /* 15px - Increased readability for mobile touch menus */
    --text-button: 0.9375rem;  /* 15px */
    --text-input: 1rem;        /* 16px - Prevents automatic mobile browser zoom */
  }
}

/* Global Typography Token Utilities */
.text-token-hero {
  font-size: var(--text-hero);
  line-height: var(--leading-hero);
}

.text-token-h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-h1);
}

.text-token-h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
}

.text-token-h3 {
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
}

.text-token-h4 {
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
}

.text-token-body {
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.text-token-secondary {
  font-size: var(--text-secondary);
  line-height: var(--leading-secondary);
}

.text-token-nav {
  font-size: var(--text-nav);
  line-height: 1.4;
}

.text-token-button {
  font-size: var(--text-button);
  line-height: var(--leading-button);
}

.text-token-label {
  font-size: var(--text-label);
  line-height: 1.4;
}

.text-token-input {
  font-size: var(--text-input);
  line-height: var(--leading-input);
}

.text-token-table {
  font-size: var(--text-table);
  line-height: 1.5;
}

.text-token-badge {
  font-size: var(--text-badge);
  line-height: var(--leading-badge);
}

.text-token-helper {
  font-size: var(--text-helper);
  line-height: var(--leading-helper);
}

.text-token-footer {
  font-size: var(--text-footer);
  line-height: 1.5;
}

/* Accessible Interactive Touch Targets */
.interactive-target {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
