/* ============================================================
   TOIL SAFE PPE — FONTS
   No brand font file was supplied. These are Google Fonts chosen
   to match the industrial-safety character of the logo:
   - Archivo: strong, utilitarian grotesque for headings / labels
   - IBM Plex Sans: engineered, legible body face
   - IBM Plex Mono: technical specs, SKUs, standards codes
   SUBSTITUTION FLAGGED — see readme.md.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');
/* ============================================================
   TOIL SAFE PPE — COLOR TOKENS
   Brand: deep industrial navy + high-visibility safety yellow.
   Sampled directly from the brand logo.
   ============================================================ */

:root {
  /* ---- Brand core ---- */
  --ts-navy: #203051;        /* primary — sampled from logo */
  --ts-yellow: #fdd913;      /* safety yellow — sampled from logo */

  /* ---- Navy scale (primary / ink) ---- */
  --navy-950: #0e1525;
  --navy-900: #16213a;
  --navy-800: #1b2843;
  --navy-700: #203051;       /* = --ts-navy */
  --navy-600: #2c4170;
  --navy-500: #3a548f;
  --navy-400: #5a76b0;
  --navy-300: #8a9fc8;
  --navy-200: #bcc9e0;
  --navy-100: #dde4f0;
  --navy-50:  #f1f4fa;

  /* ---- Safety yellow scale (accent / hazard) ---- */
  --yellow-700: #b89c00;
  --yellow-600: #d9b800;
  --yellow-500: #fdd913;     /* = --ts-yellow */
  --yellow-400: #ffe04d;
  --yellow-300: #ffe97f;
  --yellow-200: #fff2b3;
  --yellow-100: #fff8d9;
  --yellow-50:  #fffced;

  /* ---- Neutral / steel grey scale ---- */
  --steel-950: #16181d;
  --steel-900: #1f232b;
  --steel-800: #2b303a;
  --steel-700: #3d434f;
  --steel-600: #555c69;
  --steel-500: #717886;
  --steel-400: #969ca8;
  --steel-300: #c0c5cd;
  --steel-200: #dde0e6;
  --steel-100: #eceef2;
  --steel-50:  #f6f7f9;
  --white: #ffffff;
  --black: #000000;

  /* ---- Charcoal (imagery / photographic treatment) ----
     The brand's photography direction is "charcoal & safety yellow":
     studio shots on near-black charcoal grounds. Use these for
     image overlays, photo backdrops and dramatic dark sections.
     The primary UI dark remains --ts-navy (sampled from the logo). */
  --charcoal-900: #15171b;
  --charcoal-800: #1c1f26;
  --charcoal-700: #262a33;

  /* ---- Functional / status (safety semantics) ---- */
  --hazard-red: #d12d2d;     /* danger / stop */
  --hazard-red-bg: #fbe9e9;
  --warning-amber: #f08c00;  /* caution / warning */
  --warning-amber-bg: #fdf0dd;
  --safe-green: #2f8f4e;     /* go / compliant / in stock */
  --safe-green-bg: #e7f4ec;
  --info-blue: #2563b8;      /* mandatory / information */
  --info-blue-bg: #e7f0fb;

  /* ============================================================
     SEMANTIC ALIASES  — reference these in components & UI
     ============================================================ */

  /* Surfaces */
  --surface-page: var(--steel-50);
  --surface-card: var(--white);
  --surface-sunken: var(--steel-100);
  --surface-inverse: var(--navy-700);
  --surface-inverse-2: var(--navy-900);
  --surface-accent: var(--yellow-500);

  /* Text */
  --text-strong: var(--navy-900);
  --text-body: var(--steel-800);
  --text-muted: var(--steel-500);
  --text-faint: var(--steel-400);
  --text-on-navy: #eaf0fb;
  --text-on-navy-muted: var(--navy-300);
  --text-on-yellow: var(--navy-900);
  --text-link: var(--navy-600);

  /* Borders */
  --border-subtle: var(--steel-200);
  --border-default: var(--steel-300);
  --border-strong: var(--navy-700);
  --border-focus: var(--navy-500);

  /* Brand actions */
  --action-primary: var(--navy-700);
  --action-primary-hover: var(--navy-800);
  --action-primary-active: var(--navy-900);
  --action-accent: var(--yellow-500);
  --action-accent-hover: var(--yellow-400);
  --action-accent-active: var(--yellow-600);

  /* Focus ring */
  --focus-ring: 0 0 0 3px rgba(58, 84, 143, 0.45);
  --focus-ring-yellow: 0 0 0 3px rgba(253, 217, 19, 0.55);
}
/* ============================================================
   TOIL SAFE PPE — TYPOGRAPHY TOKENS
   Display & headings: Archivo (utilitarian grotesque)
   Body & UI:          IBM Plex Sans
   Technical / specs:  IBM Plex Mono
   ============================================================ */

