/* Unlattice · Concept B "Instrument" · tokens. Every raw colour, face and length lives here. */

@font-face {
  font-family: "Host Grotesk";
  src: url("fonts/host-grotesk-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Host Grotesk Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 105.72%;
  ascent-override: 96.01%;
  descent-override: 29.80%;
  line-gap-override: 0.00%;
}
@font-face {
  font-family: "Azeret Mono";
  src: url("fonts/azeret-mono-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Azeret Mono Fallback";
  src: local("Courier New"), local("Liberation Mono"), local("Courier");
  size-adjust: 108.33%;
  ascent-override: 86.50%;
  descent-override: 21.23%;
  line-gap-override: 0.00%;
}

:root {
  /* Type */
  --font-display: "Host Grotesk", "Host Grotesk Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Host Grotesk", "Host Grotesk Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-outlier: "Azeret Mono", "Azeret Mono Fallback", "SFMono-Regular", Menlo, Consolas, monospace;

  --text-hero: clamp(2.75rem, 6.3vw, 5.875rem);
  --text-section: clamp(2rem, 3.5vw, 3.375rem);
  --text-close: clamp(2.25rem, 4.6vw, 4.5rem);
  --text-lead: clamp(1.0625rem, 0.3vw + 1rem, 1.25rem);
  --text-md: 1.0625rem;
  --text-sm: 0.9375rem;
  --text-xs: 0.8125rem;
  --text-read: 0.78125rem;
  --text-fine: 0.71875rem;

  /* Space, on a 4 px scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-30: 120px;
  --space-36: 144px;

  --wrap: 1272px;
  --gutter: 40px;
  --pad: 24px;
  --gap: 24px;
  --bar-h: 64px;

  /* Alabaster and platinum ground */
  --color-paper: #f1f1ee;
  --color-paper-2: #f8f8f5;
  --color-paper-3: #e7e8e4;
  --color-ink: #111315;
  --color-ink-2: #43474c;
  --color-muted: #61666b;
  --color-rule: #d4d6d2;
  --color-rule-strong: #b3b6b2;
  --color-guide: #e0e1dd;

  /* Bronze measures, one vermilion signal */
  --color-bronze: #86673a;
  --color-bronze-soft: #b9a27c;
  --color-accent: #cf3d1c;
  --color-accent-ink: #f8f8f5;
  --color-focus: #1c4fd6;

  /* Carbon instrument surfaces */
  --color-carbon: #0f1113;
  --color-carbon-2: #15181b;
  --color-carbon-3: #1c1f23;
  --color-carbon-4: #262a2f;
  --color-carbon-5: #32373d;
  --color-inst-line: #272b30;
  --color-inst-line-2: #383d43;
  --color-inst-ink: #ecebe5;
  --color-inst-dim: #a4a49c;
  --color-inst-faint: #868880;
  --color-inst-bronze: #c6a872;
  --color-inst-bronze-dim: #7d6a49;
  --color-inst-signal: #f4623c;
  --color-inst-signal-dim: #7a2f1e;
  --color-inst-signal-veil: rgb(244 98 60 / 0.1);
  --color-inst-bronze-veil: rgb(198 168 114 / 0.1);
  --color-inst-rim: rgb(236 235 229 / 0.08);
  --color-inst-focus: #8fb1ff;
  --color-uve-green: #3f9b62;
  --color-uve-yellow: #d2a326;

  /* Depth */
  --shadow-inst: 0 1px 0 rgb(236 235 229 / 0.07) inset, 0 0 0 1px rgb(15 17 19 / 0.9), 0 2px 4px rgb(15 17 19 / 0.12), 0 18px 36px -18px rgb(15 17 19 / 0.38), 0 44px 80px -40px rgb(15 17 19 / 0.34);
  --shadow-plate: 0 1px 0 rgb(248 248 245 / 0.9) inset, 0 1px 2px rgb(15 17 19 / 0.3), 0 12px 24px -12px rgb(15 17 19 / 0.5);
  --shadow-thumb: 0 1px 0 rgb(236 235 229 / 0.1) inset, 0 1px 2px rgb(15 17 19 / 0.5);
  --shadow-thumb-light: 0 1px 0 rgb(248 248 245 / 0.9) inset, 0 1px 2px rgb(17 19 21 / 0.16), 0 0 0 1px rgb(17 19 21 / 0.06);

  /* Radius and motion */
  --radius-inst: 14px;
  --radius-plate: 10px;
  --radius-ctl: 8px;
  --radius-key: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 140ms;
  --dur-2: 260ms;
  --dur-3: 520ms;
}

@media (max-width: 1100px) {
  :root { --gutter: 28px; --pad: 20px; --gap: 20px; }
}
@media (max-width: 640px) {
  :root { --gutter: 12px; --pad: 12px; --gap: 16px; --bar-h: 56px; --radius-inst: 12px; }
}
