/* PRAXIS tokens: the single source of truth. Re-skin here first. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* primitives. Some steps are intentionally unused on the demo pages;
     they are part of the scale so re-skins have room to move. */
  --ink: #0b0b0c;
  --ink-2: #151517;
  --ink-3: #232326;
  --paper: #f2f1ec;
  --paper-2: #eae8e1;
  --paper-3: #dfddd4;
  --white: #ffffff;
  --gray: #77756e;
  --gray-2: #a3a19b;
  --signal: #ff4514;      /* bright: for ink surfaces + large marks */
  --signal-ink: #c22c05;  /* deep: for paper surfaces, AA at label sizes */

  /* semantic (paper theme is the default) */
  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --fg: var(--ink);
  --muted: #605e57;
  --line: rgba(11, 11, 12, 0.16);
  --line-strong: rgba(11, 11, 12, 0.55);
  --accent: var(--signal-ink);
  --accent-raw: var(--signal);
  --focus: #0033ff;

  /* type */
  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --t-display: clamp(2.25rem, 10.5vw, 11rem);
  --t-h1: clamp(2.6rem, 7vw, 6.5rem);
  --t-h2: clamp(2rem, 4.6vw, 4rem);
  --t-h3: clamp(1.35rem, 2.4vw, 2rem);
  --t-lead: clamp(1.15rem, 1.8vw, 1.5rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-mono: 0.72rem;
  --lh-tight: 0.92;
  --lh-heading: 1.04;
  --lh-body: 1.55;
  --track-mono: 0.14em;
  --wdth-display: 118;  /* Archivo expanded for display */
  --wdth-body: 100;

  /* space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 9rem;
  --section-pad: clamp(5.5rem, 13vh, 10rem);
  --gutter: clamp(1rem, 2.5vw, 1.5rem);
  --edge: clamp(1.25rem, 4vw, 4rem);
  --measure: 38rem;
  --max-w: 90rem;

  /* shape + depth */
  --r-1: 4px;
  --r-2: 10px;
  --r-3: 22px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(11, 11, 12, 0.06), 0 8px 24px rgba(11, 11, 12, 0.07);

  /* motion */
  --dur-1: 150ms;
  --dur-2: 320ms;
  --dur-3: 650ms;
  --dur-4: 1000ms;
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-inout: cubic-bezier(0.83, 0, 0.17, 1);

  /* layers */
  --z-hud: 40;
  --z-menu: 50;
  --z-skip: 60;
}

/* ink theme: any element with data-theme="ink" flips the semantic set */
[data-theme="ink"] {
  --bg: var(--ink);
  --bg-2: var(--ink-2);
  --fg: var(--paper);
  --muted: #9b9993;
  --line: rgba(242, 241, 236, 0.18);
  --line-strong: rgba(242, 241, 236, 0.6);
  --accent: var(--signal);
  --focus: #7d9bff;
}
