/**
 * Typography System
 * Theme: Pacto 25
 * Hierarchy based directly on Sora & Libre Franklin design system
 */

/* Web Fonts Import (Google Fonts fallback with preconnect in setup.php) */
@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@400;500;600&family=Sora:wght@400;500;600;700&display=swap');

html {
  font-size: 100%;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  margin-top: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1, .h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  margin-bottom: var(--space-md);
}

h2, .h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  margin-bottom: var(--space-md);
}

h3, .h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  margin-bottom: var(--space-sm);
}

/* Eyebrow / Overline */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.eyebrow--white {
  color: var(--color-white);
}

.eyebrow--dark {
  color: var(--color-dark);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  flex-shrink: 0;
}

/* Body & Paragraphs */
p {
  margin-top: 0;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

p:last-child {
  margin-bottom: 0;
}

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

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

.text-white {
  color: var(--color-white);
}

.text-center {
  text-align: center;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--color-primary);
}

/* Screen reader accessible text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
