:root {
  --font-family:
    system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, 'Helvetica Neue', sans-serif;
  --font-family-fixed:
    SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

  /* Spaces */
  --space-xxxsmall: 4px;
  --space-xxsmall: 8px;
  --space-xsmall: 12px;
  --space-small: 16px;
  --space-medium: 24px;
  --space-large: 32px;
  --space-xlarge: 40px;
  --space-xxlarge: 48px;
  --space-xxxlarge: 64px;

  /* Typography scale */
  --size-xsmall: 0.77rem;
  --size-small: 0.92rem;
  --size: 1rem;
  --size-medium: var(--size);
  --size-large: 1.125rem;
  --size-xlarge: 1.266rem;
  --size-xxlarge: 1.424rem;
  --size-xxxlarge: 1.602rem;
  --size-xxxxlarge: 1.802rem;

  --line-height: 1.66;
  --line-height-heading: 1.33;
  --line-height-number: 1.2em;

  /*
   * Color scheme: https://coolors.co/287acc-da444e-55b950-e5c110-192339-353538
   */

  --color-gray-25: #f9f9f9;
  /** https://hihayk.github.io/scale/#4/5/60/90/0/-0/0/0/3F3F47/63/63/71/white */
  --color-gray-50: #ececed;
  --color-gray-100: #c9c9cc;
  --color-gray-200: #a7a7aa;
  --color-gray-300: #848489;
  --color-gray-400: #626268;
  --color-gray-500: #3f3f47;
  --color-gray-600: #36363c;
  --color-gray-700: #2c2c32;
  --color-gray-800: #232327;
  --color-gray-900: #19191c;

  --color-gray-ultra-light: var(--color-gray-200);
  --color-gray-light: var(--color-gray-300);
  --color-gray: var(--color-gray-500);
  --color-gray-dark: var(--color-gray-700);
  --color-gray-ultra-dark: var(--color-gray-900);

  --color-red-25: #fdf5f6;
  /* https://hihayk.github.io/scale/#4/5/60/90/0/-0/0/100/DA444E/218/68/78/white */
  --color-red-50: #fbeced;
  --color-red-100: #f5cbcd;
  --color-red-200: #eea9ae;
  --color-red-300: #e7878e;
  --color-red-400: #e1666e;
  --color-red-500: #da444e;
  --color-red-600: #c92a35;
  --color-red-700: #b31520;
  --color-red-800: #8c0710;
  --color-red-900: #660005;
  --color-red-ultra-light: var(--color-red-100);
  --color-red-light: var(--color-red-300);
  --color-red: var(--color-red-500);
  --color-red-dark: var(--color-red-700);
  --color-red-ultra-dark: var(--color-red-900);

  --color-blue-25: #f3f8fd;
  /* https://hihayk.github.io/scale/#4/5/60/90/0/-0/0/100/287ACC/40/122/204/white */
  --color-blue-50: #eaf2fa;
  --color-blue-100: #c3daf1;
  --color-blue-200: #9cc2e8;
  --color-blue-300: #75aade;
  --color-blue-400: #4f92d5;
  --color-blue-500: #287acc;
  --color-blue-600: #1168bf;
  --color-blue-700: #0055ac;
  --color-blue-800: #00438c;
  --color-blue-900: #003166;

  --color-blue-ultra-light: var(--color-blue-100);
  --color-blue-light: var(--color-blue-300);
  --color-blue: var(--color-blue-500);
  --color-blue-dark: var(--color-blue-700);
  --color-blue-ultra-dark: var(--color-blue-900);

  --color-green-25: #f6fbf6;
  /* https://hihayk.github.io/scale/#4/5/60/90/0/-0/0/100/55b950/85/185/80/white */
  --color-green-50: #eef8ee;
  --color-green-100: #cfebce;
  --color-green-200: #b1dfaf;
  --color-green-300: #92d28f;
  --color-green-400: #74c670;
  --color-green-500: #55b950;
  --color-green-600: #3ea839;
  --color-green-700: #2b9426;
  --color-green-800: #1b7b16;
  --color-green-900: #0f5f0b;

  --color-green-ultra-light: var(--color-green-100);
  --color-green-light: var(--color-green-300);
  --color-green: var(--color-green-500);
  --color-green-dark: var(--color-green-700);
  --color-green-ultra-dark: var(--color-green-900);

  --color-yellow-25: #fffdf2;
  /* https://hihayk.github.io/scale/#4/5/20/80/0/-0/0/0/E5C110/229/193/16/white */
  --color-yellow-50: #faf3cf;
  --color-yellow-100: #f6e9a9;
  --color-yellow-200: #f2df83;
  --color-yellow-300: #edd55d;
  --color-yellow-400: #e9cb36;
  --color-yellow-500: #e5c110;
  --color-yellow-600: #dab70f;
  --color-yellow-700: #ceae0e;
  --color-yellow-800: #c3a40e;
  --color-yellow-900: #b79a0d;

  --color-yellow-ultra-light: var(--color-yellow-100);
  --color-yellow-light: var(--color-yellow-300);
  --color-yellow: var(--color-yellow-500);
  --color-yellow-dark: var(--color-yellow-700);
  --color-yellow-ultra-dark: var(--color-yellow-900);

  --color-dark: #111;
  --color-light: #fff;

  /* https://hihayk.github.io/scale/#4/4/40/40/0/-0/0/0/1a477f/26/71/127/white */
  --color-branding-light: #31598c;
  --color-branding: #1a477f;
  --color-branding-dark: #102b4c;
}

