/* Pizza Hotline product design tokens: shadcn style (owner standard, 2026-11-21).
 *
 * Spec: side-session-notes .../ph-design-standard-shadcn-20261121.md; reference implementation
 * themes/cv-email/email/html/welcome-invite.ftl. Quiet zinc neutrals, system font, Pizza Hotline red
 * only for the primary action, links and the logo artwork. The account theme ships a byte-identical
 * copy (tests/themeAssets.test.js enforces this); the cv-email templates use the same values inline.
 *
 * Accessibility (WCAG 2.2 AA, measured):
 *   white on --ph-action #d63b2c          4.64:1  primary buttons
 *   --ph-link #b72f22 on white / #fafafa  6.10 / 5.84:1
 *   --ph-muted #71717a on white / #fafafa 4.83 / 4.63:1
 *   --ph-input-border #8e8e96 on white    3.25:1  control boundary (shadcn's #e4e4e7 is 1.27:1, too faint)
 *   brand red #ee4838 is 3.74:1 on white: logo artwork only
 */
:root {
  /* Brand */
  --ph-red: #ee4838;            /* logo artwork only */
  --ph-action: #d63b2c;
  --ph-action-hover: #b72f22;
  --ph-action-pressed: #9c2519;
  --ph-link: #b72f22;
  --ph-accent-tint: #fdeceb;    /* badges, step numbers: --ph-link text on this */

  /* Zinc neutrals */
  --ph-canvas: #fafafa;         /* zinc-50 */
  --ph-surface: #ffffff;
  --ph-muted-surface: #f4f4f5;  /* zinc-100 */
  --ph-border: #e4e4e7;         /* zinc-200: cards, dividers */
  --ph-input-border: #8e8e96;   /* inputs and checkboxes */
  --ph-heading: #09090b;        /* zinc-950 */
  --ph-ink: #3f3f46;            /* zinc-700 body */
  --ph-muted: #71717a;          /* zinc-500 */

  /* Status */
  --ph-danger: #b72f22;
  --ph-danger-tint: #fdeceb;
  --ph-danger-border: #f5c4be;
  --ph-success: #15803d;        /* green-700: 5.0:1 on its tint */
  --ph-success-tint: #f0fdf4;
  --ph-success-border: #bbf7d0;
  --ph-focus-ring: 0 0 0 2px var(--ph-surface), 0 0 0 4px var(--ph-action);

  /* Type: system stack, no web font */
  --ph-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ph-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ph-fw-regular: 400;
  --ph-fw-medium: 500;
  --ph-fw-semibold: 600;
  --ph-fs-title: 1.5rem;        /* 24px */
  --ph-fs-body: 0.9375rem;      /* 15px */
  --ph-fs-small: 0.875rem;      /* 14px */
  --ph-fs-caption: 0.8125rem;   /* 13px */
  --ph-lh-tight: 1.25;
  --ph-lh-normal: 1.5;
  --ph-tracking-tight: -0.02em;

  /* Space (4px grid) */
  --ph-space-1: 0.25rem;
  --ph-space-2: 0.5rem;
  --ph-space-3: 0.75rem;
  --ph-space-4: 1rem;
  --ph-space-5: 1.5rem;
  --ph-space-6: 2rem;
  --ph-space-7: 3rem;

  /* Shape and depth */
  --ph-radius-sm: 6px;
  --ph-radius-md: 8px;          /* inputs, buttons, muted boxes */
  --ph-radius-lg: 12px;         /* cards */
  --ph-radius-pill: 999px;
  --ph-shadow-card: 0 1px 2px rgba(9, 9, 11, 0.05);
  --ph-shadow-pop: 0 10px 30px rgba(9, 9, 11, 0.12);

  /* Controls */
  --ph-control-height: 2.5rem;  /* 40px, shadcn default */

  /* Motion */
  --ph-ease: cubic-bezier(0.2, 0, 0, 1);
  --ph-dur-fast: 120ms;
  --ph-dur-base: 200ms;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --ph-dur-fast: 0ms;
    --ph-dur-base: 0ms;
  }
}
