/* CSS Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* CSS Custom Properties */
:root {
  /* Colors - Primary */
  --color-peach: #dc735f;
  --color-peach-dark: #c85f4a;
  --color-peach-light: #e89684;
  --color-orange: #e8945f;
  --color-orange-dark: #d17d4a;

  /* Warm Grey Theme Colors (subtle warmth) */
  --color-bg-primary: #1a1a1a;
  --color-bg-secondary: #252525;
  --color-bg-tertiary: #323232;
  --color-bg-elevated: #3f3f3f;
  --color-text-primary: #f0f0f0;
  --color-text-secondary: #d0d0d0;
  --color-text-muted: #a0a0a0;
  --color-border: #4a4a4a;
  --color-border-light: #383838;

  /* Legacy color names (for backwards compatibility) */
  --color-charcoal: #252525;
  --color-slate: #3f3f3f;
  --color-steel: #a0a0a0;
  --color-silver: #d0d0d0;
  --color-pearl: #4a4a4a;
  --color-mist: #323232;
  --color-cloud: #252525;
  --color-white: #ffffff;

  /* Colors - Supporting */
  --color-success: #48bb78;
  --color-warning: #ed8936;
  --color-error: #f56565;
  --color-info: #4299e1;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Shadows - Dark theme */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
  --shadow-peach: 0 4px 12px rgba(220, 115, 95, 0.4);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: all 0.15s ease;
  --transition-standard: all 0.2s ease;
  --transition-slow: all 0.3s ease;

  /* Container */
  --container-max-width: 1200px;
  --container-padding: 2rem;
}

/* Base Elements */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
  font-weight: 600;
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-peach);
  text-decoration: none;
  transition: var(--transition-standard);
}

a:hover {
  color: var(--color-peach-dark);
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Responsive Typography */
@media (max-width: 768px) {
  :root {
    --container-padding: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.25rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-peach {
  color: var(--color-peach);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
