/*
 * Edelman Home design tokens · v1
 * https://edelman-api.vercel.app/ui
 *
 * The one place the brand lives. Every app loads this file and points its own
 * variables at these, so a change here reaches every app within minutes.
 *   <link rel="stylesheet" href="https://edelman-api.vercel.app/ui/tokens.css">
 *
 * Names are prefixed --eh- so they never collide with an app's own variables.
 */
/* The fonts (Cormorant Garamond, Prompt) are linked by each page, once, with the same address everywhere so the
   browser keeps one copy for all the apps. They are no longer imported here: an import inside a stylesheet is found
   late and loaded the fonts a second time. A page with the shared bar and no link of its own still gets them from the bar. */

:root {
  /* Brand */
  --eh-navy: #111A45;          /* Legacy Navy: headers, primary actions, text on cream */
  --eh-navy-deep: #0A1030;     /* pressed / deepest surfaces */
  --eh-navy-soft: #1B2760;     /* hover on navy */
  --eh-cream: #F4F0E4;         /* Vanilla Silk: page background */
  --eh-cream-2: #EAE5D6;       /* Warm Cream: quiet bands, table heads */
  --eh-paper: #FCFAF5;         /* inset surfaces: fields, inset panels */
  --eh-white: #FFFFFF;         /* panels */
  --eh-bronze: #BAB399;        /* Muted Bronze: rules and quiet marks only — 1.8:1 on cream, never text */
  --eh-brass: #A8894F;         /* the hardware: icons, counts, accents (3.3:1 on white — large text and icons only) */
  --eh-brass-deep: #7E6534;    /* brass that reads as text: 4.8:1 on cream, 5.5:1 on white */
  --eh-brass-light: #D4B874;   /* brass on navy */
  --eh-brass-tint: #F3EBD9;    /* brass wash behind active chips */
  --eh-steel: #4C5A87;         /* Steel: secondary data color */

  /* Text */
  --eh-ink: #111A45;
  --eh-ink-soft: #4A5173;      /* secondary text */
  --eh-ink-faint: #646A8A;     /* tertiary text: 5.3:1 on white, 4.6:1 on cream */
  --eh-on-navy: #F4F0E4;
  --eh-on-navy-soft: #D8D4C6;
  --eh-on-navy-faint: #9FA3B8;

  /* Lines */
  --eh-rule: #E6E0CF;          /* dividers on white */
  --eh-rule-strong: #D7D0BA;   /* dividers on cream */

  /* Status (text / background / border) */
  --eh-ok: #1E6B3C;      --eh-ok-bg: #E3F1E6;      --eh-ok-line: #BFDCC7;
  --eh-warn: #7A4D00;    --eh-warn-bg: #FDF1DA;    --eh-warn-line: #EBD6A4;
  --eh-danger: #A32A1C;  --eh-danger-bg: #FAE7E4;  --eh-danger-line: #EFC3BC;
  --eh-info: #1F4E79;    --eh-info-bg: #E8EEF6;    --eh-info-line: #C4D2E4;
  --eh-vendor: #5B3E96;  --eh-vendor-bg: #F0EBF8;  --eh-vendor-line: #D6CAEB;

  /* Type */
  --eh-serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --eh-sans: 'Prompt', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --eh-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;
  --eh-text-xs: 0.75rem;   /* 12 */
  --eh-text-sm: 0.8125rem; /* 13 */
  --eh-text-md: 0.875rem;  /* 14 — body */
  --eh-text-lg: 1rem;      /* 16 */
  --eh-text-xl: 1.375rem;  /* 22 — section titles (serif) */
  --eh-text-2xl: 2rem;     /* 32 — page titles (serif) */

  /* Space (4 px steps) */
  --eh-space-1: 4px;  --eh-space-2: 8px;  --eh-space-3: 12px; --eh-space-4: 16px;
  --eh-space-5: 20px; --eh-space-6: 24px; --eh-space-8: 32px; --eh-space-10: 40px;

  /* Shape and depth */
  --eh-radius-panel: 16px;
  --eh-radius-inset: 10px;
  --eh-radius-control: 8px;
  --eh-radius-pill: 999px;
  --eh-shadow-panel: 0 1px 2px rgba(17, 26, 69, 0.04), 0 10px 30px -12px rgba(17, 26, 69, 0.18);
  --eh-shadow-float: 0 2px 4px rgba(17, 26, 69, 0.06), 0 24px 48px -16px rgba(17, 26, 69, 0.32);
  --eh-shadow-menu: 0 12px 32px -8px rgba(17, 26, 69, 0.28);
  /* A white gap, then deep brass: reads on white, cream and navy (was a 45% brass glow, faint on white). */
  --eh-focus: 0 0 0 2px #FFFFFF, 0 0 0 4px #7E6534;
  --eh-field-line: #8F8872;    /* field borders: 3.5:1 on white, so the edge of a box can be seen */

  /* Layout */
  --eh-site: 76rem;
  --eh-measure: 44rem;
  --eh-gutter: 1.1rem;
  --eh-bar-h: 0px;             /* set to the shared top bar's height while it is showing */
  /* Screen sizes, the same three in every app (CSS cannot read a variable in @media, so write the numbers):
       phone    @media (max-width: 699px)
       tablet   @media (min-width: 700px) and (max-width: 1099px)   iPad upright, small iPad on its side
       desktop  @media (min-width: 1100px)                           large iPad on its side and up */

  /* Motion */
  --eh-ease: cubic-bezier(.2, .7, .2, 1);
  --eh-fast: 120ms;
  --eh-med: 200ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --eh-fast: 0ms; --eh-med: 0ms; }
}