:root {
  /* ---- Families ---- */
  --font-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* ---- Weights ---- */
  --fw-regular: 400;   /* @kind font */
  --fw-medium: 500;    /* @kind font */
  --fw-semibold: 600;  /* @kind font */
  --fw-bold: 700;      /* @kind font */
  --fw-extrabold: 800; /* @kind font */
  --fw-black: 900;     /* @kind font */

  /* ---- Type scale (1.250 major-third-ish, tuned) ---- */
  --text-2xs: 0.6875rem;   /* 11px — micro labels, legal */
  --text-xs: 0.75rem;      /* 12px — captions, eyebrow */
  --text-sm: 0.875rem;     /* 14px — secondary UI */
  --text-base: 1rem;       /* 16px — body */
  --text-lg: 1.125rem;     /* 18px — lead body */
  --text-xl: 1.375rem;     /* 22px — small heading */
  --text-2xl: 1.75rem;     /* 28px — h4 */
  --text-3xl: 2.25rem;     /* 36px — h3 */
  --text-4xl: 3rem;        /* 48px — h2 */
  --text-5xl: 3.75rem;     /* 60px — h1 */
  --text-6xl: 5rem;        /* 80px — hero display */

  /* ---- Line heights ---- */
  --leading-tight: 1.05;
  --leading-snug: 1.18;
  --leading-normal: 1.35;
  --leading-relaxed: 1.6;

  /* ---- Letter spacing ---- */
  --tracking-tighter: -0.02em;
  --tracking-tight: -0.01em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.08em;     /* eyebrows / overlines */
  --tracking-widest: 0.16em;    /* hi-vis stencil labels */

  /* ---- Semantic roles ---- */
  --display-family: var(--font-display);
  --display-weight: var(--fw-black);
  --display-tracking: var(--tracking-tight);

  --heading-family: var(--font-display);
  --heading-weight: var(--fw-extrabold);

  --eyebrow-family: var(--font-display);
  --eyebrow-weight: var(--fw-bold);
  --eyebrow-tracking: var(--tracking-widest);

  --body-family: var(--font-body);
  --body-weight: var(--fw-regular);

  --label-family: var(--font-display);
  --label-weight: var(--fw-semibold);
  --label-tracking: var(--tracking-wide);

  --mono-family: var(--font-mono);
}
/* ============================================================
   TOIL SAFE PPE — SPACING, RADIUS, SHADOW, BORDER, MOTION, LAYOUT
   Industrial feel: tight radii, firm shadows, sturdy borders.
   ============================================================ */

:root {
  /* ---- Spacing scale (4px base grid) ---- */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4 */
  --space-2: 0.5rem;    /* 8 */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.25rem;   /* 20 */
  --space-6: 1.5rem;    /* 24 */
  --space-8: 2rem;      /* 32 */
  --space-10: 2.5rem;   /* 40 */
  --space-12: 3rem;     /* 48 */
  --space-16: 4rem;     /* 64 */
  --space-20: 5rem;     /* 80 */
  --space-24: 6rem;     /* 96 */
  --space-32: 8rem;     /* 128 */

  /* ---- Radius — kept tight & engineered, never pill-soft ---- */
  --radius-none: 0;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;     /* default control / card radius */
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-pill: 999px; /* only for tags / status chips */

  /* ---- Border widths ---- */
  --border-thin: 1px;
  --border-medium: 2px;     /* default emphasis border */
  --border-thick: 3px;
  --border-hazard: 4px;     /* hazard-stripe accents */

  /* ---- Shadows — firm, low-spread, slightly cool ---- */
  --shadow-xs: 0 1px 2px rgba(14, 21, 37, 0.08);
  --shadow-sm: 0 1px 3px rgba(14, 21, 37, 0.10), 0 1px 2px rgba(14, 21, 37, 0.06);
  --shadow-md: 0 4px 10px rgba(14, 21, 37, 0.10), 0 2px 4px rgba(14, 21, 37, 0.06);
  --shadow-lg: 0 12px 28px rgba(14, 21, 37, 0.14), 0 4px 8px rgba(14, 21, 37, 0.08);
  --shadow-xl: 0 24px 56px rgba(14, 21, 37, 0.18);
  /* Hard "stacked block" shadow — echoes the blocky logo */
  --shadow-block: 6px 6px 0 var(--navy-900);
  --shadow-block-yellow: 6px 6px 0 var(--yellow-500);
  --shadow-inset: inset 0 2px 4px rgba(14, 21, 37, 0.10);

  /* ---- Motion ---- */
  --ease-standard: cubic-bezier(0.2, 0, 0.1, 1);     /* @kind other */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);         /* @kind other */
  --ease-in: cubic-bezier(0.5, 0, 0.85, 0.3);        /* @kind other */
  --dur-fast: 120ms;   /* @kind other */
  --dur-base: 200ms;   /* @kind other */
  --dur-slow: 320ms;   /* @kind other */

  /* ---- Layout ---- */
  --container-sm: 640px;
  --container-md: 880px;
  --container-lg: 1120px;
  --container-xl: 1320px;
  --gutter: var(--space-6);
  --section-y: var(--space-24);
}
/* ============================================================
   TOIL SAFE PPE — SIGNATURE EFFECTS
   The hazard stripe is a brand motif: a diagonal navy/yellow
   barricade pattern used as a thin accent rule, never as a
   large fill. Exposed as gradients so components can reuse it.
   ============================================================ */

:root {
  /* Classic safety barricade stripe (yellow + navy) */
  --hazard-stripe: repeating-linear-gradient(
    -45deg,
    var(--ts-yellow) 0,
    var(--ts-yellow) 14px,
    var(--navy-900) 14px,
    var(--navy-900) 28px
  ); /* @kind other */

  /* Subtle yellow caution stripe for hover/active surfaces */
  --hazard-stripe-soft: repeating-linear-gradient(
    -45deg,
    var(--yellow-100) 0,
    var(--yellow-100) 10px,
    var(--yellow-200) 10px,
    var(--yellow-200) 20px
  ); /* @kind other */

  /* Inverse: navy stripes on transparent for textured panels */
  --grid-blueprint: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); /* @kind other */
  --grid-blueprint-size: 28px 28px; /* @kind other */
}

/* Reusable thin hazard rule — apply to a 6px tall element */
.ts-hazard-rule {
  height: 6px;
  background: var(--hazard-stripe);
  background-size: 39.6px 39.6px;
  border: none;
}
