/* Theme Variables - Matching Investment Calculator Design */
:root {
  /* Light Mode Colors */
  --bg: #f0fdf9;
  --ink: #0f2f2e;
  --muted: #64748b;
  --brand: #0d9488;
  --brand-2: #0f766e;
  --accent: #5eead4;
  --card: #ffffff;
  --border: #d1e7e4;
  --shadow: 0 12px 32px rgba(13, 148, 136, 0.12);
  
  /* Spacing */
  --section-gap: clamp(20px, 4vw, 40px);
  --card-padding: clamp(16px, 3vw, 32px);
  --section-padding: clamp(12px, 2vw, 24px);
  
  /* Typography */
  --font-base: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --h1-size: clamp(26px, 3.4vw, 34px);
  --h2-size: clamp(20px, 2.5vw, 24px);
  --h3-size: 18px;
  --body-size: 14px;
  --small-size: 12px;
  
  /* Borders & Radius */
  --radius: 16px;
  --radius-sm: 8px;
  --radius-full: 999px;
  
  /* Transitions */
  --transition: all 0.2s ease;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    /* Dark Mode Colors */
    --bg: #0f1419;
    --ink: #f0fdf9;
    --muted: #94a3b8;
    --brand: #14b8a6;
    --brand-2: #0d9488;
    --accent: #5eead4;
    --card: #1a2330;
    --border: #2d4a47;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
}

/* Responsive Typography */
@media (max-width: 1200px) {
  :root {
    --section-gap: clamp(12px, 2.5vw, 32px);
    --card-padding: clamp(8px, 2.5vw, 24px);
  }
}

@media (max-width: 900px) {
  :root {
    --h1-size: clamp(22px, 3vw, 28px);
    --h2-size: clamp(18px, 2.2vw, 22px);
  }
}

@media (max-width: 700px) {
  :root {
    --section-gap: 16px;
    --card-padding: 16px;
    --section-padding: 16px;
    --h1-size: 24px;
    --h2-size: 20px;
    --h3-size: 16px;
    --body-size: 15px;
  }
  
  body {
    font-size: 15px;
  }
}
