/* fgl-base.css — CSS Custom Properties, Reset, Typography */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* CSS Custom Properties */
:root {
  /* Brand Palette */
  --fgl-bg-dark: #0B1F3A;
  --fgl-bg-dark-alt: #122948;
  --fgl-bg-slate: #1E3350;
  --fgl-bg-light: #F4F7FA;
  --fgl-bg-white: #FFFFFF;

  /* Foreground on Dark */
  --fgl-fg-dark-primary: #EEF2F7;
  --fgl-fg-dark-secondary: #8BA3BE;

  /* Foreground on Light */
  --fgl-fg-light-primary: #0B1F3A;
  --fgl-fg-light-secondary: #3D5470;

  /* Accents */
  --fgl-accent: #F59E0B;
  --fgl-accent-aa-light: #B45309;
  --fgl-accent-aa-dark: #F59E0B;

  /* Border */
  --fgl-border-dark: rgba(255,255,255,0.1);
  --fgl-border-light: rgba(11,31,58,0.12);

  /* Typography */
  --fgl-font-sans: 'Inter', system-ui, sans-serif;
  --fgl-font-mono: 'IBM Plex Mono', 'Fira Code', monospace;

  /* Spacing */
  --fgl-space-xs: 8px;
  --fgl-space-sm: 16px;
  --fgl-space-md: 24px;
  --fgl-space-lg: 40px;
  --fgl-space-xl: 64px;
  --fgl-space-2xl: 96px;
  --fgl-space-3xl: 120px;

  /* Container */
  --fgl-container: 1200px;
  --fgl-radius: 8px;
  --fgl-radius-lg: 12px;

  /* Transitions */
  --fgl-transition: 200ms ease;
}

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

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

body {
  font-family: var(--fgl-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fgl-fg-light-primary);
  background: var(--fgl-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.fgl-page--dark-top {
  background: var(--fgl-bg-dark);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fgl-font-sans);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 600; }
h3 { font-size: clamp(18px, 2.5vw, 22px); font-weight: 600; }

p { line-height: 1.6; }

/* Container */
.fgl-container {
  width: 100%;
  max-width: var(--fgl-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Sections */
.fgl-section {
  padding: var(--fgl-space-3xl) 0;
}

.fgl-section--sm {
  padding: var(--fgl-space-xl) 0;
}

/* Eyebrow label */
.fgl-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.fgl-section--dark .fgl-eyebrow,
.fgl-section--dark-alt .fgl-eyebrow,
.fgl-hero .fgl-eyebrow,
footer .fgl-eyebrow {
  color: var(--fgl-accent-aa-dark);
}

.fgl-section--light .fgl-eyebrow,
.fgl-section--white .fgl-eyebrow {
  color: var(--fgl-accent-aa-light);
}

/* Section headlines */
.fgl-section--dark .fgl-section-title,
.fgl-section--dark-alt .fgl-section-title,
.fgl-hero .fgl-section-title {
  color: var(--fgl-fg-dark-primary);
}

.fgl-section--dark .fgl-section-sub,
.fgl-section--dark-alt .fgl-section-sub,
.fgl-hero .fgl-section-sub {
  color: var(--fgl-fg-dark-secondary);
}

.fgl-section--light .fgl-section-title,
.fgl-section--white .fgl-section-title {
  color: var(--fgl-fg-light-primary);
}

.fgl-section--light .fgl-section-sub,
.fgl-section--white .fgl-section-sub {
  color: var(--fgl-fg-light-secondary);
}

/* Mono data style */
.fgl-mono {
  font-family: var(--fgl-font-mono);
  font-weight: 500;
}

/* Utility */
.fgl-text-center { text-align: center; }
.fgl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Screen reader announce */
[aria-live] { position: absolute; clip: rect(0,0,0,0); }
