/* Facet Wire "white treatment" — design tokens
   Load first. All values are CSS custom properties under the --fw- prefix
   so they cannot collide with the live site's existing --bg/--card/--line vars
   (observed in /styles.css and /redesign.css). */
:root{
  /* Surfaces — style-v2 values with the COLOR RULING applied: the v2
     cream page value is read as the off-white below, so the page base
     stays off-white with white cards. */
  --fw-bg:            #F6F6F3;  /* page background (ruling value) */
  --fw-bg-sunk:       #EFE9DD;  /* filter bar, table header (v2 marble) */
  --fw-surface:       #FFFFFF;  /* every card / product tile */
  --fw-img-bg:        #FFFFFF;  /* diamond photo box, stones pop on white */
  --fw-zebra:         #FBF8F1;  /* table zebra rows (v2 plinth top) */

  /* Ink (text) */
  --fw-ink:           #15191A;  /* primary text */
  --fw-ink-2:         #3F4A4C;  /* secondary text, specs */
  --fw-ink-3:         #5C6668;  /* tertiary text, cert numbers, captions */
  --fw-ink-inverse:   #FFFFFF;

  /* Lines */
  --fw-line:          #1F2628;  /* 1px dark hairline on cards */
  --fw-line-mid:      #7E8688;  /* form control borders (v2; 3:1 on page, white, sunk) */
  --fw-line-soft:     #ECE4D4;  /* internal dividers, decorative only (v2 plinth mid) */

  /* Brand + states */
  --fw-accent:        #0E6A82;  /* links, primary button (teal, from live #14748e family) */
  --fw-accent-hover:  #0A5468;
  --fw-gold:          #7A5C1C;  /* "Save $X" text, from live gold family (#8a6a24) darkened for AA */
  --fw-gold-tint:     #FBF5E6;
  --fw-win:           #0F6B3E;  /* winner / best price */
  --fw-win-ink:       #0B5230;  /* winner text on tint */
  --fw-win-tint:      #EAF5EE;  /* winning side background */
  --fw-danger:        #A3261B;

  /* Focus */
  --fw-focus:         #1A56DB;
  --fw-focus-ring:    0 0 0 2px var(--fw-surface), 0 0 0 4px var(--fw-focus);
  --fw-focus-ring-page: 0 0 0 2px var(--fw-bg), 0 0 0 4px var(--fw-focus);

  /* Borders + radii */
  --fw-hairline:      1px solid var(--fw-line);
  --fw-divider:       1px solid var(--fw-line-soft);
  --fw-radius-sm:     4px;
  --fw-radius:        6px;
  --fw-radius-pill:   999px;
  --fw-shadow-hover:  0 1px 0 var(--fw-line);   /* no heavy shadows: a 1px "lift" only */

  /* Buttons (style v2; see live-overrides.css v2 block) */
  --fw-btn-height:    44px;
  --fw-btn-height-sm: 36px;     /* desktop only; 44px on mobile */
  --fw-btn-radius:    4px;      /* buttons only; cards stay 6px */
  --fw-btn-pad-x:     20px;
  --fw-btn-pad-x-sm:  14px;
  --fw-btn-weight:    600;
  --fw-btn-tracking:  .04em;
  --fw-btn-fs:        .875rem;  /* 14px */
  --fw-btn-fs-sm:     .8125rem; /* 13px */

  /* Spacing (4px base) */
  --fw-s1: 4px;  --fw-s2: 8px;  --fw-s3: 12px; --fw-s4: 16px;
  --fw-s5: 20px; --fw-s6: 24px; --fw-s8: 32px; --fw-s10: 40px; --fw-s12: 48px;

  /* Type — Lato + Cinzel are already loaded by the live site (Google Fonts) */
  --fw-font:    'Lato', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fw-serif:   'Cinzel', Georgia, "Times New Roman", serif;
  --fw-mono-num: tabular-nums lining-nums;
  --fw-fs-xs:   .75rem;    /* 12px badges, captions */
  --fw-fs-sm:   .8125rem;  /* 13px specs, table cells */
  --fw-fs-base: .9375rem;  /* 15px body */
  --fw-fs-md:   1.0625rem; /* 17px card price */
  --fw-fs-lg:   1.375rem;  /* 22px section titles */
  --fw-fs-xl:   1.875rem;  /* 30px page titles */
  --fw-fs-2xl:  2.5rem;    /* 40px hero */
  --fw-lh:      1.5;
  --fw-lh-tight:1.2;

  /* Layout */
  --fw-max:     1280px;
  --fw-gutter:  16px;
  --fw-card-min: 168px;    /* dense grid minimum card width */

  /* Motion */
  --fw-ease:    cubic-bezier(.2,.6,.2,1);
  --fw-dur:     120ms;
}
@media (prefers-reduced-motion: reduce){
  :root{ --fw-dur: 0ms; }
}
