:root {
  --ink: #0E0E10;
  --paper: #F5F4EF;
  --paper-2: #ECEAE0;
  --line: #1A1A1F;
  --periwinkle: #A7B3F0;
  --periwinkle-2: #C9D1F7;
  --indigo: #4C5BB5;
  --indigo-d: #2A2F66;
  --lime: #D6F236;
  --lime-d: #B6D018;
  --muted: #6B6B73;
  --hairline: rgba(14, 14, 16, 0.12);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-pill: 999px;
  --px: 6px;
  --font-display: 'Epilepsy Sans', monospace;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: var(--font-display);
  --mono: 'JetBrains Mono', monospace;
  --page-inline: clamp(16px, 4vw, 40px);
  --z-sticky: 200;
  --z-nav: 300;
  --touch: 44px;
  --bp-xs: 30rem;
  --bp-sm: 40rem;
  --bp-md: 48rem;
  --bp-lg: 68.75rem;
  --bp-xl: 80rem;

  /* Type scale §04 design-system (fluid, mobile-first) */
  --text-h1: clamp(2.25rem, 1.35rem + 7vw, 6rem);
  --text-h2: clamp(1.75rem, 1.1rem + 4.5vw, 3.5rem);
  --text-h3: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-h4: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --text-body: clamp(1rem, 0.95rem + 0.35vw, 1.0625rem);
  --text-mono: 0.8125rem;
  --text-caption: 0.875rem;
  --lh-h1: 0.92;
  --lh-h2: 0.95;
  --lh-h3: 1.1;
  --lh-h4: 1.2;
  --lh-body: 1.45;
  --lh-mono: 1.4;
  --ls-h1: -0.01em;
  --ls-mono: 0.06em;
  /* Legacy aliases */
  --text-display-sm: clamp(1.75rem, 1.4rem + 2vw, 2.5rem);
  --text-display-md: var(--text-h2);
  --text-display-lg: clamp(3rem, 2rem + 8vw, 7rem);
  --text-display-xl: var(--text-h1);

  /* Fluid spacing */
  --space-section-y: clamp(3rem, 5vw + 1rem, 6rem);
  --space-page-y: clamp(1.5rem, 3vw, 4rem);
  --space-page-x: var(--page-inline);
  /* Полноэкранные секции лендинга — единый ритм */
  --section-screen-min: 100dvh;
  --section-screen-pad-top: clamp(4.75rem, 11vh, 6rem);
  --section-screen-pad-bottom: clamp(2rem, 4vh, 3rem);
  --section-block-min-h: 17.5rem;
}
