/* Design tokens — the ONLY place raw values live (UI revamp, owner 2026-09-03).
   Every rule in styles.css pulls from these custom properties; if a value you
   need is missing, extend the scale here — never hardcode a one-off px/hex.
   Dark-only by deliberate commitment: the app browses ad creatives, and the
   owner picked the extension's near-black look over a dual-theme design.
   Fonts are SELF-HOSTED (CSP: default-src 'self', no CDN) — Geist for UI,
   JetBrains Mono for scripts/ids/numbers. Neither covers Arabic; the stack
   falls back to system fonts for non-latin ad text, which is intended. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/geist-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/geist-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/manrope-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Fonts — Geist for content, Manrope for the chrome (title, headings,
     nav), JetBrains Mono for scripts/ids/numbers */
  --font-ui: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Manrope", "Geist", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Neutral ramp — 12 steps, Radix-dark semantics on the extension's neutral
     hue. 1–2 backgrounds, 3–5 component states, 6–8 borders, 9–10 solid /
     disabled, 11–12 text. Ground sits between 1 and 2 on purpose: the owner
     wants a lighter, modern black, not a pitch-black one. */
  --gray-1: #111113;
  --gray-2: #19191b;
  --gray-3: #222325;
  --gray-4: #292a2e;
  --gray-5: #303136;
  --gray-6: #393a40;
  --gray-7: #46484f;
  --gray-8: #5f606a;
  --gray-9: #6c6e79;
  --gray-10: #797b86;
  --gray-11: #b2b3bd;
  --gray-12: #eeeef0;

  /* Accent — the extension's violet. Solid for the one primary action,
     bright step for links/text on dark, dim step for tinted surfaces. */
  --accent-solid: #7c3aed;
  --accent-solid-hover: #8b5cf6;
  --accent-text: #a78bfa;
  --accent-dim: rgba(124, 58, 237, 0.16);
  --accent-fg: #ffffff;

  /* Semantic colors */
  --bg: #0a0a0b;
  --surface: var(--gray-2);
  --surface-raised: #1c1c1f;
  --surface-sunken: #070708;
  --text-primary: var(--gray-12);
  --text-bright: #d6d7dd; /* between gray-11 and 12: readable words that still sit under white numbers */
  --text-secondary: var(--gray-11);
  --text-muted: var(--gray-9);
  --border-subtle: #2b2c30;
  --border-interactive: var(--gray-6);
  --border-strong: var(--gray-7);
  --focus-ring: var(--accent-solid-hover);
  --success: #46a758;
  --warning: #f5d90a;
  --danger: #f87171;
  --danger-dim: rgba(248, 113, 113, 0.12);

  /* Spacing — 4px base */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;

  /* Type scale — compact but legible; bumped one notch proportionally
     across the board (owner 2026-09-03: everything read too small) */
  --text-xs: 0.75rem;
  --text-sm: 0.85rem;
  --text-base: 0.95rem;
  --text-md: 1.1rem;
  --text-lg: 1.3rem;
  --text-xl: 1.5rem;
  --leading-tight: 1.3;
  --leading-normal: 1.55;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Radii */
  --radius-1: 5px;
  --radius-2: 8px;
  --radius-3: 10px;
  --radius-full: 999px;

  /* Elevation — layered, barely-there on dark; borders + surface steps do
     most of the lifting */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35), 0 1px 1px rgba(0, 0, 0, 0.25);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, 0.35), 0 6px 16px rgba(0, 0, 0, 0.3);
}
