/* ==========================================================================
   PrintPortal — Design Tokens
   Generated from docs/planning-artifacts/ux-designs/ux-TICKET-002/DESIGN.md
   frontmatter, verbatim. Do not inline-duplicate these values elsewhere;
   consume them via var(--...) only.
   ========================================================================== */

:root {
  /* -- colors ---------------------------------------------------------------- */
  --ink: #080808;            /* primary text (near-black, never #000000) */
  --ink-strong: #000000;     /* reserved: large display only (>=24px bold) */
  --ink-soft: #363636;
  --ink-muted: #6e6e6e;
  --paper: #ffffff;
  --paper-shade: #f5f5f5;
  --line: #d8d8d8;
  --line-hover: #898989;
  --primary: #146ef5;
  --primary-hover: #0055d4;
  --primary-soft: #3b89ff;   /* focus ring / info accents */
  --accent: #7a3dff;
  --success: #00a338;
  --warning: #9a6a00;
  --danger: #d41736;
  --primary-tint: rgba(20, 110, 245, 0.08);
  --accent-tint: rgba(122, 61, 255, 0.08);
  --success-tint: rgba(0, 163, 56, 0.10);
  --warning-tint: rgba(255, 174, 19, 0.16);
  --danger-tint: rgba(238, 29, 54, 0.08);

  /* -- typography ------------------------------------------------------------ */
  --font-sans: 'PrintPortal Sans', system-ui, -apple-system, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'PrintPortal Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  /* type scale */
  --fs-display: 56px;
  --fs-h1: 40px;
  --fs-h2: 28px;
  --fs-h3: 20px;
  --fs-subhead: 18px;
  --fs-body: 16px;
  --fs-label: 15px;
  --fs-caption: 14px;
  --fs-eyebrow: 13px;
  --fs-price: 20px;

  /* -- spacing scale (4 → 96) ------------------------------------------------ */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* -- radius ---------------------------------------------------------------- */
  --radius-sm: 4px;   /* chips, badges, inputs, buttons */
  --radius-md: 6px;   /* cards, panels */
  --radius-lg: 8px;   /* modals, large media */
  --radius-circle: 50%;

  /* -- breakpoints (reference only; media queries use literal px) ------------- */
  /* --breakpoint-sm: 479px; --breakpoint-md: 768px; --breakpoint-lg: 992px; */

  /* -- elevation ------------------------------------------------------------- */
  --shadow-card: 0 2px 6px rgba(8, 8, 8, 0.06), 0 10px 24px rgba(8, 8, 8, 0.10);

  /* -- component tokens ------------------------------------------------------ */
  --focus-ring: 0 0 0 2px var(--paper), 0 0 0 4px var(--primary);

  /* -- Studio additions (ux-TICKET-004/DESIGN.md) --------------------------- */
  /* guide hues reuse the semantic tokens — safety = success green, bleed =
     danger red, print/wrap zone = accent violet; never restate a new hue */
  --guide-safety: var(--success);
  --guide-bleed: var(--danger);
  --guide-wrap: var(--accent);
  --guide-dim: rgba(8, 8, 8, 0.55);   /* outside-zone dimming wash */
  --ruler-ink: var(--ink-soft);        /* ruler lines + numerals */
  --stage-bg: #f0f1f4;                 /* 3D stage backdrop (future) */
  --stage-grid: #d8dce4;
  --stage-shadow: rgba(8, 8, 8, 0.12);
  --dimension-type: 500 12px/1.2 var(--font-sans); /* + tabular-nums at use */
}

/* Focus ring: 2px primary, offset 2px — on every interactive element.
   Implemented as outline so it never depends on box-shadow inheritance. */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
