/* Leaders Tech LLC - Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  color: var(--navy-800);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Skip link for keyboard accessibility */
.skip-link {
  position: absolute;
  top: -9999px;
  left: var(--space-4);
  z-index: 1000;
  padding: var(--space-2) var(--space-4);
  background: var(--navy-800);
  color: var(--bg);
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-4);
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Global focus visible indicator */
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Headings: weight 800, tight letter-spacing */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heavy);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--navy-800);
  margin-top: 0;
  margin-bottom: var(--space-4);
  line-height: var(--line-height-tight);
}

h1 { font-size: clamp(2rem, 5vw, var(--font-size-3xl)); }
h2 { font-size: clamp(1.6rem, 4vw, var(--font-size-2xl)); }
h3 { font-size: clamp(1.3rem, 3vw, var(--font-size-xl)); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-md); }
h6 { font-size: var(--font-size-base); }

/* Paragraphs & Typography */
p {
  margin-top: 0;
  margin-bottom: var(--space-4);
}

.prose {
  max-width: var(--reading-width);
}

.prose p {
  margin-bottom: var(--space-4);
}

.text-lead {
  font-size: var(--font-size-md);
  line-height: 1.5;
}

.text-muted {
  color: var(--ink-muted);
}

.text-sm {
  font-size: var(--font-size-sm);
}

/* Links */
a {
  color: var(--teal-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: var(--teal-500);
}

/* Lists */
ul, ol {
  margin-top: 0;
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

li {
  margin-bottom: var(--space-2);
}

/* Images & Media */
img, svg, picture {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

/* Main Content Area */
main {
  flex: 1 0 auto;
}

/* Horizontal Rules */
hr {
  border: 0;
  height: 1px;
  background-color: var(--line);
  margin: var(--space-8) 0;
}

/* Screen reader only utility */
.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;
}

/* Reduced Motion preference */
@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;
  }
}
