/* ============================================
   Base CSS - Reset + CSS Custom Properties
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--color-bg-default);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
  /* --- Color Tokens --- */
  --color-bg-default: #FFFFFF;
  --color-text-primary: #1E1E1D;
  --color-text-secondary: rgba(30, 30, 29, 0.7);
  --color-accent: #dd9933;
  --color-btn-text: #1E1E1D;
  --color-overlay: transparent;
  --color-divider: rgba(30, 30, 29, 0.15);

  /* --- Spacing System (8px Grid) --- */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;

  /* --- Typography --- */
  --font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-h1: clamp(2.5rem, 6vw, 5rem);
  --font-size-h2: 35px;
  --font-size-body: 16px;
  --font-size-btn: 1rem;
  --font-size-small: 0.875rem;
  --font-weight-normal: 400;
  --font-weight-bold: 700;
  --font-weight-black: 900;
  --line-height-tight: 1.2;
  --line-height-normal: 1.6;

  /* --- Layout --- */
  --container-max-width: 1140px;
  --container-padding: var(--space-md);
  --section-padding-v: var(--space-xl);

  /* --- Transitions --- */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s ease;
  --transition-slow: 0.6s ease;

  /* --- Border --- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-full: 9999px;

  /* --- Shadow --- */
  --shadow-card: none;
  --shadow-btn: none;
}

/* ============================================
   Base Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-black);
}

p {
  line-height: var(--line-height-normal);
}

/* ============================================
   Accessibility
   ============================================ */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Reduced motion support */
@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;
  }
}

/* Desktop font-size overrides (mobile-first: base values are mobile) */
@media (min-width: 1024px) {
  :root {
    --font-size-h2: 46px;
    --font-size-body: 18px;
  }
}
