/* brand-rubine.css: identity 6 (Rubine), the re-skin test. Same contract as brand.css.
   Values from project/02-brand/identity-6-rubine/tokens.json and palette.json.
   Swap it in for brand.css; nothing else changes. */

@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: 500;
  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: 101%;
  ascent-override: 98%;
  descent-override: 26%;
  line-gap-override: 0%;
}

:root {
  /* Brand colour: the Rubine gradient lands on the scale: 700 top, 600 middle, 500 bottom. */
  --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);
  --brand-grad: linear-gradient(180deg, var(--brand-700) 0%, var(--brand-600) 50%, var(--brand-500) 100%);
  --brand-text: var(--brand-800);   /* links and brand text on paper: Rubine 800 (identity 6 accent-text) */
  --on-brand: #FFFFFF;

  /* Neutrals: warm stone, Paper to Ink. */
  --paper: #F4F2EE;
  --raised: #FFFFFF;
  --n-100: #EBE9E5;
  --n-200: #DBD9D5;
  --n-300: #BFBDB9;
  --n-400: #9A9894;
  --n-500: #797774;
  --n-600: #5C5B58;
  --ink: #111111;
  --focus: var(--brand-600);
  --danger: #B93500;        /* vermilion 600: UI errors only, never brand */
  --danger-text: #9D2C00;

  /* Type. Funnel Display only (the client's face); mono only for figure numbers and data labels. */
  --font-display: "prespin Funnel", "prespin Funnel fallback", system-ui, sans-serif;
  --font-text: "prespin Funnel", "prespin Funnel fallback", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --weight-display: 400;
  --weight-strong: 500;
  --track-display: -0.035em;

  --step--2: 0.75rem;                                  /* 12  mono labels */
  --step--1: 0.875rem;                                 /* 14  small print */
  --step-0: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem); /* 17-19 body */
  --step-1: clamp(1.25rem, 1.15rem + 0.35vw, 1.4375rem);  /* 20-23 */
  --step-2: clamp(1.5rem, 1.3rem + 0.7vw, 2rem);       /* 24-32 section heads */
  --step-3: clamp(1.875rem, 1.5rem + 1.3vw, 2.75rem);  /* 30-44 */
  --step-4: clamp(2.25rem, 1.6rem + 2.4vw, 4rem);      /* 36-64 */
  --step-5: clamp(2.625rem, 1.6rem + 3.9vw, 5.5rem);   /* 42-88 */
  --step-6: clamp(3rem, 1.4rem + 5.6vw, 7rem);         /* 48-112 hero */

  /* Shape and style tokens. */
  --radius: 0px;
  --rule: 1px;

  /* Collage plates: the identity's own graded backgrounds. */
  --plate-field: url("assets/i6/plate-field.webp");
  --plate-field-sm: url("assets/i6/plate-field-sm.webp");
  --plate-rim: url("assets/i6/plate-rimblur.webp");
  --plate-rim-sm: url("assets/i6/plate-rimblur-sm.webp");
  --plate-bloom: url("assets/i6/plate-bloom-sm.webp");
  --grain-opacity: 0.2;

  /* Mark slots. Copied from the identity folder into assets/, so the folder deploys alone. Masks, so colour comes from the tokens above. */
  --mark-url: url("assets/i6/rim-boxed.svg");
  --mark-ratio: 982.69 / 870.37;
  --wordmark-url: url("assets/i6/wordmark.svg");
  --wordmark-ratio: 736.75 / 182.14;
  /* One half-turn of the mark in frames (12 frames, 15 degrees apart, in a row). Set --mark-frames: 1 to switch the turn off. */
  --mark-frames-url: url("assets/i6/pattern-frames-row.svg");
  --mark-frames: 12;
}
