/* Design tokens — brand-locked custom theme for Lograble.
 * Source of truth: approved final identity in LOG-37 (option 5, "Check de bloques").
 * Brand hex values converted to OKLCH: #17181C, #22C55E, #5B6170, #A1A6B3.
 * Green is a fill colour only: ink text on green reaches 7.8:1, green on paper does not.
 * Every colour and font used by the page must come from this file.
 */

:root {
  color-scheme: light;

  /* Palette */
  --color-night: oklch(21% 0.008 274.5);          /* tinta #17181C */
  --color-night-deep: oklch(14% 0.006 274.5);
  --color-paper: oklch(97.8% 0.0028 128.5);
  --color-surface: oklch(99.5% 0.002 130);
  --color-rule: oklch(88% 0.008 270);
  --color-rule-on-dark: oklch(36% 0.015 270);
  --color-muted: oklch(49.3% 0.0251 268.2);        /* gris del lema #5B6170 */
  --color-ink-soft: oklch(49.3% 0.0251 268.2);
  --color-accent: oklch(72.3% 0.192 149.6);        /* verde "logrado" #22C55E */
  --color-accent-strong: oklch(62% 0.17 149.6);    /* hover state, ink text stays 5.2:1 */
  --color-accent-text: oklch(21% 0.008 274.5);     /* ink on light, never green text */
  --color-accent-tint: oklch(95.5% 0.03 150);
  --color-on-dark: oklch(97.8% 0.0028 128.5);
  --color-on-dark-muted: oklch(72.5% 0.0196 269);  /* gris sobre fondo oscuro #A1A6B3 */
  --color-focus: oklch(21% 0.008 274.5);
  --color-focus-on-dark: oklch(97.8% 0.0028 128.5);

  /* Type — Nunito per the approved brand guide */
  --font-display: "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.25rem;
  --text-lg: 1.5625rem;
  --text-xl: 1.9531rem;
  --text-2xl: clamp(1.95rem, 2.6vw, 2.75rem);
  --text-display: clamp(2.5rem, 5vw + 0.75rem, 5.25rem);

  /* Space — 4 pt scale */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;
  --page-gutter: clamp(1.25rem, 4vw, 4rem);
  --content-max: 78rem;
  --rule-hair: 1px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;

  /* Layers */
  --z-base: 1;
  --z-sticky: 200;
}
