/* brand.css: every brand decision for this template lives here.
   Identity 5 (blue). Swap this file plus the two SVG slots to re-skin the site.
   Sources: project/02-brand/identity-5/tokens.json, palette.json, concept.md (type). */

@font-face {
  font-family: "Funnel Display";
  src: url("assets/fonts/FunnelDisplay-var.woff2") format("woff2-variations"),
       url("assets/fonts/FunnelDisplay-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback so the swap does not move the layout. */
@font-face {
  font-family: "Funnel Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 97%;
  ascent-override: 102%;
  descent-override: 26%;
  line-gap-override: 0%;
}

:root {
  /* Slots: the mark and the wordmark, used as masks so colour stays a token. */
  --mark: url("assets/brand/i5/rim-boxed.svg");
  --mark-ratio: 982.69 / 870.37;
  --wordmark: url("assets/brand/i5/wordmark.svg")  /* square-dot wordmark */;
  --wordmark-ratio: 736.75 / 182.14;
  --pattern: url("assets/brand/i5/pattern-frames-row.svg"); /* Rim, one half-turn in 12 frames */
  --pattern-ratio: 2400 / 200;

  /* Brand colour */
  --brand: #1820DB;              /* blue.600, pre spin Blue */
  --brand-100: #EBEFFF;
  --brand-200: #D1DBFF;
  --brand-300: #A7BAFF;
  --brand-400: #6D89FF;
  --brand-500: #311FFF;
  --brand-600: #1820DB;
  --brand-700: #0022B9;
  --brand-800: #00207D;
  --brand-900: #021149;
  --brand-grad: linear-gradient(180deg, #0022B9 0%, #311FFF 100%);
  /* The graded plate that sits on the gradient. Set to none and the gradient shows. */
  --brand-plate: image-set(url("assets/brand/i5/ground-light-field-1200.webp") 1x, url("assets/brand/i5/ground-light-field-2400.webp") 2x);
  --brand-blur: image-set(url("assets/brand/i5/background-rim-blur-800.webp") 1x, url("assets/brand/i5/background-rim-blur-1600.webp") 2x); /* Rim out of focus */
  --on-brand: #FFFFFF;
  --brand-word: "blue";         /* how the copy names the brand colour */
  --on-brand-muted: #D1DBFF;     /* blue.200, passes on every stop */

  /* Neutrals: warm stone. Paper is the ground, Ink the text. */
  --paper: #F4F2EE;              /* stone.50 */
  --ink: #111111;                /* stone.950 */
  --n-100: #EBE9E5;
  --n-200: #DBD9D5;
  --n-300: #BFBDB9;
  --n-400: #9A9894;
  --n-500: #797774;
  --n-600: #5C5B58;
  --raised: #FFFFFF;
  --focus: #311FFF;              /* blue.500 */
  --link: #1820DB;               /* accent-text on paper */
  --danger: #1820DB;             /* blue needs no separate danger colour */

  /* Type: Funnel Display only, the client's face. */
  --font-display: "Funnel Display", "Funnel Fallback", system-ui, sans-serif;
  --font-text: "Funnel Display", "Funnel Fallback", system-ui, sans-serif;
  --w-strong: 590;               /* the voice that states */
  --w-quiet: 330;                /* the voice that explains */
  --w-text: 400;
  --w-label: 540;
  --track-display: -0.032em;
  --track-head: -0.02em;

  /* Type scale, fluid from 390 to 1440 */
  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);   /* 13 to 14 */
  --step-0:  clamp(1rem, 0.96rem + 0.18vw, 1.125rem);        /* 16 to 18 */
  --step-1:  clamp(1.125rem, 1.05rem + 0.33vw, 1.375rem);    /* 18 to 22 */
  --step-2:  clamp(1.375rem, 1.23rem + 0.6vw, 1.75rem);      /* 22 to 28 */
  --step-3:  clamp(1.75rem, 1.47rem + 1.2vw, 2.5rem);        /* 28 to 40 */
  --step-4:  clamp(2.125rem, 1.6rem + 2.2vw, 3.5rem);        /* 34 to 56 */
  --step-5:  clamp(2.5rem, 1.6rem + 3.7vw, 4.75rem);         /* 40 to 76 */
  --step-6:  clamp(2.625rem, 1.1rem + 4.2vw, 5.25rem);       /* 42 at 390, 78 at 1440, 84 from 1600 */

  /* Shape */
  --radius: 10px;
  --radius-small: 6px;
  --radius-pill: 999px;
  --rule: 1px solid var(--n-200);
}