body {
  /* Functional color variables */
  --color-text-ultra-light: var(--color-gray-ultra-light);
  --color-text-light: var(--color-gray-light);
  --color-text: var(--color-gray);
  --color-text-dark: var(--color-gray-dark);
  --color-text-ultra-dark: var(--color-gray-ultra-dark);
  --color-heading: var(--color-gray-ultra-dark);

  --color-accent-light: var(--color-branding-light);
  --color-accent: var(--color-branding);
  --color-accent-dark: var(--color-branding-dark);

  --color-success-light: var(--color-green-light);
  --color-success: var(--color-green);
  --color-success-dark: var(--color-green-dark);
  --color-info-light: var(--color-blue-light);
  --color-info: var(--color-blue);
  --color-info-dark: var(--color-blue-dark);
  --color-warning-light: var(--color-yellow-light);
  --color-warning: var(--color-yellow);
  --color-warning-dark: var(--color-yellow-dark);
  --color-danger-light: var(--color-red-light);
  --color-danger: var(--color-red);
  --color-danger-dark: var(--color-red-dark);

  --color-primary-light: var(--color-blue-light);
  --color-primary: var(--color-blue);
  --color-primary-dark: var(--color-blue-dark);

  --color-secondary-light: var(--color-green-light);
  --color-secondary: var(--color-green);
  --color-secondary-dark: var(--color-green-dark);

  --color-background: #fff;
  --color-highlight: var(--color-gray-25);
  --color-highlight-primary: var(--color-blue-25);
  --color-highlight-secondary: var(--color-green-25);
  --color-highlight-success: var(--color-green-25);
  --color-highlight-info: var(--color-blue-25);
  --color-highlight-warning: var(--color-yellow-25);
  --color-highlight-danger: var(--color-red-25);

  --color-outline: var(--color-gray-50);
  --color-outline-dark: var(--color-gray-100);

  --color-outline-success: var(--color-green-100);
  --color-outline-info: var(--color-blue-100);
  --color-outline-warning: var(--color-yellow-200);
  --color-outline-danger: var(--color-red-100);

  --color-backdrop: rgba(0, 0, 0, 0.05);
  --color-shadow: rgba(0, 0, 0, 0.1);

  /**
   * Transitions: set `transition-property` explicitly on the base rule, use the `out` duration
   * on the base rule and switch only `transition-duration` to `in` on the active/hover rule
   */
  --transition-duration-in: 120ms;
  --transition-duration-out: 80ms;
  --transition-timing-function: ease-out;

  --layer-xlow: 1;
  --layer-low: 10;
  --layer: 100;
  /** for components with overlays (tooltips, hovercards) */
  --layer-high: 1000;
  /** for the sticky header, tabs and side panels */
  --layer-xhigh: 10000;
  /** for dialogs/modals */
  --layer-xxhigh: 100000;
  /**
   * z-index used by overlays (tooltips, hovercards, dropdowns)
   * overridden by the dialog portal to place nested overlays above the dialog
   */
  --layer-overlay: var(--layer-high);

  --shadow-layer: 0 0 var(--space-xxxsmall) var(--color-shadow);
  --shadow-layer-high: 0 0 var(--space-xxsmall) var(--color-shadow);

  --radius-xsmall: 3px;
  --radius-small: 5px;
  --radius-medium: 7px;
  --radius-large: 9px;

  --skeleton-inline-background: linear-gradient(
    transparent 10%,
    currentColor 10.1%,
    currentColor 89.9%,
    transparent 90%
  );
  --skeleton-block-background: currentColor;
  --skeleton-opacity: 0.06;

  /** Layout */
  --max-width: 88rem;
  --entry-info-width: 64rem;
  --entry-info-top: var(--header-height);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}
