/**
 * Virelisse Design Tokens
 * Single source of truth for color, type, space, elevation, motion, layout.
 * Do not hard-code these values in components — reference the custom properties.
 */

:root {
  /* --------------------------------------------------------------------------
     Color — brand & surfaces (premium fashion neutrals + forest/gold accent)
     -------------------------------------------------------------------------- */
  --v-color-ink: #121412;
  --v-color-ink-soft: #2a2e2a;
  --v-color-ink-muted: #5c635c;

  --v-color-paper: #f7f5f0;
  --v-color-paper-warm: #efebe3;
  --v-color-surface: #ffffff;
  --v-color-surface-raised: #ffffff;
  --v-color-surface-sunken: #ebe7df;

  --v-color-forest: #1c302a;
  --v-color-forest-deep: #13241f;
  --v-color-forest-soft: #2d4a41;

  --v-color-gold: #c4a86a;
  --v-color-gold-soft: #d4c09a;
  --v-color-gold-deep: #9a7f45;

  --v-color-border: #ddd6c8;
  --v-color-border-strong: #c4bbaa;
  --v-color-border-subtle: #ebe6dc;

  --v-color-success: #2f6b4f;
  --v-color-warning: #b07a2a;
  --v-color-danger: #9b3b32;
  --v-color-info: #3a5f73;

  --v-color-focus: #1c302a;
  --v-color-overlay: rgba(18, 20, 18, 0.48);
  --v-color-skeleton: #e6e1d7;
  --v-color-skeleton-shine: #f3f0e9;

  /* Semantic aliases */
  --v-color-text: var(--v-color-ink);
  --v-color-text-muted: var(--v-color-ink-muted);
  --v-color-bg: var(--v-color-paper);
  --v-color-bg-alt: var(--v-color-paper-warm);
  --v-color-primary: var(--v-color-forest);
  --v-color-primary-hover: var(--v-color-forest-deep);
  --v-color-accent: var(--v-color-gold);
  --v-color-accent-hover: var(--v-color-gold-deep);
  --v-color-on-primary: #f7f5f0;
  --v-color-on-accent: #121412;

  /* --------------------------------------------------------------------------
     Typography
     -------------------------------------------------------------------------- */
  --v-font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --v-font-body: "Manrope", "Helvetica Neue", Helvetica, sans-serif;
  --v-font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --v-font-weight-light: 300;
  --v-font-weight-regular: 400;
  --v-font-weight-medium: 500;
  --v-font-weight-semibold: 600;
  --v-font-weight-bold: 700;

  --v-letter-tight: -0.02em;
  --v-letter-normal: 0;
  --v-letter-wide: 0.06em;
  --v-letter-wider: 0.14em;

  --v-leading-none: 1;
  --v-leading-tight: 1.2;
  --v-leading-snug: 1.35;
  --v-leading-normal: 1.55;
  --v-leading-relaxed: 1.7;

  /* Type scale (rem @ 16px root) */
  --v-text-xs: 0.75rem;    /* 12 */
  --v-text-sm: 0.8125rem;  /* 13 */
  --v-text-md: 0.9375rem;  /* 15 */
  --v-text-base: 1rem;     /* 16 */
  --v-text-lg: 1.125rem;   /* 18 */
  --v-text-xl: 1.25rem;    /* 20 */
  --v-text-2xl: 1.5rem;    /* 24 */
  --v-text-3xl: 1.875rem;  /* 30 */
  --v-text-4xl: 2.25rem;   /* 36 */
  --v-text-5xl: 3rem;      /* 48 */
  --v-text-6xl: 3.75rem;   /* 60 */
  --v-text-7xl: 4.5rem;    /* 72 */

  /* --------------------------------------------------------------------------
     Spacing (4px base)
     -------------------------------------------------------------------------- */
  --v-space-0: 0;
  --v-space-1: 0.25rem;   /* 4 */
  --v-space-2: 0.5rem;    /* 8 */
  --v-space-3: 0.75rem;   /* 12 */
  --v-space-4: 1rem;      /* 16 */
  --v-space-5: 1.25rem;   /* 20 */
  --v-space-6: 1.5rem;    /* 24 */
  --v-space-7: 2rem;      /* 32 */
  --v-space-8: 2.5rem;    /* 40 */
  --v-space-9: 3rem;      /* 48 */
  --v-space-10: 4rem;     /* 64 */
  --v-space-11: 5rem;     /* 80 */
  --v-space-12: 6rem;     /* 96 */
  --v-space-13: 8rem;     /* 128 */

  --v-section-y: clamp(3.5rem, 6vw, 6rem);
  --v-section-y-lg: clamp(5rem, 9vw, 8rem);
  --v-gutter: clamp(1rem, 3vw, 1.5rem);

  /* --------------------------------------------------------------------------
     Radius
     -------------------------------------------------------------------------- */
  --v-radius-none: 0;
  --v-radius-sm: 2px;
  --v-radius-md: 4px;
  --v-radius-lg: 8px;
  --v-radius-xl: 12px;
  --v-radius-pill: 999px;
  --v-radius-circle: 50%;

  /* Fashion default: restrained, almost sharp */
  --v-radius-control: var(--v-radius-md);
  --v-radius-card: var(--v-radius-md);
  --v-radius-media: var(--v-radius-sm);

  /* --------------------------------------------------------------------------
     Shadows
     -------------------------------------------------------------------------- */
  --v-shadow-xs: 0 1px 2px rgba(18, 20, 18, 0.06);
  --v-shadow-sm: 0 2px 8px rgba(18, 20, 18, 0.06);
  --v-shadow-md: 0 8px 24px rgba(18, 20, 18, 0.08);
  --v-shadow-lg: 0 16px 48px rgba(18, 20, 18, 0.12);
  --v-shadow-focus: 0 0 0 2px var(--v-color-paper), 0 0 0 4px var(--v-color-focus);
  --v-shadow-drawer: -8px 0 40px rgba(18, 20, 18, 0.16);

  /* --------------------------------------------------------------------------
     Z-index layers
     -------------------------------------------------------------------------- */
  --v-z-base: 1;
  --v-z-dropdown: 100;
  --v-z-sticky: 200;
  --v-z-header: 300;
  --v-z-overlay: 400;
  --v-z-drawer: 500;
  --v-z-modal: 600;
  --v-z-toast: 700;
  --v-z-tooltip: 800;
  --v-z-max: 9999;

  /* --------------------------------------------------------------------------
     Motion
     -------------------------------------------------------------------------- */
  --v-ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --v-ease-emphasized: cubic-bezier(0.16, 1, 0.3, 1);
  --v-ease-exit: cubic-bezier(0.4, 0, 1, 1);

  --v-duration-instant: 80ms;
  --v-duration-fast: 150ms;
  --v-duration-normal: 250ms;
  --v-duration-slow: 400ms;
  --v-duration-slower: 600ms;

  /* --------------------------------------------------------------------------
     Layout / containers
     -------------------------------------------------------------------------- */
  --v-container-xs: 28rem;   /* 448 */
  --v-container-sm: 36rem;   /* 576 */
  --v-container-md: 48rem;   /* 768 */
  --v-container-lg: 64rem;   /* 1024 */
  --v-container-xl: 75rem;   /* 1200 */
  --v-container-2xl: 87.5rem; /* 1400 */
  --v-container: var(--v-container-xl);

  --v-header-height: 4.5rem;
  --v-header-height-sticky: 4rem;

  /* --------------------------------------------------------------------------
     Breakpoints (reference — media queries cannot use custom props)
     xs: 0 | sm: 480 | md: 768 | lg: 1024 | xl: 1280 | 2xl: 1440
     -------------------------------------------------------------------------- */
  --v-bp-sm: 480px;
  --v-bp-md: 768px;
  --v-bp-lg: 1024px;
  --v-bp-xl: 1280px;
  --v-bp-2xl: 1440px;

  /* --------------------------------------------------------------------------
     Controls
     -------------------------------------------------------------------------- */
  --v-control-height-sm: 2.25rem;
  --v-control-height-md: 2.75rem;
  --v-control-height-lg: 3.25rem;
  --v-control-px: 1rem;
  --v-icon-size-sm: 1rem;
  --v-icon-size-md: 1.25rem;
  --v-icon-size-lg: 1.5rem;
  --v-product-card-ratio: 4 / 5;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --v-duration-instant: 0ms;
    --v-duration-fast: 0ms;
    --v-duration-normal: 0ms;
    --v-duration-slow: 0ms;
    --v-duration-slower: 0ms;
  }
}
