:root {
  /* Primary - Sun-inspired warmth */
  --sun: #e8a027;
  --sun-bright: #f5b73b;
  --sun-light: #fcd581;
  --sun-pale: #fef4e1;
  --sun-glow: #fff8eb;

  /* Secondary - Healthcare credibility */
  --teal: #2a7d7d;
  --teal-dark: #1f5f5f;
  --teal-light: #3a9e9e;

  /* Accent - Earth tones (Guatemala) */
  --terracotta: #c75d3a;
  --forest: #3d6b4f;

  /* Legacy aliases for compatibility */
  --navy: #2d3e50;
  --navy-dark: #1e2d3d;
  --navy-soft: #4a5d6f;
  --gold: var(--sun);
  --gold-light: var(--sun-bright);
  --gold-pale: var(--sun-pale);

  /* Neutrals */
  --bg: #fafafa;
  --bg-warm: #fdfcfa;
  --white: #ffffff;
  --text: #1f2937;
  --text-muted: #4b5563;
  --text-light: #6b7280;
  --border: #e5e7eb;

  /* Semantic */
  --success: #059669;
  --error: #dc2626;

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 7rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 8px 30px rgba(232, 160, 39, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Karla, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  margin-bottom: var(--space-md);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
}

p {
  margin-bottom: var(--space-sm);
  color: var(--text-muted);
}

::selection {
  background: var(--sun-pale);
}

/* Accessibility - Focus styles */
:focus {
  outline: 2px solid var(--sun);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}