/* RMCflow theme for TestSuits (testsuit.rmcflow.ai), served at /theme/theme.css.
   Mirrors RMCflow's light register (rmcflow frontend/src/index.css): warm ivory
   ground, white cards, warm ink text, terracotta accent, IBM Plex Sans. Dark
   mode follows RMCflow's warm ink + ember. Values are "R G B" triplets for the
   Tailwind palette variables declared in TestSuits' src/index.css; `html:root`
   outranks the app's `:root` defaults. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  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: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-ext-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  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-202F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

html:root {
  /* Terracotta: 600 is RMCflow --primary (#c23a12), 700 its hover (#8f2b0d). */
  --brand-50: 251 239 233;
  --brand-100: 246 220 207;
  --brand-500: 201 66 22;
  --brand-600: 194 58 18;
  --brand-700: 143 43 13;

  /* Warm neutrals: 50 = RMCflow ground #efece5, 200 = hairline #e7e0d5,
     500 = muted text #6b6459, 950 = dark ground #171512. */
  --slate-50: 239 236 229;
  --slate-100: 233 228 219;
  --slate-200: 231 224 213;
  --slate-300: 214 205 191;
  --slate-400: 168 159 146;
  --slate-500: 107 100 89;
  --slate-600: 87 81 74;
  --slate-700: 61 57 52;
  --slate-800: 43 39 34;
  --slate-900: 33 30 26;
  --slate-950: 23 21 18;

  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
}

/* Dark: lighter accents so brand text stays legible on warm ink
   (600 ≈ 4.7:1 on the dark card; 700 is RMCflow's ember #ef7945). */
html.dark:root {
  --brand-600: 224 98 46;
  --brand-700: 239 121 69;
}

::selection {
  background: rgb(var(--brand-100));
  color: rgb(var(--slate-900));
}
html.dark ::selection {
  background: rgb(var(--brand-700) / 0.35);
  color: inherit;
}

.tiptap-content .ProseMirror a {
  color: rgb(var(--brand-600));
}
.dark .tiptap-content .ProseMirror a {
  color: rgb(var(--brand-700));
}
