/**
 * =================================================================
 * File: theme.css
 * Version: 1.0.0
 * Last Updated: 2026-11-20
 * Role: Global high-contrast color palette, typography, and design tokens shared across both the public marketing site and the private Delegate portal.
 * Maintainer: Google Workspace Admin
 * Change Log:
 * - 1.0.0: Initial release
 * =================================================================
 */

:root {
  /* Core Brand & High-Contrast Palette */
  --bg-sunlight: #fafaf9;
  --text-sharp: #0f172a;    /* Diesel Navy */
  --primary-cta: #d97706;   /* Safety Amber */
  --steel: #475569;         /* Galvanized Steel */
  --dark-green: #152b19;    /* Tractor Dark Green */
  --card-tint: #f1f5f9;

  /* Derived Accessible Tokens */
  --surface-white: #ffffff;
  --primary-cta-hover: #b45309;
  --primary-cta-text: #0f172a;
  --dark-green-soft: #1f3d24;
  --border-subtle: #cbd5e1;
  --border-strong: #94a3b8;
  --status-success: #166534;
  --status-success-bg: #dcfce7;
  --status-danger: #991b1b;
  --status-danger-bg: #fee2e2;
  --status-warn-bg: #fef3c7;

  /* System Typography Stack (Zero external font dependencies for 6-year longevity) */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* Shape & Elevation */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);

  /* Focus Ring */
  --focus-ring: 0 0 0 3px rgba(217, 119, 6, 0.45);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-sunlight);
  color: var(--text-sharp);
  line-height: 1.6;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--primary-cta);
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

.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;
}
