/* IMA tokens (builder F). Korowa's measured scale (research/DNA.md 2 to 4) in IMA's brand: Barlow, orange #F8711E, black, white, warm paper.
   Every size is fluid between 320 and 1920 wide: value = MIN + (MAX - MIN) * (width - 320) / 1600, clamped. Verified: step 0 = 15.13px at 390, 17.1 at 1440. */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlow-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-semi-condensed-latin-600-italic.woff2") format("woff2"); }

:root {
  --bp-nav: 1100;                       /* the one nav breakpoint (px): site.js reads it, base.css repeats it in a media query */

  /* colour roles (DNA.md 11, Map to IMA). Contrast pairs are listed in SYSTEM.md. */
  --paper: #fbfaf8;                     /* ground (Korowa's #fbfaf8, kept) */
  --linen: #f1ede7;                     /* surface 2, alternate sections */
  --white: #ffffff;                     /* card fill */
  --ink: #16181d;                       /* headings, near-black */
  --body: #2a2d33;                      /* body text */
  --grey: #5b5f68;                      /* secondary text (6.1:1 on paper) */
  --black: #111111;                     /* bands, footer, Menu button */
  --orange: #F8711E;                    /* IMA orange: button fill with BLACK text (6.6:1), marks, the accent word on dark */
  --orange-hover: #cb5f1e;              /* button hover (black text 4.7:1) */
  --orange-display: #D9560A;            /* the italic accent word on a light ground, 24px and up (3.8:1 on paper, passes 3:1) */
  --orange-ink: #B94400;                /* small orange text on a light ground (5.2:1 on paper, 4.6:1 on the tint) */
  --tint: #fde9da;                      /* the free-trial panel, soft panels (Korowa's Apply Now tint) */
  --rule: rgba(22, 24, 29, .3);         /* 1px rules and card borders (Korowa: text at 30%) */
  --rule-soft: rgba(22, 24, 29, .14);
  --on-dark: #fbfaf8;                   /* text on black and on photo shades */
  --on-dark-2: rgba(251, 250, 248, .74);
  --rule-dark: rgba(251, 250, 248, .3);
  --em: var(--orange-display);          /* the colour of <em> in the current context; dark contexts set it to --orange */

  /* type families */
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-num: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;

  /* the fluid type scale: step k, min = 15 * 1.2^k at 320, max = 18 * 1.25^k at 1920 */
  --step--2: clamp(10.42px, calc(10.42px + 1.1 * (100vw - 320px) / 1600), 11.52px);
  --step--1: clamp(12.5px, calc(12.5px + 1.9 * (100vw - 320px) / 1600), 14.4px);
  --step-0:  clamp(15px, calc(15px + 3 * (100vw - 320px) / 1600), 18px);
  --step-1:  clamp(18px, calc(18px + 4.5 * (100vw - 320px) / 1600), 22.5px);
  --step-2:  clamp(21.6px, calc(21.6px + 6.53 * (100vw - 320px) / 1600), 28.13px);
  --step-3:  clamp(25.92px, calc(25.92px + 9.24 * (100vw - 320px) / 1600), 35.16px);
  --step-4:  clamp(31.1px, calc(31.1px + 12.85 * (100vw - 320px) / 1600), 43.95px);
  --step-5:  clamp(37.32px, calc(37.32px + 17.61 * (100vw - 320px) / 1600), 54.93px);
  --step-6:  clamp(44.79px, calc(44.79px + 23.87 * (100vw - 320px) / 1600), 68.66px);
  --step-7:  clamp(53.75px, calc(53.75px + 32.08 * (100vw - 320px) / 1600), 85.83px);
  --step-8:  clamp(64.5px, calc(64.5px + 42.79 * (100vw - 320px) / 1600), 107.29px);

  /* the fluid space scale (px at 390 / 1440 / 1920 = Korowa's table): min at 320, 16 * n at 1920 */
  --s-05: clamp(7.5px, calc(7.5px + .5 * (100vw - 320px) / 1600), 8px);
  --s-1:  clamp(15px, calc(15px + 1 * (100vw - 320px) / 1600), 16px);
  --s-15: clamp(21.6px, calc(21.6px + 2.4 * (100vw - 320px) / 1600), 24px);
  --s-2:  clamp(28px, calc(28px + 4 * (100vw - 320px) / 1600), 32px);
  --s-25: clamp(33.5px, calc(33.5px + 6.5 * (100vw - 320px) / 1600), 40px);
  --s-3:  clamp(38.6px, calc(38.6px + 9.4 * (100vw - 320px) / 1600), 48px);
  --s-35: clamp(43.5px, calc(43.5px + 12.5 * (100vw - 320px) / 1600), 56px);
  --s-4:  clamp(47.4px, calc(47.4px + 16.6 * (100vw - 320px) / 1600), 64px);
  --s-5:  clamp(54.7px, calc(54.7px + 25.3 * (100vw - 320px) / 1600), 80px);
  --s-6:  clamp(60.5px, calc(60.5px + 35.5 * (100vw - 320px) / 1600), 96px);
  --s-7:  clamp(65.6px, calc(65.6px + 46.4 * (100vw - 320px) / 1600), 112px);
  --s-10: clamp(80px, calc(80px + 80 * (100vw - 320px) / 1600), 160px);

  /* layout */
  --gutter: 3.5vw;                      /* Korowa's page padding: 13.65 at 390, 50.4 at 1440 */
  --container: 120rem;                  /* container-large */
  --container-m: 64rem;
  --container-s: 48rem;                 /* the 768 reading column */
  --pad-s: var(--s-3);                  /* section padding small / medium / large (Korowa: space-3 / -5 / -7) */
  --pad-m: var(--s-5);
  --pad-l: var(--s-7);
  --head-h: clamp(54px, 50.5px + 1.05vw, 68px);   /* 54 at 390, 65.6 at 1440, 68 at 1920 */

  /* radii (Korowa: tiny 4, small 8, medium = space-2, large = space-6 = the big corner, 85.4 at 1440) */
  --r-tiny: 4px;
  --r-s: 8px;
  --r-m: var(--s-2);
  --r-l: var(--s-6);

  /* motion (Korowa: fade 50px, 1s, power4.out; the same cubic is the header ease) */
  --rise: 50px;
  --ease-out: cubic-bezier(.165, .84, .44, 1);
  --ease-ui: cubic-bezier(.491, .153, .094, .884);   /* Korowa's stage picker and button hover */
  --stagger: .15s;

  /* the card shadow (Korowa's only one) */
  --shadow-card: 0 20px 24px -4px rgba(200, 195, 187, .08), 0 8px 8px -4px rgba(200, 195, 187, .03);
}
