/* ==========================================================================
   Design Tokens — Online Image Tools (Learnova Apps)
   Single source of truth for color, type, spacing, radius, shadow, layout.
   Do not hard-code raw values in other stylesheets — reference these tokens.
   ========================================================================== */

:root {
  /* ---- Color: surfaces & text ---- */
  --color-bg: #f6f8f9;
  --color-surface: #ffffff;
  --color-surface-muted: #eef2f3;
  --color-text-primary: #10201e;
  --color-text-secondary: #4c5c5a;
  --color-text-inverse: #ffffff;
  --color-border: #dbe3e2;
  --color-border-strong: #c2cdcb;

  /* ---- Color: brand ---- */
  --color-primary: #0f6f64;
  --color-primary-hover: #0b5952;
  --color-primary-active: #094944;
  --color-primary-soft: #e3f1ee;
  --color-on-primary: #ffffff;

  /* ---- Color: accent (used sparingly — badges, highlights) ---- */
  --color-accent: #d97a2c;
  --color-accent-soft: #fbeada;

  /* ---- Color: semantic ---- */
  --color-success: #1a7a4c;
  --color-success-soft: #e4f5eb;
  --color-warning: #a3690a;
  --color-warning-soft: #fbf0dc;
  --color-danger: #b3261e;
  --color-danger-soft: #fbe6e4;
  --color-focus: #1c8ee0;

  /* ---- Typography ---- */
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-xs: 0.8125rem;    /* 13px */
  --fs-sm: 0.9375rem;    /* 15px */
  --fs-base: 1rem;       /* 16px */
  --fs-md: 1.125rem;     /* 18px */
  --fs-lg: 1.375rem;     /* 22px */
  --fs-xl: 1.75rem;      /* 28px */
  --fs-2xl: 2.25rem;     /* 36px */
  --fs-3xl: 2.75rem;     /* 44px */

  --lh-tight: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* ---- Spacing scale ---- */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;

  /* ---- Radius ---- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* ---- Shadows ---- */
  --shadow-subtle: 0 1px 2px rgba(16, 32, 30, 0.06), 0 1px 1px rgba(16, 32, 30, 0.04);
  --shadow-elevated: 0 8px 24px rgba(16, 32, 30, 0.10), 0 2px 6px rgba(16, 32, 30, 0.06);

  /* ---- Layout ---- */
  --container-width: 1240px;
  --gutter-mobile: 16px;
  --gutter-tablet: 24px;
  --gutter-desktop: 32px;
  --header-height: 64px;

  /* ---- Motion ---- */
  --motion-fast: 120ms;
  --motion-normal: 200ms;
  --motion-ease: ease;
}

/* Dark Mode is explicitly out of scope for this phase — no [data-theme] block yet. */
