/* brand-rubine.css: identity 6 (Rubine), used by rubine.html. Same structure as brand.css.
   Values from project/02-brand/identity-6-rubine/tokens.json and palette.json; assets copied into assets/i6/. */

@font-face {
  font-family: "prespin Funnel";
  src: url("assets/fonts/prespinFunnel-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "prespin 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 layout. */
@font-face {
  font-family: "prespin Funnel Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 103%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

:root {
  /* Brand colour: one hue, nine steps. 600 is the solid brand colour. */
  --brand-100: #FEECED;
  --brand-200: #FCD2D5;
  --brand-300: #FBA7B1;
  --brand-400: #EF6A82;
  --brand-500: #E0245D;
  --brand-600: #CE0058;
  --brand-700: #B4004E;
  --brand-800: #8A053B;
  --brand-900: #540723;
  --brand: var(--brand-600);
  /* Rubine gradient: vertical, 700 top, 600 middle, 500 bottom. */
  --brand-grad: linear-gradient(180deg, var(--brand-700) 0%, var(--brand-600) 50%, var(--brand-500) 100%);
  /* UI danger only, never brand. */
  --danger: #B93500;

  /* Neutrals: warm stone, Paper to Ink. */
  --paper: #F4F2EE;
  --ink: #111111;
  --n-100: #EBE9E5;
  --n-200: #DBD9D5;
  --n-300: #BFBDB9;
  --n-400: #9A9894;
  --n-500: #797774;
  --n-600: #5C5B58;

  /* Text on the brand ground (checked against brand-500, the lightest stop). */
  --on-brand: #FFFFFF;
  --on-brand-muted: #FFFFFF; /* no tint passes on the bright stop */
  --on-brand-subtle: var(--brand-200);
  /* Accent text on Ink, and links on Paper (identity roles dark.accent-text, light.accent-text). */
  --accent-on-ink: var(--brand-200);
  --link-on-paper: var(--brand-800);

  /* Type */
  --font-display: "prespin Funnel", "prespin Funnel Fallback", system-ui, sans-serif;
  --font-text: "prespin Funnel", "prespin Funnel Fallback", system-ui, sans-serif;
  --weight-text: 400;
  --weight-display: 550;

  /* Fluid scale, 390 to 1920. step-6 is the claim. */
  --step--1: clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);  /* 12 to 13: labels */
  --step-0: clamp(1rem, 0.96rem + 0.16vw, 1.0625rem);      /* 16 to 17: body */
  --step-1: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);   /* 18 to 22: lede */
  --step-2: clamp(1.375rem, 1.18rem + 0.8vw, 1.875rem);    /* 22 to 30 */
  --step-3: clamp(1.75rem, 1.32rem + 1.75vw, 2.875rem);    /* 28 to 46 */
  --step-4: clamp(2.5rem, 1.6rem + 3.7vw, 4.75rem);        /* 40 to 76 */
  --step-5: clamp(3rem, 1.4rem + 6.6vw, 7.5rem);           /* 48 to 120 */
  --step-6: clamp(3.5rem, 1.1rem + 10.6vw, 11.5rem);       /* 56 to 184: the claim */

  --tracking-display: -0.04em;
  --tracking-label: 0.08em;

  /* Shape */
  --radius: 0px;        /* this style is square: cuts are level, like the wordmark's terminals */
  --rule: 1px;          /* hairline weight for rules and diagrams */

  /* Brand slots. White artwork for the brand ground and Ink, copied from project/02-brand/identity-6-rubine/. */
  --mark: url("assets/i6/mark.svg");
  --mark-ratio: 982.69 / 870.37;
  --wordmark: url("assets/i6/wordmark.svg");
  --wordmark-ratio: 736.75 / 182.14;
  /* Graded plate (identity-6-rubine/assets/ground-gradient-depth.png, as WebP), laid over --brand-grad. */
  --plate: image-set(url("assets/i6/ground-depth.webp") 1x);
  --plate-small: url("assets/i6/ground-depth-1200.webp");
  /* Scrim: the bright stop leaves white at about 4.4:1; this keeps the lede and spec strip above 4.5:1. */
  --plate-scrim: linear-gradient(0deg, color-mix(in srgb, var(--brand-700) 55%, transparent) 0%, transparent 55%);
}
