/* HiveFury 3.1 design tokens: one shared system for hivefury.com and the extension
   (popup, options, what's-new, welcome, warning pages, in-page AI paste modal/badge/toast).

   DROP-IN: Block 1 is the canonical site set, copied verbatim (names and values) from
   site/src/assets/site.css :root, lines 7-13. Any page that loads site.css tokens from a swappable
   stylesheet can load this file instead with no other change; everything else is additive.
   Block 2 is the --hf-* namespace used by every new 3.1 screen. Every --hf-* that has a
   site equivalent repeats the SAME literal value (see the mapping table in tokens.txt).
   Block 3 adds extension-only tokens (type scale, states, controls, modal/badge/toast).

   Fonts ship inside the extension next to this file: fonts/archivo-var-latin.woff2 and
   fonts/jetbrains-mono-latin.woff2 (both SIL Open Font License, no cost). The site keeps its
   own @font-face rules with /assets/fonts/ paths; the family names below match the site's. */

@font-face{font-family:Archivo;src:url(fonts/archivo-var-latin.woff2) format("woff2");font-weight:100 900;font-stretch:62% 125%;font-display:block}
@font-face{font-family:"JetBrains Mono";src:url(fonts/jetbrains-mono-latin.woff2) format("woff2");font-weight:100 800;font-display:block}

