/**
 * AVENIX Venture - Base Styles
 */

@import url('./components/smooth-scroll.css');

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

/* Custom Scrollbar */
html {
  scrollbar-color: var(--color-border) var(--color-bg);
  scrollbar-width: thin;
  overflow-x: hidden;
}

@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  ::-webkit-scrollbar-track {
    background: var(--color-bg);
  }

  ::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--radius-full);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
  }
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  font-weight: var(--fw-bold);
}

h1 {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-2);
}

h4 {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-2);
}

p {
  color: var(--color-text-secondary);
  line-height: var(--lh-body);
  margin-bottom: var(--space-4);
}

p.lead {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
  color: var(--color-text-secondary);
}

strong,
b {
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
}

small {
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
}

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-border-subtle);
}

/* Global Icon Fixes for stroke-based SVGs */
.icon-arrow-right,
svg.icon-arrow-right {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Selection */
::selection {
  background-color: var(--color-primary-alpha);
  color: var(--color-primary);
}

/* 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: 0;
}