/* vlx-base.css — Voxlink base styles: CSS custom properties, reset, typography, utilities */

/* ===== CUSTOM PROPERTIES ===== */
:root {
  /* Palette */
  --vlx-dark-surface: #0B1120;
  --vlx-dark-alt: #111827;
  --vlx-teal-primary: #0D9488;
  --vlx-teal-light: #14B8A6;
  --vlx-amber-accent: #F59E0B;
  --vlx-amber-muted: #92400E;
  --vlx-white: #FFFFFF;
  --vlx-off-white: #F8FAFC;
  --vlx-cream: #F1F5F9;
  --vlx-border-dark: #1E293B;
  --vlx-border-light: #E2E8F0;

  /* Text on dark */
  --vlx-heading-on-dark: #F8FAFC;
  --vlx-body-on-dark: #94A3B8;
  --vlx-muted-on-dark: #64748B;
  --vlx-teal-on-dark: #14B8A6;
  --vlx-amber-on-dark: #F59E0B;

  /* Text on light */
  --vlx-heading-on-light: #0F172A;
  --vlx-body-on-light: #334155;
  --vlx-muted-on-light: #64748B;
  --vlx-teal-on-light: #0D9488;
  --vlx-amber-on-light: #D97706;

  /* Spacing */
  --vlx-space-xs: 0.5rem;
  --vlx-space-sm: 1rem;
  --vlx-space-md: 1.5rem;
  --vlx-space-lg: 2.5rem;
  --vlx-space-xl: 4rem;
  --vlx-space-2xl: 6rem;
  --vlx-space-3xl: 8rem;

  /* Container */
  --vlx-container-max: 1200px;
  --vlx-container-pad: clamp(1.25rem, 5vw, 2.5rem);

  /* Border radius */
  --vlx-radius-sm: 0.375rem;
  --vlx-radius-md: 0.75rem;
  --vlx-radius-lg: 1.25rem;
  --vlx-radius-xl: 1.75rem;

  /* Transitions */
  --vlx-transition: 0.2s ease;
  --vlx-transition-md: 0.35s ease;

  /* Typography */
  --vlx-font-heading: 'Bricolage Grotesque', Inter, system-ui, -apple-system, sans-serif;
  --vlx-font-body: 'DM Sans', Inter, system-ui, -apple-system, sans-serif;
  --vlx-font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--vlx-font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ===== BODY THEME CLASSES ===== */
body.vlx-page--dark-top {
  background-color: var(--vlx-dark-surface);
  color: var(--vlx-body-on-dark);
}

body.vlx-page--light-top {
  background-color: var(--vlx-off-white);
  color: var(--vlx-body-on-light);
}

/* ===== CONTAINER ===== */
.vlx-container {
  width: 100%;
  max-width: var(--vlx-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--vlx-container-pad);
  padding-right: var(--vlx-container-pad);
}

/* ===== SECTION BACKGROUNDS ===== */
.vlx-section--dark {
  background-color: var(--vlx-dark-surface);
}

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

.vlx-section--light {
  background-color: var(--vlx-off-white);
}

.vlx-section--white {
  background-color: var(--vlx-white);
}

.vlx-section--cream {
  background-color: var(--vlx-cream);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--vlx-font-heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Dark surface headings */
.vlx-section--dark h1,
.vlx-section--dark h2,
.vlx-section--dark h3,
.vlx-section--dark h4,
.vlx-section--dark-alt h1,
.vlx-section--dark-alt h2,
.vlx-section--dark-alt h3,
.vlx-section--dark-alt h4 {
  color: var(--vlx-heading-on-dark);
}

.vlx-section--dark p,
.vlx-section--dark li,
.vlx-section--dark-alt p,
.vlx-section--dark-alt li {
  color: var(--vlx-body-on-dark);
}

/* Light surface headings */
.vlx-section--light h1,
.vlx-section--light h2,
.vlx-section--light h3,
.vlx-section--light h4,
.vlx-section--white h1,
.vlx-section--white h2,
.vlx-section--white h3,
.vlx-section--white h4,
.vlx-section--cream h1,
.vlx-section--cream h2,
.vlx-section--cream h3,
.vlx-section--cream h4 {
  color: var(--vlx-heading-on-light);
}

.vlx-section--light p,
.vlx-section--light li,
.vlx-section--white p,
.vlx-section--white li,
.vlx-section--cream p,
.vlx-section--cream li {
  color: var(--vlx-body-on-light);
}

/* Section padding */
.vlx-section {
  padding-top: var(--vlx-space-3xl);
  padding-bottom: var(--vlx-space-3xl);
}

.vlx-section--compact {
  padding-top: var(--vlx-space-xl);
  padding-bottom: var(--vlx-space-xl);
}

/* ===== HEADING SIZE SCALE ===== */
.vlx-h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.vlx-h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.vlx-h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
}

.vlx-h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

.vlx-subhead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.65;
}

.vlx-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vlx-mono {
  font-family: var(--vlx-font-mono);
}

/* ===== SECTION HEADING BLOCK ===== */
.vlx-section-header {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--vlx-space-2xl);
}

.vlx-section-header .vlx-label {
  display: inline-block;
  margin-bottom: var(--vlx-space-sm);
  color: var(--vlx-teal-light);
}

.vlx-section--light .vlx-section-header .vlx-label,
.vlx-section--white .vlx-section-header .vlx-label,
.vlx-section--cream .vlx-section-header .vlx-label {
  color: var(--vlx-teal-primary);
}

.vlx-section--dark .vlx-section-header .vlx-label,
.vlx-section--dark-alt .vlx-section-header .vlx-label {
  color: var(--vlx-teal-light);
}

.vlx-section-header p {
  margin-top: 1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FADE-IN ANIMATION ===== */
.vlx-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.vlx-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== UTILITY ===== */
.vlx-text-center { text-align: center; }
.vlx-text-left   { text-align: left; }
.vlx-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;
}
