/* ==========================================================================
   Select Network — design tokens
   Loaded FIRST, before style.css and pyramid.css.

   Why this file exists: `:root` was declared 5 times across style.css and
   pyramid.css with clashing values. `--green` held #53a27b in one block and
   #790c20 (a dark red) in another. 1106 different hex colours were in use.

   These tokens are additive and all carry the `--sn-` prefix. They do not
   touch the old --ink / --green / --paper names, so no existing screen
   changes. New work uses these names only.
   ========================================================================== */

:root {
  /* ---- brand ---------------------------------------------------------- */
  --sn-brand:            #691e39;  /* burgundy. The most used colour. */
  --sn-brand-strong:     #500817;  /* pressed / hover */
  --sn-brand-tint:       #f4e8d8;  /* brand wash behind panels */
  --sn-brand-ink:        #ffffff;  /* text on brand */

  --sn-gold:             #b58136;
  --sn-gold-tint:        #f6efdf;

  /* ---- status --------------------------------------------------------- */
  --sn-ok:               #246348;
  --sn-ok-tint:          #edf5ef;
  --sn-warn:             #8a6c0a;
  --sn-warn-tint:        #fff5e3;
  --sn-danger:           #8c2f24;
  --sn-danger-tint:      #fbeeec;
  --sn-info:             #315d80;
  --sn-info-tint:        #eef4f9;

  /* ---- surfaces ------------------------------------------------------- */
  --sn-bg:               #faf7f1;
  --sn-surface:          #ffffff;
  --sn-surface-sunken:   #f8f0e3;
  --sn-surface-hover:    #fbf7f1;

  /* ---- lines ---------------------------------------------------------- */
  --sn-line:             #e4ddd4;
  --sn-line-strong:      #d4c6b2;

  /* ---- text ----------------------------------------------------------- */
  --sn-text:             #34272a;
  --sn-text-muted:       #746a67;
  --sn-text-faint:       #9a908b;

  /* ---- space (4px step) ----------------------------------------------- */
  --sn-space-1:  4px;
  --sn-space-2:  8px;
  --sn-space-3:  12px;
  --sn-space-4:  16px;
  --sn-space-5:  24px;
  --sn-space-6:  32px;
  --sn-space-7:  48px;
  --sn-space-8:  64px;

  /* ---- radius --------------------------------------------------------- */
  --sn-radius-sm:   6px;
  --sn-radius-md:  10px;
  --sn-radius-lg:  16px;
  --sn-radius-pill: 999px;

  /* ---- type ----------------------------------------------------------- */
  --sn-font-ui:    'Avenir Next', Avenir, 'Segoe UI', sans-serif;
  --sn-font-display: Georgia, 'Times New Roman', serif;

  --sn-text-2xs: 10px;
  --sn-text-xs:  11px;
  --sn-text-sm:  12px;
  --sn-text-md:  13px;
  --sn-text-lg:  15px;
  --sn-text-xl:  19px;
  --sn-text-2xl: 24px;
  --sn-text-3xl: 32px;
  --sn-text-4xl: 44px;

  --sn-leading-tight: 1.2;
  --sn-leading-body:  1.6;

  /* ---- elevation ------------------------------------------------------ */
  --sn-shadow-1: 0 1px 2px rgba(52, 39, 42, .06);
  --sn-shadow-2: 0 4px 14px rgba(52, 39, 42, .08);
  --sn-shadow-3: 0 18px 48px rgba(52, 39, 42, .16);

  /* ---- controls ------------------------------------------------------- */
  --sn-control-height:    42px;
  --sn-control-height-sm: 34px;
  --sn-focus-ring:        3px solid var(--sn-gold);
  --sn-focus-offset:      2px;
  --sn-motion:            .18s ease;

  /* The dropdown arrow we draw ourselves, instead of the OS one. */
  --sn-chevron: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23746a67' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
}

/* People who ask for less motion get none. */
@media (prefers-reduced-motion: reduce) {
  :root { --sn-motion: 0s; }
}
