/* invoice.rocks — brand tokens v1.0 (values unchanged from brand/tokens.css)
   Product change: themes are scoped by [data-theme] on any element, not only :root,
   so light and dark can render side by side. Product additions are marked. */

:root {
  --ink:        #1C2028;
  --slate:      #2C3442;
  --blue-grey:  #7A8495;
  --sand:       #C8B08A;
  --cream:      #D6CAB7;
  --chalk:      #F1EDE6;

  --gradient-stone: linear-gradient(105deg, rgb(200 176 138) 0%, rgb(214 202 183) 42%, rgb(122 132 149) 72%, rgb(44 52 66) 100%);
  --gradient-tile:  linear-gradient(105deg, rgb(200 176 138) 0%, rgb(214 202 183) 50%, rgb(122 132 149) 100%);

  --font-display: "Familjen Grotesk", "Helvetica Neue", Helvetica, sans-serif;
  --font-ui: "Geist", "Helvetica Neue", Helvetica, sans-serif;
  --font-num: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --text-xs: 12px; --text-sm: 13px; --text-md: 14px; --text-lg: 16px;
  --text-xl: 20px; --text-2xl: 28px; --text-3xl: 40px; --text-hero: clamp(44px, 7vw, 88px);
  --leading-tight: 1.1; --leading-ui: 1.45;
  --tracking-display: -0.03em;

  --r-control: 8px; --r-card: 12px; --r-sheet: 16px; --r-pill: 999px;
  --r-icon: 22%;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 90ms; --t-base: 150ms; --t-slow: 220ms;

  /* Product addition */
  --r-tight: 4px;                 /* checkbox, kbd, plan-lock badge */

  /* Product addition: documents are paper in both themes; the sender's accent is one setting */
  --paper: #FFFFFF;
  --paper-ink: #1C2028;
  --paper-muted: #5E6674;
  --paper-line: #DCDFE4;
  --paper-fill: #F4F4F2;
  --doc-accent: #2C3442;
  --qr-ink: #000000;     /* Swiss QR-bill: black on white, fixed by the standard */
  --font-qr: Helvetica, Arial, "Liberation Sans", sans-serif;   /* Swiss QR-bill: fixed by the standard */
}

:root, [data-theme="light"] {
  --page:          #F8F4ED;
  --surface:       #FFFDF9;
  --subtle:        #F0EBE2;
  --border:        #DCDFE4;
  --border-strong: #B9C0CB;
  --text:          var(--ink);
  --text-muted:    #5E6674;

  --bg: var(--page);
  --fg: var(--text);
  --action: var(--slate);
  --action-fg: #FFFFFF;
  --link: var(--slate);
  --highlight: var(--sand);
  --selected-bg: rgb(200 176 138 / 0.32);
  --focus-ring: 0 0 0 3px rgb(44 52 66 / 0.28);
  --logo-stones: var(--ink);
  --logo-top: var(--blue-grey);

  --paid:          oklch(0.58 0.13 165);
  --paid-text:     oklch(0.45 0.12 165);
  --paid-wash:     oklch(0.95 0.035 165);
  --due:           oklch(0.58 0.13 70);
  --due-text:      oklch(0.45 0.12 70);
  --due-wash:      oklch(0.95 0.035 70);
  --overdue:       oklch(0.58 0.13 25);
  --overdue-text:  oklch(0.45 0.12 25);
  --overdue-wash:  oklch(0.95 0.035 25);
  --sent:          oklch(0.58 0.13 255);
  --sent-text:     oklch(0.45 0.12 255);
  --sent-wash:     oklch(0.95 0.035 255);
  --draft:         #5E6674;
  --draft-text:    #5E6674;
  --draft-wash:    #EDEBE7;
  --destructive:   oklch(0.52 0.15 25);

  --lift-1: 0 1px 0 var(--border);
  --lift-2: 0 1px 0 var(--border), 0 8px 24px -12px rgb(28 32 40 / 0.18);
  --lift-pop: 0 1px 0 var(--border), 0 24px 48px -16px rgb(28 32 40 / 0.28);

  /* Product additions */
  --action-hover: var(--ink);
  --destructive-hover: oklch(0.46 0.15 25);
  --destructive-fg: #FFFFFF;
  --destructive-text: var(--overdue-text);
  --scrim: rgb(28 32 40 / 0.32);
  --chart-1: var(--slate);
  --chart-2: var(--blue-grey);
  --chart-3: var(--sand);
  --chart-4: var(--cream);
}

[data-theme="dark"] {
  --page:          #181B21;
  --surface:       #222630;
  --subtle:        #2A2F3A;
  --border:        #343A46;
  --border-strong: #4A5262;
  --text:          var(--chalk);
  --text-muted:    #A3A9B4;

  --bg: var(--page);
  --fg: var(--text);
  --action: var(--cream);
  --action-fg: var(--ink);
  --link: var(--sand);
  --highlight: var(--sand);
  --selected-bg: rgb(200 176 138 / 0.18);
  --focus-ring: 0 0 0 3px rgb(200 176 138 / 0.40);
  --logo-stones: var(--chalk);
  --logo-top: var(--sand);

  --paid:          oklch(0.76 0.13 165);
  --paid-text:     oklch(0.82 0.10 165);
  --paid-wash:     oklch(0.30 0.05 165);
  --due:           oklch(0.76 0.13 70);
  --due-text:      oklch(0.82 0.10 70);
  --due-wash:      oklch(0.30 0.05 70);
  --overdue:       oklch(0.76 0.13 25);
  --overdue-text:  oklch(0.82 0.10 25);
  --overdue-wash:  oklch(0.30 0.05 25);
  --sent:          oklch(0.76 0.13 255);
  --sent-text:     oklch(0.82 0.10 255);
  --sent-wash:     oklch(0.30 0.05 255);
  --draft:         #A3A9B4;
  --draft-text:    #A3A9B4;
  --draft-wash:    #2A2F3A;
  --destructive:   oklch(0.55 0.15 25);

  --lift-1: 0 1px 0 var(--border);
  --lift-2: 0 1px 0 var(--border), 0 8px 24px -12px rgb(0 0 0 / 0.45);
  --lift-pop: 0 1px 0 var(--border), 0 24px 48px -16px rgb(0 0 0 / 0.6);

  /* Product additions */
  --action-hover: var(--chalk);
  --destructive-hover: oklch(0.50 0.15 25);
  --destructive-fg: #FFFFFF;
  --destructive-text: var(--overdue-text);
  --scrim: rgb(0 0 0 / 0.5);
  --chart-1: var(--chalk);
  --chart-2: var(--sand);
  --chart-3: var(--blue-grey);
  --chart-4: var(--border-strong);
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t-base: 0ms; --t-slow: 0ms; }
}
