/* HER Digital Incubator: design tokens.
   One background (Paper), five core colours, two tints, three typefaces. */

@font-face {
  font-family: "Unbounded";
  src: url("../assets/fonts/Unbounded-var.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../assets/fonts/HankenGrotesk-var.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../assets/fonts/HankenGrotesk-Italic-var.woff2") format("woff2");
  font-weight: 400 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Permanent Marker";
  src: url("../assets/fonts/PermanentMarker-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  /* Core colours */
  --paper: #F6F2EA;  /* 246 242 234: the only background, everywhere */
  --ink: #17211F;    /* 23 33 31: body text (14.8:1 on Paper) */
  --deep: #0B3A3F;   /* 11 58 63: primary. Headlines, buttons, links (11.1:1) */
  --teal: #008E9C;   /* 0 142 156: brand. Lanes, tracks, large type only (3.5:1) */
  --red: #EC442D;    /* 236 68 45: accent. Marker strokes, HER. Large type only */

  /* Tints (not colours of their own) */
  --blush: #F9D3C9;  /* red at a quarter: highlighter behind text, never text */
  --oat: #ECE5D8;    /* quiet fill: inputs, tiles, image frames */
  --ink-2: #4A5654;  /* secondary text (7.3:1 on Paper) */

  --bg: var(--paper);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --head: var(--deep);
  --fill: var(--oat);

  /* Type */
  --font-display: "Unbounded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-hand: "Permanent Marker", "Comic Sans MS", cursive;

  --fs-display: clamp(2.5rem, 1.2rem + 5.4vw, 6.25rem);
  --fs-h1: clamp(2.25rem, 1.3rem + 3.8vw, 4.75rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2.1vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-h4: 1.0625rem;
  --fs-lead: clamp(1.1875rem, 1.08rem + 0.45vw, 1.5rem);
  --fs-body: 1.125rem;
  --fs-small: 1rem;
  --fs-label: 0.75rem;
  --fs-note: clamp(1.5rem, 1.3rem + 0.6vw, 1.875rem);

  --lh-head: 1.1;
  --lh-body: 1.6;
  --track-head: -0.03em;
  --track-label: 0.16em;

  /* Spacing: 4 px base */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px; --s-11: 176px;
  --section: clamp(88px, 4.5rem + 5vw, 168px);

  /* Layout */
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 56px);
  --gap: 24px;
  --measure: 36rem;
  --header-h: 84px;

  /* Shape and motion */
  --pill: 999px;     /* every button, tag and lane is a stadium, like the wordmark */
  --radius: 6px;
  --stroke: 2px;     /* lane outline weight on screen */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 180ms;
  --t-med: 700ms;
}
