/* IronValue - Base CSS: Reset, Variables, Typography */

/* === CSS Reset === */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

/* === CSS Variables === */
:root {
  /* Primary - Deep navy (authority, trust) */
  --color-primary: #1a2744;
  --color-primary-light: #2d4a7a;
  --color-primary-dark: #0f1a2e;

  /* Accent - Steel blue (industrial, professional) */
  --color-accent: #3d7ec7;
  --color-accent-light: #5a9ae0;
  --color-accent-dark: #2a5f9e;

  /* Success/Positive - Muted green */
  --color-positive: #2d8a4e;
  --color-negative: #c53030;
  --color-warning: #b7791f;

  /* Neutrals */
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8fa;
  --color-bg-card: #ffffff;
  --color-border: #d1d5db;
  --color-border-light: #e5e7eb;
  --color-text: #1a1a1a;
  --color-text-secondary: #4b5563;
  --color-text-muted: #6b7280;

  /* Data visualization */
  --color-chart-1: #3d7ec7;
  --color-chart-2: #2d8a4e;
  --color-chart-3: #b7791f;
  --color-chart-4: #8b5cf6;

  /* 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;

  /* Border radius */
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Shadows - minimal, institutional */
  --shadow-card: none;
  --shadow-dropdown: 0 2px 8px rgba(0,0,0,0.12);

  /* Max widths */
  --max-width-content: 1200px;
  --max-width-narrow: 800px;
  --max-width-form: 600px;

  /* Font stacks */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-data: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;

  /* Font sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
}

/* === Base Typography === */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

ul, ol {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}
li { margin-bottom: var(--space-xs); }

strong { font-weight: 600; }

/* === Utility Classes === */
.container {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }

.font-data { font-family: var(--font-data); }

.section {
  padding: var(--space-3xl) 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.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;
}
