/* brand.css: every brand decision for this template, and nothing else.
   Identity 5 (blue). Sources: project/02-brand/identity-5/tokens.json, palette.json, concept.md (type).
   Identity assets (mark, wordmark) live in assets/blue/; rubine.html uses brand-rubine.css and assets/rubine/. */

@font-face {
  font-family: "pre spin Funnel";
  src: url("assets/fonts/prespinFunnel-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "pre spin Funnel";
  src: url("assets/fonts/prespinFunnel-Medium.woff2") format("woff2");
  font-weight: 550;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback so the swap does not move the page. */
@font-face {
  font-family: "pre spin Funnel fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 95%;
  ascent-override: 105%;
  descent-override: 26%;
  line-gap-override: 0%;
}

:root {
  /* Brand colour: one blue scale; 600 is the solid, 700 to 500 is the gradient. */
  --brand: #1820DB;
  --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-from: #0022B9;  /* top, 700 */
  --brand-grad-mid: #1820DB;   /* middle, 600 */
  --brand-grad-to: #311FFF;    /* bottom, 500 */
  --brand-grad: linear-gradient(180deg, var(--brand-grad-from), var(--brand-grad-mid) 50%, var(--brand-grad-to));
  --brand-text: var(--brand-600);       /* role accent-text, light */
  --brand-text-dark: var(--brand-200);  /* role accent-text, dark */
  --brand-focus: var(--brand-500);      /* role focus-ring, light */
  --brand-focus-dark: var(--brand-400); /* role focus-ring, dark */
  --brand-mark-dark: var(--brand-400);  /* motif and figure marks on ink (3:1 as a graphic) */

  /* Danger: blue never needed one; the error states use ink and words. */
  --danger: var(--ink);
  --danger-text: var(--ink);

  /* Neutrals: warm stone, Paper to Ink. */
  --paper: #F4F2EE;
  --paper-raised: #FFFFFF;
  --ink: #111111;
  --ink-raised: #1B1A1A;
  --n-100: #EBE9E5;
  --n-200: #DBD9D5;
  --n-300: #BFBDB9;
  --n-400: #9A9894;
  --n-500: #797774;
  --n-600: #5C5B58;
  --n-700: #40403E;
  --n-800: #292928;

  /* Type: Funnel Display only, the client's face. Default figures are tabular. */
  --font-display: "pre spin Funnel", "pre spin Funnel fallback", system-ui, sans-serif;
  --font-text: "pre spin Funnel", "pre spin Funnel fallback", system-ui, sans-serif;
  --weight-regular: 400;
  --weight-medium: 550;
  --display-tracking: -0.022em;

  /* Type scale, 390 to 1440, fluid. Body 17 to 18. */
  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0: clamp(1.0625rem, 1.04rem + 0.1vw, 1.125rem);
  --step-1: clamp(1.1875rem, 1.13rem + 0.24vw, 1.375rem);
  --step-2: clamp(1.375rem, 1.27rem + 0.45vw, 1.75rem);
  --step-3: clamp(1.625rem, 1.44rem + 0.76vw, 2.25rem);
  --step-4: clamp(2rem, 1.7rem + 1.2vw, 2.875rem);
  --step-5: clamp(2.375rem, 1.9rem + 1.9vw, 3.5rem);
  --step-6: clamp(2.625rem, 1.78rem + 3.25vw, 4.375rem);

  /* Copy that names the colour (Figure 1 caption). */
  --brand-colour-name: "blue";

  /* Shape */
  --radius: 6px;
  --radius-pill: 999px;
}
