/* PromptLens design tokens — v1 (11 Nov 2026). Source: design/tokens.css.
   One source of truth for the desktop windows, the extension pages and the website.
   Dark values are ours (dark mode is not designed yet): applied by :root.dark / [data-theme=dark],
   or by the system setting unless the page says .light / [data-theme=light]. */

@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2'); }

:root {
  /* Brand */
  --pl-brand:            #0E4F45; /* Spruce: primary buttons, links, selected, toggles */
  --pl-brand-soft:       #E3EEEA; /* Mist: selected nav item, picked-up chips */
  --pl-brand-border:     #B9D2C9;
  --pl-brand-tint:       #F1F6F4;
  --pl-on-brand:         #FFFFFF;
  --pl-on-brand-muted:   #D5E5DF;
  --pl-highlighter:      #FFD84D; /* logo mark ONLY */

  /* Neutrals */
  --pl-ink:              #1B1B1F;
  --pl-ink-muted:        #55584F;
  --pl-ink-soft:         #6A6D62; /* guessed chips, placeholders (passes 4.5:1 on white) */
  --pl-bg:               #F2F3EE; /* Stone */
  --pl-surface:          #FFFFFF;
  --pl-line:             #DDDFD6;
  --pl-line-strong:      #C2C5BA;
  --pl-input-border:     #8A8D82;
  --pl-backdrop:         #E4E6DE;

  /* Underlines: solid = confuses the model, dashed = weakens the result */
  --pl-issue-confuses:    #B3261E;
  --pl-issue-confuses-bg: #FCEEEC;
  --pl-issue-weakens:     #B97700;
  --pl-issue-weakens-bg:  #FFF1B8;

  /* Type */
  --pl-font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --pl-font-body:    'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pl-font-mono:    ui-monospace, 'SF Mono', SFMono-Regular, 'Cascadia Mono', Menlo, Consolas, monospace;
  --pl-text-xs: 12px; --pl-text-sm: 13px; --pl-text-md: 14px; --pl-text-lg: 15px; --pl-text-xl: 17px;
  --pl-h-app: 20px; --pl-h-web: 32px; --pl-h-hero: 44px;

  /* Shape and spacing */
  --pl-radius-sm: 8px; --pl-radius-md: 10px; --pl-radius-lg: 12px; --pl-radius-xl: 16px; --pl-radius-icon: 22.9%;
  --pl-target: 44px;
  --pl-gap-1: 4px; --pl-gap-2: 8px; --pl-gap-3: 12px; --pl-gap-4: 16px; --pl-gap-5: 20px; --pl-gap-6: 24px;
  --pl-shadow-float: 0 8px 28px rgba(27,27,31,.16);
  --pl-shadow-pill:  0 4px 14px rgba(27,27,31,.14);
  --pl-shadow-tab:   0 1px 2px rgba(21,24,30,.12);
  color-scheme: light;
}

/* Dark (not designed yet: our own values, every token covered) */
:root.dark, :root[data-theme="dark"] {
  --pl-brand: #6CC3AE; --pl-brand-soft: #1D3530; --pl-brand-border: #2E4A42; --pl-brand-tint: #1C2B27;
  --pl-on-brand: #0B1F1B; --pl-on-brand-muted: #2E4A42;
  --pl-ink: #E8EAE3; --pl-ink-muted: #B4B8AC; --pl-ink-soft: #9A9E92;
  --pl-bg: #121411; --pl-surface: #1A1C19; --pl-line: #343832; --pl-line-strong: #4A4E46; --pl-input-border: #6A6E64; --pl-backdrop: #0C0D0B;
  --pl-issue-confuses: #F08A80; --pl-issue-confuses-bg: #3B1F1D; --pl-issue-weakens: #E0A93A; --pl-issue-weakens-bg: #3A2E12;
  --pl-shadow-float: 0 8px 28px rgba(0,0,0,.5); --pl-shadow-pill: 0 4px 14px rgba(0,0,0,.45); --pl-shadow-tab: 0 1px 2px rgba(0,0,0,.4);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not(.light):not(.dark):not([data-theme]) {
    --pl-brand: #6CC3AE; --pl-brand-soft: #1D3530; --pl-brand-border: #2E4A42; --pl-brand-tint: #1C2B27;
    --pl-on-brand: #0B1F1B; --pl-on-brand-muted: #2E4A42;
    --pl-ink: #E8EAE3; --pl-ink-muted: #B4B8AC; --pl-ink-soft: #9A9E92;
    --pl-bg: #121411; --pl-surface: #1A1C19; --pl-line: #343832; --pl-line-strong: #4A4E46; --pl-input-border: #6A6E64; --pl-backdrop: #0C0D0B;
    --pl-issue-confuses: #F08A80; --pl-issue-confuses-bg: #3B1F1D; --pl-issue-weakens: #E0A93A; --pl-issue-weakens-bg: #3A2E12;
    --pl-shadow-float: 0 8px 28px rgba(0,0,0,.5); --pl-shadow-pill: 0 4px 14px rgba(0,0,0,.45); --pl-shadow-tab: 0 1px 2px rgba(0,0,0,.4);
    color-scheme: dark;
  }
}
