/* Design tokens — colors, type scale, spacing, radii, shadows
   Direction: "Signal" — a dark, precise, tech-forward system. Near-black
   background, graphite panels, warm off-white text, one amber-gold
   accent used sparingly (CTAs, focus rings, hover/active states).
   Token NAMES are kept stable from the previous light-mode pass so every
   file that references them still works; only the VALUES changed to the
   new palette. Each token's comment states its current role, which no
   longer matches its literal name (e.g. --color-cream is now the
   near-black background, not a cream color). See PRODUCT.md. */
:root {
  /* --color-ink*: PRIMARY TEXT (was near-black-on-light, now warm off-white-on-dark) */
  --color-ink: #f2efea;
  --color-ink-700: rgba(242, 239, 234, 0.78); /* secondary text */

  /* --color-stone*: SURFACE (panels, alt sections, sidebars, mobile nav) */
  --color-stone: #17191d;
  --color-stone-700: #101215; /* deeper surface / hover state on surface */

  /* --color-cream*: PAGE BACKGROUND (was light, now near-black) */
  --color-cream: #0b0d10;
  --color-cream-alt: #17191d; /* alt-section bg — same as surface, one dark hue */
  --color-white: #ffffff; /* still true white — used for light chips (client logos) */

  /* --color-terracotta*: ACCENT (signal amber-gold) */
  --color-terracotta: #d9a441;
  --color-terracotta-700: #b8862f; /* hover/active, darker amber */
  --color-terracotta-tint: #8a6a2e; /* accent-dim: borders, hover fills, large text/UI only — fails 4.5:1 for small body text, never use for small copy */

  /* --color-gray-*: neutrals, re-tuned for a dark base (light-on-dark, not dark-on-light) */
  --color-gray-100: rgba(255, 255, 255, 0.08); /* subtlest border/divider */
  --color-gray-300: rgba(255, 255, 255, 0.16); /* visible border/divider */
  --color-gray-500: rgba(242, 239, 234, 0.55); /* muted/placeholder text */
  --color-gray-700: rgba(242, 239, 234, 0.7); /* secondary text, slightly brighter than gray-500 */

  /* Color: semantic (unchanged — already pass AA on dark via their own bg pairing) */
  --color-success: #3fbd76;
  --color-success-bg: rgba(63, 189, 118, 0.14);
  --color-error: #e5675a;
  --color-error-bg: rgba(229, 103, 90, 0.14);

  /* Typography — Bricolage Grotesque display (distinctive, not the
     Space Grotesk/DM Sans/Outfit cluster), Inter body, JetBrains Mono
     for small tech-forward labels/data. */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-h1: clamp(2.5rem, 1.9rem + 2.6vw, 4.25rem);
  --fs-h2: clamp(2rem, 1.7rem + 1.4vw, 3rem);
  --fs-h3: clamp(1.375rem, 1.25rem + 0.5vw, 1.75rem);
  --fs-h4: 1.25rem;
  --fs-body-lg: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-micro: 0.8125rem;

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.5rem;    /* 24px */
  --space-6: 2rem;      /* 32px */
  --space-7: 3rem;      /* 48px */
  --space-8: 4rem;      /* 64px */
  --space-9: 6rem;      /* 96px */
  --space-10: 8rem;     /* 128px */

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1440px;
  --gutter: 1.5rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Shadows — offset + soft blur, near-black-tinted (deeper than before
     since they now sit on a dark base, not a light one) */
  --shadow-1: 0 2px 4px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 10px 24px rgba(0, 0, 0, 0.45);
  --shadow-3: 0 24px 48px rgba(0, 0, 0, 0.55);

  /* Focus ring — amber accent */
  --focus-ring: 0 0 0 4px rgba(217, 164, 65, 0.4);

  /* Motion */
  --ease-standard: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth: 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  :root {
    --gutter: 2rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 3rem;
  }
}
