/* =============================================================
   BAWE Design Tokens
   Ported from the 2026 Company Profile PDF design system.
   Load first — all other CSS depends on these custom properties.
   ============================================================= */

:root {
  /* ---------- Brand ---------- */
  --bawe-blue-600: #113EC4;   /* cobalt — primary accent */
  --bawe-blue-500: #2A54D8;   /* lighter — dark-mode accent */
  --bawe-blue-400: #6B8AE8;   /* pale — dark-mode secondary emphasis */
  --bawe-blue-50:  #EEF2FD;   /* tint — subtle wash on light cards */

  /* ---------- Ink (dark surfaces, body text) ---------- */
  --bawe-ink-900: #02081A;    /* deepest — dark backgrounds, primary text */
  --bawe-ink-800: #0C1428;    /* body copy on light */
  --bawe-ink-700: #1A2340;    /* secondary text on light */

  /* ---------- Steel (neutrals) ---------- */
  --bawe-steel-600: #4A5578;
  --bawe-steel-500: #666F8D;  /* nudged from #6B7595: the original is 4.37:1 on --bawe-paper-2, just under AA for small labels */
  --bawe-steel-400: #96A0BC;
  --bawe-steel-200: #DDE1EC;
  --bawe-steel-100: #EDF0F5;

  /* ---------- Paper (light surfaces) ---------- */
  --bawe-paper:   #FFFFFF;
  --bawe-paper-2: #FAFAFB;

  /* ---------- Cream (warm accent, sparing) ---------- */
  --bawe-cream: #F1F0EC;

  /* ---------- Typography ---------- */
  --font-display: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ---------- Spacing (8px grid) ---------- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ---------- Layout ---------- */
  --container-max: 1280px;
  --container-pad: 1rem;

  /* ---------- Radius ---------- */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* ---------- Timing ---------- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur-med:  300ms;
  --dur-slow: 500ms;
}

@media (min-width: 768px)  { :root { --container-pad: 2rem; } }
@media (min-width: 1024px) { :root { --container-pad: 3rem; } }

/* =============================================================
   Font loading — self-hosted variable fonts.
   Download Archivo + Inter WOFF2 variable files and place in /fonts/
   ============================================================= */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/Archivo-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* =============================================================
   Type utility classes — apply directly to elements.
   ============================================================= */

.hero-xl {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.small {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bawe-blue-600);
}

.meta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.6875rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bawe-steel-500);
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.4;
}

/* =============================================================
   Accessibility — reduced motion
   ============================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* =============================================================
   Web-only additions to the ported print system.
   Kept separate from the PDF tokens above so the print-side
   system stays recognisable when it is re-ported.
   ============================================================= */

:root {
  /* Text on dark surfaces (Section 5 hierarchy) */
  --on-dark-head: #FFFFFF;
  --on-dark-body: rgba(255, 255, 255, 0.82);
  --on-dark-mute: rgba(255, 255, 255, 0.55);
  --on-dark-rule: rgba(255, 255, 255, 0.14);

  /* Elevation — used sparingly, cards are border-first */
  --shadow-nav: 0 1px 0 var(--bawe-steel-200), 0 6px 24px rgba(2, 8, 26, 0.06);
  --shadow-card: 0 12px 32px rgba(2, 8, 26, 0.08);

  /* Chrome */
  --nav-h: 68px;

  /* Signature device sizes */
  --marker-w: 28px;   /* blue accent marker above small headings */
  --marker-h: 3px;
  --bullet-w: 8px;    /* house-glyph bullet in lists */
  --bullet-h: 1.5px;

  /* Section rhythm (Section 5 spacing) */
  --section-y: var(--space-16);
}

@media (min-width: 768px) {
  :root { --nav-h: 76px; --section-y: var(--space-24); }
}
