/*
  Our brand layer (not part of upstream Twenty).

  What it does: gives the app Tim's look (Overlap UI: slate, navy, steel, seafoam,
  ice, white, black; Poppins; rounded shapes) in light mode and dark mode.

  How it works: Twenty draws every color, font, and corner from CSS variables that
  it sets inside "@layer twenty-ui" (packages/twenty-ui/src/theme/theme-light.css
  and theme-dark.css, both generated files). A rule outside any layer always wins
  over a rule inside a layer, so this file only has to set the same variables
  again. Nothing in Twenty's own theme files is edited, which keeps upstream
  updates easy to merge. index.html loads this file with one <link> line.

  To change the look: edit the values below. Use only the seven brand colors or a
  mix of them. Twenty puts the class "light" or "dark" on <html>.

  The 12-step scales (accent and blue) follow Twenty's own meaning for each step:
  1 to 5 are faint backgrounds, 6 to 8 are borders, 9 is the solid fill of the
  main button (its label is always white), 10 is that button's hover, and 11 and
  12 are text.
*/

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/brand/fonts/poppins-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/brand/fonts/poppins-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/brand/fonts/poppins-latin-600-normal.woff2') format('woff2');
}

/* Twenty sets Inter on <body> directly, so table cells and other plain text
   would stay in Inter without this rule. */
html body {
  font-family: var(--t-font-family);
}

/* Both modes: the font and the rounded shapes. */
html.light,
html.dark {
  --t-font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --t-border-radius-sm: 999px;
  --t-border-radius-md: 18px;
  --t-border-radius-xl: 28px;
}

/* Light mode. White ground, ice panels, slate text, slate main button, seafoam accents. */
html.light {
  --t-background-primary: #ffffff;
  --t-background-secondary: #f3f8fb;
  --t-background-tertiary: #e0eef5;
  --t-font-color-primary: #2f353c;
  --t-font-color-secondary: #414e5b;
  --t-border-color-medium: rgba(47, 53, 60, 0.14);
  --t-border-color-light: rgba(47, 53, 60, 0.08);

  --t-accent-primary: #9ecec7;
  --t-accent-secondary: #9ecec7;
  --t-accent-tertiary: #cfe6e2;
  --t-accent-quaternary: #e9f4f2;
  --t-accent-accent3570: #7294ab;
  --t-accent-accent4060: #7294ab;

  --t-accent-accent1: #f6fbfa;
  --t-accent-accent2: #e9f4f2;
  --t-accent-accent3: #dbedea;
  --t-accent-accent4: #cfe6e2;
  --t-accent-accent5: #bfdfda;
  --t-accent-accent6: #b0d7d1;
  --t-accent-accent7: #9ecec7;
  --t-accent-accent8: #7294ab;
  --t-accent-accent9: #2f353c;
  --t-accent-accent10: #414e5b;
  --t-accent-accent11: #414e5b;
  --t-accent-accent12: #2f353c;

  --t-color-blue1: #f6fbfa;
  --t-color-blue2: #e9f4f2;
  --t-color-blue3: #dbedea;
  --t-color-blue4: #cfe6e2;
  --t-color-blue5: #bfdfda;
  --t-color-blue6: #b0d7d1;
  --t-color-blue7: #9ecec7;
  --t-color-blue8: #7294ab;
  --t-color-blue9: #2f353c;
  --t-color-blue10: #414e5b;
  --t-color-blue11: #414e5b;
  --t-color-blue12: #2f353c;
  --t-color-blue: #2f353c;
}

/* Dark mode. Slate-and-black ground, ice text, steel main button, seafoam accents.
   The grounds are slate mixed toward black, the same recipe Overlap UI uses at night. */
html.dark {
  --t-background-primary: #1d2125;
  --t-background-secondary: #22262b;
  --t-background-tertiary: #282d33;
  --t-background-quaternary: #2f353c;
  --t-font-color-primary: #e0eef5;
  --t-font-color-secondary: #bfd3df;
  --t-font-color-tertiary: #93afc1;
  --t-font-color-light: #7294ab;
  --t-border-color-strong: rgba(224, 238, 245, 0.22);
  --t-border-color-medium: rgba(224, 238, 245, 0.12);
  --t-border-color-light: rgba(224, 238, 245, 0.08);

  --t-accent-primary: #445556;
  --t-accent-secondary: #445556;
  --t-accent-tertiary: #394749;
  --t-accent-quaternary: #2a3235;
  --t-accent-accent3570: #7294ab;
  --t-accent-accent4060: #7294ab;

  --t-accent-accent1: #252b2f;
  --t-accent-accent2: #2a3235;
  --t-accent-accent3: #323d3f;
  --t-accent-accent4: #394749;
  --t-accent-accent5: #445556;
  --t-accent-accent6: #516666;
  --t-accent-accent7: #607b79;
  --t-accent-accent8: #617d90;
  --t-accent-accent9: #7294ab;
  --t-accent-accent10: #88a6ba;
  --t-accent-accent11: #9ecec7;
  --t-accent-accent12: #e9f4f2;

  --t-color-blue1: #252b2f;
  --t-color-blue2: #2a3235;
  --t-color-blue3: #323d3f;
  --t-color-blue4: #394749;
  --t-color-blue5: #445556;
  --t-color-blue6: #516666;
  --t-color-blue7: #607b79;
  --t-color-blue8: #617d90;
  --t-color-blue9: #7294ab;
  --t-color-blue10: #88a6ba;
  --t-color-blue11: #9ecec7;
  --t-color-blue12: #e9f4f2;
  --t-color-blue: #7294ab;
}
