/*
 * Design tokens — transcribed 1:1 from the approved "Vibrant Petal" (v4) mockups'
 * Tailwind config (colors / fontFamily / fontSize / spacing / borderRadius).
 * Every other stylesheet in this theme reads from these custom properties —
 * change the brand here, not in component files.
 */

:root {
  /* ---- Color system (Material-3-style token names, from DESIGN.md) ---- */
  --color-surface-variant: #e4e2e1;
  --color-on-tertiary-container: #ffffff;
  --color-on-secondary: #ffffff;
  --color-surface-dim: #dcd9d9;
  --color-primary: #b5106a;
  --color-surface-container-lowest: #ffffff;
  --color-surface-bright: #fcf9f8;
  --color-outline-variant: #dfbec8;
  --color-error: #ba1a1a;
  --color-primary-fixed: #ffd9e4;
  --color-on-primary-fixed: #3e0020;
  --color-on-secondary-fixed-variant: #474744;
  --color-tertiary-container: #667b72;
  --color-surface-container-high: #eae7e7;
  --color-tertiary-fixed-dim: #b5ccc1;
  --color-surface-container: #f0eded;
  --color-tertiary-fixed: #d1e8dd;
  --color-surface-tint: #b5106b;
  --color-on-secondary-container: #636360;
  --color-on-error: #ffffff;
  --color-surface: #fcf9f8;
  --color-inverse-primary: #ffb0cc;
  --color-secondary-fixed-dim: #c8c6c3;
  --color-on-primary-fixed-variant: #8d0051;
  --color-on-tertiary-fixed: #0b1f18;
  --color-background: #fcf9f8;
  --color-primary-container: #d63384;
  --color-inverse-surface: #303030;
  --color-tertiary: #4d625a;
  --color-on-tertiary-fixed-variant: #374b43;
  --color-primary-fixed-dim: #ffb0cc;
  --color-on-surface: #1b1c1c;
  --color-secondary-fixed: #e4e2de;
  --color-secondary: #5e5e5c;
  --color-on-surface-variant: #584048;
  --color-on-secondary-fixed: #1b1c1a;
  --color-surface-container-low: #f6f3f2;
  --color-secondary-container: #e1dfdc;
  --color-on-primary: #ffffff;
  --color-inverse-on-surface: #f3f0f0;
  --color-on-primary-container: #ffffff;
  --color-outline: #8b7078;
  --color-on-background: #1b1c1c;
  --color-on-error-container: #93000a;
  --color-surface-container-highest: #e4e2e1;
  --color-on-tertiary: #ffffff;
  --color-error-container: #ffdad6;
  --color-star: #ffd700;

  /* ---- Type families ---- */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;

  /* ---- Type scale: size / line-height / letter-spacing / weight ---- */
  --text-label-md-size: 12px;    --text-label-md-lh: 1.2; --text-label-md-ls: normal;   --text-label-md-weight: 500;
  --text-label-lg-size: 14px;    --text-label-lg-lh: 1.2; --text-label-lg-ls: 0.05em;   --text-label-lg-weight: 600;
  --text-body-md-size: 16px;     --text-body-md-lh: 1.6;  --text-body-md-ls: normal;    --text-body-md-weight: 400;
  --text-body-lg-size: 18px;     --text-body-lg-lh: 1.6;  --text-body-lg-ls: normal;    --text-body-lg-weight: 400;
  --text-headline-sm-size: 24px; --text-headline-sm-lh: 1.4; --text-headline-sm-ls: normal; --text-headline-sm-weight: 500;
  --text-headline-md-size: 32px; --text-headline-md-lh: 1.3; --text-headline-md-ls: normal; --text-headline-md-weight: 600;
  --text-headline-lg-size: 48px; --text-headline-lg-lh: 1.2; --text-headline-lg-ls: normal; --text-headline-lg-weight: 600;
  --text-display-lg-mobile-size: 40px; --text-display-lg-mobile-lh: 1.2; --text-display-lg-mobile-ls: -0.01em; --text-display-lg-mobile-weight: 700;
  --text-display-lg-size: 64px;  --text-display-lg-lh: 1.1;  --text-display-lg-ls: -0.02em; --text-display-lg-weight: 700;

  /* ---- Spacing scale ---- */
  --space-base: 8px;
  --space-margin-mobile: 16px;
  --space-margin-desktop: 64px;
  --space-gutter: 24px;
  --space-section-gap: 120px;
  --max-width: 1440px;

  /* ---- Radii ---- */
  --radius-default: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* ---- Shadows (from mockups' custom utility classes) ---- */
  --shadow-ambient-l1: 0 4px 20px -2px rgba(181, 16, 106, 0.08);
  --shadow-ambient-l2: 0 12px 40px -4px rgba(181, 16, 106, 0.12);
  --shadow-petal: 0 10px 40px -10px rgba(181, 16, 106, 0.15);
  --shadow-magenta-glow: 0 0 20px rgba(181, 16, 106, 0.3);
}

@media (max-width: 768px) {
  :root {
    --space-margin-desktop: var(--space-margin-mobile);
  }
}
