/* YWE frontend foundations — canonical, framework-neutral design tokens.
 *
 * This file contains namespaced values only and must not style elements.
 * Separate Cloudflare Pages outputs receive generated copies via
 * scripts/sync-frontend-foundations.mjs.
 */

:root {
  /* Color foundations */
  --ywe-color-parchment: #fdf9f4;
  --ywe-color-parchment-subtle: #f5efe5;
  --ywe-color-paper: #ffffff;
  --ywe-color-ink: #1a1712;
  --ywe-color-ink-muted: #6b6258;
  --ywe-color-ink-faint: #9a9080;
  --ywe-color-border: #e8e2da;
  --ywe-color-border-light: #efe9e1;
  --ywe-color-focus: #1a6b6b;
  --ywe-color-success: #2d6648;
  --ywe-color-danger: #9b3434;
  --ywe-color-danger-action: #b04444;
  --ywe-color-danger-action-hover: #9a3838;
  --ywe-color-warning: #8a5a14;
  --ywe-color-overlay: rgba(26, 23, 18, 0.45);

  /* Consequential actions: black face + restrained opal halo. Independent of
     card elevation, tier paint and material. Set glow to none for a quiet study. */
  --ywe-action-background: #111111;
  --ywe-action-foreground: #ffffff;
  --ywe-action-focus: #777777;
  --ywe-action-edge: rgb(255 255 255 / .20);
  --ywe-action-glow: inset 0 1px 0 rgb(255 255 255 / .12), 0 2px 4px rgb(0 0 0 / .14), -5px 3px 16px -5px rgb(161 144 198 / .32), 5px 4px 18px -6px rgb(205 164 135 / .34), 0 -3px 14px -6px rgb(191 134 162 / .24);
  --ywe-action-glow-hover: inset 0 1px 0 rgb(255 255 255 / .18), 0 3px 6px rgb(0 0 0 / .16), -5px 3px 19px -4px rgb(161 144 198 / .40), 5px 4px 21px -5px rgb(205 164 135 / .40), 0 -3px 16px -5px rgb(191 134 162 / .30);

  --ywe-action-glow-cycle: 6s;
  --ywe-action-glow-cool: inset 0 1px 0 rgb(255 255 255 / .18), 0 3px 6px rgb(0 0 0 / .16), -5px 3px 19px -4px rgb(125 174 205 / .40), 5px 4px 21px -5px rgb(161 144 198 / .40), 0 -3px 16px -5px rgb(149 192 183 / .30);
  --ywe-action-glow-warm: inset 0 1px 0 rgb(255 255 255 / .18), 0 3px 6px rgb(0 0 0 / .16), -5px 3px 19px -4px rgb(194 137 169 / .40), 5px 4px 21px -5px rgb(205 172 130 / .40), 0 -3px 16px -5px rgb(181 154 201 / .30);

  /* Typography */
  --ywe-font-ui: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ywe-font-display: 'Cormorant Garamond', Georgia, serif;
  --ywe-font-editorial-ui: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ywe-font-program: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ywe-text-xs: 0.6875rem;
  --ywe-text-sm: 0.8125rem;
  --ywe-text-md: 0.9375rem;
  --ywe-text-lg: 1.0625rem;
  --ywe-text-xl: 1.375rem;
  --ywe-text-2xl: 1.875rem;
  --ywe-text-display: 2.75rem;
  --ywe-leading-tight: 1.15;
  --ywe-leading-body: 1.6;

  /* Spacing — 4px base with intentional larger editorial gaps */
  --ywe-space-1: 0.25rem;
  --ywe-space-2: 0.5rem;
  --ywe-space-3: 0.75rem;
  --ywe-space-4: 1rem;
  --ywe-space-5: 1.25rem;
  --ywe-space-6: 1.5rem;
  --ywe-space-8: 2rem;
  --ywe-space-10: 2.5rem;
  --ywe-space-12: 3rem;
  --ywe-space-16: 4rem;

  /* Shape and depth */
  --ywe-radius-sm: 0.5rem;
  --ywe-radius-md: 0.75rem;
  --ywe-radius-lg: 1.125rem;
  --ywe-radius-xl: 1.5rem;
  --ywe-radius-pill: 999px;
  --ywe-shadow-subtle: 0 1px 2px rgba(26, 23, 18, 0.04);
  --ywe-shadow-card: 0 14px 34px rgba(26, 23, 18, 0.1);
  --ywe-shadow-overlay: 0 24px 60px rgba(26, 23, 18, 0.14);
  --ywe-shadow-selected: 0 1px 1px rgba(26, 23, 18, 0.04), 0 8px 20px rgba(26, 23, 18, 0.08);
  --ywe-shadow-hover: 0 8px 24px rgba(26, 23, 18, 0.08);
  --ywe-shadow-compact: 0 4px 14px rgba(26, 23, 18, 0.08);
  --ywe-shadow-dialog: 0 12px 40px rgba(26, 23, 18, 0.2);

  /* Interaction */
  --ywe-control-height-sm: 2.375rem;
  --ywe-control-height-md: 2.75rem;
  --ywe-control-height-lg: 3rem;
  --ywe-focus-ring: 0 0 0 3px rgba(26, 107, 107, 0.16);
  --ywe-duration-fast: 150ms;
  --ywe-duration-normal: 220ms;
  --ywe-ease-standard: cubic-bezier(0.2, 0, 0, 1);
}
