/**
 * Tom Best Craft — design tokens (Dorset workshop)
 * Spec: docs/design-tokens.md
 * Load before css/style.css on all public pages.
 */

:root {
  /* Brand & UI */
  --color-logo-ink: #343846;
  --color-canvas: #e4d9ca;
  --color-surface: #fffbf7;
  --color-surface-muted: #f7f2ea;
  --color-ink-muted: #4a4035;
  --color-ink-subtle: #6b6358;
  --color-border: #c4b8a8;
  --color-border-strong: #8a7e70;

  /* Teal accent */
  --color-accent-100: #9bc8c5;
  --color-accent-200: #68ada9;
  --color-accent-300: #36918c;
  --color-accent-500: #04766f;
  --color-accent-600: #046a64;
  --color-accent-700: #035e59;
  --color-accent-800: #03534e;

  /* Warm accent */
  --color-warm-500: #b85c38;
  --color-warm-600: #9a4a2b;

  /* Neutrals */
  --color-neutral-0: #ffffff;
  --color-neutral-100: #f0efed;
  --color-neutral-900: #1e1f26;
  --color-neutral-950: #14151a;

  /* Semantic */
  --color-text: var(--color-logo-ink);
  --color-text-on-dark: var(--color-neutral-0);
  --color-link-on-canvas: var(--color-accent-800);
  --color-link-on-surface: var(--color-accent-500);
  --color-focus-ring: var(--color-accent-500);

  /* Typography (100% root) */
  --font-body: "Be Vietnam Pro", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --text-xs: 0.875rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  --text-3xl: 2.25rem;
  --text-4xl: clamp(2rem, 4vw + 1rem, 3rem);
  --text-price: 1.125rem;
  --leading-tight: 1.15;
  --leading-body: 1.6;

  /* Order form fine print (matches --fs-200 in style.css) */
  --fs-legal: 0.83125rem;

  /* Space (8px grid @ 16px root) */
  --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-12: 3rem;
  --space-16: 4rem;
  --space-24: 5rem;
  --space-32: 7.5rem;

  --container-max: 72rem;
  --container-max-wide: 110rem;
  --container-gutter: var(--space-4);
  --flow-gap: var(--space-4);
  --section-y: var(--space-16);
  --section-y-hero: var(--space-24);
  --tracking-display: -0.02em;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 2px rgb(20 21 26 / 6%);
  --shadow-md: 0 4px 16px rgb(20 21 26 / 10%);
  --shadow-lg: 0 8px 24px rgb(20 21 26 / 14%);

  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
}

@media (min-width: 50em) {
  :root {
    --container-gutter: var(--space-6);
  }
}
