/* ============================================================
   THE CLOUDBASE FOUNDATION — Base Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');
@import './tokens.css';

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--cbf-ground);
  background: var(--cbf-off-white);
}

/* Skip link */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--cbf-gold); color: white;
  padding: 8px 16px; font-weight: 600; font-size: 14px;
  z-index: 9999; transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* Content wrapper */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Typography scale */
h1, h2, h3, h4, h5, h6 { line-height: 1.15; }

.display,
h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
}

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

a { color: var(--cbf-sky); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--cbf-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

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

/* Utility classes */
.overline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.caption {
  font-size: 12px;
  color: var(--cbf-mid-gray);
  line-height: 1.5;
}

.text-navy   { color: var(--cbf-navy); }
.text-teal   { color: var(--cbf-teal); }
.text-gold   { color: var(--cbf-gold); }
.text-muted  { color: var(--cbf-mid-gray); }
.text-center { text-align: center; }

.section-pad { padding: var(--space-6) 0; }
.section-pad-lg { padding: var(--space-7) 0; }

/* Divider */
.divider {
  border: none;
  border-top: var(--border-default);
  margin: var(--space-5) 0;
}

/* Visually hidden (for screen readers) */
.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;
}
