/* Techne design tokens (from "Gitcoin Pivot Branding - External", Techne brand guidelines).
   Every colour, size, radius and shadow the kit uses is named here; change one here and every page follows. */
/* font-display: swap, so no text waits on a font: the first render (and a page change's View Transition, which waits
   for it) shows the words at once, in the fallback if the face has not come yet (block hid them up to 3s; Public Sans
   had no font-display, which is auto, block in Chrome). Not optional: on a cold first load that would keep the
   logotype and the heads in the fallback for the whole page. Octave 500 and Public Sans 400 are preloaded
   (scripts/frame.mjs), so they are usually there for the first render anyway. */
@font-face { font-family: 'Octave'; src: url('fonts/octave-medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url('fonts/public-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url('fonts/public-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url('fonts/public-sans-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
:root {
  /* core palette: leads everywhere, the only colours for text and UI chrome */
  --white: #FFFFFF; --beige: #F8F7F1; --black: #000000;
  /* secondary palette: drawings and graphics only (each drawing one colour; mix warm with cool) */
  --pink: #F49AB8; --terracotta: #D17461; --tan: #DBA457; --yellow: #C8BD41;
  --blue: #70A0C2; --green: #689F60; --lavender: #BAAFD4;

  /* neutrals built from the core palette */
  --muted: rgba(0,0,0,.58);        /* secondary text */
  --ink-2: rgba(0,0,0,.72);        /* body text one step down */
  --faint: rgba(0,0,0,.38);        /* disabled */
  --rule: rgba(0,0,0,.12);         /* hairlines and quiet borders */
  --rule-soft: rgba(0,0,0,.05);    /* the edge of a white card on beige */
  --panel: #F1EFE6;                /* light code blocks, inline code */
  --tint: #EDEBE3;                 /* the current page in a nav: a light filled pill */
  --hover: rgba(0,0,0,.04);

  /* code: black or panel, mono 13px, one muted colour for strings */
  --code-ink: #EDEBE3;             /* text on a black block */
  --code-str-dark: var(--tan);     /* strings on black */
  --code-str: #A9584A;             /* strings on panel */
  --code-cm-dark: rgba(255,255,255,.45);

  /* type */
  --serif: 'Octave', Georgia, serif; --sans: 'Public Sans', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --t-h1: 64px; --t-h2: 40px; --t-h3: 24px; --t-p: 16px;   /* the 8pt scale */
  --t-sm: 14px; --t-xs: 13px; --t-label: 11px; --t-code: 13px;

  /* space, on the 8pt grid */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 40px; --s-8: 48px; --s-9: 56px; --s-10: 72px; --s-12: 96px;

  /* radii: three steps and a pill. sm for inline chips, chip for code blocks, nodes and small boxes,
     card for every white card and figure (pass 3: cards and figures share one radius) */
  --r-sm: 6px; --r-md: 12px; --r-chip: 12px; --r-card: 20px; --r-fig: 20px; --r-pill: 999px;

  /* shadows */
  --sh-float: 0 6px 24px rgba(0,0,0,.06);   /* the floating header, app cards */
  --sh-pop: 0 12px 40px rgba(0,0,0,.10);    /* drop-downs */
  --sh-chip: 0 6px 18px rgba(0,0,0,.08);    /* a diagram node on hover */

  /* motion (pass 3, kit/motion.js): springs as CSS linear() curves, sampled from a mass-1 spring.
     Only transform and opacity move, except a layer band's height. prefers-reduced-motion turns them off. */
  --spring: linear(0, 0.034, 0.116, 0.222, 0.338, 0.453, 0.56, 0.655, 0.735, 0.804, 0.86, 0.904, 0.938, 0.964, 0.983, 0.995, 1.004, 1.009, 1.012, 1.013, 1.013, 1.012, 1.011, 1.009, 1.008, 1.006, 1.005, 1.004, 1.003, 1.002, 1.001, 1.001, 1);
  --spring-d: 510ms;          /* stiffness 300, damping 28 (zeta .81): 1.3% overshoot. Reveals, drop-downs, lifts */
  --spring-soft: linear(0, 0.035, 0.114, 0.21, 0.314, 0.412, 0.506, 0.589, 0.659, 0.721, 0.771, 0.815, 0.851, 0.879, 0.904, 0.923, 0.938, 0.951, 0.961, 0.969, 0.976, 0.981, 0.985, 0.988, 0.991, 0.993, 0.994, 0.995, 0.996, 0.997, 0.998, 0.998, 1);
  --spring-soft-d: 540ms;     /* stiffness 280, damping 33.5 (critical): no overshoot. Drawer, band height, path */
  --spring-snap: linear(0, 0.037, 0.12, 0.23, 0.35, 0.469, 0.581, 0.681, 0.767, 0.838, 0.895, 0.939, 0.973, 0.996, 1.012, 1.022, 1.027, 1.029, 1.028, 1.026, 1.023, 1.019, 1.016, 1.013, 1.01, 1.007, 1.005, 1.003, 1.002, 1.001, 1, 1, 1);
  --spring-snap-d: 385ms;     /* stiffness 520, damping 34 (zeta .75): 2.9% overshoot. Copy feedback, tab press */
  --out: cubic-bezier(.2, .7, .3, 1); --out-d: 160ms;   /* closing: quick, no spring */
  --lift: -2px;               /* hover lift on cards and buttons */
  --sh-lift: 0 10px 28px rgba(0,0,0,.08);

  /* layout */
  --head-room: 104px;                       /* room for the floating header */
}
