/* ============================================================
   CorePal Base Styles
   Reset + typography + layout primitives
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;900&display=swap');

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-primary);
  background-color: var(--color-bg-body);
  line-height: var(--line-height-relaxed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }

/* ── Layout Primitives ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-px);
}

.section {
  padding-block: var(--section-py);
}

/* ── Typography Utilities ───────────────────────────────────── */
.eyebrow {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-label);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.eyebrow--light { color: rgba(255, 255, 255, 0.55); }

.section-title {
  font-weight: var(--font-weight-black);
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--line-height-tight);
  text-transform: uppercase;
}

.section-title--lg {
  font-size: clamp(var(--font-size-4xl), 5vw, var(--font-size-6xl));
}

.section-title--md {
  font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
}

.section-title--sm {
  font-size: clamp(var(--font-size-2xl), 3vw, var(--font-size-4xl));
}

.section-body {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ── Color Modifiers ────────────────────────────────────────── */
.text-accent  { color: var(--color-accent); }
.text-brand   { color: var(--color-text-brand); }
.text-invert  { color: var(--color-text-invert); }
.text-center  { text-align: center; }
.text-muted   { color: var(--color-text-muted); }

/* ── Accessibility ──────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
