/* tokens.css — Veyra Peptides design system: deep navy + warm rose-gold */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.75rem);
  --text-hero: clamp(2.75rem, 0.8rem + 6vw, 6.5rem);

  /* Spacing (4px system) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1240px;
  --content-full: 100%;

  --font-display: 'Cormorant', 'Iowan Old Style', 'Georgia', serif;
  --font-body: 'Switzer', 'Work Sans', 'Helvetica Neue', sans-serif;
}

/* LIGHT MODE (default) — warm ivory surfaces, deep navy text, rose-gold accent */
:root,
[data-theme='light'] {
  --color-bg: #f7f3ec;
  --color-surface: #ffffff;
  --color-surface-2: #f6f1e7;
  --color-surface-offset: #efe6d5;
  --color-surface-offset-2: #e8dcc5;
  --color-divider: #e5dac6;
  --color-border: #d9caac;

  --color-text: #101a30;
  --color-text-muted: #566078;
  --color-text-faint: #9aa1b3;
  --color-text-inverse: #f7f3ec;

  /* Navy — structural / dark panels (mirrors the reference site's black cards) */
  --color-navy: #0d1830;
  --color-navy-2: #142242;
  --color-navy-border: #2a3a63;

  /* Rose-gold accent (from the vial labels) */
  --color-accent: #b1824f;
  --color-accent-hover: #97693c;
  --color-accent-active: #7c5630;
  --color-accent-highlight: #ecdcc0;

  --color-primary: #0d1830;
  --color-primary-hover: #142242;
  --color-primary-active: #1a2c52;

  --color-success: #3f7a4c;
  --color-success-highlight: #d9e8db;
  --color-warning: #a15d1f;
  --color-warning-highlight: #f0ddc4;
  --color-error: #a3324a;
  --color-error-highlight: #f0d3da;

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 260 / 0.08);
  --shadow-md: 0 8px 24px oklch(0.2 0.02 260 / 0.1);
  --shadow-lg: 0 20px 48px oklch(0.15 0.02 260 / 0.16);
}

/* DARK MODE — deep navy surfaces (matches vial labels), ivory text, brighter gold */
[data-theme='dark'] {
  --color-bg: #0a1224;
  --color-surface: #0f192f;
  --color-surface-2: #132038;
  --color-surface-offset: #17264200;
  --color-surface-offset: #172642;
  --color-surface-offset-2: #1c2c4d;
  --color-divider: #1e2c4d;
  --color-border: #2a3a5f;

  --color-text: #f1ead9;
  --color-text-muted: #b6bed2;
  --color-text-faint: #78829c;
  --color-text-inverse: #0a1224;

  --color-navy: #060d1c;
  --color-navy-2: #0f1a33;
  --color-navy-border: #223252;

  --color-accent: #d9ac72;
  --color-accent-hover: #e8c091;
  --color-accent-active: #f2d3ab;
  --color-accent-highlight: #3a3220;

  --color-primary: #d9ac72;
  --color-primary-hover: #e8c091;
  --color-primary-active: #f2d3ab;

  --color-success: #7ab585;
  --color-success-highlight: #1d3324;
  --color-warning: #d29a5b;
  --color-warning-highlight: #3a2c18;
  --color-error: #d97b8f;
  --color-error-highlight: #3a212a;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 8px 24px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.5);
}
