/* brand.css: every brand decision for this template, and nothing else.
   Identity 6 (Rubine), from project/02-brand/identity-6-rubine/tokens.json and palette.json.
   To re-skin: a new brand-<name>.css beside this one and an assets/<name>/ folder with mark.svg and wordmark.svg,
   then add the page to src/build.py. No other edits. */

@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 layout. */
@font-face {
  font-family: "pre spin 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 solid, one gradient, a nine-step scale */
  --brand: #CE0058;                                   /* rubine.600, Pantone Rubine Red C */
  --brand-grad: linear-gradient(180deg, #B4004E 0%, #CE0058 50%, #E0245D 100%); /* 700, 600, 500 */
  --brand-grad-top: #B4004E;
  --brand-grad-bottom: #E0245D;
  --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;
  --on-brand: #FFFFFF;
  --brand-text: #8A053B;   /* role accent-text on paper: rubine.800 */
  --brand-text-dark: #FCD2D5; /* accent-text on ink: rubine.200 */
  --danger: #B93500;       /* vermilion.600: UI danger only, never brand; unused on this page */

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

  /* Type */
  --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-display: 550;
  --weight-text: 400;
  --tracking-display: -0.035em;
  --tracking-heading: -0.02em;

  /* Fluid scale, 390 to 1920. Display/body ratio at 1440 is about 6 (MEASURED.md middle half: 3 to 5.5;
     this style sits above it on purpose: one huge line, everything else quiet). */
  --step--1: clamp(0.8125rem, 0.78rem + 0.12vw, 0.875rem);   /* 13 to 14 */
  --step-0:  clamp(1rem, 0.96rem + 0.16vw, 1.125rem);        /* 16 to 18 */
  --step-1:  clamp(1.125rem, 1.04rem + 0.33vw, 1.375rem);    /* 18 to 22 */
  --step-2:  clamp(1.375rem, 1.2rem + 0.65vw, 1.875rem);     /* 22 to 30 */
  --step-3:  clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem);        /* 28 to 44 */
  --step-4:  clamp(2.25rem, 1.6rem + 2.6vw, 4rem);           /* 36 to 64 */
  --step-5:  clamp(2.625rem, 1.6rem + 4.2vw, 5.5rem);        /* 42 to 88 */
  --step-6:  clamp(3rem, 0.9rem + 6.6vw, 8rem);             /* 48 to 128; 110 at 1440 */

  /* Shape */
  --radius: 0px;           /* the mark's terminals are cut level; corners stay square */
  --radius-pill: 999px;    /* the one rounded thing: action pills, as the source does */

  /* Style-specific: how the mark is shown on the plate.
     "rim" lets site.js draw Rim from its geometry and turn it with the cut kept level.
     Any other value shows assets/mark.svg as it is and turns it with a plain rotation. */
  --mark-motion: rim;
  --mark-on-plate: invert;   /* invert: a dark mark file shown light on the plate */
}
