/************************************************************
=================== GLOBAL VARIABLES ========================
*************************************************************/
:root {
  /* TYPOGRAPHY */
  --tm-font-family: "Inter", "Segoe UI", Arial, sans-serif;
  --tm-font-family-mono: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono",
    monospace;

  /* FONT SIZES */
  --tm-text-xs: 0.75rem; /* 12px */
  --tm-text-sm: 0.875rem; /* 14px */
  --tm-text-base: 1rem; /* 16px */
  --tm-text-lg: 1.125rem; /* 18px */
  --tm-text-xl: 1.25rem; /* 20px */
  --tm-text-2xl: 1.5rem; /* 24px */
  --tm-text-3xl: 1.875rem; /* 30px */
  --tm-text-4xl: 2.25rem; /* 36px */
  --tm-text-5xl: 3rem; /* 48px */

  /* LINE HEIGHTS */
  --tm-leading-none: 1;
  --tm-leading-tight: 1.25;
  --tm-leading-normal: 1.5;
  --tm-leading-relaxed: 1.75;

  /* LETTER SPACING */
  --tm-tracking-tighter: -0.05em;
  --tm-tracking-tight: -0.025em;
  --tm-tracking-normal: 0;
  --tm-tracking-wide: 0.025em;
  --tm-tracking-wider: 0.05em;
  --tm-tracking-widest: 0.1em;

  /* COLORS */
  /* Base colors */
  --tm-bg: #f8fafc;
  --tm-white: #ffffff;
  --tm-black: #000000;
  --tm-border: #e2e8f0;

  /* Text colors */
  --tm-text: #334155;
  --tm-text-light: #64748b;
  --tm-text-lighter: #94a3b8;
  --tm-heading: #1e293b;

  /* Primary colors */
  --tm-primary: #2d338c;
  --tm-primary-dark: #222766;
  --tm-primary-light: #008ed9;
  --tm-primary-lighter: #e6e7f5;

  /* Success colors */
  --tm-success: #166534;
  --tm-success-dark: #14532d;
  --tm-success-light: #15803d;
  --tm-success-bg: #dcfce7;

  /* Warning colors */
  --tm-warning: #854d0e;
  --tm-warning-dark: #713f12;
  --tm-warning-light: #a16207;
  --tm-warning-bg: #fef9c3;

  /* Info colors */
  --tm-info: #1e40af;
  --tm-info-dark: #1e3a8a;
  --tm-info-light: #2563eb;
  --tm-info-bg: #dbeafe;

  /* Error colors */
  --tm-error: #b91c1c;
  --tm-error-dark: #991b1b;
  --tm-error-light: #dc2626;
  --tm-error-bg: #fee2e2;

  /* GRAY SCALE */
  --tm-gray-20: #f7f6f6;
  --tm-gray-50: #f8fafc;
  --tm-gray-100: #f1f5f9;
  --tm-gray-200: #e2e8f0;
  --tm-gray-300: #cbd5e1;
  --tm-gray-400: #94a3b8;
  --tm-gray-500: #64748b;
  --tm-gray-600: #475569;
  --tm-gray-700: #334155;
  --tm-gray-800: #1e293b;
  --tm-gray-900: #0f172a;

  /* SPACING */
  /* Base spacing unit */
  --tm-space-1: 0.25rem; /* 4px */
  --tm-space-2: 0.5rem; /* 8px */
  --tm-space-3: 0.75rem; /* 12px */
  --tm-space-4: 1rem; /* 16px */
  --tm-space-5: 1.25rem; /* 20px */
  --tm-space-6: 1.5rem; /* 24px */
  --tm-space-8: 2rem; /* 32px */
  --tm-space-10: 2.5rem; /* 40px */
  --tm-space-12: 3rem; /* 48px */
  --tm-space-16: 4rem; /* 64px */
  --tm-space-20: 5rem; /* 80px */
  --tm-space-24: 6rem; /* 96px */

  /* BORDER RADIUS */
  --tm-radius-sm: 0.375rem; /* 6px */
  --tm-radius: 0.625rem; /* 10px */
  --tm-radius-md: 0.75rem; /* 12px */
  --tm-radius-lg: 1rem; /* 16px */
  --tm-radius-xl: 1.5rem; /* 24px */
  --tm-radius-full: 9999px;

  /* SHADOWS */
  --tm-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --tm-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  --tm-shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
  --tm-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --tm-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

  /* Z-INDEX */
  --tm-z-dropdown: 1000;
  --tm-z-sticky: 1020;
  --tm-z-fixed: 1030;
  --tm-z-modal-backdrop: 1040;
  --tm-z-modal: 1050;
  --tm-z-popover: 1060;
  --tm-z-tooltip: 1070;

  /* TRANSITIONS */
  --tm-transition: 0.25s ease;
  --tm-transition-fast: 0.15s ease;
  --tm-transition-slow: 0.35s ease;

  /* BREAKPOINTS */
  --tm-breakpoint-sm: 640px;
  --tm-breakpoint-md: 768px;
  --tm-breakpoint-lg: 1024px;
  --tm-breakpoint-xl: 1280px;
  --tm-breakpoint-2xl: 1536px;
}

/************************************************************
=================== GLOBAL STYLES ===========================
*************************************************************/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--tm-font-family);
  font-size: var(--tm-text-base);
  line-height: var(--tm-leading-normal);
  color: var(--tm-text);
  background-color: var(--tm-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: var(--tm-leading-tight);
  color: var(--tm-heading);
  margin-bottom: var(--tm-space-4);
}

h1 {
  font-size: var(--tm-text-4xl);
}
h2 {
  font-size: var(--tm-text-3xl);
}
h3 {
  font-size: var(--tm-text-2xl);
}
h4 {
  font-size: var(--tm-text-xl);
}
h5 {
  font-size: var(--tm-text-lg);
}
h6 {
  font-size: var(--tm-text-base);
}

p {
  margin-bottom: var(--tm-space-4);
}

a {
  color: var(--tm-primary);
  text-decoration: none;
  transition: color var(--tm-transition);
}

a:hover {
  color: var(--tm-primary-dark);
}

/* Forms */
input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
}
