/* Frame-study tokens. Source: DESIGN.md 0.2 (locked foundation) + V2-VISUAL-PROPOSAL.md §4
   (proposed: depth, light, instrument register, project accent). A frame may override only
   --accent, --key-x/--key-y and --len. When a frame proves a new global value, change it here
   and in DESIGN.md together. */

@font-face { font-family: "Funnel Display"; src: url("fonts/funnel-display-latin-wght-normal.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Funnel Sans";    src: url("fonts/funnel-sans-latin-wght-normal.woff2")    format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;

  /* foundation (locked) */
  --void: #060706;
  --black-0: #0a0b0a;
  --black-1: #111312;
  --black-2: #1a1d1b;
  --ivory: #eeebe3;
  --stone: #c9cbc4;
  --ash: #8f968f;
  --rule: #262a27;
  --gold: #d8ad55;
  --green-1: #12251b;
  --green-0: #0b1510;
  --placeholder: #ff8fca;

  /* opacity ladder for ink (proposal §3) */
  --ink-1: rgba(238, 235, 227, 1);
  --ink-2: rgba(238, 235, 227, .74);
  --ink-3: rgba(238, 235, 227, .64);   /* instrument text floor: ≥ 4.5:1 on the darkest ground */
  --ink-4: rgba(238, 235, 227, .56);   /* ticks and tertiary instruments; still ≥ 4.5:1 */
  --ink-5: rgba(238, 235, 227, .22);   /* decorative only: rules, never text */
  --edge: rgba(238, 235, 227, .12);
  --edge-soft: rgba(238, 235, 227, .07);
  --grid-ink: rgba(238, 235, 227, .018);

  /* project accent: each frame sets its own; never text, never the line */
  --accent: #d8ad55;
  --accent-rgb: 216, 173, 85;
  --key-x: 62%;
  --key-y: 48%;
  --key-alpha: .14;
  --fill-alpha: .05;

  /* type */
  --f-display: "Funnel Display", "Helvetica Neue", Arial, sans-serif;
  --f-sans: "Funnel Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display-xxl: clamp(5rem, 1rem + 12vw, 15rem);
  --display-xl: clamp(3.5rem, .5rem + 8vw, 9.5rem);
  --display-lg: clamp(2.75rem, 1rem + 4.2vw, 5.5rem);
  --headline: clamp(1.35rem, .9rem + 1.05vw, 2.05rem);
  --body: 1.0625rem;
  --ui: .8125rem;
  --instrument: .6875rem;      /* 11 px floor */
  --instrument-track: .14em;

  /* layout */
  --margin: clamp(1.25rem, 5.3vw, 4rem);
  --top: 5rem;
  --floor: 8.5rem;
  --gutter: 1.5rem;

  /* depth (proposal §4) */
  --z-far: -240px;
  --z-mid: 0px;
  --z-near: 120px;
  --far-scale: .78;
  --far-opacity: .55;
  --far-saturate: .75;
  --shadow-deep: 0 38px 80px rgba(0, 0, 0, .5);
  --shadow-contact: 0 2px 6px rgba(0, 0, 0, .35);
  --highlight: inset 0 1px rgba(238, 235, 227, .08);

  /* motion */
  --t-micro: 120ms;
  --t-ui: 240ms;
  --t-draw: 320ms;
  --t-jump: 520ms;
  --t-ambient: 18s;
  --ease-out: cubic-bezier(.2, 0, 0, 1);
  --ease-travel: cubic-bezier(.7, 0, .2, 1);
  --ease-choreo: cubic-bezier(.65, .02, .2, 1);
}
