/* ============================================================
   Foundry Revenue portal — design tokens

   The SITE is the source of these values:
     ~/Desktop/foundry-site/tokens.css
   This is the subset the portal uses. When the site's palette is
   chosen for real, the values change there and are copied here.
   Names never change; a rebrand stays an edit to two files.

   PROVISIONAL, exactly as on the site: the greens are inherited
   from the style reference and are not yet Foundry Revenue's brand.
   ============================================================ */

:root {
  /* ---- Colour ---- */
  --color-bone-white:        #fafffa;
  --color-press-black:       #121613;
  --color-slate-verdant:     #232924;
  --color-newsprint-gray:    #516254;
  --color-muted-sage:        #c8d2c8;
  --color-highlighter-green: #2bee4b;
  --color-shadow-moss:       #93b799;
  --color-echo-green:        #c4e4c9;

  /* Derived from the accent. If the accent changes, these change with it. */
  --color-accent-press: #25d442;
  --color-accent-edge:  #0f7a1f;
  --color-accent-ink:   #0b3d12;

  /* The portal needs two the site does not: a raised surface for cards
     and inputs, and a colour for things that have gone wrong. */
  --surface-canvas: var(--color-bone-white);
  --surface-raised: #ffffff;
  --surface-sunken: #f1f6f1;
  --color-halt:     #8a3324;
  --color-halt-bg:  #fdf1ef;

  --rule:      #dde5de;
  --rule-firm: var(--color-muted-sage);

  /* ---- Type ---- */
  --font-display: 'Instrument Serif', 'Times New Roman', Times, serif;
  --font-ui: 'Outfit', ui-sans-serif, system-ui, -apple-system,
             BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-w550: 600;
  --font-weight-bold: 700;

  --text-caption: 0.6875rem;
  --text-body-sm: 0.875rem;
  --text-body:    1.125rem;
  /* The portal's own steps. The site's display sizes are built for a
     marketing page; a work tool that shouts is a work tool nobody uses. */
  --text-title:   clamp(2rem, 6vw, 3rem);
  --text-section: clamp(1.5rem, 3.5vw, 2rem);
  --text-label:   0.8125rem;

  --leading-prose: 1.55;
  --leading-flat: 1;
  --tracking-mid:     -0.02em;
  --tracking-tight:   -0.03em;
  --tracking-wide:     0.02em;
  --tracking-caption:  0.01em;

  /* ---- Spacing ---- */
  --spacing-4: 4px;   --spacing-8: 8px;   --spacing-10: 10px;
  --spacing-15: 15px; --spacing-20: 20px; --spacing-25: 25px;
  --spacing-30: 30px; --spacing-40: 40px; --spacing-50: 50px;
  --spacing-60: 60px;

  --gutter: clamp(20px, 4vw, 50px);
  --page-max-width: 1100px;

  /* ---- Radii ---- */
  --radius-buttons: 5px;
  --radius-pills: 10px;
  --radius-images: 14px;
  --radius-round: 9999px;

  --shadow-card: rgba(18, 22, 19, 0.06) 0 1px 3px 0,
                 rgba(18, 22, 19, 0.04) 0 8px 24px -8px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
