/* Hallmark · tokens · theme: custom (CodeFlanders, petrol) · axes: light / grotesk-sans / chromatic-petrol
 * One palette for the whole site: petrol (hue 220) on a warm white, light aqua for the soft bands and a coral
 * period in the wordmark. The lightness steps follow the original green brand palette, so every text pair keeps
 * WCAG AA (4.5:1 or more). The token names still say forest and sage: they name the role (the dark and the light
 * accent), not the hue.
 */
/* Self-hosted fonts (no request to another site), SIL Open Font License 1.1: assets/fonts/*-OFL.txt */
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("assets/fonts/overpass-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  /* Petrol (contrast: ink on paper 14:1, muted 5.6:1, buttons 7.5:1, text on the petrol ground 12.6:1) */
  --color-paper:        oklch(96.5% 0.006 85);   /* #f5f3ef, warm white */
  --color-paper-2:      oklch(93% 0.010 85);     /* #ebe7e0, one step down, case backdrops */
  --color-ink:          oklch(25% 0.015 230);    /* #1a2327 */
  --color-muted:        oklch(49% 0.018 230);    /* #566369 */
  --color-rule:         oklch(86% 0.012 220);    /* #c9d3d6 */
  --color-forest:       oklch(42% 0.075 220);    /* #045669, petrol: buttons and links */
  --color-forest-hover: oklch(37% 0.070 220);    /* #004859 */
  --color-forest-deep:  oklch(29% 0.050 225);    /* #07303e, deep petrol: hero and footer ground */
  --color-forest-line:  oklch(39% 0.050 225);    /* #244b59, hairlines on the deep petrol ground */
  --color-sage:         oklch(89% 0.030 200);    /* #c5e1e2, light aqua */
  --color-sage-2:       oklch(82% 0.040 200);    /* #a7ccce, lines inside the light aqua band */
  --color-on-forest:    oklch(96.5% 0.006 85);   /* paper */
  --color-on-forest-2:  oklch(85% 0.030 210);    /* #b8d4d9, secondary text on the deep petrol ground */
  --color-terracotta:   oklch(60% 0.130 45);     /* #be6438, coral: the wordmark period only */
  --color-muted-sage:   oklch(45% 0.020 220);    /* #49585d, muted text on light aqua, 5:1 */
  --color-surface:      oklch(98.5% 0.003 85);   /* #fbfaf8, the neutral screen inside a workflow demo */
  --color-image-edge:   oklch(26% 0.02 220 / 0.08);
  --color-focus:        oklch(42% 0.075 220);
  --color-focus-light:  oklch(89% 0.030 200);
  --shadow-whisper:     0 1px 2px oklch(26% 0.02 220 / 0.08), 0 8px 24px -12px oklch(26% 0.02 220 / 0.18);

  /* Type: the brand's own three faces */
  --font-display:  "Barlow", "Arial Narrow", sans-serif;      /* headings */
  --font-body:     "Overpass", "Segoe UI", sans-serif;        /* text and UI */
  --font-wordmark: "Manrope", "Segoe UI", sans-serif;         /* the wordmark only */

  --text-sm:      0.875rem;
  --text-base:    1.0625rem;
  --text-md:      1.375rem;
  --text-xl:      clamp(1.625rem, 2.6vw + 0.9rem, 3rem);
  --text-2xl:     clamp(2.25rem, 3.4vw + 1rem, 4rem);    /* inner page titles */
  --text-display: clamp(2.2rem, 5.6vw + 0.9rem, 5.25rem);  /* the home quote, sized as on the current site */
  /* Inside the example product screens only (they are pictures of an app) */
  --text-ui-s: 0.75rem;
  --text-ui:   0.8125rem;
  --text-ui-l: 0.9375rem;

  /* Space: 4pt scale */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;
  --gutter:    clamp(1rem, 4vw, 3.5rem);
  --measure:   38rem;
  --page-max:  84rem;

  --radius-sm: 4px;   /* buttons and inputs, as on the current site */
  --radius-md: 6px;   /* cards and photos */
  --radius-lg: 12px;  /* the phone-sized work order */
  --rule-hair: 1px;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long:  520ms;
  --dur-enter: 420ms;     /* objects entering a scene */
  --dur-process: 700ms;   /* motion that shows a process: bars, scan, signature */
  --dur-cursor: 600ms;    /* the demo cursor travelling to a target (MOVE_MS in player.js) */
  --dur-travel: 900ms;    /* the travelling dot on the process line */

  --z-base: 1;
  --z-raised: 10;
}
