/* Design tokens for sncsoftware.ca (the 2026-11 rework).
   Every colour, size, and spacing value in the other stylesheets comes from here.
   The navy, teal, and brass are taken from the SNC mark. */

:root {
  /* grounds */
  --navy-950:   #07182A;  /* deepest ground: the proof band and the footer */
  --navy:       #0F2A42;  /* the navy of the SNC mark: header, hero, contact */
  --navy-800:   #153655;  /* raised surface on navy: consoles, cards */
  --navy-700:   #1D4468;  /* pressed and selected on navy */
  --navy-line:  #27496B;  /* 1px rules on navy */
  --paper:      #F5F6F2;  /* light page ground */
  --panel:      #E9ECE6;  /* recessed light band */
  --white:      #FFFFFF;  /* inputs, device screens, raised light surfaces */
  --line:       #D4D9D2;  /* 1px rules on light */

  --bezel:      #0A1420;  /* the body of the drawn phone */
  --grid-ink:   rgba(255, 255, 255, 0.055);  /* blueprint grid lines on navy */

  /* text */
  --ink:          #0E1C28;  /* text on light */
  --ink-soft:     #3F515D;  /* secondary text on light, 7.6:1 on paper */
  --on-navy:      #F3F5F1;  /* text on navy */
  --on-navy-soft: #A9BCCB;  /* secondary text on navy, 7.5:1 */

  /* accents */
  --teal:         #057B8D;  /* the teal of the mark: links on light, 4.6:1 on paper */
  --teal-deep:    #045E6C;  /* link hover on light */
  --teal-tint:    #DDEEF0;  /* selected fills on light */
  --aqua:         #58D3DF;  /* live states on navy, 8:1 */
  --brass:        #D8A32E;  /* the one action colour: every primary button */
  --brass-bright: #EDBB4C;  /* button hover, focus ring on navy */
  --brass-deep:   #8A6410;  /* brass as text on light, 5.2:1 on paper */
  --brass-tint:   #F6ECD3;  /* founding client band */

  --xray-ink:     #58D3DF;  /* outlines and labels when the x-ray is on (xray.css) */

  /* feedback */
  --error:         #A62E2B;
  --error-on-navy: #FFA59E;
  --good:          #1F8A5B;  /* demo only: booked, caught, posted */
  --good-on-navy:  #6FDDA6;
  --call-green:    #18784E;  /* the call button in the demo phone, white text 5.5:1 */

  /* demo swatches: the colours a visitor can give the five second prototype.
     White text on each is at least 4.5:1. */
  --swatch-teal:   #057B8D;
  --swatch-amber:  #A26500;
  --swatch-coral:  #C2432D;
  --swatch-indigo: #4553C4;

  /* the spreadsheet in the home page demo */
  --sheet-yellow: #FFF0A8;
  --sheet-pink:   #FBD5D0;

  /* type */
  /* The "Fallback" faces are metric matched local fonts declared in styles.css,
     so text does not reflow when the web fonts arrive. */
  --font-display: "Archivo", "Archivo Fallback", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Plex Sans Fallback", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --text-3xs:  0.6875rem;                                /* 11px, the smallest label inside the drawn phone */
  --text-2xs:  0.75rem;                                  /* 12px, device screens only */
  --text-xs:   0.8125rem;                                /* 13px, meta and labels */
  --text-sm:   0.9375rem;                                /* 15px, secondary body */
  --text-base: 1.0625rem;                                /* 17px, body */
  --text-lg:   clamp(1.1875rem, 1.1rem + 0.45vw, 1.375rem);
  --text-xl:   clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --text-2xl:  clamp(2rem, 1.45rem + 2.4vw, 3.25rem);    /* section headings */
  --text-3xl:  clamp(2.5rem, 1.5rem + 4.2vw, 4.5rem);    /* page titles */
  --text-hero: clamp(2.75rem, 0.85rem + 4.6vw, 5rem);    /* the home page headline only */

  --leading-tight: 1.02;
  --leading-snug:  1.25;
  --leading-lead:  1.45;
  --leading-body:  1.6;

  --tracking-display: -0.025em;
  --tracking-heading: -0.012em;
  --tracking-mono:    0.01em;

  /* Archivo is a variable face. Headings run wide and heavy; on a phone they narrow a little. */
  --display-weight: 800;
  --display-stretch: 108%;
  --heading-weight: 700;
  --heading-stretch: 104%;

  /* spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 144px;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 56px);
  --measure: 54ch;

  /* fixed sizes */
  --header-h: 72px;
  --control-h: 48px;     /* buttons and inputs */
  --control-h-sm: 44px;  /* smallest allowed tap target */
  --hair: 1px;
  --hair-strong: 2px;
  --focus-w: 3px;
  --phone-w: 300px;      /* the drawn phone, at its widest */
  --grid-cell: 56px;     /* the blueprint grid on navy */

  /* radii */
  --radius-sm: 4px;      /* buttons, inputs, tags */
  --radius-md: 10px;     /* panels */
  --radius-lg: 18px;     /* benches: the big demo surfaces */
  --radius-app: 13px;    /* cards and buttons inside the drawn phone */
  --radius-sheet: 22px;  /* the sheet and the notification inside the drawn phone */
  --radius-device: 44px; /* the phone */
  --radius-screen: 34px;
  --radius-pill: 999px;

  /* elevation: only the devices and overlays cast a shadow */
  --shadow-device: 0 40px 80px -30px rgba(3, 12, 22, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-device-light: 0 30px 60px -30px rgba(14, 28, 40, 0.45);
  --shadow-overlay: 0 18px 48px rgba(7, 24, 42, 0.28);
  --shadow-key: inset 0 -2px 0 rgba(14, 28, 40, 0.22);  /* the pressable edge of a primary button */
  --shadow-banner: 0 12px 30px -10px rgba(14, 28, 40, 0.45);  /* a notification inside the drawn phone */
  --shadow-sheet: 0 -18px 40px -14px rgba(14, 28, 40, 0.4);   /* a sheet inside the drawn phone */
  --scrim: rgba(14, 28, 40, 0.42);                            /* behind that sheet */

  /* motion */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-pop: cubic-bezier(0.34, 1.4, 0.64, 1);         /* things that arrive: bubbles, cards */
  --ease-spring: cubic-bezier(0.22, 1.25, 0.36, 1);     /* a little overshoot: the island and notifications in the phone */
  --ease-flip: cubic-bezier(0.45, 0.05, 0.2, 1);        /* the phone turning over */
  --ease-fade: cubic-bezier(0.45, 0, 0.55, 1);
  --fast: 120ms;
  --medium: 220ms;
  --slow: 420ms;
  --settle: 320ms;       /* hero load sequence: one element */
  --settle-step: 60ms;   /* hero load sequence: stagger */
  --fade: 300ms;         /* page to page cross fade */
  --flip: 760ms;         /* the phone turning over in the hero */
}

@media (min-width: 900px) {
  :root {
    --display-stretch: 116%;
    --heading-stretch: 108%;
  }
}
