/* Shared design tokens — the single source of truth for both the admin
   tool (admin.css) and the customer site (site.css). The brand color
   --color-primary is #952301 throughout the project; it has a contrast
   ratio of ~8.4:1 against both white and black text, comfortably clearing
   WCAG AA (4.5:1) and AAA (7:1) for normal text, so it's safe to use
   as-is for primary buttons and links without a separate "on-brand" text
   color. */

:root {
  --color-primary: #952301;
  --color-primary-dark: #6e1a01;
  --color-primary-soft: #fbeae4;
  --color-primary-soft-border: #f0cec3;

  --color-bg: #fafaf9;
  --color-surface: #ffffff;
  --color-border: #e6e2dd;
  --color-border-strong: #d8d3cc;

  --color-text: #22201e;
  --color-text-muted: #726b64;
  --color-text-faint: #9b948c;

  --color-danger: #b3261e;
  --color-danger-soft: #fbe9e7;
  --color-success: #27633a;
  --color-success-soft: #e6f2e8;
  --color-warning: #8a6a00;
  --color-warning-soft: #fbf1d6;
  --color-info: #1a4a8a;
  --color-info-soft: #e3edf9;
  --color-neutral-soft: #eeece9;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  /* Fully-rounded. The customer site's confirmed look treats the pill as
     its default shape for anything interactive — buttons, inputs, nav,
     status chips — so it's a token rather than a magic number repeated
     down site.css. Additive: nothing in admin.css uses it yet. */
  --radius-pill: 999px;

  /* The quiet tint the confirmed landing used behind car photos and
     panels — lighter than --color-neutral-soft, which reads as a filled
     UI chip rather than a surface. Additive; admin is unaffected. */
  --color-surface-soft: #f6f5f3;

  --shadow-sm: 0 1px 2px rgba(30, 20, 10, 0.05);
  --shadow-md: 0 4px 16px rgba(30, 20, 10, 0.07);
  --shadow-lg: 0 12px 40px rgba(30, 20, 10, 0.12);
  --shadow-card: 0 1px 3px rgba(30, 20, 10, 0.06), 0 1px 2px rgba(30, 20, 10, 0.04);

  --sidebar-width: 240px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

/* Accessibility baseline: honored everywhere that includes this file,
   admin and customer site alike. Any animation/transition added later
   (including step 6's 3D layer) inherits this override for free as long
   as it uses animation/transition properties rather than raw JS loops. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000;
  font-weight: 600;
  font-size: 0.9rem;
}

.skip-link:focus {
  left: 0;
}
