/* M88SEA Base Styles - Reset, Variables, Typography */

/* CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* CSS Variables */
:root {
  /* Colors */
  --color-bg: #202020;
  --color-bg-alt: #F5F5F4;
  --color-surface: #252837;
  --color-surface-alt: #323035;
  --color-text: #F5F5F4;
  --color-text-muted: #9A9799;
  --color-accent: #431B1C;
  --color-border: #9A9799;
  --color-border-dark: rgba(154, 151, 153, 0.2);
  
  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-base: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  
  /* Layout */
  --max-width: 1280px;
  --container-padding: clamp(16px, 3vw, 32px);
  
  /* Typography */
  --font-heading: 'Bebas Neue', 'Oswald', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Transitions */
  --transition-base: 0.3s ease;
  --transition-fast: 0.15s ease;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--space-base);
}

h1 {
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(22px, 2.5vw, 28px);
}

h4 {
  font-size: clamp(18px, 2vw, 22px);
}

p {
  margin-bottom: var(--space-base);
  font-size: clamp(16px, 1.5vw, 18px);
}

small {
  font-size: clamp(13px, 1.2vw, 14px);
  color: var(--color-text-muted);
}

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

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
