/**
 * ActiveZone — design tokens
 * Source: teya-memory/design/AURADESIGN.md
 * For local-site/ only. Do not deploy from this file alone.
 */

:root {
  /* Color */
  --color-bg: #ffffff;
  --color-surface: #e8ebee;
  --color-surface-2: #d5dbe0;
  --color-ink: #0a0a0a;
  --color-muted: #4a5560;
  --color-accent: #ff6200;
  --color-accent-deep: #c44a00;
  --color-on-accent: #ffffff; /* HITL 2026-08-11: white on orange (not ink) */
  --color-cta: #0a0a0a;
  --color-on-cta: #ffffff;
  --color-border: #c2cad2;
  --color-focus: #ff6200;
  --color-error: #dc2626;
  --color-success: #16a34a;
  --color-overlay: rgb(10 10 10 / 0.48);

  /* Typography */
  --font-display: "Geologica", sans-serif;
  --font-body: "Commissioner", sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.563rem;
  --text-2xl: 1.953rem;
  --text-3xl: 2.441rem;
  --text-4xl: 3.052rem;

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-loose: 1.65;

  --tracking-display: -0.03em;
  --measure: 65ch;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 120px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-tab: 16px 16px 0 0;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgb(10 10 10 / 0.08);
  --shadow-md: 0 4px 16px rgb(10 10 10 / 0.1);

  /* Layout — колонка растёт на широких мониторах (не вечный 1200) */
  --container-max: max(1200px, min(2400px, 58vw));
  --header-h: 72px;
  --gutter: 24px;
  --page-pad: 32px;
  /* AB-P1: fallback until JS; tablet media use var(--hero-scale, 1) */
  --hero-scale: 0.62;
  /* Базовый rem: чуть крупнее на 2K–4K, чтобы блоки ≠ «гипермелкие» */
  --root-font: 16px;

  /* Scroll-stack / LAW-1 pin-% (no --hero-scene-scale as position system) */
  --hero-pin-min-h: 100svh;
  /* FG16 tablet: trim pin = copy + floor-anchored cast */
  --hero-pin-dense-tablet: min(100svh, clamp(520px, 68vw, 640px));
  /* fg20: phone ≤768 = auto pin (copy + stack cast); token kept for fallbacks */
  --hero-pin-dense-phone: auto;
  /* fg23 STACK: cast under CTA; feet tuck only (not heads under #tasks) */
  --hero-stack-cast-h: clamp(220px, 55vw, 290px);
  --hero-stack-gap: 0px;
  /* transparent PNG headroom only — NOT chests under buttons */
  --hero-stack-cast-pull: 12px;
  --hero-stack-cta-gap: 14px;
  --hero-stack-cast-crop-y: 0%;
  --hero-pin-tasks-overlap: 96px;
  --hero-cast-floor-pad: 0px;
  --tasks-cover-bg: var(--color-surface);
  --parallax-max-pct: 5;
  --parallax-mobile-factor: 0.45;

  /* Motion */
  --duration-fast: 150ms;
  --duration-tab: 180ms;
  --duration-base: 220ms;
  --duration-slow: 400ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Folder-tabs */
  --tab-active-bg: var(--color-accent);
  --tab-inactive-bg: var(--color-bg);
  --tab-inactive-border: var(--color-border);
  --panel-bg: var(--color-surface-2);
  --pin-fill: var(--color-accent);
  --pin-size: 36px;
}

@media (max-width: 767px) {
  :root {
    --page-pad: 16px;
    --gutter: 16px;
    --header-h: 64px;
    --text-4xl: 2.441rem;
  }
}

/* Tablet gutters — между mobile 16px и desktop 32px */
@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --page-pad: 24px;
    --gutter: 20px;
  }
}

/* 2K — шире колонка, крупнее тип */
@media (min-width: 2560px) {
  :root {
    --root-font: 17.5px;
    --page-pad: 40px;
    --gutter: 28px;
    --header-h: 80px;
    --space-9: 112px;
    --space-10: 140px;
  }
}

/* 3K */
@media (min-width: 2880px) {
  :root {
    --root-font: 18.5px;
    --page-pad: 48px;
    --gutter: 32px;
    --header-h: 88px;
  }
}

/* 4K — гармония с full-bleed hero */
@media (min-width: 3840px) {
  :root {
    --root-font: 20px;
    --page-pad: 56px;
    --gutter: 36px;
    --header-h: 96px;
    --space-9: 128px;
    --space-10: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0.01ms;
    --duration-tab: 0.01ms;
    --duration-base: 0.01ms;
    --duration-slow: 0.01ms;
  }
}
