/**
 * Shared design tokens. Component and page styles should consume these values
 * instead of introducing one-off colors, spacing, shadows, or layer numbers.
 */
:root {
  --color-ink: #07182b;
  --color-ink-2: #102a46;
  --color-ivory: #f6f3ec;
  --color-paper: #fffefa;
  --color-sand: #d8c4a4;
  --color-gold: #b8945f;
  --color-muted: #66717c;
  --color-line: rgba(7, 24, 43, 0.16);
  --color-white: #fff;

  --color-success: #1f5a2c;
  --color-success-bg: #edf4ee;
  --color-success-line: #cfe4d2;
  --color-error: #8a2620;
  --color-error-bg: #fbecec;
  --color-error-line: #f0caca;
  --color-warning: #72520d;
  --color-warning-bg: #fbf3e3;
  --color-warning-line: #e6d39d;
  --color-info: #1c4a86;
  --color-info-bg: #eaf1fb;
  --color-info-line: #c9dbf3;

  /* Compatibility aliases retained while existing components are migrated. */
  --ink: var(--color-ink);
  --ink-2: var(--color-ink-2);
  --ivory: var(--color-ivory);
  --paper: var(--color-paper);
  --sand: var(--color-sand);
  --gold: var(--color-gold);
  --line: var(--color-line);
  --muted: var(--color-muted);

  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: var(--font-display);
  --sans: var(--font-body);
  /* Smallest size for any visible text, including uppercase labels and badges. */
  --font-size-min: 0.75rem;
  /* Every product photo (cards, product page, bag, admin) uses this one shape; matches PRODUCT_IMAGE_RATIO. */
  --product-image-ratio: 5 / 4;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 5rem;

  --page-gutter: clamp(1rem, 0.45rem + 2.35vw, 2.5rem);
  --section-space: clamp(4rem, 2.5rem + 5vw, 7rem);
  --layout-gap: clamp(1.25rem, 0.75rem + 2vw, 3rem);
  --content-narrow: 42rem;
  --content-default: 73.75rem;
  --content-wide: 88.75rem;

  --tap-target: 2.75rem;
  --focus-width: 0.125rem;
  --focus-ring: var(--focus-width) solid var(--color-gold);
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-round: 999px;
  --shadow-sm: 0 0.125rem 0.5rem rgba(7, 24, 43, 0.08);
  --shadow-md: 0 1rem 2.5rem rgba(7, 24, 43, 0.16);
  --motion-fast: 150ms ease;
  --motion-normal: 250ms ease;

  --z-header: 30;
  --z-overlay: 40;
  --z-modal: 50;
  --z-toast: 60;
}
