/**
 * LeapsGo Design System - Base Styles & Typography Hierarchy
 * Google Fonts loaded via non-blocking <link> in <head> for fast LCP & zero font render blocking.
 */

/* Accessibility Skip Link */
.lg-skip-link {
  position: absolute;
  top: -100px;
  left: 1.5rem;
  background: var(--lg-primary);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--lg-radius-pill);
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 10000;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 15px var(--lg-primary-glow);
  transition: top 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lg-skip-link:focus {
  top: 1.5rem;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--lg-font-sans);
  background-color: var(--lg-bg-base);
  color: var(--lg-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
}

/* Custom Text Selection */
::selection {
  background-color: var(--lg-primary);
  color: #ffffff;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--lg-text-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* Fluid Display Headings */
.lg-display-hero {
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

.lg-heading-1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.lg-heading-2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.lg-heading-3 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.lg-heading-4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Editorial Serif Accent (Matching the award-winning agency look) */
.lg-accent-serif {
  font-family: var(--lg-font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--lg-primary);
  letter-spacing: normal;
  text-transform: none;
  display: inline;
}

/* Eyebrow Label Tag */
.lg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lg-primary);
  margin-bottom: var(--lg-space-md);
}

.lg-eyebrow::before {
  content: '✦';
  font-size: 0.9rem;
  line-height: 1;
  color: var(--lg-primary);
}

/* Paragraphs & Text Utilities */
p {
  color: var(--lg-text-secondary);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
}

p.lg-lead {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.6;
  color: #c4c9d4;
  font-weight: 400;
}

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

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

/* Container & Layout Utilities */
.lg-container {
  width: 100%;
  max-width: var(--lg-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--lg-container-pad);
  padding-right: var(--lg-container-pad);
}

.lg-container-wide {
  width: 100%;
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--lg-container-pad);
  padding-right: var(--lg-container-pad);
}

/* Section Spacing */
.lg-section {
  padding-top: var(--lg-space-4xl);
  padding-bottom: var(--lg-space-4xl);
  position: relative;
}

.lg-section-island {
  padding: var(--lg-space-2xl) 0;
}

/* Large Island Card Containers (Reference signature pattern) */
.lg-island-container {
  background-color: var(--lg-bg-surface);
  border: 1px solid var(--lg-border-subtle);
  border-radius: var(--lg-radius-island);
  padding: var(--lg-space-3xl) var(--lg-space-2xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--lg-shadow-card);
}

@media (max-width: 768px) {
  .lg-island-container {
    padding: var(--lg-space-2xl) var(--lg-space-lg);
  }
}

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