/* CoffeeOmde Quiet Trade Interface — Vanilla CSS tokens */
:root {
  color-scheme: light;

  /* Brand and semantic colors */
  --color-primary: #aa4f03;
  --color-primary-hover: #8a3e00;
  --color-primary-active: #703200;
  --color-ink: #17120f;
  --color-text-secondary: #635d58;
  --color-canvas: #fafaf8;
  --color-surface: #ffffff;
  --color-surface-warm: #f7f2e8;
  --color-border: #ded8cf;
  --color-border-strong: #bfb7ac;
  --color-forest: #244c3f;
  --color-forest-surface: #edf4f1;
  --color-warning: #8a5a00;
  --color-danger: #b42318;
  --color-white: #ffffff;

  /* Typography */
  --font-ui: "Shazde Pro", Tahoma, Arial, sans-serif;
  --font-logo: "Valman Black", serif;
  --text-display: 2.25rem;
  --text-h1: 2rem;
  --text-h2: 1.5rem;
  --text-h3: 1.2rem;
  --text-h4: 1.05rem;
  --text-body-lg: 1.0625rem;
  --text-body: 1rem;
  --text-body-sm: 0.875rem;
  --text-label: 0.875rem;
  --text-utility: 0.8125rem;
  --line-display: 1.2;
  --line-heading: 1.35;
  --line-body: 1.7;

  /* Spacing: 4px base */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius */
  --radius-none: 0;
  --radius-xs: 0.25rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-pill: 999px;

  /* Borders and shadows */
  --border-default: 1px solid var(--color-border);
  --border-strong: 1px solid var(--color-border-strong);
  --shadow-sm: 0 1px 2px rgb(23 18 15 / 6%);
  --shadow-md: 0 8px 24px rgb(23 18 15 / 10%);
  --shadow-lg: 0 20px 60px rgb(23 18 15 / 14%);

  /* Motion */
  --duration-micro: 120ms;
  --duration-state: 160ms;
  --duration-layer: 220ms;
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Layout */
  --content-max: 84rem;
  --catalog-sidebar: 17rem;
  --buybox-width: 24rem;
  --header-height: 4.5rem;
  --touch-target: 2.75rem;

  /* Layers */
  --z-content: 0;
  --z-sticky: 20;
  --z-header: 40;
  --z-popover: 60;
  --z-drawer: 80;
  --z-modal: 100;
  --z-toast: 120;
}

@media (max-width: 47.99rem) {
  :root {
    --text-display: 1.9rem;
    --text-h1: 1.65rem;
    --text-h2: 1.3rem;
    --text-h3: 1.1rem;
    --text-h4: 1rem;
    --header-height: 3.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-micro: 0ms;
    --duration-state: 0ms;
    --duration-layer: 0ms;
  }
}
