/* Quercus design tokens. Every colour, space, radius and type size used anywhere in the
   UI is defined here and nowhere else. components.css consumes these; templates never
   set styles inline.

   Direction: monochrome and precise. White surfaces, near-black ink, hairline borders,
   square corners, one restrained accent. */

@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/static/fonts/manrope-latin-wght-normal.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: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/static/fonts/inter-latin-wght-normal.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;
}

:root {
  /* Colour */
  --color-bg: #f5f5f6;
  --color-surface: #ffffff;
  --color-surface-muted: #f0f0f2;
  --color-border: #e3e3e7;
  --color-border-strong: #c9c9cf;
  --color-row-hover: #fafafb;

  --color-text: #0b0b0d;
  --color-text-muted: #66666f;
  --color-text-faint: #9a9aa3;

  --color-primary: #0b0b0d;
  --color-primary-hover: #26262b;
  --color-primary-soft: #ececef;
  --color-primary-contrast: #ffffff;

  --color-accent: #1f5eff;
  --color-accent-soft: #e8efff;

  --color-danger: #c81e1e;
  --color-danger-hover: #a51818;
  --color-danger-soft: #fbe9e9;

  --color-success: #15803d;
  --color-success-soft: #e6f4ea;

  --color-warning: #b45309;
  --color-warning-soft: #fdf1e3;

  --color-info: #1f5eff;
  --color-info-soft: #e8efff;

  --color-focus: #1f5eff;

  /* The dark header and its menus. */
  --color-header: #0f1014;
  --color-header-2: #17181d;
  --color-header-text: rgba(255, 255, 255, 0.74);
  --color-header-text-strong: #ffffff;
  --color-header-line: rgba(255, 255, 255, 0.09);
  --color-header-hover: rgba(255, 255, 255, 0.07);
  --color-bg-2: #eef0f4;

  /* Spacing scale (4px base). */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* Radius: square by design. */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-pill: 0;

  /* Type. */
  --font-sans: "Manrope Variable", "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-xs: 0.71875rem;
  --text-sm: 0.8125rem;
  --text-base: 0.875rem;
  --text-lg: 1rem;
  --text-xl: 1.125rem;
  --text-2xl: 1.5rem;
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --tracking-tight: -0.025em;
  --tracking-wide: 0.06em;

  /* Elevation: hairlines, not shadows. */
  --shadow-sm: 0 1px 2px rgba(11, 11, 13, 0.04), 0 12px 32px -20px rgba(11, 11, 13, 0.18);
  --shadow-md: 0 8px 24px rgba(11, 11, 13, 0.1);
  --shadow-lg: 0 24px 48px rgba(11, 11, 13, 0.18);

  /* Layout. */
  --container-max: 112rem;
  --tap-min: 44px;
  --qab-height: 4rem;
  --header-height: 3.5rem;

  /* Motion. */
  --duration-fast: 100ms;
  --duration-normal: 180ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}
