/* ─────────────────────────────────────────────────────────────
   V-MEP Base Styles — Reset + Typography
───────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Headings ── */
h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.15;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

h4, h5, h6 {
  font-family: var(--font-sans);
  line-height: 1.35;
  color: var(--navy-900);
  font-weight: 700;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: var(--space-6); font-weight: 700; }
h2 { font-size: clamp(1.625rem, 3vw, 2.375rem); margin-bottom: var(--space-4); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); margin-bottom: var(--space-3); font-weight: 600; }
h4 { font-size: 1.125rem; margin-bottom: var(--space-2); }
h5 { font-size: 1rem; margin-bottom: var(--space-2); }

p {
  color: var(--slate-600);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}
p:last-child { margin-bottom: 0; }

ul, ol { list-style: none; }

a {
  color: var(--navy-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--orange-500); }

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

button, input, select, textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
}

strong { font-weight: 700; color: var(--slate-800); }
em { font-style: italic; }

/* ── Accessibility ── */
.skip-link {
  position: absolute;
  top: -56px;
  left: 16px;
  background: var(--orange-500);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  font-size: 0.875rem;
  transition: top var(--transition-fast);
  box-shadow: var(--shadow-orange);
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 3px;
}

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