/* Cassone design system: tokens.
   Source: the live site's own variables (--gb_Primary_*, --gb_secondary_*) read from material/styles.css,
   checked against the colors the browser computed in material/digest/DIGEST.md. Nothing here is invented. */

:root {
  /* Color: brand constants. Measured: the site names these nightfall, skyline, sky, yellow, slat. Decided: kept exactly. */
  --color-nightfall: #112244;        /* ink of the brand: borders, nav, headings on light; 15.4:1 on paper */
  --color-nightfall-light: #183164;  /* top of the footer gradient */
  --color-midnight: #173267;         /* hover of dark buttons */
  --color-skyline: #1268a9;          /* primary button, top bar, testimonial band; white on it 5.9:1 */
  --color-denim: #0f7aca;            /* hover of the primary button; white on it 4.6:1 */
  --color-sky: #e1f2ff;              /* hero and tile hover surface; nightfall on it 13.6:1 */
  --color-yellow: #ffce1c;           /* accent: quote button, yellow bands, eyebrow tags; nightfall on it 11.1:1 */
  --color-yellow-hover: #ffb700;     /* hover of the yellow button and of footer links */
  --color-slat: #565e63;             /* secondary body text; 6.5:1 on paper */
  --color-paper: #ffffff;
  --color-smoke: #efefef;            /* hover of white buttons and slider arrows */
  --color-void: #000000;             /* headings and body on light bands */
  --color-field-on-dark: rgba(255, 255, 255, 0.1);  /* footer form fields */
  --color-placeholder-on-dark: rgba(255, 255, 255, 0.7); /* 7.9:1 on the footer */

  /* Color: roles. */
  --text: var(--color-void);
  --text-muted: var(--color-slat);
  --text-on-dark: var(--color-paper);
  --line: var(--color-nightfall);
  --surface: var(--color-paper);
  --surface-tint: var(--color-sky);
  --surface-accent: var(--color-yellow);
  --surface-brand: var(--color-skyline);
  --surface-dark: linear-gradient(0deg, var(--color-nightfall), var(--color-nightfall-light));
  --focus: var(--color-nightfall);   /* focus ring on light; on dark bands it turns yellow (base.css) */

  /* Type: families. Measured: Eurostile LT Pro Unicode Demi (600) for display, labels and buttons, always set in capitals
     except titles of people and places; Roboto 400/500/600 for reading text. Decided: kept, with the site's Arial fallback. */
  --font-display: "Eurostile LT Pro Unicode", arial, sans-serif;
  --font-body: Roboto, arial, sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-display: 600;

  /* Type: sizes. Measured: the site's own fluid sizes (--gb_font_size_N), which grow from the phone value to the desktop
     value between 768 and about 1440 wide. Decided: the same formulas, named by role. Values at 390 / 1440 in the comment. */
  --size-display: clamp(40px, calc(2.5rem + 3.0928vw - 23.7527px), 58px);     /* 40 / 58  closing call to action */
  --size-h1: clamp(28px, calc(1.75rem + 3.7801vw - 29.03117px), 50px);         /* 28 / 50  hero title */
  --size-h2: clamp(26px, calc(1.625rem + 2.4055vw - 18.47424px), 40px);        /* 26 / 40  band titles */
  --size-nav-mobile: clamp(23px, calc(1.4375rem + 1.5464vw - 11.87635px), 32px); /* 23 / 32  phone menu items */
  --size-label-4xl: clamp(24px, calc(1.5rem + 0.6873vw - 5.27846px), 28px);    /* 24 / 28  product title */
  --size-label-2xl: clamp(20px, calc(1.25rem + 0.6873vw - 5.27846px), 24px);   /* 20 / 24  feature headings */
  --size-label-xl: clamp(20px, calc(1.25rem + 0.3436vw - 2.63885px), 22px);    /* 20 / 22  tile titles, large body */
  --size-body-l: clamp(18px, calc(1.125rem + 0.3436vw - 2.63885px), 20px);     /* 18 / 20 */
  --size-body: clamp(16px, calc(1rem + 0.3436vw - 2.63885px), 18px);           /* 16 / 18  reading text, menu titles */
  --size-label: clamp(15px, calc(0.9375rem + 0.1718vw - 1.31942px), 16px);     /* 15 / 16  buttons, nav, small labels */
  --size-small: clamp(14px, calc(0.875rem + 0.1718vw - 1.31942px), 15px);      /* 14 / 15 */
  --size-xs: clamp(13px, calc(0.8125rem + 0.1718vw - 1.31942px), 14px);        /* 13 / 14  top bar, eyebrow tag */

  /* Type: line heights. Measured: the site's 105, 120, 130 and 150 percent. */
  --leading-tight: 1.05;
  --leading-heading: 1.2;
  --leading-label: 1.3;
  --leading-body: 1.5;

  /* Space. Measured: the site's spacer scale (--gb_space_N), fluid between the phone and desktop value. Decided: same values. */
  --space-2xs: 8px;
  --space-xs: clamp(10px, calc(0.625rem + 0.3436vw - 2.63885px), 12px);   /* 10 / 12 */
  --space-s: clamp(12px, calc(0.75rem + 0.6873vw - 5.27846px), 16px);     /* 12 / 16 */
  --space-m: clamp(16px, calc(1rem + 0.6873vw - 5.27846px), 20px);        /* 16 / 20 */
  --space-l: clamp(20px, calc(1.25rem + 0.6873vw - 5.27846px), 24px);     /* 20 / 24 */
  --space-xl: clamp(24px, calc(1.5rem + 1.0309vw - 7.91731px), 30px);     /* 24 / 30 */
  --space-2xl: clamp(30px, calc(1.875rem + 1.0309vw - 7.91731px), 36px);  /* 30 / 36 */
  --space-3xl: clamp(36px, calc(2.25rem + 2.0619vw - 15.83539px), 48px);  /* 36 / 48 */
  --space-4xl: clamp(44px, calc(2.75rem + 4.811vw - 36.94848px), 72px);   /* 44 / 72 */
  --space-5xl: clamp(52px, calc(3.25rem + 7.5601vw - 58.06157px), 96px);  /* 52 / 96 */

  /* Layout. Measured: wrappers of 1400 (container-1340), 1240 (container-1180) and 1040 (container-980) with 30 px gutters,
     20 px under 1220 wide. */
  --container-wide: 1400px;
  --container: 1240px;
  --container-narrow: 1040px;
  --gutter: 30px;
  --gutter-phone: 20px;
  --header-height-desktop: 134px;

  /* Lines and corners. Measured: 2 px nightfall rules between every block and around every tile and button; square corners
     everywhere (radius 0) except the eyebrow tag (2 px). */
  --rule: 2px solid var(--color-nightfall);
  --rule-thin: 1px solid var(--color-nightfall);
  --radius: 0;
  --radius-tag: 2px;

  /* Motion. Measured: buttons .35s, menus .3s. */
  --ease-button: .35s;
  --ease-ui: .3s ease-in-out;
}