:root{
  /* ---- Block 1: site.css canonical set (unchanged) ---- */
  --ground:#E4E5E3; --raised:#F1F1EF; --ink:#141618; --ink-2:#464B50; --rule:#BDBFBD; --rule-soft:#D3D4D2;
  --encl:#1B1E21; --encl-2:#24282C; --encl-rule:#363B40; --on-encl:#E9EAE8; --on-encl-2:#A3A9AE; --on-encl-3:#8C9398;
  --trip:#E0531F; --trip-ink:#B23A0E; --trip-wash:#3A2219;
  --sans:Archivo,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --wrap:1200px; --gut:clamp(20px,4vw,40px); --sec:clamp(80px,10vw,136px);
  --ease:cubic-bezier(.16,1,.3,1);

  /* ---- Block 2: --hf-* names for the same values ---- */
  --hf-ground:#E4E5E3;      /* page / popup ground                         = --ground */
  --hf-raised:#F1F1EF;      /* plates, inputs, list rows, inline code      = --raised */
  --hf-ink:#141618;         /* text, primary buttons, 2px rules (14.4:1)   = --ink */
  --hf-ink-2:#464B50;       /* secondary text (7.0:1)                      = --ink-2 */
  --hf-rule:#BDBFBD;        /* hairlines, input borders                    = --rule */
  --hf-rule-soft:#D3D4D2;   /* row dividers                                = --rule-soft */
  --hf-encl:#1B1E21;        /* graphite enclosure: what the product "says" = --encl */
  --hf-encl-2:#24282C;      /* hover / raised inside enclosure             = --encl-2 */
  --hf-encl-rule:#363B40;   /* inset frame + dividers in enclosure         = --encl-rule */
  --hf-on-encl:#E9EAE8;     /* text on enclosure (13.9:1)                  = --on-encl */
  --hf-on-encl-2:#A3A9AE;   /* secondary on enclosure (7.0:1)              = --on-encl-2 */
  --hf-on-encl-3:#8C9398;   /* tertiary on enclosure (5.4:1)               = --on-encl-3 */
  --hf-trip:#E0531F;        /* BLOCKED/LISTED only: glyph, bar, chip fill  = --trip */
  --hf-trip-ink:#B23A0E;    /* text-safe orange on light (4.7:1)           = --trip-ink */
  --hf-trip-wash:#3A2219;   /* blocked fill inside enclosure               = --trip-wash */
  --hf-sans:Archivo,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;      /* = --sans */
  --hf-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;            /* = --mono; URLs, origins, keys only */
  --hf-ease:cubic-bezier(.16,1,.3,1);                                                /* = --ease */

  /* ---- Block 3: extension additions ---- */
  /* Text / mark (values already used on hivefury.com, now named) */
  --hf-ink-3:#5C6167;       /* tertiary text, URL tail (4.9:1); smallest allowed text colour (site: .url-off) */
  --hf-ink-hover:#2A2E32;   /* primary button hover (site: button hover) */
  --hf-trip-text:#F08A5F;   /* orange text on trip-wash / enclosure (6.0:1) (site: listed label) */
  --hf-mark-line:#9DA3A8;   /* hex mark outline (site: favicon.svg) */
  --hf-mark-fill:#E9EAE8;   /* hex mark inner hex (site: favicon.svg) */
  --hf-on-trip:#141618;     /* label text on a trip chip (4.7:1) */

  /* Warn / check first */
  --hf-warn:#E2B44A;        /* glyph + text on enclosure (8.7:1); chip fill on light (ink text 9.4:1) */
  --hf-warn-ink:#7A5A12;    /* text-safe amber on light (5.0:1) */
  --hf-warn-wash:#3A3020;   /* warn fill inside enclosure */

  /* OK / checked (used for the status glyph and the words "Checked"/"On", nothing else) */
  --hf-ok:#2F7D4F;          /* glyph on light (non-text) */
  --hf-ok-ink:#256B42;      /* text-safe green on light (5.1:1) */
  --hf-ok-on-encl:#6FBF8A;  /* glyph + text on enclosure (7.6:1) */

  /* Type scale: extension UI (fixed px, ratio ~1.17, one family) */
  --hf-fs-label:11px;   --hf-lh-label:1.2;   /* UPPERCASE, wght 640, stretch 80%, tracking .07em, < 30 chars */
  --hf-fs-small:12.5px; --hf-lh-small:1.45;  /* hints, captions */
  --hf-fs-body:14px;    --hf-lh-body:1.5;    /* popup + options body */
  --hf-fs-title:16px;   --hf-lh-title:1.3;   /* section / row title, wght 620 */
  --hf-fs-head:20px;    --hf-lh-head:1.2;    /* popup status line, options h1, wght 620 */
  /* Type scale: full-page extension surfaces (warning, what's-new, welcome) */
  --hf-fs-page-body:17px; --hf-lh-page-body:1.6;
  --hf-fs-page-lead:19px;
  --hf-fs-page-h1:36px;   --hf-lh-page-h1:1.06;  /* wght 620, stretch 106%, tracking -.025em */
  --hf-stretch-display:106%; --hf-stretch-label:80%;
  --hf-track-display:-0.025em; --hf-track-label:0.07em;

  /* Space (4px base) */
  --hf-s1:4px; --hf-s2:8px; --hf-s3:12px; --hf-s4:16px; --hf-s5:24px; --hf-s6:32px; --hf-s7:48px; --hf-s8:64px;

  /* Radii: small only, no pills */
  --hf-r-xs:2px; --hf-r-sm:3px; --hf-r-md:4px; --hf-r-lg:6px;
  --hf-r-icon:22%;          /* icon tile corner (7/32) */

  /* Depth: flat; only the enclosure casts a shadow */
  --hf-shadow-encl:0 18px 40px -24px rgba(20,22,24,.55);
  --hf-frame-encl:inset 0 0 0 1px #363B40;

  /* Focus */
  --hf-focus:2px solid #141618;          /* outline-offset 2px, on light */
  --hf-focus-on-encl:2px solid #E9EAE8;  /* outline-offset 2px, on enclosure */

  /* Controls */
  --hf-control-h:36px;        /* popup / options buttons, inputs */
  --hf-control-h-page:48px;   /* full-page actions */
  --hf-popup-w:360px;
  --hf-measure:62ch;          /* prose measure on full pages */

  /* Motion: state changes only */
  --hf-dur:180ms;

  /* In-page AI paste surfaces (content script on AI sites; replaces veto modal.css values) */
  --hf-z-modal:2147483646; --hf-z-badge:2147483645; --hf-z-toast:2147483646;
  --hf-scrim:rgba(20,22,24,.48);         /* was rgba(15,23,42,.45) */
  --hf-modal-bg:#1B1E21;                 /* = --hf-encl   (was #0b1220) */
  --hf-modal-fg:#E9EAE8;                 /* = --hf-on-encl (was #f8fafc) */
  --hf-modal-fg-2:#A3A9AE;               /* = --hf-on-encl-2 (was #cbd5e1) */
  --hf-modal-rule:#363B40;               /* = --hf-encl-rule (was #475569) */
  --hf-modal-w:440px;
  --hf-modal-radius:6px;                 /* = --hf-r-lg (was 12px) */
  --hf-modal-shadow:0 24px 56px -20px rgba(0,0,0,.55);
  --hf-modal-top:12vh;
  --hf-badge-bg:#1B1E21; --hf-badge-fg:#A3A9AE;           /* idle "HiveFury on" badge (was #0b1220/#94a3b8, pill) */
  --hf-badge-blocked-fg:#F08A5F;                          /* badge after a block: trip-text + glyph (was #7f1d1d/#fecaca) */
  --hf-badge-warn-fg:#E2B44A;                             /* badge in warn-only mode (was #78350f/#fde68a) */
  --hf-badge-radius:3px; --hf-badge-inset:10px;
  --hf-toast-bg:#1B1E21; --hf-toast-fg:#E9EAE8; --hf-toast-radius:4px; --hf-toast-bottom:24px;
}
@media (prefers-reduced-motion:reduce){:root{--hf-dur:0ms}}
