/* =========================================================================
   Pac Technologies — Design Tokens
   The single source of truth for color, type, spacing, radius, shadow, motion.
   Do not hard-code values in components. Read README.md before changing tokens.
   ========================================================================= */

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

:root {
  /* --------------------------------------------------------------- COLOR */
  /* Brand */
  --pac-blue-900: #0F1E3D;
  --pac-blue-800: #14275A;
  --pac-blue-700: #1F3878;
  --pac-blue-600: #3050A0;   /* THE brand color — sampled from the logo */
  --pac-blue-500: #5874BC;
  --pac-blue-300: #A6B6DD;
  --pac-blue-100: #E5EBF6;
  --pac-blue-50:  #F2F5FB;

  /* Ink (text) */
  --pac-ink-900: #0E1116;
  --pac-ink-800: #1B2129;
  --pac-ink-700: #3A434E;
  --pac-ink-500: #6B7785;
  --pac-ink-400: #8A95A3;
  --pac-ink-300: #B0B9C5;

  /* Lines & surfaces */
  --pac-line-300: #D9DEE5;
  --pac-line-200: #E8EBF0;
  --pac-line-100: #F0F2F6;

  --pac-bg-100: #F4F6FA;
  --pac-bg-50:  #FAFBFD;
  --pac-paper:  #FFFFFF;

  /* Signal — RESERVED for state. Never decoration. */
  --pac-signal-green: #1F8A4C;
  --pac-signal-green-bg: #E4F3EA;
  --pac-signal-amber: #C7821B;
  --pac-signal-amber-bg: #FAEFD8;
  --pac-signal-red:   #B83227;
  --pac-signal-red-bg:   #F8E1DD;
  --pac-signal-blue:  #2566B0;     /* informational */
  --pac-signal-blue-bg: #E1ECF8;

  /* ---------------------------------------------------------------- TYPE */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Sizes (rem at 16 px base) */
  --type-display:   3.5rem;   /* 56 / 60 */
  --type-display-lh: 1.0714;
  --type-h1:        2.5rem;   /* 40 / 48 */
  --type-h1-lh:     1.2;
  --type-h2:        1.75rem;  /* 28 / 36 */
  --type-h2-lh:     1.2857;
  --type-h3:        1.25rem;  /* 20 / 28 */
  --type-h3-lh:     1.4;
  --type-body-lg:   1.125rem; /* 18 / 28 */
  --type-body-lg-lh: 1.5556;
  --type-body:      1rem;     /* 16 / 24 */
  --type-body-lh:   1.5;
  --type-body-sm:   0.875rem; /* 14 / 20 */
  --type-body-sm-lh: 1.4286;
  --type-caption:   0.75rem;  /* 12 / 16 */
  --type-caption-lh: 1.3333;
  --type-eyebrow:   0.75rem;  /* 12, tracked, uppercase */

  /* ------------------------------------------------------------- SPACING */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  /* -------------------------------------------------------------- RADIUS */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* -------------------------------------------------------- SHADOW (3) */
  --shadow-1: 0 1px 2px rgba(15,30,61,.06), 0 1px 1px rgba(15,30,61,.04);
  --shadow-2: 0 6px 16px rgba(15,30,61,.08), 0 2px 4px rgba(15,30,61,.04);
  --shadow-3: 0 18px 40px rgba(15,30,61,.14), 0 4px 8px rgba(15,30,61,.06);

  /* Focus ring (used by all interactive elements) */
  --focus-ring: 0 0 0 2px var(--pac-paper), 0 0 0 4px var(--pac-blue-600);

  /* -------------------------------------------------------------- MOTION */
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;

  /* -------------------------------------------------------------- LAYOUT */
  --container-max: 1200px;
  --container-pad: 32px;
  --measure: 64ch;
}

/* ---------------------------------------------------------------- RESET */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--type-body);
  line-height: var(--type-body-lh);
  color: var(--pac-ink-900);
  background: var(--pac-bg-100);
  font-feature-settings: 'cv11', 'ss01', 'kern';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

/* ----------------------------------------------------- TYPE UTILITIES */

.t-display, .t-h1, .t-h2, .t-h3 {
  color: var(--pac-blue-900);
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0;
}
.t-display { font-size: var(--type-display); line-height: var(--type-display-lh); letter-spacing: -0.02em; }
.t-h1      { font-size: var(--type-h1);      line-height: var(--type-h1-lh); }
.t-h2      { font-size: var(--type-h2);      line-height: var(--type-h2-lh); }
.t-h3      { font-size: var(--type-h3);      line-height: var(--type-h3-lh); letter-spacing: -0.005em; }

.t-eyebrow {
  display: inline-block;
  font-size: var(--type-eyebrow);
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pac-blue-600);
  margin: 0;
}

.t-body-lg { font-size: var(--type-body-lg); line-height: var(--type-body-lg-lh); color: var(--pac-ink-700); }
.t-body    { font-size: var(--type-body);    line-height: var(--type-body-lh);    color: var(--pac-ink-700); }
.t-body-sm { font-size: var(--type-body-sm); line-height: var(--type-body-sm-lh); color: var(--pac-ink-700); }
.t-caption { font-size: var(--type-caption); line-height: var(--type-caption-lh); color: var(--pac-ink-500); }

.t-mono    { font-family: var(--font-mono); font-size: var(--type-body-sm); line-height: var(--type-body-sm-lh); font-weight: 500; }

p { margin: 0; }
.measure { max-width: var(--measure); }

/* ---------------------------------------------------------- CONTAINERS */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ------------------------------------------------------- FOCUS DEFAULTS */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}
